wargerm 0.3.8 → 0.3.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/index.esm.js CHANGED
@@ -6437,7 +6437,9 @@ var WDatePicker$1 = function WDatePicker(props) {
6437
6437
  defaultValue: momentValue(defaultValue),
6438
6438
  value: momentValue(value),
6439
6439
  onChange: function onChange(v) {
6440
- _onChange === null || _onChange === void 0 ? void 0 : _onChange(v, momentValue(v).format(format || 'YYYY-MM-DD'));
6440
+ var _momentValue;
6441
+
6442
+ (_onChange === null || _onChange === void 0 ? void 0 : _onChange(v, (_momentValue = momentValue(v)) === null || _momentValue === void 0 ? void 0 : _momentValue.format(format || 'YYYY-MM-DD'))) || '';
6441
6443
  }
6442
6444
  }, extraProps)) // </ConfigProvider>
6443
6445
 
@@ -6460,7 +6462,9 @@ var RangePicker$1 = function RangePicker(props) {
6460
6462
  defaultValue: momentValue(defaultValue),
6461
6463
  value: momentValue(value),
6462
6464
  onChange: function onChange(v) {
6463
- _onChange2 === null || _onChange2 === void 0 ? void 0 : _onChange2(v, momentValue(v).format(format || 'YYYY-MM-DD'));
6465
+ var _momentValue2;
6466
+
6467
+ (_onChange2 === null || _onChange2 === void 0 ? void 0 : _onChange2(v, (_momentValue2 = momentValue(v)) === null || _momentValue2 === void 0 ? void 0 : _momentValue2.format(format || 'YYYY-MM-DD'))) || '';
6464
6468
  }
6465
6469
  }, extraProps)) // </ConfigProvider>
6466
6470
 
package/dist/index.js CHANGED
@@ -6471,7 +6471,9 @@ var WDatePicker$1 = function WDatePicker(props) {
6471
6471
  defaultValue: momentValue(defaultValue),
6472
6472
  value: momentValue(value),
6473
6473
  onChange: function onChange(v) {
6474
- _onChange === null || _onChange === void 0 ? void 0 : _onChange(v, momentValue(v).format(format || 'YYYY-MM-DD'));
6474
+ var _momentValue;
6475
+
6476
+ (_onChange === null || _onChange === void 0 ? void 0 : _onChange(v, (_momentValue = momentValue(v)) === null || _momentValue === void 0 ? void 0 : _momentValue.format(format || 'YYYY-MM-DD'))) || '';
6475
6477
  }
6476
6478
  }, extraProps)) // </ConfigProvider>
6477
6479
 
@@ -6494,7 +6496,9 @@ var RangePicker$1 = function RangePicker(props) {
6494
6496
  defaultValue: momentValue(defaultValue),
6495
6497
  value: momentValue(value),
6496
6498
  onChange: function onChange(v) {
6497
- _onChange2 === null || _onChange2 === void 0 ? void 0 : _onChange2(v, momentValue(v).format(format || 'YYYY-MM-DD'));
6499
+ var _momentValue2;
6500
+
6501
+ (_onChange2 === null || _onChange2 === void 0 ? void 0 : _onChange2(v, (_momentValue2 = momentValue(v)) === null || _momentValue2 === void 0 ? void 0 : _momentValue2.format(format || 'YYYY-MM-DD'))) || '';
6498
6502
  }
6499
6503
  }, extraProps)) // </ConfigProvider>
6500
6504
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "wargerm",
4
- "version": "0.3.8",
4
+ "version": "0.3.9",
5
5
  "scripts": {
6
6
  "dev": "dumi dev",
7
7
  "docs:build": "dumi build",
@@ -76,4 +76,4 @@
76
76
  "react": "^16.12.0",
77
77
  "yorkie": "^2.0.0"
78
78
  }
79
- }
79
+ }