ydb-components-material 0.1.88 → 0.1.90

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.
Files changed (137) hide show
  1. package/build/docs/404.html +3 -3
  2. package/build/docs/_demos/:uuid +3 -3
  3. package/build/docs/colorful-button.html +3 -3
  4. package/build/docs/colorful-input.html +3 -3
  5. package/build/docs/index.html +3 -3
  6. package/build/docs/static/bj1.c8eb2503.png +0 -0
  7. package/build/docs/static/bj2.fb5ead8b.png +0 -0
  8. package/build/docs/static/bj3.aa81c8c1.png +0 -0
  9. package/build/docs/static/type1-3.6426929d.png +0 -0
  10. package/build/docs/static/type2.fa812bd1.png +0 -0
  11. package/build/docs/static/typeImg3.c88bc129.png +0 -0
  12. package/build/docs/umi.0d8865d0.js +1 -0
  13. package/build/docs/{umi.666eb3a7.css → umi.ec50463c.css} +1 -1
  14. package/build/docs/~demos/:uuid.html +3 -3
  15. package/build/docs/~demos/colorful-button-demo.html +3 -3
  16. package/build/docs/~demos/colorful-input-demo.html +3 -3
  17. package/build/lowcode/assets/17f243cfda7d6e50dd94b66c293f2239.png +0 -0
  18. package/build/lowcode/assets/7bb589fd0f7d37fa8ed13cb06736a079.png +0 -0
  19. package/build/lowcode/assets/952850f47326ce9313abf0d289d5ee0c.png +0 -0
  20. package/build/lowcode/assets/b2215bb470264d2ac1445c1136838fcf.png +0 -0
  21. package/build/lowcode/assets/d5dfb3a4d87c01db66274b13c8bb68ef.png +0 -0
  22. package/build/lowcode/assets/dae0b5495fd1e0b6386ad8a14e293bd9.png +0 -0
  23. package/build/lowcode/assets-daily.json +11 -11
  24. package/build/lowcode/assets-dev.json +2 -2
  25. package/build/lowcode/assets-prod.json +11 -11
  26. package/build/lowcode/index.js +1 -1
  27. package/build/lowcode/meta.js +1 -1
  28. package/build/lowcode/preview.js +9 -9
  29. package/build/lowcode/render/default/assets/17f243cfda7d6e50dd94b66c293f2239.png +0 -0
  30. package/build/lowcode/render/default/assets/7bb589fd0f7d37fa8ed13cb06736a079.png +0 -0
  31. package/build/lowcode/render/default/assets/952850f47326ce9313abf0d289d5ee0c.png +0 -0
  32. package/build/lowcode/render/default/assets/b2215bb470264d2ac1445c1136838fcf.png +0 -0
  33. package/build/lowcode/render/default/assets/d5dfb3a4d87c01db66274b13c8bb68ef.png +0 -0
  34. package/build/lowcode/render/default/assets/dae0b5495fd1e0b6386ad8a14e293bd9.png +0 -0
  35. package/build/lowcode/render/default/view.css +1 -1
  36. package/build/lowcode/render/default/view.js +2 -55
  37. package/build/lowcode/view.css +1 -1
  38. package/build/lowcode/view.js +2 -55
  39. package/dist/BizComps.css +1 -1
  40. package/dist/BizComps.js +5 -58
  41. package/dist/BizComps.js.map +1 -1
  42. package/dist/assets/17f243cfda7d6e50dd94b66c293f2239.png +0 -0
  43. package/dist/assets/7bb589fd0f7d37fa8ed13cb06736a079.png +0 -0
  44. package/dist/assets/952850f47326ce9313abf0d289d5ee0c.png +0 -0
  45. package/dist/assets/b2215bb470264d2ac1445c1136838fcf.png +0 -0
  46. package/dist/assets/d5dfb3a4d87c01db66274b13c8bb68ef.png +0 -0
  47. package/dist/assets/dae0b5495fd1e0b6386ad8a14e293bd9.png +0 -0
  48. package/es/components/file-list/file.js +0 -71
  49. package/es/components/file-list/index.js +40 -2
  50. package/es/components/file-list/index.scss +25 -0
  51. package/es/components/file-list/item.js +75 -23
  52. package/es/components/file-list-preview/checkPoint.d.ts +3 -0
  53. package/es/components/file-list-preview/checkPoint.js +157 -0
  54. package/es/components/file-list-preview/checkPoint.scss +120 -0
  55. package/es/components/file-list-preview/file.js +224 -0
  56. package/es/components/file-list-preview/icon/checked.svg +1 -0
  57. package/es/components/file-list-preview/icon/close.svg +1 -0
  58. package/es/components/file-list-preview/icon/del.svg +1 -0
  59. package/es/components/file-list-preview/icon/download.svg +1 -0
  60. package/es/components/file-list-preview/icon/download_pc.svg +1 -0
  61. package/es/components/file-list-preview/icon/file.svg +1 -0
  62. package/es/components/file-list-preview/icon/icon_errorMsg.svg +1 -0
  63. package/es/components/file-list-preview/icon/icon_warning.svg +1 -0
  64. package/es/components/file-list-preview/icon/preview.svg +1 -0
  65. package/es/components/file-list-preview/icon/preview_pc.svg +1 -0
  66. package/es/components/file-list-preview/icon/upload.svg +1 -0
  67. package/es/components/file-list-preview/icon/view.svg +1 -0
  68. package/es/components/file-list-preview/index.d.ts +21 -0
  69. package/es/components/file-list-preview/index.js +249 -0
  70. package/es/components/file-list-preview/index.scss +61 -0
  71. package/es/components/file-list-preview/item.d.ts +18 -0
  72. package/es/components/file-list-preview/item.js +370 -0
  73. package/es/components/file-list-preview/item.scss +412 -0
  74. package/es/components/submit-type/assets/bj1.png +0 -0
  75. package/es/components/submit-type/assets/bj2.png +0 -0
  76. package/es/components/submit-type/assets/bj3.png +0 -0
  77. package/es/components/submit-type/assets/type1-3.png +0 -0
  78. package/es/components/submit-type/assets/type2.png +0 -0
  79. package/es/components/submit-type/assets/typeImg3.png +0 -0
  80. package/es/components/submit-type/index.d.ts +10 -0
  81. package/es/components/submit-type/index.js +69 -0
  82. package/es/components/submit-type/index.scss +41 -0
  83. package/es/index.d.ts +4 -0
  84. package/es/index.js +2 -0
  85. package/es/style.js +1 -0
  86. package/lib/components/file-list/file.js +1 -74
  87. package/lib/components/file-list/index.js +40 -2
  88. package/lib/components/file-list/index.scss +25 -0
  89. package/lib/components/file-list/item.js +80 -28
  90. package/lib/components/file-list-preview/checkPoint.d.ts +3 -0
  91. package/lib/components/file-list-preview/checkPoint.js +162 -0
  92. package/lib/components/file-list-preview/checkPoint.scss +120 -0
  93. package/lib/components/file-list-preview/file.js +233 -0
  94. package/lib/components/file-list-preview/icon/checked.svg +1 -0
  95. package/lib/components/file-list-preview/icon/close.svg +1 -0
  96. package/lib/components/file-list-preview/icon/del.svg +1 -0
  97. package/lib/components/file-list-preview/icon/download.svg +1 -0
  98. package/lib/components/file-list-preview/icon/download_pc.svg +1 -0
  99. package/lib/components/file-list-preview/icon/file.svg +1 -0
  100. package/lib/components/file-list-preview/icon/icon_errorMsg.svg +1 -0
  101. package/lib/components/file-list-preview/icon/icon_warning.svg +1 -0
  102. package/lib/components/file-list-preview/icon/preview.svg +1 -0
  103. package/lib/components/file-list-preview/icon/preview_pc.svg +1 -0
  104. package/lib/components/file-list-preview/icon/upload.svg +1 -0
  105. package/lib/components/file-list-preview/icon/view.svg +1 -0
  106. package/lib/components/file-list-preview/index.d.ts +21 -0
  107. package/lib/components/file-list-preview/index.js +254 -0
  108. package/lib/components/file-list-preview/index.scss +61 -0
  109. package/lib/components/file-list-preview/item.d.ts +18 -0
  110. package/lib/components/file-list-preview/item.js +376 -0
  111. package/lib/components/file-list-preview/item.scss +412 -0
  112. package/lib/components/submit-type/assets/bj1.png +0 -0
  113. package/lib/components/submit-type/assets/bj2.png +0 -0
  114. package/lib/components/submit-type/assets/bj3.png +0 -0
  115. package/lib/components/submit-type/assets/type1-3.png +0 -0
  116. package/lib/components/submit-type/assets/type2.png +0 -0
  117. package/lib/components/submit-type/assets/typeImg3.png +0 -0
  118. package/lib/components/submit-type/index.d.ts +10 -0
  119. package/lib/components/submit-type/index.js +75 -0
  120. package/lib/components/submit-type/index.scss +41 -0
  121. package/lib/index.d.ts +4 -0
  122. package/lib/index.js +5 -1
  123. package/lib/style.js +1 -0
  124. package/lowcode/file-list-preview/meta.ts +231 -0
  125. package/lowcode/submit-type/meta.ts +40 -0
  126. package/lowcode_es/file-list-preview/meta.d.ts +22 -0
  127. package/lowcode_es/file-list-preview/meta.js +213 -0
  128. package/lowcode_es/meta.js +4 -2
  129. package/lowcode_es/submit-type/meta.d.ts +22 -0
  130. package/lowcode_es/submit-type/meta.js +34 -0
  131. package/lowcode_lib/file-list-preview/meta.d.ts +22 -0
  132. package/lowcode_lib/file-list-preview/meta.js +218 -0
  133. package/lowcode_lib/meta.js +16 -14
  134. package/lowcode_lib/submit-type/meta.d.ts +22 -0
  135. package/lowcode_lib/submit-type/meta.js +39 -0
  136. package/package.json +3 -4
  137. package/build/docs/umi.f5d91602.js +0 -1
