From 8eaadc19e13657935e130c0211e86862e56d6dd9 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 21 Oct 2024 20:13:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E5=B7=A6=E5=8F=B3=E6=BB=91=E5=8A=A8=E7=BB=84=E7=9A=84=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + src/control/list/md-ctrl/md-ctrl.scss | 16 ++++++++++++++-- src/control/list/md-ctrl/md-ctrl.tsx | 2 +- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f2e98b77..16e342b48 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ ### Change +- 列表左右滑动组默认撑满项高度 - 更新日历自定义选择按钮名称 - 更新树导航引擎加载实体数据时先判断是否有主键 - 优化按钮组和关系分页上方下拉列表 popover 关闭模式 diff --git a/src/control/list/md-ctrl/md-ctrl.scss b/src/control/list/md-ctrl/md-ctrl.scss index 7eb693ba5..4a74b2115 100644 --- a/src/control/list/md-ctrl/md-ctrl.scss +++ b/src/control/list/md-ctrl/md-ctrl.scss @@ -6,7 +6,7 @@ $control-mobmdctrl: ( img-width: getCssVar(width-icon, extra-large), img-radius: getCssVar(border-radius, extra-small), padding: getCssVar(spacing, base) 0 getCssVar(spacing, base) - getCssVar(spacing, base), + getCssVar(spacing, base), group-padding: getCssVar(spacing, tight) getCssVar(spacing, base), group-font: getCssVar(font-size, regular), icon-color: #a0a5aa, @@ -39,7 +39,7 @@ $control-mobmdctrl: ( } @include when(show-underLine) { .#{bem(control-mobmdctrl-item)} - + .#{bem(control-mobmdctrl-item)}::before { + + .#{bem(control-mobmdctrl-item)}::before { position: relative; top: -0.875rem; left: 1rem; @@ -145,3 +145,15 @@ $control-mobmdctrl: ( padding: getCssVar(control-mobmdctrl, select-item-check-padding); } } +@include b('control-mobmdctrl-slider-item'){ + .van-swipe-cell__right{ + >.van-button{ + height: 100%; + } + } + .van-swipe-cell__left{ + >.van-button{ + height: 100%; + } + } +} \ No newline at end of file diff --git a/src/control/list/md-ctrl/md-ctrl.tsx b/src/control/list/md-ctrl/md-ctrl.tsx index e060cc0e9..0657d0ac4 100644 --- a/src/control/list/md-ctrl/md-ctrl.tsx +++ b/src/control/list/md-ctrl/md-ctrl.tsx @@ -95,7 +95,7 @@ export const MDCtrlControl = defineComponent({ ); if (isItemSliding) { return ( - + {{ left: rightSlidingActionGroup ? () => renderSlidingActionGroup(rightSlidingActionGroup, data) -- Gitee