assui 3.1.57 → 3.1.59

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.
@@ -147,20 +147,24 @@ var LabelConditionSelectInput = function LabelConditionSelectInput(props) {
147
147
  changedEntryType: blurEntryType
148
148
  }));
149
149
  };
150
- /** 二级下拉框清空 */
151
- var onTypeSelectClear = function onTypeSelectClear() {
152
- var finalSelectInputValue = {
153
- selectValue: selectInputValue.selectValue,
154
- inputValue: [],
155
- changedEntryType: EntryTypeEnum.SECOND_ENTRY
156
- };
157
- if (isSubSelectMultiple) {
158
- finalSelectInputValue = __assign(__assign({}, finalSelectInputValue), {
159
- finalSelectValue: findAllSubSelectItems(optionsList, selectInputValue.selectValue)
160
- });
161
- }
162
- onBlur === null || onBlur === void 0 ? void 0 : onBlur(finalSelectInputValue);
163
- };
150
+ // /** 二级下拉框清空 */
151
+ // const onTypeSelectClear = () => {
152
+ // let finalSelectInputValue: ValueType = {
153
+ // selectValue: selectInputValue.selectValue,
154
+ // inputValue: [],
155
+ // changedEntryType: EntryTypeEnum.SECOND_ENTRY,
156
+ // };
157
+ // if (isSubSelectMultiple) {
158
+ // finalSelectInputValue = {
159
+ // ...finalSelectInputValue,
160
+ // finalSelectValue: findAllSubSelectItems(
161
+ // optionsList,
162
+ // selectInputValue.selectValue,
163
+ // ),
164
+ // };
165
+ // }
166
+ // onBlur?.(finalSelectInputValue);
167
+ // };
164
168
  // 是否展示输入框
165
169
  var isShowInput = !isNil(selectInputValue === null || selectInputValue === void 0 ? void 0 : selectInputValue.selectValue) && !(hiddenInputKeys === null || hiddenInputKeys === void 0 ? void 0 : hiddenInputKeys.includes(selectInputValue.selectValue));
166
170
  var typeInput = isInput ? /*#__PURE__*/React.createElement(LabelConditionInput, __assign({}, conditionInputProps, {
@@ -183,8 +187,7 @@ var LabelConditionSelectInput = function LabelConditionSelectInput(props) {
183
187
  },
184
188
  onBlur: function onBlur() {
185
189
  return onLabelConditionSelectInputBlur(EntryTypeEnum.SECOND_ENTRY);
186
- },
187
- onClear: onTypeSelectClear
190
+ }
188
191
  })));
189
192
  return /*#__PURE__*/React.createElement("div", {
190
193
  className: classNames('label-condition-select', className)
@@ -191,20 +191,24 @@ var LabelConditionSelectInput = function LabelConditionSelectInput(props) {
191
191
  changedEntryType: blurEntryType
192
192
  }));
193
193
  };
194
- /** 二级下拉框清空 */
195
- var onTypeSelectClear = function onTypeSelectClear() {
196
- var finalSelectInputValue = {
197
- selectValue: selectInputValue.selectValue,
198
- inputValue: [],
199
- changedEntryType: EntryTypeEnum.SECOND_ENTRY
200
- };
201
- if (isSubSelectMultiple) {
202
- finalSelectInputValue = __assign(__assign({}, finalSelectInputValue), {
203
- finalSelectValue: findAllSubSelectItems(optionsList, selectInputValue.selectValue)
204
- });
205
- }
206
- onBlur === null || onBlur === void 0 ? void 0 : onBlur(finalSelectInputValue);
207
- };
194
+ // /** 二级下拉框清空 */
195
+ // const onTypeSelectClear = () => {
196
+ // let finalSelectInputValue: ValueType = {
197
+ // selectValue: selectInputValue.selectValue,
198
+ // inputValue: [],
199
+ // changedEntryType: EntryTypeEnum.SECOND_ENTRY,
200
+ // };
201
+ // if (isSubSelectMultiple) {
202
+ // finalSelectInputValue = {
203
+ // ...finalSelectInputValue,
204
+ // finalSelectValue: findAllSubSelectItems(
205
+ // optionsList,
206
+ // selectInputValue.selectValue,
207
+ // ),
208
+ // };
209
+ // }
210
+ // onBlur?.(finalSelectInputValue);
211
+ // };
208
212
  // 是否展示输入框
209
213
  var isShowInput = !(0, isNil_1["default"])(selectInputValue === null || selectInputValue === void 0 ? void 0 : selectInputValue.selectValue) && !(hiddenInputKeys === null || hiddenInputKeys === void 0 ? void 0 : hiddenInputKeys.includes(selectInputValue.selectValue));
210
214
  var typeInput = isInput ? react_1["default"].createElement(label_condition_input_1["default"], __assign({}, conditionInputProps, {
@@ -227,8 +231,7 @@ var LabelConditionSelectInput = function LabelConditionSelectInput(props) {
227
231
  },
228
232
  onBlur: function onBlur() {
229
233
  return onLabelConditionSelectInputBlur(EntryTypeEnum.SECOND_ENTRY);
230
- },
231
- onClear: onTypeSelectClear
234
+ }
232
235
  })));
233
236
  return react_1["default"].createElement("div", {
234
237
  className: (0, classnames_1["default"])('label-condition-select', className)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "assui",
3
- "version": "3.1.57",
3
+ "version": "3.1.59",
4
4
  "description": "react ui library",
5
5
  "author": "jason <usochen@gmail.com>",
6
6
  "main": "./lib/index.js",
@@ -80,5 +80,5 @@
80
80
  "node": ">=10.0.0"
81
81
  },
82
82
  "license": "MIT",
83
- "gitHead": "000bbea5e57e79df207ce397e14135f9272f2cc5"
83
+ "gitHead": "71d9787c866d6d86563d56940f9fde1784c14011"
84
84
  }