@innoways/drip-form-theme-antd 6.2.6 → 6.2.7

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,14 @@
1
1
  # Change Log
2
2
 
3
+ ## 6.2.7
4
+
5
+ ### Patch Changes
6
+
7
+ - Added version 6.2.7 fixed date issue
8
+ - Updated dependencies
9
+ - @innoways/hooks@6.2.7
10
+ - @innoways/utils@6.2.7
11
+
3
12
  ## 6.2.6
4
13
 
5
14
  ### Patch Changes
package/dist/index.css CHANGED
@@ -61,6 +61,23 @@
61
61
  transition: all 0.3s;
62
62
  outline: none;
63
63
  }
64
+ .drip_date_picker_input_disabled {
65
+ width: 100%;
66
+ border: 1px solid #d9d9d9;
67
+ border-radius: 4px;
68
+ padding: 4px 11px;
69
+ font-size: 12px;
70
+ height: 32px;
71
+ line-height: 1.5;
72
+ color: rgba(0, 0, 0, 0.65);
73
+ background-color: #f5f5f5;
74
+ background-image: none;
75
+ position: relative;
76
+ cursor: text;
77
+ transition: all 0.3s;
78
+ outline: none;
79
+ cursor: not-allowed;
80
+ }
64
81
  .flatpickr-day.selected {
65
82
  background: var(--ant-primary-color) !important;
66
83
  color: #fff;
package/dist/index.js CHANGED
@@ -21492,8 +21492,8 @@ var DatePickerField = function DatePickerField(_ref) {
21492
21492
  var asyncValidate = _ref.asyncValidate,
21493
21493
  showTime = _ref.showTime,
21494
21494
  getKey = _ref.getKey,
21495
- formMode = _ref.formMode;
21496
- _objectWithoutProperties(_ref, _excluded$9);
21495
+ formMode = _ref.formMode,
21496
+ restProps = _objectWithoutProperties(_ref, _excluded$9);
21497
21497
 
21498
21498
  /**
21499
21499
  * 暂时不支持的DatePicker功能
@@ -21544,7 +21544,7 @@ var DatePickerField = function DatePickerField(_ref) {
21544
21544
  mode: 'range',
21545
21545
  allowInput: true
21546
21546
  }
21547
- }) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Flatpickr, {
21547
+ }) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Flatpickr, _extends({
21548
21548
  type: "date",
21549
21549
  disabled: disabled,
21550
21550
  value: fieldData ? [new Date(moment(fieldData).format(format))] : [],
@@ -21562,9 +21562,9 @@ var DatePickerField = function DatePickerField(_ref) {
21562
21562
  allowInput: false,
21563
21563
  altFormat: _typeof(showTime) === 'object' ? 'd-M-Y H:i' : 'd-M-Y',
21564
21564
  dateFormat: _typeof(showTime) === 'object' ? 'd-M-Y H:i' : 'D-M-Y',
21565
- altInputClass: 'drip_date_picker_input'
21565
+ altInputClass: disabled ? 'drip_date_picker_input_disabled' : 'drip_date_picker_input'
21566
21566
  }
21567
- }))); // return range ? (
21567
+ }, restProps)))); // return range ? (
21568
21568
  // <RangePicker
21569
21569
  // picker={picker}
21570
21570
  // disabled={disabled}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@innoways/drip-form-theme-antd",
3
- "version": "6.2.6",
3
+ "version": "6.2.7",
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.2.6",
35
- "@innoways/utils": "^6.2.6",
34
+ "@innoways/hooks": "^6.2.7",
35
+ "@innoways/utils": "^6.2.7",
36
36
  "antd": "^4.16.13",
37
37
  "flatpickr": "^4.6.13",
38
38
  "moment": "^2.26.0",