zmdms-webui 0.0.146 → 0.0.147
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.
package/dist/es/select/hooks.js
CHANGED
|
@@ -84,9 +84,15 @@ function useRenderChildren(props) {
|
|
|
84
84
|
disabledValues.includes(value)) {
|
|
85
85
|
disabled = true;
|
|
86
86
|
}
|
|
87
|
+
console.log(title);
|
|
88
|
+
var resultTitle = Array.isArray(joinTitle)
|
|
89
|
+
? joinTitle === null || joinTitle === void 0 ? void 0 : joinTitle.join(joinStr)
|
|
90
|
+
: "";
|
|
87
91
|
return (jsxs(MemoSelect.Option
|
|
88
92
|
// key={`${key}${index}`}
|
|
89
|
-
, __assign({ value: value,
|
|
93
|
+
, __assign({ value: value,
|
|
94
|
+
// 原本传入需要显示的title
|
|
95
|
+
oldTitle: title, title: resultTitle, disabled: disabled }, { children: [resultTitle, Array.isArray(linefeedTitle) && linefeedTitle.length > 0 ? (jsx("div", __assign({ className: "ztxk-select--feed-item" }, { children: linefeedTitle === null || linefeedTitle === void 0 ? void 0 : linefeedTitle.join(lineFeedStr) }))) : ("")] }), key));
|
|
90
96
|
})] }));
|
|
91
97
|
}
|
|
92
98
|
return null;
|
package/dist/es/select/select.js
CHANGED
|
@@ -115,7 +115,9 @@ var Select = function (props, ref) {
|
|
|
115
115
|
var text = textContent(option === null || option === void 0 ? void 0 : option.children);
|
|
116
116
|
return (text === null || text === void 0 ? void 0 : text.toLowerCase().indexOf(input.toLowerCase().trim())) >= 0;
|
|
117
117
|
};
|
|
118
|
-
return (jsx(Select$1, __assign({ defaultValue: showAll ? "" : undefined, showArrow: true, allowClear: true, dropdownMatchSelectWidth: dropdownMatchSelectWidth, onChange: onChangeHandle, showSearch: true, onSearch: onDebounceSearchHandle, filterOption: isRemoteSearch ? false : filterOptionHandle,
|
|
118
|
+
return (jsx(Select$1, __assign({ defaultValue: showAll ? "" : undefined, showArrow: true, allowClear: true, dropdownMatchSelectWidth: dropdownMatchSelectWidth, onChange: onChangeHandle, showSearch: true, onSearch: onDebounceSearchHandle, filterOption: isRemoteSearch ? false : filterOptionHandle,
|
|
119
|
+
// 显示问题
|
|
120
|
+
optionLabelProp: list ? "oldTitle" : undefined, dropdownRender: dropdownRender
|
|
119
121
|
? dropdownRender
|
|
120
122
|
: dropdownButton
|
|
121
123
|
? dropdownButtonHandle
|