ztxkui 1.7.8 → 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, { value: "" }, "\u5168\u90E8"),
|
|
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];
|
|
@@ -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);
|
|
@@ -48,4 +48,7 @@ export interface IProps<T> extends Omit<TreeSelectProps<T>, 'onChange'> {
|
|
|
48
48
|
* 添加远程搜索
|
|
49
49
|
*/
|
|
50
50
|
declare function EnhanceTreeSelect<VT extends SelectValue = SelectValue>({ treeData: outTreeData, defaultTreeData, params, url, method, request, asyncLoadChildren, asyncLoadChildrenKey, transformData, treeDataSimpleMode, onCompleted, ...restProps }: IProps<VT>): JSX.Element;
|
|
51
|
+
declare namespace EnhanceTreeSelect {
|
|
52
|
+
var SHOW_PARENT: "SHOW_PARENT";
|
|
53
|
+
}
|
|
51
54
|
export default EnhanceTreeSelect;
|
|
@@ -125,4 +125,5 @@ function EnhanceTreeSelect(_a) {
|
|
|
125
125
|
? defaultTreeData.concat(treeData)
|
|
126
126
|
: treeData, treeDataSimpleMode: asyncLoadChildren, loadData: asyncLoadChildren ? onLoadDataHandle : undefined }, restProps)));
|
|
127
127
|
}
|
|
128
|
+
EnhanceTreeSelect.SHOW_PARENT = TreeSelect.SHOW_PARENT;
|
|
128
129
|
export default EnhanceTreeSelect;
|
package/dist/index.d.ts
CHANGED
|
@@ -34,6 +34,6 @@ export { default as EnhanceTreeSelect } from './components/EnhanceTreeSelect';
|
|
|
34
34
|
export { default as Collapse } from './components/Collapse';
|
|
35
35
|
export { default as GridList } from './components/business/GridList';
|
|
36
36
|
export { default as Timeline } from './components/Timeline';
|
|
37
|
-
export { ConfigProvider, Drawer, message, Space, Grid, Divider, Dropdown, Badge, List, Result, Spin, Popconfirm, TreeSelect, Tree, Progress, Cascader, Tag, Empty, Tooltip, Descriptions, Image, } from 'antd';
|
|
37
|
+
export { ConfigProvider, Drawer, message, Space, Grid, Divider, Dropdown, Badge, List, Result, Spin, Popconfirm, TreeSelect, Tree, Progress, Cascader, Tag, Empty, Tooltip, Descriptions, Image, Popover, } from 'antd';
|
|
38
38
|
export { default as zhCN } from 'antd/lib/locale/zh_CN';
|
|
39
39
|
export { default as Icon, createFromIconfontCN } from '@ant-design/icons';
|
package/dist/index.js
CHANGED
|
@@ -97,6 +97,6 @@ export { default as EnhanceTreeSelect } from './components/EnhanceTreeSelect';
|
|
|
97
97
|
export { default as Collapse } from './components/Collapse';
|
|
98
98
|
export { default as GridList } from './components/business/GridList';
|
|
99
99
|
export { default as Timeline } from './components/Timeline';
|
|
100
|
-
export { ConfigProvider, Drawer, message, Space, Grid, Divider, Dropdown, Badge, List, Result, Spin, Popconfirm, TreeSelect, Tree, Progress, Cascader, Tag, Empty, Tooltip, Descriptions, Image, } from 'antd';
|
|
100
|
+
export { ConfigProvider, Drawer, message, Space, Grid, Divider, Dropdown, Badge, List, Result, Spin, Popconfirm, TreeSelect, Tree, Progress, Cascader, Tag, Empty, Tooltip, Descriptions, Image, Popover, } from 'antd';
|
|
101
101
|
export { default as zhCN } from 'antd/lib/locale/zh_CN';
|
|
102
102
|
export { default as Icon, createFromIconfontCN } from '@ant-design/icons';
|