From 99ad5e3db9db591a9f2cd1adc26734937353540f Mon Sep 17 00:00:00 2001
From: 810505339 <810505339@qq.com>
Date: Thu, 26 Sep 2024 12:26:07 +0800
Subject: [PATCH 1/3] =?UTF-8?q?feat:=20=E2=9C=A8=20Datetime-picker?=
=?UTF-8?q?=E6=96=B0=E5=A2=9Eright-icon=E6=8F=92=E6=A7=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
docs/component/datetime-picker.md | 35 +++++++++++++++++++
src/pages/datetimePicker/Index.vue | 30 ++++++++++++++--
.../wd-datetime-picker/wd-datetime-picker.vue | 4 ++-
3 files changed, 66 insertions(+), 3 deletions(-)
diff --git a/docs/component/datetime-picker.md b/docs/component/datetime-picker.md
index e3941dac5..035d37537 100644
--- a/docs/component/datetime-picker.md
+++ b/docs/component/datetime-picker.md
@@ -255,6 +255,40 @@ const displayFormatTabLabel = (items) => {
```
+## 自定义icon
+
+添加 `right-icon` 插槽来自定义右侧图标。
+
+
+```html
+
+
+
+
+
+
+
+```
+
+```typescript
+import type {,
+ DatetimePickerExpose
+} from '@/uni_modules/wot-design-uni/components/wd-datetime-picker/types'
+
+const value = ref(['', Date.now()])
+const dateTimePickerRef=ref(null)
+
+/* right-icon点击事件 */
+function rightIconClick() {
+ if (isEmpty.value) {
+ dateTimePickerRef.value!.open()
+ return
+ }
+ value.value = []
+}
+```
+
+
## Attributes
| 参数 | 说明 | 类型 | 可选值 | 默认值 | 最低版本 |
@@ -328,6 +362,7 @@ const displayFormatTabLabel = (items) => {
|------|-----|---------|
| default | 使用默认插槽 | - |
| label | 左侧标题插槽 | - |
+| right-icon | 右侧图标插槽 | $LOWEST_VERSION$ |
## 外部样式类
diff --git a/src/pages/datetimePicker/Index.vue b/src/pages/datetimePicker/Index.vue
index 7c4e5cc6a..c4a26718d 100644
--- a/src/pages/datetimePicker/Index.vue
+++ b/src/pages/datetimePicker/Index.vue
@@ -33,6 +33,15 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/uni_modules/wot-design-uni/components/wd-datetime-picker/wd-datetime-picker.vue b/src/uni_modules/wot-design-uni/components/wd-datetime-picker/wd-datetime-picker.vue
index 946755f4e..8273ffed4 100644
--- a/src/uni_modules/wot-design-uni/components/wd-datetime-picker/wd-datetime-picker.vue
+++ b/src/uni_modules/wot-design-uni/components/wd-datetime-picker/wd-datetime-picker.vue
@@ -38,7 +38,9 @@
{{ showValue ? showValue : placeholder || translate('placeholder') }}
-
+
+
+
{{ errorMessage }}
From df64340802afa128120c9f27c724299b09147305 Mon Sep 17 00:00:00 2001
From: 810505339 <810505339@qq.com>
Date: Thu, 26 Sep 2024 15:12:06 +0800
Subject: [PATCH 2/3] =?UTF-8?q?docs:=20=E2=9C=8F=EF=B8=8F=20=20datetime-pi?=
=?UTF-8?q?cker=E4=BF=AE=E5=A4=8Dright-icon=E6=8F=92=E6=A7=BD=E6=96=87?=
=?UTF-8?q?=E6=9C=AC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
docs/component/datetime-picker.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/component/datetime-picker.md b/docs/component/datetime-picker.md
index 035d37537..567415ecc 100644
--- a/docs/component/datetime-picker.md
+++ b/docs/component/datetime-picker.md
@@ -362,7 +362,7 @@ function rightIconClick() {
|------|-----|---------|
| default | 使用默认插槽 | - |
| label | 左侧标题插槽 | - |
-| right-icon | 右侧图标插槽 | $LOWEST_VERSION$ |
+| right-icon | 右侧图标插槽,作用域参数:{ disabled, readonly } | $LOWEST_VERSION$ |
## 外部样式类
From 9517e44fd7ba26c2424b4f2e702d466ad347c679 Mon Sep 17 00:00:00 2001
From: 810505339 <810505339@qq.com>
Date: Fri, 27 Sep 2024 09:23:28 +0800
Subject: [PATCH 3/3] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Pagination=E4=BF=AE?=
=?UTF-8?q?=E5=A4=8D=E5=9C=A8=E6=9A=97=E9=BB=91=E6=A8=A1=E5=BC=8F=E6=98=BE?=
=?UTF-8?q?=E7=A4=BA=E7=9A=84=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../wot-design-uni/components/wd-pagination/index.scss | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/uni_modules/wot-design-uni/components/wd-pagination/index.scss b/src/uni_modules/wot-design-uni/components/wd-pagination/index.scss
index c464c50aa..c1f4c41a3 100644
--- a/src/uni_modules/wot-design-uni/components/wd-pagination/index.scss
+++ b/src/uni_modules/wot-design-uni/components/wd-pagination/index.scss
@@ -33,10 +33,11 @@
@include edeep(nav) {
min-width: $-pagination-nav-width;
@include m(active){
- color: rgba(0,0,0,0.65)
+ opacity:0.935;
}
@include m(disabled){
- color: rgba(0,0,0,0.15)
+ // color: rgba(0,0,0,0.15)
+ opacity:0.985;
}
}
@include e(size){
@@ -54,4 +55,4 @@
@include e(current){
color: $-pagination-nav-current-color;
}
-}
\ No newline at end of file
+}