ztxkui 1.8.0 → 1.8.1
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.
|
@@ -214,7 +214,7 @@ function EnhanceSelect(_a) {
|
|
|
214
214
|
function renderSelectOption() {
|
|
215
215
|
var _defaultList = Array.isArray(defaultList) ? defaultList : [];
|
|
216
216
|
return (React.createElement(React.Fragment, null,
|
|
217
|
-
showAll && React.createElement(Select.Option, { value: "" }, "\u5168\u90E8"),
|
|
217
|
+
showAll && (React.createElement(Select.Option, { key: undefined, value: "" }, "\u5168\u90E8")),
|
|
218
218
|
Array.isArray(selectList) &&
|
|
219
219
|
selectList.concat(_defaultList).map(function (item) {
|
|
220
220
|
var key = componentKey ? item[componentKey] : item[dataKey];
|
|
@@ -262,6 +262,6 @@ function EnhanceSelect(_a) {
|
|
|
262
262
|
onChange && onChange(value, option);
|
|
263
263
|
}
|
|
264
264
|
};
|
|
265
|
-
return (React.createElement(Select, __assign({ allowClear: true, showSearch: true, filterOption: remoteSearch ? false : filterOptionHandle, onSearch: remoteSearch ? onSearchHandle : undefined, onChange: onChangeHandle, optionLabelProp: "title" }, restProps), renderSelectOption()));
|
|
265
|
+
return (React.createElement(Select, __assign({ defaultValue: showAll ? '' : undefined, allowClear: true, showSearch: true, filterOption: remoteSearch ? false : filterOptionHandle, onSearch: remoteSearch ? onSearchHandle : undefined, onChange: onChangeHandle, optionLabelProp: "title" }, restProps), renderSelectOption()));
|
|
266
266
|
}
|
|
267
267
|
export default memo(EnhanceSelect);
|