uiw 4.21.6 → 4.21.9

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 CHANGED
@@ -1811,11 +1811,12 @@ var CallShow_excluded = ["title", "children"];
1811
1811
 
1812
1812
 
1813
1813
  function CallShow(props) {
1814
- var {
1814
+ var _ref = props || {},
1815
+ {
1815
1816
  title = '提示框',
1816
1817
  children
1817
- } = props,
1818
- other = _objectWithoutPropertiesLoose(props, CallShow_excluded);
1818
+ } = _ref,
1819
+ other = _objectWithoutPropertiesLoose(_ref, CallShow_excluded);
1819
1820
 
1820
1821
  var dv = document.createElement('div');
1821
1822
  dv.id = 'uiw-modal-call-show-element';
@@ -5666,6 +5667,11 @@ function DateInputRange(props) {
5666
5667
  onChange && onChange(cdate, changeValue);
5667
5668
  }
5668
5669
 
5670
+ function clearDateRange() {
5671
+ setDateRange([]);
5672
+ onChange && onChange(undefined, []);
5673
+ }
5674
+
5669
5675
  return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
5670
5676
  className: [prefixCls + "-contents", prefixCls + "-inner"].filter(Boolean).join(' ').trim(),
5671
5677
  style: _extends({
@@ -5719,8 +5725,8 @@ function DateInputRange(props) {
5719
5725
  }))
5720
5726
  })), allowClear && dateRange.length > 0 && /*#__PURE__*/(0,jsx_runtime.jsx)(Icon, {
5721
5727
  className: prefixCls + "-close-btn",
5722
- color: "#ccc",
5723
- onClick: () => setDateRange([]),
5728
+ color: "#a5a5a5",
5729
+ onClick: () => clearDateRange(),
5724
5730
  type: "close"
5725
5731
  })]
5726
5732
  });