ztxkui 4.2.1 → 4.2.3
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/DemoCom/BasicDemo.js +5 -2
- package/dist/DemoCom/PrintContainerDemo.js +50 -149
- package/dist/components/NumberCase/index.d.ts +11 -0
- package/dist/components/NumberCase/index.js +39 -0
- package/dist/components/Table/hooks/useInnerPagination.d.ts +1 -1
- package/dist/components/Table/hooks/useInnerPagination.js +6 -5
- package/dist/components/Table/table.d.ts +1 -0
- package/dist/components/Table/table.js +2 -2
- package/dist/components/Upload/upload-table.js +14 -2
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import InputNumber from 'components/InputNumber';
|
|
2
2
|
import Tag from 'components/Tag';
|
|
3
3
|
import Input from 'components/Input';
|
|
4
|
-
import { FormList, RangePicker, Button, Modal, Container, message, } from '../index';
|
|
4
|
+
import { FormList, RangePicker, Button, Modal, Container, message, NumberCase, } from '../index';
|
|
5
5
|
// import message from '../components/basic/message';
|
|
6
6
|
import { InputNumber as AntInputNumber } from 'antd';
|
|
7
7
|
import { CloseCircleOutlined } from '@ant-design/icons';
|
|
@@ -188,6 +188,9 @@ function BasicDemo() {
|
|
|
188
188
|
console.log(iValue);
|
|
189
189
|
}, showCopy: true }, "\u6211\u662F\u4E00\u4E2A\u94FE\u63A51111111111111111111"),
|
|
190
190
|
React.createElement(Input, { value: iValue, onChange: function (e) { return setIValue(e.target.value); } }),
|
|
191
|
-
React.createElement(Input.TextArea, { handleSize: true, rows: 3 })
|
|
191
|
+
React.createElement(Input.TextArea, { handleSize: true, rows: 3 }),
|
|
192
|
+
React.createElement("div", null,
|
|
193
|
+
React.createElement(NumberCase, { num: 123123123 }, "12312312312"),
|
|
194
|
+
React.createElement(NumberCase, { num: 123123123 }, "12312312312"))));
|
|
192
195
|
}
|
|
193
196
|
export default BasicDemo;
|
|
@@ -38,6 +38,7 @@ import water from '../assets/img/water.png';
|
|
|
38
38
|
import { createDownloadUrl } from 'ztxkutils/dist/fileOperation';
|
|
39
39
|
import './print.scss';
|
|
40
40
|
import { token } from '../constants';
|
|
41
|
+
import imgSrc from '../assets/img/微信图片_20221202110601.png';
|
|
41
42
|
function request(options) {
|
|
42
43
|
var headers = options.headers, restOptions = __rest(options, ["headers"]);
|
|
43
44
|
return axios(__assign({ baseURL: options.baseURL ? options.baseURL : 'http://192.168.0.83:8000', url: options.url, headers: __assign({ 'Zmdms-Auth': "bearer " + token }, options.headers), method: options.method, data: options.data, params: options.params }, restOptions));
|
|
@@ -105,47 +106,49 @@ var PrintContainerDemo = function () {
|
|
|
105
106
|
return (React.createElement(PrintContainer, { isAddExportPage: true, loading: loading, request: request, deptId: "1295909543961944065", flowId: "scm_print_tdtd", fileId: "1551733945007517697",
|
|
106
107
|
// keywordList={keywordList}
|
|
107
108
|
imgWaterBg: water, isSetPosition: false, showPrintMessage: true, showAddSeal: true, apiUrl: "http://192.168.0.83:8000", fileBaseUrl: "http://192.168.0.83:88" },
|
|
108
|
-
React.createElement("div", { className: "html2canvas-container-page simple-print",
|
|
109
|
-
React.createElement("div", { className: "print-header
|
|
110
|
-
React.createElement("img", { src:
|
|
111
|
-
React.createElement("h3", { className: "print-title" },
|
|
109
|
+
React.createElement("div", { className: "html2canvas-container-page simple-print", style: { paddingTop: 0, paddingLeft: 0 } },
|
|
110
|
+
React.createElement("div", { className: "print-header" },
|
|
111
|
+
React.createElement("img", { src: imgSrc, alt: "" }),
|
|
112
|
+
React.createElement("h3", { className: "print-title" },
|
|
113
|
+
"\u63D0\u8D27\u5355",
|
|
114
|
+
React.createElement("p", { className: "info" }, "\uFF08\u540C\u4E00\u63D0\u8D27\u5355\u53F7\u4EC5\u80FD\u63D0\u8D27\u4E00\u6B21\uFF09")),
|
|
112
115
|
React.createElement("div", { className: "right-info" },
|
|
113
116
|
React.createElement("div", { className: "info-item" },
|
|
114
117
|
React.createElement("span", null, "\u63D0\u8D27\u5355\u53F7\uFF1A"),
|
|
115
|
-
React.createElement("span",
|
|
118
|
+
React.createElement("span", { style: { display: 'inline-block', width: '100px' } })),
|
|
116
119
|
React.createElement("div", { className: "info-item" },
|
|
117
120
|
React.createElement("span", null, "\u5F00\u5355\u65F6\u95F4\uFF1A"),
|
|
118
|
-
React.createElement("span",
|
|
121
|
+
React.createElement("span", { style: { display: 'inline-block', width: '100px' } })),
|
|
119
122
|
React.createElement("div", { className: "info-item" },
|
|
120
123
|
React.createElement("span", null, "\u5BA1\u6838\u65F6\u95F4\uFF1A"),
|
|
121
|
-
React.createElement("span",
|
|
124
|
+
React.createElement("span", { style: { display: 'inline-block', width: '100px' } })))),
|
|
122
125
|
React.createElement("div", { className: "purchaseIn-print-box" },
|
|
123
126
|
React.createElement("div", { className: "pt10" },
|
|
124
127
|
React.createElement("table", null,
|
|
125
128
|
React.createElement("tbody", null,
|
|
126
129
|
React.createElement("tr", null,
|
|
127
130
|
React.createElement("td", null, "\u63D0\u8D27\u5355\u4F4D"),
|
|
128
|
-
React.createElement("td", { colSpan: 3 }
|
|
131
|
+
React.createElement("td", { colSpan: 3 }),
|
|
129
132
|
React.createElement("td", null, "\u5F00\u6237\u94F6\u884C\u53CA\u8D26\u53F7"),
|
|
130
|
-
React.createElement("td", { colSpan: 3 }
|
|
133
|
+
React.createElement("td", { colSpan: 3 }),
|
|
131
134
|
React.createElement("td", { width: "100px" }, "\u7269\u6D41\u6307\u4EE4\u5355\u53F7"),
|
|
132
|
-
React.createElement("td", { colSpan: 3 }
|
|
135
|
+
React.createElement("td", { colSpan: 3 })),
|
|
133
136
|
React.createElement("tr", null,
|
|
134
137
|
React.createElement("td", null, "\u7A0E\u53F7"),
|
|
135
|
-
React.createElement("td", { colSpan: 3 }
|
|
138
|
+
React.createElement("td", { colSpan: 3 }),
|
|
136
139
|
React.createElement("td", null, "\u5730\u5740\u53CA\u7535\u8BDD"),
|
|
137
|
-
React.createElement("td", { colSpan: 3 }
|
|
140
|
+
React.createElement("td", { colSpan: 3 }),
|
|
138
141
|
React.createElement("td", { width: "100px" }, "\u9500\u552E\u5408\u540C\u53F7"),
|
|
139
|
-
React.createElement("td", { colSpan: 3 }
|
|
142
|
+
React.createElement("td", { colSpan: 3 })),
|
|
140
143
|
React.createElement("tr", null,
|
|
141
144
|
React.createElement("td", null, "\u63D0\u8D27\u4ED3\u5E93"),
|
|
142
|
-
React.createElement("td", { colSpan: 2 }
|
|
145
|
+
React.createElement("td", { colSpan: 2 }),
|
|
143
146
|
React.createElement("td", null, "\u4ED3\u5E93\u5730\u5740"),
|
|
144
|
-
React.createElement("td", { colSpan: 2 }
|
|
147
|
+
React.createElement("td", { colSpan: 2 }),
|
|
145
148
|
React.createElement("td", null, "\u4ED3\u5E93\u8054\u7CFB\u4EBA"),
|
|
146
|
-
React.createElement("td", { colSpan: 2 }
|
|
149
|
+
React.createElement("td", { colSpan: 2 }),
|
|
147
150
|
React.createElement("td", null, "\u4ED3\u5E93\u7535\u8BDD"),
|
|
148
|
-
React.createElement("td", { colSpan: 2 }
|
|
151
|
+
React.createElement("td", { colSpan: 2 })),
|
|
149
152
|
React.createElement("tr", null,
|
|
150
153
|
React.createElement("td", { rowSpan: 2, colSpan: 4 }, "\u5546\u54C1\u540D\u79F0"),
|
|
151
154
|
React.createElement("td", { width: "100px", rowSpan: 2 }, "\u6279\u6B21\u53F7"),
|
|
@@ -160,164 +163,62 @@ var PrintContainerDemo = function () {
|
|
|
160
163
|
React.createElement("td", { width: "50px" }, "\u4EF6"),
|
|
161
164
|
React.createElement("td", { width: "100px" }, "\u91CD\u91CF(\u5428)")),
|
|
162
165
|
React.createElement("tr", null,
|
|
163
|
-
React.createElement("td", { colSpan: 4
|
|
164
|
-
React.createElement("td", null
|
|
165
|
-
React.createElement("td", null
|
|
166
|
-
React.createElement("td", null
|
|
167
|
-
React.createElement("td", null
|
|
168
|
-
React.createElement("td", null
|
|
169
|
-
React.createElement("td", null
|
|
170
|
-
React.createElement("td", null
|
|
171
|
-
React.createElement("td", null
|
|
172
|
-
React.createElement("tr", null,
|
|
173
|
-
React.createElement("td", { colSpan: 4 }, "\u91CD\u8F68 50MN \u6CB3\u5317\u6C38\u6D0B"),
|
|
174
|
-
React.createElement("td", null, "BN2207140002"),
|
|
175
|
-
React.createElement("td", null, "0"),
|
|
176
|
-
React.createElement("td", null, "10.000000"),
|
|
177
|
-
React.createElement("td", null, "0"),
|
|
178
|
-
React.createElement("td", null, "0.000000"),
|
|
179
|
-
React.createElement("td", null, "12.00"),
|
|
180
|
-
React.createElement("td", null, "\u5426"),
|
|
181
|
-
React.createElement("td", null, "\u5426")),
|
|
182
|
-
React.createElement("tr", null,
|
|
183
|
-
React.createElement("td", { colSpan: 4 }, "\u91CD\u8F68 50MN \u6CB3\u5317\u6C38\u6D0B"),
|
|
184
|
-
React.createElement("td", null, "BN2207210002"),
|
|
185
|
-
React.createElement("td", null, "0"),
|
|
186
|
-
React.createElement("td", null, "1.000000"),
|
|
187
|
-
React.createElement("td", null, "0"),
|
|
188
|
-
React.createElement("td", null, "0.000000"),
|
|
189
|
-
React.createElement("td", null, "12.00"),
|
|
190
|
-
React.createElement("td", null, "\u5426"),
|
|
191
|
-
React.createElement("td", null, "\u5426")),
|
|
192
|
-
React.createElement("tr", null,
|
|
193
|
-
React.createElement("td", { colSpan: 4 }, "\u91CD\u8F68 50MN \u6CB3\u5317\u6C38\u6D0B"),
|
|
194
|
-
React.createElement("td", null, "BN2207140002"),
|
|
195
|
-
React.createElement("td", null, "0"),
|
|
196
|
-
React.createElement("td", null, "10.000000"),
|
|
197
|
-
React.createElement("td", null, "0"),
|
|
198
|
-
React.createElement("td", null, "0.000000"),
|
|
199
|
-
React.createElement("td", null, "12.00"),
|
|
200
|
-
React.createElement("td", null, "\u5426"),
|
|
201
|
-
React.createElement("td", null, "\u5426")),
|
|
202
|
-
React.createElement("tr", null,
|
|
203
|
-
React.createElement("td", { colSpan: 4 }, "\u91CD\u8F68 50MN \u6CB3\u5317\u6C38\u6D0B"),
|
|
204
|
-
React.createElement("td", null, "BN2207210002"),
|
|
205
|
-
React.createElement("td", null, "0"),
|
|
206
|
-
React.createElement("td", null, "1.000000"),
|
|
207
|
-
React.createElement("td", null, "0"),
|
|
208
|
-
React.createElement("td", null, "0.000000"),
|
|
209
|
-
React.createElement("td", null, "12.00"),
|
|
210
|
-
React.createElement("td", null, "\u5426"),
|
|
211
|
-
React.createElement("td", null, "\u5426")),
|
|
212
|
-
React.createElement("tr", null,
|
|
213
|
-
React.createElement("td", { colSpan: 4 }, "\u91CD\u8F68 50MN \u6CB3\u5317\u6C38\u6D0B"),
|
|
214
|
-
React.createElement("td", null, "BN2207140002"),
|
|
215
|
-
React.createElement("td", null, "0"),
|
|
216
|
-
React.createElement("td", null, "10.000000"),
|
|
217
|
-
React.createElement("td", null, "0"),
|
|
218
|
-
React.createElement("td", null, "0.000000"),
|
|
219
|
-
React.createElement("td", null, "12.00"),
|
|
220
|
-
React.createElement("td", null, "\u5426"),
|
|
221
|
-
React.createElement("td", null, "\u5426")),
|
|
166
|
+
React.createElement("td", { colSpan: 4, style: { height: '23px' } }),
|
|
167
|
+
React.createElement("td", null),
|
|
168
|
+
React.createElement("td", null),
|
|
169
|
+
React.createElement("td", null),
|
|
170
|
+
React.createElement("td", null),
|
|
171
|
+
React.createElement("td", null),
|
|
172
|
+
React.createElement("td", null),
|
|
173
|
+
React.createElement("td", null),
|
|
174
|
+
React.createElement("td", null)),
|
|
222
175
|
React.createElement("tr", null,
|
|
223
176
|
React.createElement("td", { colSpan: 4, align: "left", style: { padding: '0px 30px' } }, "\u5408\u8BA1"),
|
|
224
177
|
React.createElement("td", null),
|
|
225
|
-
React.createElement("td", null
|
|
226
|
-
React.createElement("td", null
|
|
227
|
-
React.createElement("td", null
|
|
228
|
-
React.createElement("td", null
|
|
178
|
+
React.createElement("td", null),
|
|
179
|
+
React.createElement("td", null),
|
|
180
|
+
React.createElement("td", null),
|
|
181
|
+
React.createElement("td", null),
|
|
229
182
|
React.createElement("td", null),
|
|
230
183
|
React.createElement("td", null),
|
|
231
184
|
React.createElement("td", null)),
|
|
232
185
|
React.createElement("tr", null,
|
|
233
186
|
React.createElement("td", null, "\u5907\u6CE8"),
|
|
234
|
-
React.createElement("td", { colSpan: 5 }
|
|
187
|
+
React.createElement("td", { colSpan: 5 }),
|
|
235
188
|
React.createElement("td", null, "\u63D0\u5355\u6709\u6548\u671F"),
|
|
236
|
-
React.createElement("td", { colSpan: 2 }
|
|
189
|
+
React.createElement("td", { colSpan: 2 }),
|
|
237
190
|
React.createElement("td", null, "\u51FA\u5E93\u65B9\u5F0F"),
|
|
238
|
-
React.createElement("td", { colSpan: 2 }
|
|
191
|
+
React.createElement("td", { colSpan: 2 })),
|
|
239
192
|
React.createElement("tr", null,
|
|
240
193
|
React.createElement("td", null, "\u63D0\u8D27\u4EBA"),
|
|
241
|
-
React.createElement("td", { colSpan: 2 }
|
|
194
|
+
React.createElement("td", { colSpan: 2 }),
|
|
242
195
|
React.createElement("td", null, "\u63D0\u8D27\u8F66\u724C"),
|
|
243
|
-
React.createElement("td", { colSpan: 2 }
|
|
196
|
+
React.createElement("td", { colSpan: 2 }),
|
|
244
197
|
React.createElement("td", null, "\u6253\u5370\u6B21\u6570"),
|
|
245
|
-
React.createElement("td", { colSpan: 2 }
|
|
198
|
+
React.createElement("td", { colSpan: 2 }),
|
|
246
199
|
React.createElement("td", null, "\u5B58\u8D27\u5355\u4F4D"),
|
|
247
|
-
React.createElement("td", { colSpan: 2 }
|
|
200
|
+
React.createElement("td", { colSpan: 2 })),
|
|
248
201
|
React.createElement("tr", null,
|
|
249
202
|
React.createElement("td", null, "\u53D1\u8D27\u4EBA"),
|
|
250
|
-
React.createElement("td", { colSpan: 2 }
|
|
203
|
+
React.createElement("td", { colSpan: 2 }),
|
|
251
204
|
React.createElement("td", null, "\u5236\u5355\u4EBA"),
|
|
252
|
-
React.createElement("td", { colSpan: 2 }
|
|
205
|
+
React.createElement("td", { colSpan: 2 }),
|
|
253
206
|
React.createElement("td", null, "\u90E8\u95E8"),
|
|
254
|
-
React.createElement("td", { colSpan: 2 }
|
|
207
|
+
React.createElement("td", { colSpan: 2 }),
|
|
255
208
|
React.createElement("td", null, "\u4E1A\u52A1\u4EE3\u8868"),
|
|
256
|
-
React.createElement("td", { colSpan: 2 }
|
|
209
|
+
React.createElement("td", { colSpan: 2 }))))),
|
|
257
210
|
React.createElement("div", { className: "pt_bottom" },
|
|
258
211
|
React.createElement("div", { className: "ant-row", style: { rowGap: '0px' } },
|
|
259
|
-
React.createElement("div", { className: "ant-col ant-col-17", style: { paddingLeft:
|
|
260
|
-
React.createElement("div", { className: "ant-row", style: { rowGap: '0px' } }, "1\u3001\u672C\u63D0\u5355\u5728\u4E0A\u8FF0\u6709\u6548\u671F\u5185\u6709\u6548\uFF0C\u8FC7\u671F\u4F5C\u5E9F\
|
|
261
|
-
React.createElement("div", { className: "ant-row", style: { rowGap: '0px' } }, "2\u3001\u672C\u63D0\u8D27\u5355\u4F4D\u7ECF\u8D22\u52A1\u6536\u6B3E\u76D6\u7AE0\u540E\u63D0\u8D27\uFF1B\u6B64\u63D0\u8D27\u5355\u9057\u5931\uFF0C\u63D0\u8D27\u5355\u4F4D\u8D23\u4EFB\u81EA\u8D1F\
|
|
212
|
+
React.createElement("div", { className: "ant-col ant-col-17", style: { paddingLeft: 0 } },
|
|
213
|
+
React.createElement("div", { className: "ant-row", style: { rowGap: '0px' } }, "1\u3001\u672C\u63D0\u5355\u5728\u4E0A\u8FF0\u6709\u6548\u671F\u5185\u6709\u6548\uFF0C\u8FC7\u671F\u4F5C\u5E9F\uFF1B"),
|
|
214
|
+
React.createElement("div", { className: "ant-row", style: { rowGap: '0px' } }, "2\u3001\u672C\u63D0\u8D27\u5355\u4F4D\u7ECF\u8D22\u52A1\u6536\u6B3E\u76D6\u7AE0\u540E\u63D0\u8D27\uFF1B\u6B64\u63D0\u8D27\u5355\u9057\u5931\uFF0C\u63D0\u8D27\u5355\u4F4D\u8D23\u4EFB\u81EA\u8D1F\uFF1B\u51ED\u6B64\u63D0\u8D27\u5355\u4EA4\u4ED8\u8D27\u7269\u540E\uFF0C\u8D27\u7269\u6240\u6709\u98CE\u9669\u8F6C\u79FB\u5230\u63D0\u8D27\u5355\u4F4D\u3002"),
|
|
262
215
|
React.createElement("div", { className: "ant-row", style: { rowGap: '0px' } })),
|
|
263
|
-
React.createElement("div", { className: "ant-col ant-col-7", style: { paddingRight:
|
|
216
|
+
React.createElement("div", { className: "ant-col ant-col-7", style: { paddingRight: 0 } },
|
|
264
217
|
React.createElement("div", { className: "ant-row", style: { justifyContent: 'flex-end', rowGap: '0px' } },
|
|
265
218
|
React.createElement("span", null, "\u6253\u5370\u65F6\u95F4\uFF1A"),
|
|
266
|
-
React.createElement("span",
|
|
219
|
+
React.createElement("span", { style: { display: 'inline-block', width: '100px' } })),
|
|
267
220
|
React.createElement("div", { className: "ant-row", style: { justifyContent: 'flex-end', rowGap: '0px' } },
|
|
268
221
|
React.createElement("span", null, "\u6253\u5370\u4EBA\uFF1A"),
|
|
269
|
-
React.createElement("span",
|
|
270
|
-
React.createElement("div", { className: "html2canvas-container-page simple-print" },
|
|
271
|
-
React.createElement("div", { className: "set-box", "data-top": "0px", "data-left": "0px" },
|
|
272
|
-
React.createElement("div", { className: "box1" },
|
|
273
|
-
React.createElement("span", { className: "approveTime" }, "\u5F00\u5355\u65E5\uFF1A22\u5E7411\u670821\u65E5 14:49:48"),
|
|
274
|
-
React.createElement("span", { className: "slbNo" }, "8000012783")),
|
|
275
|
-
React.createElement("div", { className: "box2" },
|
|
276
|
-
React.createElement("span", { className: "sp1" }, "\u901A\u5DDE\u5EFA\u603B\u96C6\u56E2\u6709\u9650\u516C\u53F8"),
|
|
277
|
-
React.createElement("span", { className: "sp2" }, "6666666"),
|
|
278
|
-
React.createElement("span", { className: "sp3" })),
|
|
279
|
-
React.createElement("div", { className: "box2" },
|
|
280
|
-
React.createElement("span", { className: "sp1" }, "91110108717743469K"),
|
|
281
|
-
React.createElement("span", { className: "sp2" }, "22222229632587123"),
|
|
282
|
-
React.createElement("span", { className: "sp3" }, "30147872")),
|
|
283
|
-
React.createElement("div", { className: "box3" },
|
|
284
|
-
React.createElement("span", { className: "sp1" }, "\u5B81\u6CE2\u65B0\u5609\u5E93"),
|
|
285
|
-
React.createElement("span", { className: "sp2" }, "\u5B81\u6CE2\u51FA\u53E3\u52A0\u5DE5\u533A\u626C\u5B50\u6C5F\u5357\u8DEF5\u53F7"),
|
|
286
|
-
React.createElement("span", { className: "sp3" }),
|
|
287
|
-
React.createElement("span", { className: "sp4" })),
|
|
288
|
-
React.createElement("div", { className: "box-sp" },
|
|
289
|
-
React.createElement("div", { className: "box4" },
|
|
290
|
-
React.createElement("div", { className: "div1" }, "\u94C1\u77FF\u7C89 \u4EA7\u5730 \u6D4B\u8BD5 18%"),
|
|
291
|
-
React.createElement("div", { className: "div2" }, "C221100010"),
|
|
292
|
-
React.createElement("div", { className: "div3" }, "0"),
|
|
293
|
-
React.createElement("div", { className: "div4" }, "30.000"),
|
|
294
|
-
React.createElement("div", { className: "div3" }),
|
|
295
|
-
React.createElement("div", { className: "div4" }),
|
|
296
|
-
React.createElement("div", { className: "div2" }, "2000.00"),
|
|
297
|
-
React.createElement("div", { className: "div2" }, "\u5426"),
|
|
298
|
-
React.createElement("div", { className: "div2" }, "\u5426"))),
|
|
299
|
-
React.createElement("div", { className: "box4" },
|
|
300
|
-
React.createElement("div", { className: "div1" }),
|
|
301
|
-
React.createElement("div", { className: "div2" }),
|
|
302
|
-
React.createElement("div", { className: "div3" }, "0"),
|
|
303
|
-
React.createElement("div", { className: "div4" }, "30.000"),
|
|
304
|
-
React.createElement("div", { className: "div3" }),
|
|
305
|
-
React.createElement("div", { className: "div4" }),
|
|
306
|
-
React.createElement("div", { className: "div2" }),
|
|
307
|
-
React.createElement("div", { className: "div2" }),
|
|
308
|
-
React.createElement("div", { className: "div2" })),
|
|
309
|
-
React.createElement("div", { className: "box5" }),
|
|
310
|
-
React.createElement("div", { className: "box6" },
|
|
311
|
-
React.createElement("div", { className: "div1" }),
|
|
312
|
-
React.createElement("div", { className: "div2" }),
|
|
313
|
-
React.createElement("div", { className: "div1" }),
|
|
314
|
-
React.createElement("div", { className: "div1" }),
|
|
315
|
-
React.createElement("div", { className: "div1" }),
|
|
316
|
-
React.createElement("div", { className: "div2" }),
|
|
317
|
-
React.createElement("div", { className: "div1" }, "\u6C6A\u743C"),
|
|
318
|
-
React.createElement("div", { className: "div3" }),
|
|
319
|
-
React.createElement("div", { className: "div1" }, "\u6D59\u5546\u4E2D\u62D3-\u5DE5\u7A0B\u914D\u9001\u4E8B\u4E1A\u90E8"),
|
|
320
|
-
React.createElement("div", { className: "div1" }),
|
|
321
|
-
React.createElement("div", { className: "div12" }, "\u738B\u67F3\u82F1"))))));
|
|
222
|
+
React.createElement("span", { style: { display: 'inline-block', width: '100px' } })))))))));
|
|
322
223
|
};
|
|
323
224
|
export default PrintContainerDemo;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author 陈亚雄
|
|
3
|
+
* @description 数字转大写
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
// redux
|
|
7
|
+
// ztxkui公共组件
|
|
8
|
+
import { Tooltip } from '../../index';
|
|
9
|
+
// 路由配置
|
|
10
|
+
// store
|
|
11
|
+
// 自定义组件
|
|
12
|
+
// 其他文件
|
|
13
|
+
function numberToCase(n) {
|
|
14
|
+
if (!/^(0|[1-9]\d*)(\.\d+)?$/.test(n)) {
|
|
15
|
+
return '数据非法'; //判断数据是否大于0
|
|
16
|
+
}
|
|
17
|
+
var unit = '千百拾亿千百拾万千百拾元角分', str = '';
|
|
18
|
+
n += '00';
|
|
19
|
+
var indexpoint = n.indexOf('.'); // 如果是小数,截取小数点前面的位数
|
|
20
|
+
if (indexpoint >= 0) {
|
|
21
|
+
n = n.substring(0, indexpoint) + n.substr(indexpoint + 1, 2); // 若为小数,截取需要使用的unit单位
|
|
22
|
+
}
|
|
23
|
+
unit = unit.substr(unit.length - n.length); // 若为整数,截取需要使用的unit单位
|
|
24
|
+
for (var i = 0; i < n.length; i++) {
|
|
25
|
+
str += '零壹贰叁肆伍陆柒捌玖'.charAt(n.charAt(i)) + unit.charAt(i); //遍历转化为大写的数字
|
|
26
|
+
}
|
|
27
|
+
return str
|
|
28
|
+
.replace(/零(千|百|拾|角)/g, '零')
|
|
29
|
+
.replace(/(零)+/g, '零')
|
|
30
|
+
.replace(/零(万|亿|元)/g, '$1')
|
|
31
|
+
.replace(/(亿)万|壹(拾)/g, '$1$2')
|
|
32
|
+
.replace(/^元零?|零分/g, '')
|
|
33
|
+
.replace(/元$/g, '元整'); // 替换掉数字里面的零字符,得到结果
|
|
34
|
+
}
|
|
35
|
+
var NumberCase = function (_a) {
|
|
36
|
+
var num = _a.num, children = _a.children;
|
|
37
|
+
return React.createElement(Tooltip, { title: numberToCase(num) }, children);
|
|
38
|
+
};
|
|
39
|
+
export default NumberCase;
|
|
@@ -9,7 +9,7 @@ export declare type ICurrentPage = MutableRefObject<{
|
|
|
9
9
|
pageSize: number;
|
|
10
10
|
} | null>;
|
|
11
11
|
export declare function getInnerIndex(currentPage: ICurrentPage, index?: number): number;
|
|
12
|
-
export default function useInnerPagination(isShow?: boolean): {
|
|
12
|
+
export default function useInnerPagination(isShow?: boolean, defaultInnerPageSize?: number): {
|
|
13
13
|
paginationConfig: false | TablePaginationConfig;
|
|
14
14
|
currentPage: MutableRefObject<{
|
|
15
15
|
page: number;
|
|
@@ -9,15 +9,16 @@ export function getInnerIndex(currentPage, index) {
|
|
|
9
9
|
var innerIndex = currentPageObj.pageSize * (currentPageObj.page - 1) + (index ? index : 0);
|
|
10
10
|
return innerIndex;
|
|
11
11
|
}
|
|
12
|
-
|
|
12
|
+
var DEFAULT_PAGESIZE = 30;
|
|
13
|
+
export default function useInnerPagination(isShow, defaultInnerPageSize) {
|
|
13
14
|
var currentPage = useRef(null);
|
|
14
15
|
var _a = useState(1), current = _a[0], setCurrent = _a[1];
|
|
15
|
-
var _b = useState(
|
|
16
|
+
var _b = useState(defaultInnerPageSize ? defaultInnerPageSize : DEFAULT_PAGESIZE), pageSize = _b[0], setPageSize = _b[1];
|
|
16
17
|
useEffect(function () {
|
|
17
18
|
if (isShow) {
|
|
18
19
|
currentPage.current = {
|
|
19
20
|
page: current,
|
|
20
|
-
pageSize: isNaN(Number(pageSize)) ?
|
|
21
|
+
pageSize: isNaN(Number(pageSize)) ? DEFAULT_PAGESIZE : Number(pageSize),
|
|
21
22
|
};
|
|
22
23
|
}
|
|
23
24
|
}, [isShow, current, pageSize]);
|
|
@@ -36,8 +37,8 @@ export default function useInnerPagination(isShow) {
|
|
|
36
37
|
}
|
|
37
38
|
},
|
|
38
39
|
hideOnSinglePage: true,
|
|
39
|
-
defaultPageSize:
|
|
40
|
-
pageSizeOptions: ['10', '20'],
|
|
40
|
+
defaultPageSize: DEFAULT_PAGESIZE,
|
|
41
|
+
pageSizeOptions: ['10', '20', '30'],
|
|
41
42
|
}); }, [isShow, current, pageSize]);
|
|
42
43
|
return {
|
|
43
44
|
paginationConfig: paginationConfig,
|
|
@@ -104,7 +104,7 @@ var components = {
|
|
|
104
104
|
*/
|
|
105
105
|
function Table(props) {
|
|
106
106
|
var _this = this;
|
|
107
|
-
var className = props.className, scroll = props.scroll, _a = props.pagination, pagination = _a === void 0 ? false : _a, _b = props.bordered, bordered = _b === void 0 ? true : _b, columns = props.columns, initColumns = props.initColumns, dataSource = props.dataSource, onAddAndDelHandle = props.onAddAndDelHandle, hideAddIcon = props.hideAddIcon, addIconText = props.addIconText, hideDelIcon = props.hideDelIcon, delIconText = props.delIconText, showColumnDynamic = props.showColumnDynamic, showColumnDynamicKey = props.showColumnDynamicKey, summaryConfig = props.summaryConfig, summaryFixed = props.summaryFixed, summary = props.summary, onMoveRow = props.onMoveRow, onEditableSave = props.onEditableSave, onDynamicChange = props.onDynamicChange, _c = props.isResizableColumn, isResizableColumn = _c === void 0 ? true : _c, configInfo = props.configInfo, tableHandleRef = props.tableHandleRef, tableName = props.tableName, isFlex = props.isFlex, onTableChange = props.onTableChange, rowSelection = props.rowSelection, showInnerPagination = props.showInnerPagination, restProps = __rest(props, ["className", "scroll", "pagination", "bordered", "columns", "initColumns", "dataSource", "onAddAndDelHandle", "hideAddIcon", "addIconText", "hideDelIcon", "delIconText", "showColumnDynamic", "showColumnDynamicKey", "summaryConfig", "summaryFixed", "summary", "onMoveRow", "onEditableSave", "onDynamicChange", "isResizableColumn", "configInfo", "tableHandleRef", "tableName", "isFlex", "onTableChange", "rowSelection", "showInnerPagination"]);
|
|
107
|
+
var className = props.className, scroll = props.scroll, _a = props.pagination, pagination = _a === void 0 ? false : _a, _b = props.bordered, bordered = _b === void 0 ? true : _b, columns = props.columns, initColumns = props.initColumns, dataSource = props.dataSource, onAddAndDelHandle = props.onAddAndDelHandle, hideAddIcon = props.hideAddIcon, addIconText = props.addIconText, hideDelIcon = props.hideDelIcon, delIconText = props.delIconText, showColumnDynamic = props.showColumnDynamic, showColumnDynamicKey = props.showColumnDynamicKey, summaryConfig = props.summaryConfig, summaryFixed = props.summaryFixed, summary = props.summary, onMoveRow = props.onMoveRow, onEditableSave = props.onEditableSave, onDynamicChange = props.onDynamicChange, _c = props.isResizableColumn, isResizableColumn = _c === void 0 ? true : _c, configInfo = props.configInfo, tableHandleRef = props.tableHandleRef, tableName = props.tableName, isFlex = props.isFlex, onTableChange = props.onTableChange, rowSelection = props.rowSelection, showInnerPagination = props.showInnerPagination, defaultInnerPageSize = props.defaultInnerPageSize, restProps = __rest(props, ["className", "scroll", "pagination", "bordered", "columns", "initColumns", "dataSource", "onAddAndDelHandle", "hideAddIcon", "addIconText", "hideDelIcon", "delIconText", "showColumnDynamic", "showColumnDynamicKey", "summaryConfig", "summaryFixed", "summary", "onMoveRow", "onEditableSave", "onDynamicChange", "isResizableColumn", "configInfo", "tableHandleRef", "tableName", "isFlex", "onTableChange", "rowSelection", "showInnerPagination", "defaultInnerPageSize"]);
|
|
108
108
|
// console.log('table render');
|
|
109
109
|
var classes = classNames('zt-table', className, {
|
|
110
110
|
'zt-table--flex': isFlex,
|
|
@@ -115,7 +115,7 @@ function Table(props) {
|
|
|
115
115
|
var hideDynamicHandle = useCallback(function () { return setDynamicVisible(false); }, []);
|
|
116
116
|
var dataSourceRef = useRef();
|
|
117
117
|
// 内部分页相关配置
|
|
118
|
-
var _f = useInnerPagination(showInnerPagination), paginationConfig = _f.paginationConfig, currentPage = _f.currentPage, setCurrent = _f.setCurrent, pageSize = _f.pageSize;
|
|
118
|
+
var _f = useInnerPagination(showInnerPagination, defaultInnerPageSize), paginationConfig = _f.paginationConfig, currentPage = _f.currentPage, setCurrent = _f.setCurrent, pageSize = _f.pageSize;
|
|
119
119
|
var rowSelectionDataSource = useRef({});
|
|
120
120
|
var myScroll = useMemo(function () {
|
|
121
121
|
if (scroll) {
|
|
@@ -197,8 +197,20 @@ var UploadTable = function (_a) {
|
|
|
197
197
|
// fixed: 'left',
|
|
198
198
|
dataIndex: 'fileName',
|
|
199
199
|
key: 'fileName',
|
|
200
|
-
render: function (value) {
|
|
201
|
-
|
|
200
|
+
render: function (value, record) {
|
|
201
|
+
var operationAuth = record === null || record === void 0 ? void 0 : record.operationAuth;
|
|
202
|
+
var authPreviewBtn = typeof operationAuth === 'string' &&
|
|
203
|
+
operationAuth.indexOf('1') !== -1
|
|
204
|
+
? true
|
|
205
|
+
: false;
|
|
206
|
+
return (typeof operationAuth === 'string'
|
|
207
|
+
? authPreviewBtn
|
|
208
|
+
: showPreviewBtn)
|
|
209
|
+
? previewBtn(dangerouslySetXss(value), {
|
|
210
|
+
record: record,
|
|
211
|
+
dataSource: dataSource,
|
|
212
|
+
})
|
|
213
|
+
: dangerouslySetXss(value);
|
|
202
214
|
},
|
|
203
215
|
},
|
|
204
216
|
{
|
package/dist/constants.d.ts
CHANG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NDE3IiwicG9zdF9uYW1lIjpudWxsLCJzY29wZSI6WyJhbGwiXSwiaW50ZXJ2aWV3X2lkIjoiIiwiZXhwIjoxNjcwNTU1NTQxLCJvcmdfbmFtZSI6bnVsbCwianRpIjoiODUyNTU1ZTYtNDIxNy00ZGYxLWJmNTAtYzcwMjFiZmIxNjAyIiwibWVtYmVyX2lkIjoiMSIsImNvbXBhbnlfaWQiOiIiLCJzeXN0ZW1faWQiOm51bGwsImRlcHRfbmFtZSI6bnVsbCwiYXZhdGFyIjoiIiwiZGF0YV9yb2xlX25hbWUiOiJhZG1pbixhZG1pbixhZG1pbiIsImF1dGhvcml0aWVzIjpbImFkbWluIiwiYWRtaW5pc3RyYXRvciJdLCJyb2xlX25hbWUiOiJhZG1pbmlzdHJhdG9yLGFkbWluaXN0cmF0b3IsYWRtaW4sYWRtaW4iLCJyZXN1bWVfdGVtcGxhdGUiOm51bGwsImxpY2Vuc2UiOiJwb3dlcmVkIGJ5IHptZG1zIiwicG9zdF9pZCI6IiIsInVzZXJfaWQiOiIxNDEyOTUzODA0MzMzNTU1NzE0Iiwib3JnX2lkIjoiIiwibmlja19uYW1lIjoi6ZmI5Lqa6ZuEIiwiY29tcGFueV9uYW1lIjpudWxsLCJkZXB0X2lkIjoiIiwiaGFuZGxlX2hyX25hbWUiOm51bGwsImFjY291bnQiOiJjaGVueXgiLCJyZXN1bWVfaWQiOiIifQ.xeE8OkNQ_hosFW0JuoYwnsfLwxCQBW_SiREWt5CrPQg';
|
package/dist/index.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ export { default as UploadSingle } from './components/UploadSingle';
|
|
|
47
47
|
export { default as CodeQuery } from './components/business/CodeQuery';
|
|
48
48
|
export { default as DgColumns } from './components/business/DgColumns';
|
|
49
49
|
export { default as message } from './components/basic/message';
|
|
50
|
+
export { default as NumberCase } from './components/NumberCase';
|
|
50
51
|
export { ConfigProvider, Drawer, Space, Grid, Divider, Dropdown, Badge, List, Result, Spin, Popconfirm, TreeSelect, Tree, Progress, Cascader, Tooltip, Descriptions, Image, Popover, Breadcrumb, Transfer, Row, Col, notification, Slider, Rate, Affix, } from 'antd';
|
|
51
52
|
export { default as zhCN } from 'antd/lib/locale/zh_CN';
|
|
52
53
|
export { default as Icon, createFromIconfontCN } from '@ant-design/icons';
|
package/dist/index.js
CHANGED
|
@@ -161,6 +161,7 @@ export { default as UploadSingle } from './components/UploadSingle';
|
|
|
161
161
|
export { default as CodeQuery } from './components/business/CodeQuery';
|
|
162
162
|
export { default as DgColumns } from './components/business/DgColumns';
|
|
163
163
|
export { default as message } from './components/basic/message';
|
|
164
|
+
export { default as NumberCase } from './components/NumberCase';
|
|
164
165
|
export { ConfigProvider, Drawer, Space, Grid, Divider, Dropdown, Badge, List, Result, Spin, Popconfirm, TreeSelect, Tree, Progress, Cascader, Tooltip, Descriptions, Image, Popover, Breadcrumb, Transfer, Row, Col, notification, Slider, Rate, Affix, } from 'antd';
|
|
165
166
|
export { default as zhCN } from 'antd/lib/locale/zh_CN';
|
|
166
167
|
export { default as Icon, createFromIconfontCN } from '@ant-design/icons';
|