ztxkui 4.2.2 → 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.
@@ -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", "data-title": "\u6D4B\u8BD5\u6807\u98981" },
109
- React.createElement("div", { className: "print-header set-box" },
110
- React.createElement("img", { src: base64Img, alt: "" }),
111
- React.createElement("h3", { className: "print-title" }, "\u63D0\u8D27\u53551"),
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", null, "8000000399")),
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", null, "2022-08-03")),
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", null, "2022-08-06")))),
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 }, "\u4E2D\u94C1\u4E8C\u5341\u4E8C\u5C40\u96C6\u56E2\u6709\u9650\u4E2D\u94C1\u4E8C\u5341\u4E8C\u5C40\u96C6\u56E2\u6709\u9650,\u516C\u53F8"),
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 }, "12312312313123123123123"),
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 }, "123123123123123123123")),
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 }, "9111000071092227XH"),
138
+ React.createElement("td", { colSpan: 3 }),
136
139
  React.createElement("td", null, "\u5730\u5740\u53CA\u7535\u8BDD"),
137
- React.createElement("td", { colSpan: 3 }, "\u798F\u5EFA\u7701\u5B81\u5FB7\u5E02\u798F\u9F0E\u5E02\u51B6\u91D1\u5DE5\u4E1A\u533A0593-7957777"),
140
+ React.createElement("td", { colSpan: 3 }),
138
141
  React.createElement("td", { width: "100px" }, "\u9500\u552E\u5408\u540C\u53F7"),
139
- React.createElement("td", { colSpan: 3 }, "SC2208010002")),
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 }, "\u7269\u4EA7\u7269\u6D41\u6B23\u987A\u7F8E\u5E93"),
145
+ React.createElement("td", { colSpan: 2 }),
143
146
  React.createElement("td", null, "\u4ED3\u5E93\u5730\u5740"),
144
- React.createElement("td", { colSpan: 2 }, "1231\u554A\u5B9E\u6253\u5B9E\u7684\u5927\u82CF\u6253"),
147
+ React.createElement("td", { colSpan: 2 }),
145
148
  React.createElement("td", null, "\u4ED3\u5E93\u8054\u7CFB\u4EBA"),
146
- React.createElement("td", { colSpan: 2 }, "\u554A\u5B9E\u6253\u5B9E\u7684\u963F\u677E\u5927\u662F\u554A\u5927\u82CF\u6253\u788D\u4E8B"),
149
+ React.createElement("td", { colSpan: 2 }),
147
150
  React.createElement("td", null, "\u4ED3\u5E93\u7535\u8BDD"),
148
- React.createElement("td", { colSpan: 2 }, "\u554A\u5B9E\u6253\u5B9E\u5927\u82CF\u6253\u5B9E\u6253\u5B9E\u7684\u963F\u677E\u5927")),
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 }, "\u91CD\u8F68 50MN \u6CB3\u5317\u6C38\u6D0B"),
164
- React.createElement("td", null, "BN2207210002"),
165
- React.createElement("td", null, "0"),
166
- React.createElement("td", null, "1.000000"),
167
- React.createElement("td", null, "0"),
168
- React.createElement("td", null, "0.000000"),
169
- React.createElement("td", null, "12.00"),
170
- React.createElement("td", null, "\u5426"),
171
- React.createElement("td", null, "\u5426")),
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, "0"),
226
- React.createElement("td", null, "11.000000"),
227
- React.createElement("td", null, "0"),
228
- React.createElement("td", null, "0.000000"),
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 }, "\u554A\u5B9E\u6253\u5B9E\u5927\u82CF\u6253\u554A\u5B9E\u6253\u5B9E\u5927\u82CF\u6253\u963F\u677E\u5927\u963F\u677E\u5927\u963F\u677E\u5927\u554A\u5B9E\u6253\u5B9E\u6253\u7B97\u8FBE\u5230\u963F\u677E\u5927\u963F\u677E\u5927\u963F\u677E\u5927\u963F\u677E\u5927\u963F\u677E\u5927"),
187
+ React.createElement("td", { colSpan: 5 }),
235
188
  React.createElement("td", null, "\u63D0\u5355\u6709\u6548\u671F"),
236
- React.createElement("td", { colSpan: 2 }, "24"),
189
+ React.createElement("td", { colSpan: 2 }),
237
190
  React.createElement("td", null, "\u51FA\u5E93\u65B9\u5F0F"),
238
- React.createElement("td", { colSpan: 2 }, "\u5BA2\u6237\u81EA\u63D0")),
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 }, "\u554A\u5B9E\u6253\u5B9E\u7684"),
194
+ React.createElement("td", { colSpan: 2 }),
242
195
  React.createElement("td", null, "\u63D0\u8D27\u8F66\u724C"),
