ztxkui 1.8.1 → 1.8.2
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/Demo.js
CHANGED
|
@@ -57,7 +57,9 @@ function Demo() {
|
|
|
57
57
|
React.createElement(Link, { to: "/test" }, "test"),
|
|
58
58
|
React.createElement("h1", null, "\u4F5C\u4E3A\u6F14\u793A\u4F7F\u7528"),
|
|
59
59
|
React.createElement("h2", null, "\u5982\u679C\u6570\u636E\u662F\u901A\u8FC7\u5916\u90E8\u83B7\u53D6\u7684\uFF0C\u53EF\u4EE5\u901A\u8FC7\u4F20\u9012list\u5C5E\u6027"),
|
|
60
|
-
React.createElement(EnhanceSelect, { style: selectStyle, list: list, showAll: true, joinKey: "test1"
|
|
60
|
+
React.createElement(EnhanceSelect, { style: selectStyle, list: list, showAll: true, joinKey: "test1", onChange: function (value, option, fullData) {
|
|
61
|
+
console.log(value, option, fullData);
|
|
62
|
+
} }),
|
|
61
63
|
React.createElement("h2", null, "\u5F02\u6B65\u83B7\u53D6\u6570\u636E"),
|
|
62
64
|
React.createElement(EnhanceSelect, { style: selectStyle, url: "http://192.168.0.83:8000/api/zmdms-user/list", params: JSON.stringify({
|
|
63
65
|
status: 50,
|
|
@@ -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, {
|
|
217
|
+
showAll && (React.createElement(Select.Option, { title: "\u5168\u90E8", 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];
|