ztxkui 3.7.0 → 3.7.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.
- package/dist/components/EnhanceSelect/index.js +2 -2
- package/dist/index.js +84 -114
- package/package.json +1 -1
|
@@ -629,10 +629,10 @@ function EnhanceSelect(_a) {
|
|
|
629
629
|
// 因为将数据类型转成了字符串,可能导致value的数据类型跟原数据数据类型不一致
|
|
630
630
|
// 这里将value赋值成原数据中的数据
|
|
631
631
|
var __value = value;
|
|
632
|
-
if (Array.isArray(__value)) {
|
|
632
|
+
if (Array.isArray(__value) && __value.length > 0) {
|
|
633
633
|
__value = currentData.map(function (item) { return item[key_1]; });
|
|
634
634
|
}
|
|
635
|
-
else {
|
|
635
|
+
else if (!Array.isArray(__value) && __value != null) {
|
|
636
636
|
__value = currentData[key_1];
|
|
637
637
|
}
|
|
638
638
|
onChange && onChange(__value, option, currentData);
|
package/dist/index.js
CHANGED
|
@@ -1,117 +1,87 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
//
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
//
|
|
84
|
-
|
|
85
|
-
// <DragSort />
|
|
86
|
-
// </Route>
|
|
87
|
-
// <Route exact path="/sinatures">
|
|
88
|
-
// <SinaturesDemo />
|
|
89
|
-
// </Route>
|
|
90
|
-
// <Route exact path="/test">
|
|
91
|
-
// <div>
|
|
92
|
-
// <h1>
|
|
93
|
-
// <Link to="/select">select</Link>
|
|
94
|
-
// </h1>
|
|
95
|
-
// <h1>
|
|
96
|
-
// <Link to="/tree-select">tree select</Link>
|
|
97
|
-
// </h1>
|
|
98
|
-
// <h1>
|
|
99
|
-
// <Link to="/tree">tree</Link>
|
|
100
|
-
// </h1>
|
|
101
|
-
// <h1>
|
|
102
|
-
// <Link to="/upload">upload</Link>
|
|
103
|
-
// </h1>
|
|
104
|
-
// <h1>
|
|
105
|
-
// <Link to="/drag-sort">drag-sort</Link>
|
|
106
|
-
// </h1>
|
|
107
|
-
// </div>
|
|
108
|
-
// </Route>
|
|
109
|
-
// </Switch>
|
|
110
|
-
// </BrowserRouter>
|
|
111
|
-
// </ConfigProvider>,
|
|
112
|
-
// // </React.StrictMode>,
|
|
113
|
-
// document.getElementById('root')
|
|
114
|
-
// );
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import ReactDOM from 'react-dom';
|
|
3
|
+
import App from './App';
|
|
4
|
+
import { ConfigProvider } from 'antd';
|
|
5
|
+
import zhCN from 'antd/lib/locale/zh_CN';
|
|
6
|
+
import * as dayjs from 'dayjs';
|
|
7
|
+
import zhCn from 'dayjs/locale/zh-cn';
|
|
8
|
+
import { BrowserRouter, Switch, Route, Link } from 'react-router-dom';
|
|
9
|
+
import Demo from './Demo';
|
|
10
|
+
import TreeSelectDemo from './TreeSelectDemo';
|
|
11
|
+
import TreeDemo from './TreeDemo';
|
|
12
|
+
import UploadDemo from './UploadDemo';
|
|
13
|
+
import CollapseDemo from './DemoCom/CollapseDemo';
|
|
14
|
+
import TimelineDemo from './DemoCom/TimelineDemo';
|
|
15
|
+
import WeChatDemo from './DemoCom/WechatDemo';
|
|
16
|
+
import TableDemo from './DemoCom/TableDemo';
|
|
17
|
+
import TableDemo1 from './DemoCom/TableDemo1';
|
|
18
|
+
import BasicDemo from './DemoCom/BasicDemo';
|
|
19
|
+
import FormDemo from './DemoCom/FormDemo';
|
|
20
|
+
import TableAnalyse from './DemoCom/TableAnalyse';
|
|
21
|
+
import DragSort from './DemoCom/DragSort';
|
|
22
|
+
import PrintDemo from './DemoCom/PrintDemo';
|
|
23
|
+
import PrintContainerDemo from './DemoCom/PrintContainerDemo';
|
|
24
|
+
import SinaturesDemo from './DemoCom/SinaturesDemo';
|
|
25
|
+
import TableDemoAll from './TableDemo';
|
|
26
|
+
import CodeQueryDemo from './DemoCom/CodeQueryDemo';
|
|
27
|
+
dayjs.locale(zhCn);
|
|
28
|
+
ReactDOM.render(
|
|
29
|
+
// <React.StrictMode>
|
|
30
|
+
React.createElement(ConfigProvider, { locale: zhCN },
|
|
31
|
+
React.createElement(BrowserRouter, null,
|
|
32
|
+
React.createElement(Switch, null,
|
|
33
|
+
React.createElement(Route, { exact: true, path: "/" },
|
|
34
|
+
React.createElement(App, null)),
|
|
35
|
+
React.createElement(Route, { exact: true, path: "/code-query" },
|
|
36
|
+
React.createElement(CodeQueryDemo, null)),
|
|
37
|
+
React.createElement(Route, { exact: true, path: "/select" },
|
|
38
|
+
React.createElement(Demo, null)),
|
|
39
|
+
React.createElement(Route, { exact: true, path: "/tree-select" },
|
|
40
|
+
React.createElement(TreeSelectDemo, null)),
|
|
41
|
+
React.createElement(Route, { exact: true, path: "/tree" },
|
|
42
|
+
React.createElement(TreeDemo, null)),
|
|
43
|
+
React.createElement(Route, { exact: true, path: "/upload" },
|
|
44
|
+
React.createElement(UploadDemo, null)),
|
|
45
|
+
React.createElement(Route, { exact: true, path: "/collapse" },
|
|
46
|
+
React.createElement(CollapseDemo, null)),
|
|
47
|
+
React.createElement(Route, { exact: true, path: "/timeline" },
|
|
48
|
+
React.createElement(TimelineDemo, null)),
|
|
49
|
+
React.createElement(Route, { exact: true, path: "/wechat" },
|
|
50
|
+
React.createElement(WeChatDemo, null)),
|
|
51
|
+
React.createElement(Route, { exact: true, path: "/table" },
|
|
52
|
+
React.createElement(TableDemo, null)),
|
|
53
|
+
React.createElement(Route, { exact: true, path: "/table1" },
|
|
54
|
+
React.createElement(TableDemo1, null)),
|
|
55
|
+
React.createElement(Route, { exact: true, path: "/basic" },
|
|
56
|
+
React.createElement(BasicDemo, null)),
|
|
57
|
+
React.createElement(Route, { exact: true, path: "/form" },
|
|
58
|
+
React.createElement(FormDemo, null)),
|
|
59
|
+
React.createElement(Route, { exact: true, path: "/print" },
|
|
60
|
+
React.createElement(PrintDemo, null)),
|
|
61
|
+
React.createElement(Route, { exact: true, path: "/print-container" },
|
|
62
|
+
React.createElement(PrintContainerDemo, null)),
|
|
63
|
+
React.createElement(Route, { exact: true, path: "/tableall" },
|
|
64
|
+
React.createElement(TableDemoAll, null)),
|
|
65
|
+
React.createElement(Route, { exact: true, path: "/table-analyse" },
|
|
66
|
+
React.createElement(TableAnalyse, null)),
|
|
67
|
+
React.createElement(Route, { exact: true, path: "/drag-sort" },
|
|
68
|
+
React.createElement(DragSort, null)),
|
|
69
|
+
React.createElement(Route, { exact: true, path: "/sinatures" },
|
|
70
|
+
React.createElement(SinaturesDemo, null)),
|
|
71
|
+
React.createElement(Route, { exact: true, path: "/test" },
|
|
72
|
+
React.createElement("div", null,
|
|
73
|
+
React.createElement("h1", null,
|
|
74
|
+
React.createElement(Link, { to: "/select" }, "select")),
|
|
75
|
+
React.createElement("h1", null,
|
|
76
|
+
React.createElement(Link, { to: "/tree-select" }, "tree select")),
|
|
77
|
+
React.createElement("h1", null,
|
|
78
|
+
React.createElement(Link, { to: "/tree" }, "tree")),
|
|
79
|
+
React.createElement("h1", null,
|
|
80
|
+
React.createElement(Link, { to: "/upload" }, "upload")),
|
|
81
|
+
React.createElement("h1", null,
|
|
82
|
+
React.createElement(Link, { to: "/drag-sort" }, "drag-sort"))))))),
|
|
83
|
+
// </React.StrictMode>,
|
|
84
|
+
document.getElementById('root'));
|
|
115
85
|
export { default as Button } from './components/Button';
|
|
116
86
|
export { default as Calendar } from './components/Calendar';
|
|
117
87
|
export { default as Checkbox } from './components/Checkbox';
|