Commit 5dca6f2d by 李伟康

```

feat(uni-calendar): 添加手动清空日期功能并修复样式细节

在 `uni-calendar` 组件中新增 `cleanDate` 方法,用于手动清空已选日期状态。
同时修正了部分样式类名的空格问题,确保样式正确应用。
在 `deliveryManagement` 页面中调用该方法以清空日历选择器数据。
```
1 parent 53eadc69
...@@ -266,6 +266,7 @@ export default { ...@@ -266,6 +266,7 @@ export default {
createdStartDate: '', createdStartDate: '',
createdEndDate: '' createdEndDate: ''
} }
this.$refs.calendar.cleanDate()
} }
} }
} }
......
...@@ -237,7 +237,7 @@ export default { ...@@ -237,7 +237,7 @@ export default {
type: Boolean, type: Boolean,
default: false default: false
}, },
hideMask:{ hideMask: {
type: Boolean, type: Boolean,
default: false default: false
} }
...@@ -354,6 +354,13 @@ export default { ...@@ -354,6 +354,13 @@ export default {
this.nowDate = this.calendar = this.cale.getInfo(date) this.nowDate = this.calendar = this.cale.getInfo(date)
}, },
/** /**
* 手动清空数据
*/
cleanDate () {
this.cale.cleanMultipleStatus()
this.init(this.date)
},
/**
* 打开日历弹窗 * 打开日历弹窗
*/ */
open () { open () {
...@@ -558,7 +565,7 @@ $uni-text-color-grey: #999; ...@@ -558,7 +565,7 @@ $uni-text-color-grey: #999;
.uni-calendar--mask-show { .uni-calendar--mask-show {
opacity: 1; opacity: 1;
} }
.uni-calendar--mask-bg-hide{ .uni-calendar--mask-bg-hide {
opacity: 0; opacity: 0;
} }
.uni-calendar--fixed { .uni-calendar--fixed {
...@@ -755,7 +762,7 @@ $uni-text-color-grey: #999; ...@@ -755,7 +762,7 @@ $uni-text-color-grey: #999;
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%); background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
} }
} }
.popup-close{ .popup-close {
padding: 0 toRpx(48); padding: 0 toRpx(48);
position: absolute; position: absolute;
right: 0; right: 0;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!