243
- React.createElement("td", { colSpan: 2 }, "\u554A\u5927\u82CF\u6253\u6492\u65E6"),
196
+ React.createElement("td", { colSpan: 2 }),
244
197
  React.createElement("td", null, "\u6253\u5370\u6B21\u6570"),
245
- React.createElement("td", { colSpan: 2 }, "123123"),
198
+ React.createElement("td", { colSpan: 2 }),
246
199
  React.createElement("td", null, "\u5B58\u8D27\u5355\u4F4D"),
247
- React.createElement("td", { colSpan: 2 }, "\u91CD\u5E86\u4E2D\u62D3-\u7535\u5546\u90E8")),
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 }, "\u6492\u5927\u82CF\u6253"),
203
+ React.createElement("td", { colSpan: 2 }),
251
204
  React.createElement("td", null, "\u5236\u5355\u4EBA"),
252
- React.createElement("td", { colSpan: 2 }, "\u9EC4\u667A\u575A"),
205
+ React.createElement("td", { colSpan: 2 }),
253
206
  React.createElement("td", null, "\u90E8\u95E8"),
254
- React.createElement("td", { colSpan: 2 }, "\u91CD\u5E86\u4E2D\u62D3-\u7535\u5546\u90E8"),
207
+ React.createElement("td", { colSpan: 2 }),
255
208
  React.createElement("td", null, "\u4E1A\u52A1\u4EE3\u8868"),
256
- React.createElement("td", { colSpan: 2 }, "\u80E1\u4F1F\u534E"))))),
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: '0px' } },
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\u554A\u5B9E\u6253\u5B9E\u7684\uFF1B"),
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\u554A\u554A\u5B9E\u6253\u5B9E\u5927\u5E08\u7684\u6492\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"),
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: '0px' } },
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", null, "2022-08-12 14:45:57")),
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", null, "chenyx"))))))),
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;
@@ -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
- export default function useInnerPagination(isShow) {
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(10), pageSize = _b[0], setPageSize = _b[1];
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)) ? 10 : 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: 10,
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,
@@ -53,6 +53,7 @@ export interface IProps<RecordType> extends Omit<TableProps<RecordType>, 'column
53
53
  onTableChange?: any;
54
54
  /** 是否开启内部分页。需要处理 修改数据,插入 删除数据。处理批量粘贴数据 */
55
55
  showInnerPagination?: boolean;
56
+ defaultInnerPageSize?: number;
56
57
  }
57
58
  /**
58
59
  * TodoList
@@ -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
- return dangerouslySetXss(value);
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
  {
@@ -1 +1 @@
1
- export declare const token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0ZW5hbnRfaWQiOiIwMDAwMDAiLCJtZW1iZXJfdHlwZSI6MSwiaGFuZGxlX2hyX3Bob25lIjpudWxsLCJyZXN1bWVfZGF0ZSI6bnVsbCwidXNlcl9uYW1lIjoi546L5aWVIiwiZW1wX25hbWUiOm51bGwsImVtcF9udW1iZXIiOm51bGwsImltdF9pZCI6IiIsInJlYWxfbmFtZSI6IueOi-WllSIsImNsaWVudF90eXBlIjoid2ViIiwiZGF0YV9yb2xlX2lkIjoiMTM0MzQ5MDY4NjI2MDIyODA5NyIsImNsaWVudF9pZCI6InN3b3JkIiwidXNlcl90eXBlIjoid2ViIiwicm9sZV9pZCI6IjExMjM1OTg4MTY3Mzg2NzUyMDEsMTM0MzQ5MDQyNTAwMTIyNjI0MiIsInBvc3RfbmFtZSI6bnVsbCwic2NvcGUiOlsiYWxsIl0sImludGVydmlld19pZCI6IiIsImV4cCI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3IsYWRtaW4sYWRtaW4iLCJyZXN1bWVfdGVtcGxhdGUiOm51bGwsImxpY2Vuc2UiOiJwb3dlcmVkIGJ5IHptZG1zIiwicG9zdF9pZCI6IiIsInVzZXJfaWQiOiIxNDEyOTUzODA0MzMzNTU1NzE0Iiwib3JnX2lkIjoiIiwibmlja19uYW1lIjoi6ZmI5Lqa6ZuEIiwiY29tcGFueV9uYW1lIjpudWxsLCJkZXB0X2lkIjoiIiwiaGFuZGxlX2hyX25hbWUiOm51bGwsImFjY291bnQiOiJjaGVueXgiLCJyZXN1bWVfaWQiOiIifQ.xeE8OkNQ_hosFW0JuoYwnsfLwxCQBW_SiREWt5CrPQg';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkui",
3
- "version": "4.2.2",
3
+ "version": "4.2.3",
4
4
  "private": false,
5
5
  "description": "React components library",
6
6
  "author": "zt-front-end",