assui 3.1.58 → 3.1.60

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, {
@@ -177,10 +181,13 @@ var LabelConditionSelectInput = function LabelConditionSelectInput(props) {
177
181
  onChange: onTypeSelectChange,
178
182
  value: selectInputValue === null || selectInputValue === void 0 ? void 0 : selectInputValue.inputValue,
179
183
  options: subSelectOptions,
184
+ onDeselect: function onDeselect() {
185
+ var _a;
186
+ (_a = subSelectRef.current) === null || _a === void 0 ? void 0 : _a.focus();
187
+ },
180
188
  onBlur: function onBlur() {
181
189
  return onLabelConditionSelectInputBlur(EntryTypeEnum.SECOND_ENTRY);
182
- },
183
- onClear: onTypeSelectClear
190
+ }
184
191
  })));
185
192
  return /*#__PURE__*/React.createElement("div", {
186
193
  className: classNames('label-condition-select', className)
@@ -92,6 +92,10 @@ var LabelSelect = function LabelSelect(props, ref) {
92
92
  className: "label-select-selector",
93
93
  onChange: handleChange,
94
94
  onBlur: handleBlur,
95
+ onDeselect: function onDeselect() {
96
+ var _a;
97
+ (_a = selectRef.current) === null || _a === void 0 ? void 0 : _a.focus();
98
+ },
95
99
  onDropdownVisibleChange: onDropdownVisibleChange,
96
100
  suffixIcon: /*#__PURE__*/React.createElement(ArrowDropDownFilled, null)
97
101
  })), /*#__PURE__*/React.createElement("label", {
@@ -0,0 +1,8 @@
1
+ .table-col-cls {
2
+ background-color: red;
3
+ }
4
+
5
+ .align-center {
6
+ text-align: 'center';
7
+ background-color: 'pink';
8
+ }
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import classNames from 'classnames';
2
3
  var TableCol = function TableCol(_a) {
3
4
  var children = _a.children,
4
5
  width = _a.width,
@@ -7,7 +8,7 @@ var TableCol = function TableCol(_a) {
7
8
  style: {
8
9
  width: "".concat(width, "px")
9
10
  },
10
- className: className
11
+ className: classNames('a-table-col', className)
11
12
  }, children);
12
13
  };
13
14
  export default TableCol;
@@ -0,0 +1,3 @@
1
+ .a-table-col {
2
+ display: inline-block;
3
+ }
@@ -1 +1 @@
1
-
1
+ import './index.less';
@@ -0,0 +1 @@
1
+ import './index.less';
@@ -0,0 +1,5 @@
1
+ @import '../../style/variables.less';
2
+
3
+ .a-table-col {
4
+ display: inline-block;
5
+ }
@@ -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, {
@@ -221,10 +225,13 @@ var LabelConditionSelectInput = function LabelConditionSelectInput(props) {
221
225
  onChange: onTypeSelectChange,
222
226
  value: selectInputValue === null || selectInputValue === void 0 ? void 0 : selectInputValue.inputValue,
223
227
  options: subSelectOptions,
228
+ onDeselect: function onDeselect() {
229
+ var _a;
230
+ (_a = subSelectRef.current) === null || _a === void 0 ? void 0 : _a.focus();
231
+ },
224
232
  onBlur: function onBlur() {
225
233
  return onLabelConditionSelectInputBlur(EntryTypeEnum.SECOND_ENTRY);
226
- },
227
- onClear: onTypeSelectClear
234
+ }
228
235
  })));
229
236
  return react_1["default"].createElement("div", {
230
237
  className: (0, classnames_1["default"])('label-condition-select', className)
@@ -103,6 +103,10 @@ var LabelSelect = function LabelSelect(props, ref) {
103
103
  className: "label-select-selector",
104
104
  onChange: handleChange,
105
105
  onBlur: handleBlur,
106
+ onDeselect: function onDeselect() {
107
+ var _a;
108
+ (_a = selectRef.current) === null || _a === void 0 ? void 0 : _a.focus();
109
+ },
106
110
  onDropdownVisibleChange: onDropdownVisibleChange,
107
111
  suffixIcon: react_1["default"].createElement(ArrowDropDownFilled_1["default"], null)
108
112
  })), react_1["default"].createElement("label", {
@@ -0,0 +1,8 @@
1
+ .table-col-cls {
2
+ background-color: red;
3
+ }
4
+
5
+ .align-center {
6
+ text-align: 'center';
7
+ background-color: 'pink';
8
+ }
@@ -9,6 +9,7 @@ Object.defineProperty(exports, "__esModule", {
9
9
  value: true
10
10
  });
11
11
  var react_1 = __importDefault(require("react"));
12
+ var classnames_1 = __importDefault(require("classnames"));
12
13
  var TableCol = function TableCol(_a) {
13
14
  var children = _a.children,
14
15
  width = _a.width,
@@ -17,7 +18,7 @@ var TableCol = function TableCol(_a) {
17
18
  style: {
18
19
  width: "".concat(width, "px")
19
20
  },
20
- className: className
21
+ className: (0, classnames_1["default"])('a-table-col', className)
21
22
  }, children);
22
23
  };
23
24
  exports["default"] = TableCol;
@@ -0,0 +1,3 @@
1
+ .a-table-col {
2
+ display: inline-block;
3
+ }
@@ -1 +1 @@
1
-
1
+ import './index.less';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ require("./index.less");
@@ -0,0 +1,5 @@
1
+ @import '../../style/variables.less';
2
+
3
+ .a-table-col {
4
+ display: inline-block;
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "assui",
3
- "version": "3.1.58",
3
+ "version": "3.1.60",
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": "57f32a4e372be97f4b309485acaad64ec01c8a78"
83
+ "gitHead": "004de3d80594f82f62678d8183c8d5dc0fcb3bb0"
84
84
  }