From 8bab50cc9d7a6e595cae91842db8494cf6f6bdd7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=99=88=E5=B0=8F=E6=9C=AF?= <864822121@qq.com>
Date: Fri, 2 Aug 2024 18:07:11 +0800
Subject: [PATCH 1/4] =?UTF-8?q?fix:=20=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8Dwd-?=
=?UTF-8?q?button=20=E5=9C=A8hairline=E6=97=B6active=E6=B2=A1=E6=9C=89?=
=?UTF-8?q?=E5=9C=86=E8=A7=92=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
修复wd-button 在hairline时active没有圆角问题
---
src/uni_modules/wot-design-uni/components/wd-button/index.scss | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/uni_modules/wot-design-uni/components/wd-button/index.scss b/src/uni_modules/wot-design-uni/components/wd-button/index.scss
index 02e4d5865..cf53eea0b 100644
--- a/src/uni_modules/wot-design-uni/components/wd-button/index.scss
+++ b/src/uni_modules/wot-design-uni/components/wd-button/index.scss
@@ -80,6 +80,7 @@
@include m(active) {
&:active::before {
opacity: 0.15;
+ border-radius: 6px;
}
}
From 1e91f8c931e0bc43ae02ad3a59ed13618448a3a7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=99=88=E5=B0=8F=E6=9C=AF?= <864822121@qq.com>
Date: Wed, 9 Oct 2024 15:54:13 +0800
Subject: [PATCH 2/4] =?UTF-8?q?feat:=20=E2=9C=A8=20=E6=96=B0=E5=A2=9ECurta?=
=?UTF-8?q?in=20=E5=B9=95=E5=B8=98=E5=B1=9E=E6=80=A7=EF=BC=8C=E6=94=AF?=
=?UTF-8?q?=E6=8C=81=E4=BD=BF=E7=94=A8=E5=85=B6=E4=BB=96=E5=9B=BE=E6=A0=87?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
新增Curtain 幕帘属性,支持使用其他图标
---
docs/component/curtain.md | 3 +++
src/pages/curtain/Index.vue | 20 +++++++++++++++++++
.../components/wd-curtain/types.ts | 15 +++++++++++++-
.../components/wd-curtain/wd-curtain.vue | 11 ++++++++--
4 files changed, 46 insertions(+), 3 deletions(-)
diff --git a/docs/component/curtain.md b/docs/component/curtain.md
index c83de3531..224a0bf4d 100644
--- a/docs/component/curtain.md
+++ b/docs/component/curtain.md
@@ -108,6 +108,9 @@ function handleClose() {
| close-position | 关闭按钮位置 | string | inset / top / bottom / top-left / top-right / bottom-left / bottom-right | inset | - |
| close-on-click-modal | 点击遮罩是否关闭 | boolean | - | false | - |
| hide-when-close | 是否当关闭时将弹出层隐藏(display: none) | boolean | - | true | - |
+| close-icon-name | 关闭按钮图标 | string | close-outline / close | close-outline | $LOWEST_VERSION$ |
+| close-icon-size | 图标的字体大小 | string | - | inherit | - |
+| close-icon-color | 图标的字体颜色 | string | - | inherit | - |
## Events
diff --git a/src/pages/curtain/Index.vue b/src/pages/curtain/Index.vue
index 6228c5443..069f22cd3 100644
--- a/src/pages/curtain/Index.vue
+++ b/src/pages/curtain/Index.vue
@@ -18,6 +18,9 @@
点击遮罩关闭
+
+ 关闭图标自定义
+
@@ -35,6 +38,16 @@
@close="handleClose8"
:close-on-click-modal="true"
>
+