@kdcloudjs/kdesign 1.8.6 → 1.8.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.
@@ -86,6 +86,7 @@ var Panel = /*#__PURE__*/React.forwardRef(function (props, ref) {
86
86
  };
87
87
  var renderRight = function renderRight() {
88
88
  var _classNames4;
89
+ if (typeof extra === 'undefined' && expandIconPosition !== 'right') return;
89
90
  var className = classNames((_classNames4 = {}, _defineProperty(_classNames4, "".concat(panelPrefixCls, "-right"), true), _defineProperty(_classNames4, "".concat(panelPrefixCls, "-disabled"), disabled), _classNames4));
90
91
  return /*#__PURE__*/React.createElement("span", {
91
92
  className: className
@@ -95,6 +96,7 @@ var Panel = /*#__PURE__*/React.forwardRef(function (props, ref) {
95
96
  };
96
97
  var renderMiddle = function renderMiddle() {
97
98
  var _classNames5;
99
+ if (typeof assist === 'undefined') return;
98
100
  var className = classNames((_classNames5 = {}, _defineProperty(_classNames5, "".concat(panelPrefixCls, "-middle"), true), _defineProperty(_classNames5, "".concat(panelPrefixCls, "-disabled"), disabled), _classNames5));
99
101
  return /*#__PURE__*/React.createElement("span", {
100
102
  className: className
@@ -109,7 +111,7 @@ var Panel = /*#__PURE__*/React.forwardRef(function (props, ref) {
109
111
  return reactNode;
110
112
  };
111
113
  var rootClassName = classNames(className, (_classNames6 = {}, _defineProperty(_classNames6, "".concat(panelPrefixCls), true), _defineProperty(_classNames6, "".concat(panelPrefixCls, "-border"), bordered), _defineProperty(_classNames6, "".concat(panelPrefixCls, "-opened"), expand), _classNames6));
112
- var topClassName = classNames((_classNames7 = {}, _defineProperty(_classNames7, "".concat(panelPrefixCls, "-top"), true), _defineProperty(_classNames7, "".concat(panelPrefixCls, "-disabled"), disabled), _defineProperty(_classNames7, "".concat(panelPrefixCls, "-top-border"), bordered && expand), _classNames7));
114
+ var topClassName = classNames((_classNames7 = {}, _defineProperty(_classNames7, "".concat(panelPrefixCls, "-top"), true), _defineProperty(_classNames7, "".concat(panelPrefixCls, "-disabled"), disabled), _defineProperty(_classNames7, "".concat(panelPrefixCls, "-top-border"), bordered && expand), _defineProperty(_classNames7, "".concat(panelPrefixCls, "-no-assist"), !assist), _classNames7));
113
115
  var childrenClassName = classNames((_classNames8 = {}, _defineProperty(_classNames8, "".concat(panelPrefixCls, "-children"), expand), _defineProperty(_classNames8, "".concat(panelPrefixCls, "-children-hide"), !expand), _classNames8));
114
116
  var childrenBorderedClassName = classNames(_defineProperty({}, "".concat(panelPrefixCls, "-children-bordered"), bordered));
115
117
  var runExpandAnimation = function runExpandAnimation(element) {
@@ -141,6 +141,11 @@
141
141
  padding: var(--kd-c-collapse-header-spacing-padding, 8px 50px 8px 28px);
142
142
  background: var(--kd-c-collapse-header-color-background, rgba(0, 0, 0, 0));
143
143
  }
144
+ .kd-collapse-panel-no-assist {
145
+ -webkit-box-pack: justify;
146
+ -ms-flex-pack: justify;
147
+ justify-content: space-between;
148
+ }
144
149
  .kd-collapse-panel-top-border {
145
150
  border-bottom: var(--kd-c-collapse-border-width, 1px) solid var(--kd-c-collapse-color-border-strong-2, var(--kd-g-color-border-strong-2, #d9d9d9));
146
151
  }
@@ -27,6 +27,9 @@
27
27
  padding: @collapse-header-padding;
28
28
  background: @collapse-header-color-background;
29
29
  }
30
+ &-no-assist {
31
+ justify-content: space-between;
32
+ }
30
33
  &-top-border {
31
34
  border-bottom: @collapse-border-width solid @collapse-border-color;
32
35
  }
@@ -87,7 +87,7 @@ var locale = {
87
87
  'Filter.and': 'And',
88
88
  'Filter.settings': 'Settings',
89
89
  'Filter.schemeNamePlaceholder': 'Please enter scheme name',
90
- 'Form.requiredMessage': 'Please enter your',
90
+ 'Form.requiredMessage': 'Please enter your ',
91
91
  'Table.contain': 'Contain',
92
92
  'Table.notContain': 'Do not contain',
93
93
  'Table.equal': 'Equal',
@@ -912,10 +912,6 @@ var InternalSelect = function InternalSelect(props, ref) {
912
912
  var _a;
913
913
  return (_a = searchRef.current) === null || _a === void 0 ? void 0 : _a.focus();
914
914
  },
915
- onBlur: function onBlur() {
916
- var _a;
917
- return (_a = searchRef.current) === null || _a === void 0 ? void 0 : _a.blur();
918
- },
919
915
  onKeyDown: onInternalKeyDown
920
916
  }, !isMultiple ? renderSingle() : renderMultiple()));
921
917
  };
@@ -98,6 +98,7 @@ var Panel = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
98
98
  };
99
99
  var renderRight = function renderRight() {
100
100
  var _classNames4;
101
+ if (typeof extra === 'undefined' && expandIconPosition !== 'right') return;
101
102
  var className = (0, _classnames.default)((_classNames4 = {}, (0, _defineProperty2.default)(_classNames4, "".concat(panelPrefixCls, "-right"), true), (0, _defineProperty2.default)(_classNames4, "".concat(panelPrefixCls, "-disabled"), disabled), _classNames4));
102
103
  return /*#__PURE__*/_react.default.createElement("span", {
103
104
  className: className
@@ -107,6 +108,7 @@ var Panel = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
107
108
  };
108
109
  var renderMiddle = function renderMiddle() {
109
110
  var _classNames5;
111
+ if (typeof assist === 'undefined') return;
110
112
  var className = (0, _classnames.default)((_classNames5 = {}, (0, _defineProperty2.default)(_classNames5, "".concat(panelPrefixCls, "-middle"), true), (0, _defineProperty2.default)(_classNames5, "".concat(panelPrefixCls, "-disabled"), disabled), _classNames5));
111
113
  return /*#__PURE__*/_react.default.createElement("span", {
112
114
  className: className
@@ -121,7 +123,7 @@ var Panel = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
121
123
  return reactNode;
122
124
  };
123
125
  var rootClassName = (0, _classnames.default)(className, (_classNames6 = {}, (0, _defineProperty2.default)(_classNames6, "".concat(panelPrefixCls), true), (0, _defineProperty2.default)(_classNames6, "".concat(panelPrefixCls, "-border"), bordered), (0, _defineProperty2.default)(_classNames6, "".concat(panelPrefixCls, "-opened"), expand), _classNames6));
124
- var topClassName = (0, _classnames.default)((_classNames7 = {}, (0, _defineProperty2.default)(_classNames7, "".concat(panelPrefixCls, "-top"), true), (0, _defineProperty2.default)(_classNames7, "".concat(panelPrefixCls, "-disabled"), disabled), (0, _defineProperty2.default)(_classNames7, "".concat(panelPrefixCls, "-top-border"), bordered && expand), _classNames7));
126
+ var topClassName = (0, _classnames.default)((_classNames7 = {}, (0, _defineProperty2.default)(_classNames7, "".concat(panelPrefixCls, "-top"), true), (0, _defineProperty2.default)(_classNames7, "".concat(panelPrefixCls, "-disabled"), disabled), (0, _defineProperty2.default)(_classNames7, "".concat(panelPrefixCls, "-top-border"), bordered && expand), (0, _defineProperty2.default)(_classNames7, "".concat(panelPrefixCls, "-no-assist"), !assist), _classNames7));
125
127
  var childrenClassName = (0, _classnames.default)((_classNames8 = {}, (0, _defineProperty2.default)(_classNames8, "".concat(panelPrefixCls, "-children"), expand), (0, _defineProperty2.default)(_classNames8, "".concat(panelPrefixCls, "-children-hide"), !expand), _classNames8));
126
128
  var childrenBorderedClassName = (0, _classnames.default)((0, _defineProperty2.default)({}, "".concat(panelPrefixCls, "-children-bordered"), bordered));
127
129
  var runExpandAnimation = function runExpandAnimation(element) {
@@ -141,6 +141,11 @@
141
141
  padding: var(--kd-c-collapse-header-spacing-padding, 8px 50px 8px 28px);
142
142
  background: var(--kd-c-collapse-header-color-background, rgba(0, 0, 0, 0));
143
143
  }
144
+ .kd-collapse-panel-no-assist {
145
+ -webkit-box-pack: justify;
146
+ -ms-flex-pack: justify;
147
+ justify-content: space-between;
148
+ }
144
149
  .kd-collapse-panel-top-border {
145
150
  border-bottom: var(--kd-c-collapse-border-width, 1px) solid var(--kd-c-collapse-color-border-strong-2, var(--kd-g-color-border-strong-2, #d9d9d9));
146
151
  }
@@ -27,6 +27,9 @@
27
27
  padding: @collapse-header-padding;
28
28
  background: @collapse-header-color-background;
29
29
  }
30
+ &-no-assist {
31
+ justify-content: space-between;
32
+ }
30
33
  &-top-border {
31
34
  border-bottom: @collapse-border-width solid @collapse-border-color;
32
35
  }
@@ -93,7 +93,7 @@ var locale = {
93
93
  'Filter.and': 'And',
94
94
  'Filter.settings': 'Settings',
95
95
  'Filter.schemeNamePlaceholder': 'Please enter scheme name',
96
- 'Form.requiredMessage': 'Please enter your',
96
+ 'Form.requiredMessage': 'Please enter your ',
97
97
  'Table.contain': 'Contain',
98
98
  'Table.notContain': 'Do not contain',
99
99
  'Table.equal': 'Equal',
@@ -924,10 +924,6 @@ var InternalSelect = function InternalSelect(props, ref) {
924
924
  var _a;
925
925
  return (_a = searchRef.current) === null || _a === void 0 ? void 0 : _a.focus();
926
926
  },
927
- onBlur: function onBlur() {
928
- var _a;
929
- return (_a = searchRef.current) === null || _a === void 0 ? void 0 : _a.blur();
930
- },
931
927
  onKeyDown: onInternalKeyDown
932
928
  }, !isMultiple ? renderSingle() : renderMultiple()));
933
929
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kdcloudjs/kdesign",
3
- "version": "1.8.6",
3
+ "version": "1.8.7",
4
4
  "description": "KDesign 金蝶前端react 组件库",
5
5
  "title": "kdesign",
6
6
  "keywords": [