@seafile/seafile-calendar 0.0.31-Apph0.25 → 0.0.31-Apph0.26
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/rc-calendar.js
CHANGED
@@ -7330,11 +7330,8 @@ var DateInput = function (_React$Component) {
|
|
7330
7330
|
prefixCls = props.prefixCls,
|
7331
7331
|
placeholder = props.placeholder,
|
7332
7332
|
clearIcon = props.clearIcon,
|
7333
|
-
inputMode = props.inputMode
|
7334
|
-
defaultValue = props.defaultValue;
|
7333
|
+
inputMode = props.inputMode;
|
7335
7334
|
|
7336
|
-
console.log('defaultValue', defaultValue);
|
7337
|
-
console.log('str', str);
|
7338
7335
|
|
7339
7336
|
return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(
|
7340
7337
|
'div',
|
@@ -7384,7 +7381,8 @@ DateInput.propTypes = {
|
|
7384
7381
|
onSelect: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func,
|
7385
7382
|
selectedValue: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object,
|
7386
7383
|
clearIcon: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.node,
|
7387
|
-
inputMode: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string
|
7384
|
+
inputMode: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string,
|
7385
|
+
defaultValue: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object
|
7388
7386
|
};
|
7389
7387
|
|
7390
7388
|
var _initialiseProps = function _initialiseProps() {
|
@@ -7402,12 +7400,13 @@ var _initialiseProps = function _initialiseProps() {
|
|
7402
7400
|
disabledDate = _props.disabledDate,
|
7403
7401
|
format = _props.format,
|
7404
7402
|
onChange = _props.onChange,
|
7405
|
-
selectedValue = _props.selectedValue
|
7403
|
+
selectedValue = _props.selectedValue,
|
7404
|
+
defaultValue = _props.defaultValue;
|
7406
7405
|
|
7407
7406
|
console.log('str', str);
|
7408
7407
|
// 没有内容,合法并直接退出
|
7409
7408
|
if (!str) {
|
7410
|
-
onChange(
|
7409
|
+
onChange(defaultValue);
|
7411
7410
|
_this2.setState({ str: '' });
|
7412
7411
|
return;
|
7413
7412
|
}
|