@@ -0,0 +1,412 @@
1
+
2
+ .file_item {
3
+ border-radius: 8px;
4
+ opacity: 1;
5
+ background: #F7F7F7;
6
+ padding: 12px;
7
+ width: 100%;
8
+
9
+ .file_name {
10
+ font-size: 14px;
11
+ color: #333333;
12
+ margin-bottom: 12px;
13
+ }
14
+
15
+ .file {
16
+ display: flex;
17
+ justify-content: space-between;
18
+ align-items: center;
19
+
20
+ .file_img {
21
+ width: 80px;
22
+ height: 80px;
23
+ border-radius: 4px;
24
+ position: relative;
25
+ border-radius: 8px;
26
+ position: relative;
27
+ display: flex;
28
+ justify-content: center;
29
+ align-items: center;
30
+ background: #fff;
31
+ font-size: 12px;
32
+ color: #666666;
33
+ flex-direction: column;
34
+
35
+ .filed {
36
+ display: flex;
37
+ justify-content: center;
38
+ align-items: center;
39
+ flex-direction: column;
40
+ width: 100%;
41
+ height: 100%;
42
+ border-radius: 4px;
43
+ }
44
+
45
+ .small_img {
46
+ width: 100%;
47
+ height: 100%;
48
+ border-radius: 4px;
49
+ }
50
+
51
+ .add {
52
+ display: flex;
53
+ flex-direction: column;
54
+ justify-content: center;
55
+ align-items: center;
56
+ border: 1px dashed #BFDAFF;
57
+ border-radius: 4px;
58
+ width: 100%;
59
+ height: 100%;
60
+ .add_icon {
61
+ width: 14px;
62
+ margin-left: -5px;
63
+ }
64
+ color: #1678FF;
65
+ }
66
+
67
+ .del {
68
+ position: absolute;
69
+ width: 16px;
70
+ height: 16px;
71
+ top: -6px;
72
+ right: -6px;
73
+ z-index: 3;
74
+ }
75
+
76
+ .error_msg {
77
+ position: absolute;
78
+ top: 30px;
79
+ right: 22px;
80
+ }
81
+
82
+ .mask {
83
+ // display: none !important;
84
+ border-radius: 8px;
85
+ position: absolute;
86
+ top: 0;
87
+ left: 0;
88
+ width: 100%;
89
+ height: 100%;
90
+ // opacity: 0.5;
91
+ background: #2222227d;
92
+ display: flex;
93
+ justify-content: center;
94
+ align-items: center;
95
+ color: #fff;
96
+ z-index: 3;
97
+
98
+ .checked {
99
+ display: flex;
100
+ align-items: center;
101
+
102
+ img {
103
+ width: 14px;
104
+ height: 14px;
105
+ margin-right: 3px;
106
+ }
107
+ }
108
+ }
109
+ }
110
+
111
+ .blocks {
112
+ margin-right: auto;
113
+ margin-left: 20px;
114
+ height: 80px;
115
+ display: flex;
116
+ flex-direction: column;
117
+ justify-content: space-between;
118
+ flex: 1;
119
+
120
+ .status {
121
+ display: flex;
122
+ gap: 12px;
123
+
124
+ .status_item {
125
+ width: 44px;
126
+ height: 20px;
127
+ border-radius: 4px;
128
+ background: #EFDEBD;
129
+ color: #C38A38;
130
+ font-size: 12px;
131
+ text-align: center;
132
+ line-height: 20px;
133
+ }
134
+ }
135
+
136
+ .btns {
137
+ display: flex;
138
+ gap: 24px;
139
+ font-size: 14px;
140
+ color: #1678FF;
141
+
142
+ .btn {
143
+ display: flex;
144
+ gap: 4px;
145
+ }
146
+ }
147
+ }
148
+
149
+
150
+ .operation {
151
+ display: flex;
152
+ flex-direction: column;
153
+ justify-content: space-between;
154
+ padding: 4px 0;
155
+ height: 80px;
156
+ }
157
+ .operation_pc {
158
+ display: flex;
159
+ flex-direction: row-reverse;
160
+ height: 80px;
161
+ align-items: end;
162
+ }
163
+ .btn {
164
+ display: flex;
165
+ flex-direction: row;
166
+ justify-content: end;
167
+
168
+ .img_btn {
169
+ margin-left: 8px;
170
+ width: 68px;
171
+ height: 26px;
172
+ border-radius: 4px;
173
+ opacity: 1;
174
+ box-sizing: border-box;
175
+ border: 1px solid #1678FF;
176
+ color: #1678FF;
177
+ font-size: 13px;
178
+ line-height: 26px;
179
+ text-align: center;
180
+ cursor: pointer;
181
+ }
182
+
183
+ }
184
+ .operation_btn {
185
+ cursor: pointer;
186
+ margin-left: 8px;
187
+ width: 68px;
188
+ height: 26px;
189
+ border-radius: 4px;
190
+ opacity: 1;
191
+ box-sizing: border-box;
192
+ background: linear-gradient(90deg, #73AEFF 0%, #1678FF 100%);
193
+ color: #fff;
194
+ font-size: 13px;
195
+ line-height: 26px;
196
+ text-align: center;
197
+ }
198
+ }
199
+
200
+ .file_item_bottom {
201
+ margin-top: 12px;
202
+ border-top: 1px solid #EAEAEA;
203
+ display: flex;
204
+ display: flex;
205
+ justify-content: space-evenly;
206
+ align-items: center;
207
+ padding-top: 12px;
208
+
209
+ .line {
210
+ width: 1px;
211
+ height: 20px;
212
+ background-color: #EAEAEA;
213
+ }
214
+
215
+ .icon_text {
216
+ display: flex;
217
+ align-items: center;
218
+ font-size: 14px;
219
+ color: #1678FF;
220
+
221
+ img {
222
+ width: 16px;
223
+ height: 11px;
224
+ margin-right: 5px;
225
+
226
+ }
227
+ }
228
+ }
229
+
230
+ .img_view {
231
+ position: absolute;
232
+ top: 0;
233
+ left: 0;
234
+ width: 100%;
235
+ height: 100%;
236
+ background-color: rgba(0, 0, 0, 0.5);
237
+ display: flex;
238
+ justify-content: center;
239
+ align-items: center;
240
+
241
+ .close {
242
+ width: 17px;
243
+ height: 17px;
244
+ color: #fff;
245
+ position: absolute;
246
+ top: 40px;
247
+ right: 20px;
248
+ }
249
+
250
+ .view {
251
+ width: 100%;
252
+ height: auto;
253
+ }
254
+ }
255
+
256
+ .material_lib {
257
+ width: 100%;
258
+ height: 100%;
259
+ position: fixed;
260
+ top: 0;
261
+ left: 0;
262
+ z-index: 88;
263
+ background-color: rgba(0, 0, 0, 0.5);
264
+
265
+ .material_lib_content {
266
+ width: 100%;
267
+ position: absolute;
268
+ bottom: 0;
269
+ left: 0;
270
+ background-color: #F5F5F5;
271
+ border-radius: 16px 16px 0px 0px;
272
+
273
+ .material_lib_title {
274
+ border-radius: 16px 16px 0px 0px;
275
+ background-color: #fff;
276
+ font-size: 16px;
277
+ color: #333333;
278
+ line-height: 54px;
279
+ text-align: center;
280
+ }
281
+
282
+ .tips {
283
+ padding: 12px;
284
+ background: #FFF6E8;
285
+ font-size: 14px;
286
+ line-height: 24px;
287
+ color: #F29655;
288
+ display: flex;
289
+ align-items: flex-start;
290
+
291
+ img {
292
+ width: 14px;
293
+ height: 14px;
294
+ margin-right: 8px;
295
+ margin-top: 5px;
296
+ }
297
+ }
298
+
299
+ .list {
300
+ padding: 12px 12px 0 12px;
301
+ width: 100%;
302
+ background-color: #F5F5F5;
303
+ // margin-bottom: 14px;
304
+ max-height: 300px;
305
+ overflow: auto;
306
+
307
+ .item {
308
+ padding: 16px 12px;
309
+ border-radius: 8px;
310
+ background: #FFF;
311
+ display: flex;
312
+ align-items: center;
313
+ color: #333333;
314
+ font-size: 14px;
315
+ width: 100%;
316
+ margin-bottom: 12px;
317
+
318
+ .preview_icon {
319
+ margin-left: auto;
320
+ display: flex;
321
+ align-items: center;
322
+ color: #1678FF;
323
+
324
+ img {
325
+ width: 16px;
326
+ margin-right: 4px;
327
+ }
328
+ }
329
+ }
330
+ }
331
+
332
+ .more {
333
+ color: #1678FF;
334
+ text-align: center;
335
+ height: 30px;
336
+ line-height: 30px;
337
+ margin-bottom: 70px;
338
+ background-color: #F5F5F5;
339
+ }
340
+
341
+ .bottom_btn {
342
+ background-color: #fff;
343
+ height: 64px;
344
+ display: flex;
345
+ align-items: center;
346
+ justify-content: space-around;
347
+ position: fixed;
348
+ bottom: 0;
349
+ left: 0;
350
+ right: 0;
351
+
352
+ .btn {
353
+ width: 169px;
354
+ height: 40px;
355
+ border-radius: 50px;
356
+ font-size: 16px;
357
+ line-height: 40px;
358
+ text-align: center;
359
+ }
360
+
361
+ .cancel {
362
+ background-color: #fff;
363
+ border: 1px solid #E7E7E7;
364
+ color: #333;
365
+ }
366
+
367
+ .ok {
368
+ background: linear-gradient(90deg, #73AEFF 0%, #1678FF 100%);
369
+ color: #fff;
370
+ }
371
+ }
372
+ }
373
+ }
374
+
375
+ .preview {
376
+ width: 100%;
377
+ height: 100%;
378
+ position: fixed;
379
+ top: 0;
380
+ left: 0;
381
+ background: rgba(0, 0, 0, 0.5);
382
+ display: flex;
383
+ justify-content: center;
384
+ align-items: center;
385
+ z-index: 99;
386
+ .close {
387
+ position: absolute;
388
+ top: 20px;
389
+ right: 20px;
390
+ }
391
+ }
392
+
393
+ .sealPage {
394
+ position: fixed;
395
+ top: 0;
396
+ left: 0;
397
+ width: 100%;
398
+ height: 100%;
399
+ z-index: 99;
400
+ background: rgba(0, 0, 0, 0.5);
401
+ }
402
+ .sign_page {
403
+ position: fixed;
404
+ top: 0;
405
+ left: 0;
406
+ width: 100%;
407
+ height: 100%;
408
+ z-index: 99;
409
+ background: rgba(0, 0, 0, 0.5);
410
+ }
411
+
412
+ }
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import './index.scss';
3
+ export interface SubmitTypeProps {
4
+ /**
5
+ * 类型
6
+ */
7
+ style?: object;
8
+ }
9
+ declare const SubmitType: React.FC<SubmitTypeProps>;
10
+ export default SubmitType;
@@ -0,0 +1,69 @@
1
+ import * as React from 'react';
2
+ import bg1 from "./assets/bj1.png";
3
+ import bg2 from "./assets/bj2.png";
4
+ import bg3 from "./assets/bj3.png";
5
+ import typeImg1 from "./assets/type1-3.png";
6
+ import typeImg2 from "./assets/type2.png";
7
+ import typeImg3 from "./assets/typeImg3.png";
8
+ import "./index.scss";
9
+ var SubmitType = function SubmitType(_ref) {
10
+ var _ref$style = _ref.style,
11
+ style = _ref$style === void 0 ? {} : _ref$style;
12
+ return /*#__PURE__*/React.createElement("div", {
13
+ className: "submit_type",
14
+ style: style
15
+ }, /*#__PURE__*/React.createElement("div", {
16
+ className: "type",
17
+ style: {
18
+ background: "url(" + bg1 + ") no-repeat center / cover"
19
+ }
20
+ }, /*#__PURE__*/React.createElement("span", null, "\u65B9\u5F0F\u4E00"), /*#__PURE__*/React.createElement("img", {
21
+ className: "type_img",
22
+ src: typeImg1,
23
+ alt: ""
24
+ }), /*#__PURE__*/React.createElement("div", {
25
+ className: "desc"
26
+ }, /*#__PURE__*/React.createElement("p", {
27
+ className: "type_name"
28
+ }, "\u73B0\u573A\u63D0\u4EA4"), /*#__PURE__*/React.createElement("p", {
29
+ className: "text"
30
+ }, "\u524D\u5F80\u529E\u516C\u5927\u5385\uFF0C\u5373\u65F6\u529E\u7406"))), /*#__PURE__*/React.createElement("div", {
31
+ className: "type",
32
+ style: {
33
+ background: "url(" + bg2 + ") no-repeat center / cover"
34
+ }
35
+ }, /*#__PURE__*/React.createElement("span", null, "\u65B9\u5F0F\u4E8C"), /*#__PURE__*/React.createElement("img", {
36
+ className: "type_img",
37
+ src: typeImg2,
38
+ alt: ""
39
+ }), /*#__PURE__*/React.createElement("div", {
40
+ className: "desc"
41
+ }, /*#__PURE__*/React.createElement("p", {
42
+ className: "type_name",
43
+ style: {
44
+ color: '#07C0E5'
45
+ }
46
+ }, "\u7EBF\u4E0A\u63D0\u4EA4"), /*#__PURE__*/React.createElement("p", {
47
+ className: "text"
48
+ }, "\u626B\u7801\u8FDB\u5165\u7CFB\u7EDF\uFF0C\u5FEB\u901F\u4E0A\u4F20"))), /*#__PURE__*/React.createElement("div", {
49
+ className: "type",
50
+ style: {
51
+ background: "url(" + bg3 + ") no-repeat center / cover"
52
+ }
53
+ }, /*#__PURE__*/React.createElement("span", null, "\u65B9\u5F0F\u4E09"), /*#__PURE__*/React.createElement("img", {
54
+ className: "type_img",
55
+ src: typeImg3,
56
+ alt: ""
57
+ }), /*#__PURE__*/React.createElement("div", {
58
+ className: "desc"
59
+ }, /*#__PURE__*/React.createElement("p", {
60
+ className: "type_name",
61
+ style: {
62
+ color: '#367BDB'
63
+ }
64
+ }, "\u7EBF\u4E0A\u63D0\u4EA4"), /*#__PURE__*/React.createElement("p", {
65
+ className: "text"
66
+ }, "\u524D\u5F80\u529E\u516C\u5927\u5385\uFF0C\u5373\u65F6\u529E\u7406"))));
67
+ };
68
+ SubmitType.displayName = 'SubmitType';
69
+ export default SubmitType;
@@ -0,0 +1,41 @@
1
+ .submit_type {
2
+ display: flex;
3
+ flex-direction: column;
4
+ gap: 12px;
5
+ position: relative;
6
+
7
+ .type {
8
+ height: 190px;
9
+ display: flex;
10
+ align-items: center;
11
+ justify-content: center;
12
+ gap: 4px;
13
+ position: relative;
14
+
15
+ span {
16
+ position: absolute;
17
+ top: 9%;
18
+ right: 11%;
19
+ font-size: 16px;
20
+ font-weight: 500;
21
+ color: #FFFFFF;
22
+ }
23
+
24
+ .type_img {
25
+ width: 121px;
26
+ height: 90px;
27
+ }
28
+
29
+ .type_name {
30
+ font-size: 16px;
31
+ font-weight: 500;
32
+ color: #E88036;
33
+ }
34
+
35
+ .text {
36
+ font-size: 14px;
37
+ color: #222222;
38
+ margin-top: 8px;
39
+ }
40
+ }
41
+ }
package/es/index.d.ts CHANGED
@@ -41,5 +41,9 @@ export type { PrintButtonProps } from './components/print';
41
41
  export { default as PrintButton } from './components/print';
42
42
  export type { FileListProps } from './components/file-list';
43
43
  export { default as FileList } from './components/file-list';
44
+ export type { SubmitTypeProps } from './components/submit-type';
45
+ export { default as SubmitType } from './components/submit-type';
46
+ export type { FileListPreviewProps } from './components/file-list-preview';
47
+ export { default as FileListPreview } from './components/file-list-preview';
44
48
  declare const bizCssPrefix = "bizpack";
45
49
  export { bizCssPrefix };
package/es/index.js CHANGED
@@ -26,5 +26,7 @@ export { default as AddressCascader } from "./components/address-cascade";
26
26
  export { default as PreviewMaterial } from "./components/preview-material";
27
27
  export { default as PrintButton } from "./components/print";
28
28
  export { default as FileList } from "./components/file-list";
29
+ export { default as SubmitType } from "./components/submit-type";
30
+ export { default as FileListPreview } from "./components/file-list-preview";
29
31
  var bizCssPrefix = 'bizpack';
30
32
  export { bizCssPrefix };
package/es/style.js CHANGED
@@ -3,4 +3,5 @@ import '@alifd/next/es/message/style';
3
3
  import '@alifd/next/es/radio/style';
4
4
  import '@alifd/next/es/checkbox/style';
5
5
  import 'antd/es/cascader/style';
6
+ import '@alifd/next/es/balloon/style';
6
7
  import './index.scss';
@@ -1,87 +1,14 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
3
  exports.__esModule = true;
5
4
  exports.dataURLtoBlob = dataURLtoBlob;
6
5
  exports.getBlob = getBlob;
7
6
  exports.getFileExtension = getFileExtension;
8
- exports.pdfToImageUrl = exports.initFormat = void 0;
7
+ exports.initFormat = void 0;
9
8
  exports.upload = upload;
10
9
  exports.uploadFilePromise = uploadFilePromise;
11
- var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
12
- var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
13
- var pdfjsLib = _interopRequireWildcard(require("pdfjs-dist/build/pdf"));
14
- require("pdfjs-dist/build/pdf.worker.entry");
15
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
16
10
  // import apiConfig from '@/config/api.cofig'
17
11
 
18
- // utils/pdfToImage.js
19
-
20
- // 配置 worker(必须!)
21
- if (typeof window !== 'undefined') {
22
- pdfjsLib.GlobalWorkerOptions.workerSrc = require('pdfjs-dist/build/pdf.worker.entry');
23
- }
24
-
25
- /**
26
- * 将 PDF URL 转换为图片 URL
27
- * @param {string} pdfUrl - PDF 文件的 URL
28
- * @param {number} [page=1] - 页码,默认第1页
29
- * @param {number} [scale=0.5] - 缩放比例,默认0.5
30
- * @param {string} [imageFormat='image/jpeg'] - 图片格式
31
- * @param {number} [imageQuality=0.8] - 图片质量(0-1)
32
- * @returns {Promise<string>} 返回图片的 Data URL
33
- */
34
- var pdfToImageUrl = exports.pdfToImageUrl = /*#__PURE__*/function () {
35
- var _ref = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(pdfUrl, scale) {
36
- return _regenerator["default"].wrap(function (_context) {
37
- while (1) switch (_context.prev = _context.next) {
38
- case 0:
39
- if (scale === void 0) {
40
- scale = 0.5;
41
- }
42
- console.log('pdfToImageUrl----', pdfUrl);
43
- pdfjsLib.getDocument(pdfUrl).promise.then(function (pdf) {
44
- console.log('获取PDF文件成功', pdf);
45
- // 获取第一页
46
- return pdf.getPage(1);
47
- }).then(function (page) {
48
- console.log('获取PDF页面成功', page);
49
- // 设置缩略图的缩放比例 (0.5 表示缩小到一半尺寸)
50
- var viewport = page.getViewport({
51
- scale: scale
52
- });
53
-
54
- // 创建Canvas元素
55
- var canvas = document.createElement('canvas');
56
- var context = canvas.getContext('2d');
57
- canvas.height = viewport.height;
58
- canvas.width = viewport.width;
59
-
60
- // 将PDF页面渲染到Canvas上
61
- var renderContext = {
62
- canvasContext: context,
63
- viewport: viewport
64
- };
65
- page.render(renderContext).promise.then(function () {
66
- // 将Canvas转换为图片URL
67
- var thumbnail = canvas.toDataURL();
68
- console.log('获取图片成功', thumbnail);
69
- return thumbnail;
70
- });
71
- })["catch"](function (error) {
72
- console.error('Error generating thumbnail:', error);
73
- });
74
- case 1:
75
- case "end":
76
- return _context.stop();
77
- }
78
- }, _callee);
79
- }));
80
- return function pdfToImageUrl(_x, _x2) {
81
- return _ref.apply(this, arguments);
82
- };
83
- }();
84
-
85
12
  // 下载文件
86
13
  function getBlob(url) {
87
14
  return new Promise(function (resolve, reject) {