ztxkui 3.3.19 → 3.4.0
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/Upload/upload-table.js +3 -3
- package/dist/index.js +84 -114
- package/package.json +1 -1
|
@@ -80,7 +80,7 @@ var UploadTable = function (_a) {
|
|
|
80
80
|
? __spreadArray(__spreadArray(__spreadArray(__spreadArray([], startColumns), [
|
|
81
81
|
{
|
|
82
82
|
title: '文件名称',
|
|
83
|
-
width:
|
|
83
|
+
width: 160,
|
|
84
84
|
fixed: 'left',
|
|
85
85
|
dataIndex: 'fileName',
|
|
86
86
|
key: 'fileName',
|
|
@@ -109,12 +109,12 @@ var UploadTable = function (_a) {
|
|
|
109
109
|
]), otherColumns), [
|
|
110
110
|
{
|
|
111
111
|
title: '上传进度',
|
|
112
|
-
width:
|
|
112
|
+
width: 140,
|
|
113
113
|
render: function (text, record, index) {
|
|
114
114
|
// uploading done error removed
|
|
115
115
|
var status = record.status === 'error' ? 'exception' : undefined;
|
|
116
116
|
if (record.status === 'error') {
|
|
117
|
-
return (React.createElement(Button, { type: "link", style: { color: '#ff4d4f' }, onClick: function () { return onSubmitFile(record.originFileObj, index); } }, "\
|
|
117
|
+
return (React.createElement(Button, { type: "link", style: { color: '#ff4d4f' }, onClick: function () { return onSubmitFile(record.originFileObj, index); } }, "\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25\uFF0C\u91CD\u65B0\u4E0A\u4F20"));
|
|
118
118
|
}
|
|
119
119
|
return React.createElement(Progress, { percent: record === null || record === void 0 ? void 0 : record.percent, status: status });
|
|
120
120
|
},
|
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';
|