@innoways/drip-form-theme-antd 6.3.4 → 8.0.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,38 @@
1
1
  # Change Log
2
2
 
3
+ ## 8.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - console.log(showCurrentDate, 'showCurrentDate', fieldData)
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+ - @innoways/hooks@8.0.0
13
+ - @innoways/utils@8.0.0
14
+
15
+ ## 7.0.0
16
+
17
+ ### Major Changes
18
+
19
+ - feature: nested api key support and data fetch and post changes 6.3.4
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies
24
+ - @innoways/hooks@7.0.0
25
+ - @innoways/utils@7.0.0
26
+
27
+ ## 6.3.5
28
+
29
+ ### Patch Changes
30
+
31
+ - feature: nested api key support and data fetch and post changes 6.3.4
32
+ - Updated dependencies
33
+ - @innoways/hooks@6.3.5
34
+ - @innoways/utils@6.3.5
35
+
3
36
  ## 6.3.4
4
37
 
5
38
  ### Patch Changes
package/dist/index.js CHANGED
@@ -21957,6 +21957,14 @@ var config$8 = {
21957
21957
  }]
21958
21958
  },
21959
21959
  fieldKey: 'formMode'
21960
+ }, {
21961
+ fieldKey: 'showCurrentDate',
21962
+ type: 'boolean',
21963
+ title: 'Show Current Date',
21964
+ "default": false,
21965
+ ui: {
21966
+ type: 'switch'
21967
+ }
21960
21968
  }, {
21961
21969
  fieldKey: 'range',
21962
21970
  type: 'boolean',
@@ -22108,7 +22116,7 @@ var config$8 = {
22108
22116
  }
22109
22117
  };
22110
22118
 
22111
- var _excluded$9 = ["disabled", "onChange", "fieldData", "fieldKey", "dispatch", "style", "range", "format", "picker", "asyncValidate", "showTime", "getKey", "formMode"];
22119
+ var _excluded$9 = ["disabled", "onChange", "fieldData", "fieldKey", "dispatch", "style", "range", "format", "picker", "asyncValidate", "showTime", "getKey", "formMode", "showCurrentDate"];
22112
22120
  _DatePicker.RangePicker;
22113
22121
 
22114
22122
  var DatePickerField = function DatePickerField(_ref) {
@@ -22126,6 +22134,7 @@ var DatePickerField = function DatePickerField(_ref) {
22126
22134
  showTime = _ref.showTime,
22127
22135
  getKey = _ref.getKey,
22128
22136
  formMode = _ref.formMode,
22137
+ showCurrentDate = _ref.showCurrentDate,
22129
22138
  restProps = _objectWithoutProperties(_ref, _excluded$9);
22130
22139
 
22131
22140
  /**
@@ -22147,8 +22156,13 @@ var DatePickerField = function DatePickerField(_ref) {
22147
22156
  isMoment: true,
22148
22157
  format: format
22149
22158
  }
22150
- }, dispatch); // 判断是否需要展示value值.校验fieldData是否合法
22159
+ }, dispatch);
22151
22160
 
22161
+ useEffect(function () {
22162
+ if (!fieldData && showCurrentDate) {
22163
+ _onChange(new Date(moment().format(format)));
22164
+ }
22165
+ }, [showCurrentDate]); // 判断是否需要展示value值.校验fieldData是否合法
22152
22166
 
22153
22167
  useEffect(function () {
22154
22168
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@innoways/drip-form-theme-antd",
3
- "version": "6.3.4",
3
+ "version": "8.0.0",
4
4
  "author": "JDFED",
5
5
  "description": "drip-form antd主题包",
6
6
  "main": "dist/index.js",
@@ -31,8 +31,8 @@
31
31
  "dependencies": {
32
32
  "@ant-design/icons": "^4.7.0",
33
33
  "@babel/runtime": "^7.10.2",
34
- "@innoways/hooks": "^6.3.4",
35
- "@innoways/utils": "^6.3.4",
34
+ "@innoways/hooks": "^8.0.0",
35
+ "@innoways/utils": "^8.0.0",
36
36
  "antd": "^4.16.13",
37
37
  "flatpickr": "^4.6.13",
38
38
  "moment": "^2.26.0",