knt-shared 1.10.7 → 1.10.8
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/Form/componentMap.d.ts +5 -15
- package/dist/components/Form/componentMap.d.ts.map +1 -1
- package/dist/components/Table/components/componentMap.d.ts +5 -15
- package/dist/components/Table/components/componentMap.d.ts.map +1 -1
- package/dist/components/Upload/BasicUpload.vue.d.ts +2 -6
- package/dist/components/Upload/BasicUpload.vue.d.ts.map +1 -1
- package/dist/components/Upload/components/VideoPreview.vue.d.ts +2 -7
- package/dist/components/Upload/components/VideoPreview.vue.d.ts.map +1 -1
- package/dist/components/Upload/components/VideoPreviewModal.vue.d.ts +2 -7
- package/dist/components/Upload/components/VideoPreviewModal.vue.d.ts.map +1 -1
- package/dist/components/Upload/types.d.ts +1 -5
- package/dist/components/Upload/types.d.ts.map +1 -1
- package/dist/components/Upload/useUpload.d.ts.map +1 -1
- package/dist/index.cjs.js +79 -81
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +79 -81
- package/dist/index.esm.js.map +1 -1
- package/dist/style.css +67 -67
- package/package.json +1 -1
package/dist/style.css
CHANGED
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
gap: 8px;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
.video-preview[data-v-
|
|
134
|
+
.video-preview[data-v-d4fd2c00] {
|
|
135
135
|
width: 100%;
|
|
136
136
|
max-width: 100%;
|
|
137
137
|
background: #000;
|
|
@@ -139,25 +139,25 @@
|
|
|
139
139
|
overflow: hidden;
|
|
140
140
|
position: relative;
|
|
141
141
|
}
|
|
142
|
-
.video-preview.fullscreen[data-v-
|
|
142
|
+
.video-preview.fullscreen[data-v-d4fd2c00] {
|
|
143
143
|
border-radius: 0;
|
|
144
144
|
}
|
|
145
|
-
.video-container[data-v-
|
|
145
|
+
.video-container[data-v-d4fd2c00] {
|
|
146
146
|
position: relative;
|
|
147
147
|
width: 100%;
|
|
148
148
|
background: #000;
|
|
149
149
|
cursor: pointer;
|
|
150
150
|
}
|
|
151
|
-
video[data-v-
|
|
151
|
+
video[data-v-d4fd2c00] {
|
|
152
152
|
width: 100%;
|
|
153
153
|
height: auto;
|
|
154
154
|
display: block;
|
|
155
155
|
max-height: 70vh;
|
|
156
156
|
}
|
|
157
|
-
.fullscreen video[data-v-
|
|
157
|
+
.fullscreen video[data-v-d4fd2c00] {
|
|
158
158
|
max-height: 100vh;
|
|
159
159
|
}
|
|
160
|
-
.play-overlay[data-v-
|
|
160
|
+
.play-overlay[data-v-d4fd2c00] {
|
|
161
161
|
position: absolute;
|
|
162
162
|
top: 0;
|
|
163
163
|
left: 0;
|
|
@@ -169,7 +169,7 @@ video[data-v-b982f870] {
|
|
|
169
169
|
background: rgba(0, 0, 0, 0.3);
|
|
170
170
|
transition: opacity 0.3s;
|
|
171
171
|
}
|
|
172
|
-
.play-button[data-v-
|
|
172
|
+
.play-button[data-v-d4fd2c00] {
|
|
173
173
|
width: 80px;
|
|
174
174
|
height: 80px;
|
|
175
175
|
border-radius: 50%;
|
|
@@ -180,10 +180,10 @@ video[data-v-b982f870] {
|
|
|
180
180
|
color: #000;
|
|
181
181
|
transition: transform 0.2s;
|
|
182
182
|
}
|
|
183
|
-
.play-button[data-v-
|
|
183
|
+
.play-button[data-v-d4fd2c00]:hover {
|
|
184
184
|
transform: scale(1.1);
|
|
185
185
|
}
|
|
186
|
-
.loading-overlay[data-v-
|
|
186
|
+
.loading-overlay[data-v-d4fd2c00] {
|
|
187
187
|
position: absolute;
|
|
188
188
|
top: 0;
|
|
189
189
|
left: 0;
|
|
@@ -194,24 +194,24 @@ video[data-v-b982f870] {
|
|
|
194
194
|
justify-content: center;
|
|
195
195
|
background: rgba(0, 0, 0, 0.5);
|
|
196
196
|
}
|
|
197
|
-
.video-controls[data-v-
|
|
197
|
+
.video-controls[data-v-d4fd2c00] {
|
|
198
198
|
background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
|
|
199
199
|
padding: 12px;
|
|
200
200
|
position: relative;
|
|
201
201
|
}
|
|
202
|
-
.progress-bar-container[data-v-
|
|
202
|
+
.progress-bar-container[data-v-d4fd2c00] {
|
|
203
203
|
padding: 8px 0;
|
|
204
204
|
cursor: pointer;
|
|
205
205
|
margin-bottom: 8px;
|
|
206
206
|
}
|
|
207
|
-
.progress-bar[data-v-
|
|
207
|
+
.progress-bar[data-v-d4fd2c00] {
|
|
208
208
|
height: 4px;
|
|
209
209
|
background: rgba(255, 255, 255, 0.3);
|
|
210
210
|
border-radius: 2px;
|
|
211
211
|
position: relative;
|
|
212
212
|
overflow: visible;
|
|
213
213
|
}
|
|
214
|
-
.progress-bar-loaded[data-v-
|
|
214
|
+
.progress-bar-loaded[data-v-d4fd2c00] {
|
|
215
215
|
position: absolute;
|
|
216
216
|
top: 0;
|
|
217
217
|
left: 0;
|
|
@@ -220,7 +220,7 @@ video[data-v-b982f870] {
|
|
|
220
220
|
border-radius: 2px;
|
|
221
221
|
transition: width 0.2s;
|
|
222
222
|
}
|
|
223
|
-
.progress-bar-played[data-v-
|
|
223
|
+
.progress-bar-played[data-v-d4fd2c00] {
|
|
224
224
|
position: absolute;
|
|
225
225
|
top: 0;
|
|
226
226
|
left: 0;
|
|
@@ -229,7 +229,7 @@ video[data-v-b982f870] {
|
|
|
229
229
|
border-radius: 2px;
|
|
230
230
|
transition: width 0.1s;
|
|
231
231
|
}
|
|
232
|
-
.progress-bar-handle[data-v-
|
|
232
|
+
.progress-bar-handle[data-v-d4fd2c00] {
|
|
233
233
|
position: absolute;
|
|
234
234
|
top: 50%;
|
|
235
235
|
width: 12px;
|
|
@@ -241,21 +241,21 @@ video[data-v-b982f870] {
|
|
|
241
241
|
opacity: 0;
|
|
242
242
|
transition: opacity 0.2s;
|
|
243
243
|
}
|
|
244
|
-
.progress-bar-container:hover .progress-bar-handle[data-v-
|
|
244
|
+
.progress-bar-container:hover .progress-bar-handle[data-v-d4fd2c00] {
|
|
245
245
|
opacity: 1;
|
|
246
246
|
}
|
|
247
|
-
.controls-bottom[data-v-
|
|
247
|
+
.controls-bottom[data-v-d4fd2c00] {
|
|
248
248
|
display: flex;
|
|
249
249
|
align-items: center;
|
|
250
250
|
justify-content: space-between;
|
|
251
251
|
}
|
|
252
|
-
.controls-left[data-v-
|
|
253
|
-
.controls-right[data-v-
|
|
252
|
+
.controls-left[data-v-d4fd2c00],
|
|
253
|
+
.controls-right[data-v-d4fd2c00] {
|
|
254
254
|
display: flex;
|
|
255
255
|
align-items: center;
|
|
256
256
|
gap: 8px;
|
|
257
257
|
}
|
|
258
|
-
.control-button[data-v-
|
|
258
|
+
.control-button[data-v-d4fd2c00] {
|
|
259
259
|
background: transparent;
|
|
260
260
|
border: none;
|
|
261
261
|
color: #fff;
|
|
@@ -270,15 +270,15 @@ video[data-v-b982f870] {
|
|
|
270
270
|
min-width: 32px;
|
|
271
271
|
height: 32px;
|
|
272
272
|
}
|
|
273
|
-
.control-button[data-v-
|
|
273
|
+
.control-button[data-v-d4fd2c00]:hover {
|
|
274
274
|
background: rgba(255, 255, 255, 0.1);
|
|
275
275
|
}
|
|
276
|
-
.volume-control[data-v-
|
|
276
|
+
.volume-control[data-v-d4fd2c00] {
|
|
277
277
|
position: relative;
|
|
278
278
|
display: flex;
|
|
279
279
|
align-items: center;
|
|
280
280
|
}
|
|
281
|
-
.volume-slider-container[data-v-
|
|
281
|
+
.volume-slider-container[data-v-d4fd2c00] {
|
|
282
282
|
position: absolute;
|
|
283
283
|
bottom: 100%;
|
|
284
284
|
left: 50%;
|
|
@@ -288,7 +288,7 @@ video[data-v-b982f870] {
|
|
|
288
288
|
border-radius: 4px;
|
|
289
289
|
margin-bottom: 8px;
|
|
290
290
|
}
|
|
291
|
-
.volume-slider[data-v-
|
|
291
|
+
.volume-slider[data-v-d4fd2c00] {
|
|
292
292
|
writing-mode: vertical-lr;
|
|
293
293
|
direction: rtl;
|
|
294
294
|
width: 4px;
|
|
@@ -296,7 +296,7 @@ video[data-v-b982f870] {
|
|
|
296
296
|
padding: 0;
|
|
297
297
|
margin: 0;
|
|
298
298
|
}
|
|
299
|
-
.volume-slider[data-v-
|
|
299
|
+
.volume-slider[data-v-d4fd2c00]::-webkit-slider-thumb {
|
|
300
300
|
-webkit-appearance: none;
|
|
301
301
|
appearance: none;
|
|
302
302
|
width: 12px;
|
|
@@ -305,7 +305,7 @@ video[data-v-b982f870] {
|
|
|
305
305
|
border-radius: 50%;
|
|
306
306
|
cursor: pointer;
|
|
307
307
|
}
|
|
308
|
-
.volume-slider[data-v-
|
|
308
|
+
.volume-slider[data-v-d4fd2c00]::-moz-range-thumb {
|
|
309
309
|
width: 12px;
|
|
310
310
|
height: 12px;
|
|
311
311
|
background: #fff;
|
|
@@ -313,7 +313,7 @@ video[data-v-b982f870] {
|
|
|
313
313
|
cursor: pointer;
|
|
314
314
|
border: none;
|
|
315
315
|
}
|
|
316
|
-
.time-display[data-v-
|
|
316
|
+
.time-display[data-v-d4fd2c00] {
|
|
317
317
|
color: #fff;
|
|
318
318
|
font-size: 13px;
|
|
319
319
|
font-variant-numeric: tabular-nums;
|
|
@@ -323,15 +323,15 @@ video[data-v-b982f870] {
|
|
|
323
323
|
|
|
324
324
|
/* 响应式 */
|
|
325
325
|
@media (max-width: 768px) {
|
|
326
|
-
.play-button[data-v-
|
|
326
|
+
.play-button[data-v-d4fd2c00] {
|
|
327
327
|
width: 60px;
|
|
328
328
|
height: 60px;
|
|
329
329
|
}
|
|
330
|
-
.control-button[data-v-
|
|
330
|
+
.control-button[data-v-d4fd2c00] {
|
|
331
331
|
min-width: 28px;
|
|
332
332
|
height: 28px;
|
|
333
333
|
}
|
|
334
|
-
.time-display[data-v-
|
|
334
|
+
.time-display[data-v-d4fd2c00] {
|
|
335
335
|
font-size: 12px;
|
|
336
336
|
}
|
|
337
337
|
}
|
|
@@ -350,13 +350,13 @@ video[data-v-b982f870] {
|
|
|
350
350
|
overflow: hidden;
|
|
351
351
|
}
|
|
352
352
|
|
|
353
|
-
.video-modal-title[data-v-
|
|
353
|
+
.video-modal-title[data-v-db151e2d] {
|
|
354
354
|
display: flex;
|
|
355
355
|
align-items: center;
|
|
356
356
|
justify-content: space-between;
|
|
357
357
|
width: 100%;
|
|
358
358
|
}
|
|
359
|
-
.file-name[data-v-
|
|
359
|
+
.file-name[data-v-db151e2d] {
|
|
360
360
|
font-size: 16px;
|
|
361
361
|
font-weight: 500;
|
|
362
362
|
color: var(--color-text-1);
|
|
@@ -365,26 +365,26 @@ video[data-v-b982f870] {
|
|
|
365
365
|
white-space: nowrap;
|
|
366
366
|
max-width: 600px;
|
|
367
367
|
}
|
|
368
|
-
.video-modal-content[data-v-
|
|
368
|
+
.video-modal-content[data-v-db151e2d] {
|
|
369
369
|
width: 100%;
|
|
370
370
|
min-width: 400px;
|
|
371
371
|
max-width: 90vw;
|
|
372
372
|
background: #000;
|
|
373
373
|
}
|
|
374
374
|
@media (max-width: 768px) {
|
|
375
|
-
.video-modal-content[data-v-
|
|
375
|
+
.video-modal-content[data-v-db151e2d] {
|
|
376
376
|
min-width: auto;
|
|
377
377
|
}
|
|
378
|
-
.file-name[data-v-
|
|
378
|
+
.file-name[data-v-db151e2d] {
|
|
379
379
|
font-size: 14px;
|
|
380
380
|
max-width: 250px;
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
383
|
|
|
384
|
-
.basic-upload[data-v-
|
|
384
|
+
.basic-upload[data-v-d256c7da] {
|
|
385
385
|
width: 100%;
|
|
386
386
|
}
|
|
387
|
-
.upload-empty-state[data-v-
|
|
387
|
+
.upload-empty-state[data-v-d256c7da] {
|
|
388
388
|
display: inline-flex;
|
|
389
389
|
align-items: center;
|
|
390
390
|
min-width: 80px;
|
|
@@ -393,14 +393,14 @@ video[data-v-b982f870] {
|
|
|
393
393
|
color: var(--color-text-3);
|
|
394
394
|
font-size: 14px;
|
|
395
395
|
}
|
|
396
|
-
.sortable-upload-container[data-v-
|
|
396
|
+
.sortable-upload-container[data-v-d256c7da] {
|
|
397
397
|
width: 100%;
|
|
398
398
|
display: flex;
|
|
399
399
|
flex-wrap: wrap;
|
|
400
400
|
gap: 8px;
|
|
401
401
|
align-items: flex-start;
|
|
402
402
|
}
|
|
403
|
-
.upload-card-button[data-v-
|
|
403
|
+
.upload-card-button[data-v-d256c7da] {
|
|
404
404
|
display: flex;
|
|
405
405
|
flex-direction: column;
|
|
406
406
|
align-items: center;
|
|
@@ -415,42 +415,42 @@ video[data-v-b982f870] {
|
|
|
415
415
|
border-color: #e5e7eb;
|
|
416
416
|
border-radius: 6px;
|
|
417
417
|
}
|
|
418
|
-
.upload-card-button .arco-icon[data-v-
|
|
418
|
+
.upload-card-button .arco-icon[data-v-d256c7da] {
|
|
419
419
|
font-size: 24px;
|
|
420
420
|
margin-bottom: 8px;
|
|
421
421
|
}
|
|
422
|
-
.upload-text[data-v-
|
|
422
|
+
.upload-text[data-v-d256c7da] {
|
|
423
423
|
margin-top: 8px;
|
|
424
424
|
font-size: 12px;
|
|
425
425
|
}
|
|
426
|
-
.upload-tip[data-v-
|
|
426
|
+
.upload-tip[data-v-d256c7da] {
|
|
427
427
|
color: var(--color-text-3);
|
|
428
428
|
font-size: 12px;
|
|
429
429
|
line-height: 1.5;
|
|
430
430
|
margin-top: 8px;
|
|
431
431
|
}
|
|
432
|
-
.sortable-tip[data-v-
|
|
432
|
+
.sortable-tip[data-v-d256c7da] {
|
|
433
433
|
width: 100%;
|
|
434
434
|
margin-top: 0;
|
|
435
435
|
}
|
|
436
|
-
[data-v-
|
|
437
|
-
width: var(--
|
|
438
|
-
height: var(--
|
|
439
|
-
line-height: var(--
|
|
436
|
+
[data-v-d256c7da] .arco-upload-list-picture {
|
|
437
|
+
width: var(--v0a277aea) !important;
|
|
438
|
+
height: var(--v0a277aea) !important;
|
|
439
|
+
line-height: var(--v0a277aea) !important;
|
|
440
440
|
}
|
|
441
|
-
[data-v-
|
|
441
|
+
[data-v-d256c7da] .arco-upload-list-picture img {
|
|
442
442
|
width: 100%;
|
|
443
443
|
height: 100%;
|
|
444
444
|
object-fit: cover;
|
|
445
445
|
}
|
|
446
446
|
|
|
447
447
|
/* 视频文件占位处理 - 隐藏破损的图片 */
|
|
448
|
-
[data-v-
|
|
448
|
+
[data-v-d256c7da] .arco-upload-list-picture img[src*='.mp4'],[data-v-d256c7da] .arco-upload-list-picture img[src*='.avi'],[data-v-d256c7da] .arco-upload-list-picture img[src*='.mov'],[data-v-d256c7da] .arco-upload-list-picture img[src*='.wmv'],[data-v-d256c7da] .arco-upload-list-picture img[src*='.flv'],[data-v-d256c7da] .arco-upload-list-picture img[src*='.webm'],[data-v-d256c7da] .arco-upload-list-picture img[src*='.mkv'],[data-v-d256c7da] .arco-upload-list-picture img[src*='.m4v'] {
|
|
449
449
|
opacity: 0;
|
|
450
450
|
}
|
|
451
451
|
|
|
452
452
|
/* 视频文件容器添加背景和图标 - 使用 :has() 选择器(现代浏览器) */
|
|
453
|
-
[data-v-
|
|
453
|
+
[data-v-d256c7da] .arco-upload-list-picture:has(img[src*=".mp4"]) .arco-upload-list-picture-img,[data-v-d256c7da] .arco-upload-list-picture:has(img[src*=".avi"]) .arco-upload-list-picture-img,[data-v-d256c7da] .arco-upload-list-picture:has(img[src*=".mov"]) .arco-upload-list-picture-img,[data-v-d256c7da] .arco-upload-list-picture:has(img[src*=".wmv"]) .arco-upload-list-picture-img,[data-v-d256c7da] .arco-upload-list-picture:has(img[src*=".flv"]) .arco-upload-list-picture-img,[data-v-d256c7da] .arco-upload-list-picture:has(img[src*=".webm"]) .arco-upload-list-picture-img,[data-v-d256c7da] .arco-upload-list-picture:has(img[src*=".mkv"]) .arco-upload-list-picture-img,[data-v-d256c7da] .arco-upload-list-picture:has(img[src*=".m4v"]) .arco-upload-list-picture-img,[data-v-d256c7da] .arco-upload-list-picture.is-video-file .arco-upload-list-picture-img {
|
|
454
454
|
position: relative;
|
|
455
455
|
display: flex;
|
|
456
456
|
align-items: center;
|
|
@@ -459,23 +459,23 @@ video[data-v-b982f870] {
|
|
|
459
459
|
}
|
|
460
460
|
|
|
461
461
|
/* 视频图标 */
|
|
462
|
-
[data-v-
|
|
462
|
+
[data-v-d256c7da]
|
|
463
463
|
.arco-upload-list-picture:has(img[src*='.mp4']) .arco-upload-list-picture-img
|
|
464
|
-
::before,[data-v-
|
|
464
|
+
::before,[data-v-d256c7da]
|
|
465
465
|
.arco-upload-list-picture:has(img[src*='.avi']) .arco-upload-list-picture-img
|
|
466
|
-
::before,[data-v-
|
|
466
|
+
::before,[data-v-d256c7da]
|
|
467
467
|
.arco-upload-list-picture:has(img[src*='.mov']) .arco-upload-list-picture-img
|
|
468
|
-
::before,[data-v-
|
|
468
|
+
::before,[data-v-d256c7da]
|
|
469
469
|
.arco-upload-list-picture:has(img[src*='.wmv']) .arco-upload-list-picture-img
|
|
470
|
-
::before,[data-v-
|
|
470
|
+
::before,[data-v-d256c7da]
|
|
471
471
|
.arco-upload-list-picture:has(img[src*='.flv']) .arco-upload-list-picture-img
|
|
472
|
-
::before,[data-v-
|
|
472
|
+
::before,[data-v-d256c7da]
|
|
473
473
|
.arco-upload-list-picture:has(img[src*='.webm']) .arco-upload-list-picture-img
|
|
474
|
-
::before,[data-v-
|
|
474
|
+
::before,[data-v-d256c7da]
|
|
475
475
|
.arco-upload-list-picture:has(img[src*='.mkv']) .arco-upload-list-picture-img
|
|
476
|
-
::before,[data-v-
|
|
476
|
+
::before,[data-v-d256c7da]
|
|
477
477
|
.arco-upload-list-picture:has(img[src*='.m4v']) .arco-upload-list-picture-img
|
|
478
|
-
::before,[data-v-
|
|
478
|
+
::before,[data-v-d256c7da]
|
|
479
479
|
.arco-upload-list-picture.is-video-file .arco-upload-list-picture-img
|
|
480
480
|
::before {
|
|
481
481
|
content: '▶';
|
|
@@ -487,28 +487,28 @@ video[data-v-b982f870] {
|
|
|
487
487
|
}
|
|
488
488
|
|
|
489
489
|
/* 遮罩层 - 修复操作图标位置 */
|
|
490
|
-
[data-v-
|
|
491
|
-
line-height: var(--
|
|
490
|
+
[data-v-d256c7da] .arco-upload-list-picture-mask {
|
|
491
|
+
line-height: var(--v0a277aea) !important;
|
|
492
492
|
}
|
|
493
493
|
|
|
494
494
|
/* 操作按钮容器 - 根据尺寸调整图标大小 */
|
|
495
|
-
[data-v-
|
|
496
|
-
font-size: calc(var(--
|
|
495
|
+
[data-v-d256c7da] .arco-upload-list-picture-operation {
|
|
496
|
+
font-size: calc(var(--v0a277aea) / 80 * 14px) !important;
|
|
497
497
|
}
|
|
498
498
|
|
|
499
499
|
/* 错误提示图标 - 根据尺寸调整图标大小 */
|
|
500
|
-
[data-v-
|
|
501
|
-
font-size: calc(var(--
|
|
500
|
+
[data-v-d256c7da] .arco-upload-list-picture-error-tip .arco-upload-icon-error {
|
|
501
|
+
font-size: calc(var(--v0a277aea) / 80 * 26px) !important;
|
|
502
502
|
}
|
|
503
503
|
|
|
504
504
|
/* 行内视频预览 */
|
|
505
|
-
.inline-video-preview[data-v-
|
|
505
|
+
.inline-video-preview[data-v-d256c7da] {
|
|
506
506
|
margin-top: 16px;
|
|
507
507
|
border: 1px solid var(--color-border-2);
|
|
508
508
|
border-radius: 4px;
|
|
509
509
|
overflow: hidden;
|
|
510
510
|
}
|
|
511
|
-
.close-inline-preview[data-v-
|
|
511
|
+
.close-inline-preview[data-v-d256c7da] {
|
|
512
512
|
width: 100%;
|
|
513
513
|
border-radius: 0;
|
|
514
514
|
}
|