uiw 4.21.7 → 4.21.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/uiw.js +7 -2
- package/dist/uiw.min.js +1 -1
- package/package.json +60 -60
package/dist/uiw.js
CHANGED
|
@@ -5666,6 +5666,11 @@ function DateInputRange(props) {
|
|
|
5666
5666
|
onChange && onChange(cdate, changeValue);
|
|
5667
5667
|
}
|
|
5668
5668
|
|
|
5669
|
+
function clearDateRange() {
|
|
5670
|
+
setDateRange([]);
|
|
5671
|
+
onChange && onChange(undefined, []);
|
|
5672
|
+
}
|
|
5673
|
+
|
|
5669
5674
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
5670
5675
|
className: [prefixCls + "-contents", prefixCls + "-inner"].filter(Boolean).join(' ').trim(),
|
|
5671
5676
|
style: _extends({
|
|
@@ -5719,8 +5724,8 @@ function DateInputRange(props) {
|
|
|
5719
5724
|
}))
|
|
5720
5725
|
})), allowClear && dateRange.length > 0 && /*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
|
|
5721
5726
|
className: prefixCls + "-close-btn",
|
|
5722
|
-
color: "#
|
|
5723
|
-
onClick: () =>
|
|
5727
|
+
color: "#a5a5a5",
|
|
5728
|
+
onClick: () => clearDateRange(),
|
|
5724
5729
|
type: "close"
|
|
5725
5730
|
})]
|
|
5726
5731
|
});
|