ztxkui 3.0.12 → 3.0.13
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.
|
@@ -549,10 +549,10 @@ function EnhanceSelect(_a) {
|
|
|
549
549
|
}
|
|
550
550
|
currentClick.current = true;
|
|
551
551
|
};
|
|
552
|
-
return (React.createElement(Select, __assign({ defaultValue: showAll ? '' : undefined,
|
|
553
|
-
? restProps.value
|
|
554
|
-
: (restProps.value + ''), allowClear: true, showSearch: true, filterOption: remoteSearch ? false : filterOptionHandle, onSearch: remoteSearch ? onSearchHandle : onSearch, onChange: onChangeHandle, optionLabelProp: "title", loading: loading, onFocus: onFocusHandle, onBlur: onBlurHandle, onClear: onClearHandle, onSelect: onSelectHandle, onClick: onClickHandle,
|
|
552
|
+
return (React.createElement(Select, __assign({ defaultValue: showAll ? '' : undefined, allowClear: true, showSearch: true, filterOption: remoteSearch ? false : filterOptionHandle, onSearch: remoteSearch ? onSearchHandle : onSearch, onChange: onChangeHandle, optionLabelProp: "title", loading: loading, onFocus: onFocusHandle, onBlur: onBlurHandle, onClear: onClearHandle, onSelect: onSelectHandle, onClick: onClickHandle,
|
|
555
553
|
// getPopupContainer={(trigger) => trigger || document.body}
|
|
556
|
-
open: isOpen }, restProps, {
|
|
554
|
+
open: isOpen }, restProps, { value: restProps.value === undefined || restProps.value === null
|
|
555
|
+
? restProps.value
|
|
556
|
+
: (restProps.value + ''), disabled: remoteSearch ? restProps.disabled : loading || restProps.disabled }), renderSelectOption()));
|
|
557
557
|
}
|
|
558
558
|
export default memo(EnhanceSelect);
|