@jari-ace/element-plus-component 0.5.0 → 0.5.1
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/autoComplete/JaAutoComplete.vue.d.ts +24 -24
- package/dist/components/flowShell/FlowFormShell.vue.d.ts +0 -3
- package/dist/components/flowShell/FlowFormShell.vue.d.ts.map +1 -1
- package/dist/components/flowShell/FlowFormShell.vue.js +4 -4
- package/dist/components/flowShell/FlowFormShell.vue.js.map +1 -1
- package/dist/components/formItem/JaFormItem.vue.d.ts +2 -2
- package/dist/components/input/JaInput.vue.d.ts +14 -14
- package/dist/components/inputI18n/InputI18n.vue.d.ts.map +1 -1
- package/dist/components/inputI18n/InputI18n.vue.js +2 -0
- package/dist/components/inputI18n/InputI18n.vue.js.map +1 -1
- package/dist/components/inputI18n/JaInputI18n.vue.d.ts +70 -70
- package/dist/components/inputNumber/JaInputNumber.vue.d.ts +18 -18
- package/dist/components/scrollbar/Scrollbar.vue.d.ts +10 -10
- package/dist/components/select/JaSelect.vue.d.ts +70 -70
- package/dist/components/switch/JaSwitch.vue.d.ts +2 -2
- package/dist/components/upload/JaUploader.vue.d.ts +16 -4
- package/dist/components/upload/JaUploader.vue.d.ts.map +1 -1
- package/dist/components/upload/index.d.ts +21 -5
- package/dist/components/upload/index.d.ts.map +1 -1
- package/dist/components/upload/uploader.vue.d.ts +7 -1
- package/dist/components/upload/uploader.vue.d.ts.map +1 -1
- package/dist/components/upload/uploader.vue.js +428 -201
- package/dist/components/upload/uploader.vue.js.map +1 -1
- package/dist/components/userGroupTree/src/userGroupTree.vue.d.ts +4 -4
- package/dist/components/userTag/UserInfoTag.vue.d.ts +6 -0
- package/dist/components/userTag/UserInfoTag.vue.d.ts.map +1 -1
- package/dist/components/userTag/UserInfoTag.vue.js +67 -50
- package/dist/components/userTag/UserInfoTag.vue.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/index.js +8068 -7959
- package/lib/index.umd.cjs +32 -36
- package/package.json +2 -2
- package/packages/components/inputI18n/InputI18n.vue +3 -5
- package/packages/components/upload/uploader.vue +257 -37
- package/packages/components/userTag/UserInfoTag.vue +26 -4
- package/packages/index.ts +0 -1
- package/dist/hooks/useRouteableVisible.d.ts +0 -12
- package/dist/hooks/useRouteableVisible.d.ts.map +0 -1
- package/dist/hooks/useRouteableVisible.js +0 -34
- package/dist/hooks/useRouteableVisible.js.map +0 -1
- package/packages/hooks/useRouteableVisible.ts +0 -35
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createAxiosWithoutCache, Jari, useFilesApi, useLoading, useLoginUser } from "@jari-ace/app-bolts";
|
|
2
2
|
import { nextTick, onMounted, onUnmounted, ref, watch } from "vue";
|
|
3
|
-
import { ArrowDown, Download, Upload, WarningFilled } from "@element-plus/icons-vue";
|
|
3
|
+
import { ArrowDown, Document, Download, Upload, WarningFilled, Picture, VideoPlay, Headset } from "@element-plus/icons-vue";
|
|
4
4
|
import { useSystemClassificationLevelMap, useSystemClassificationLevels } from "../../hooks/useClassificationLevels";
|
|
5
5
|
var Ace = Jari.Ace;
|
|
6
6
|
import "@uppy/core/css/style.min.css";
|
|
@@ -19,9 +19,11 @@ import Dashboard from "@uppy/dashboard";
|
|
|
19
19
|
import ImageEditor from "@uppy/image-editor";
|
|
20
20
|
import prettyBytes from "pretty-bytes";
|
|
21
21
|
import PdfViewerModal from "./pdf-viewer/PdfViewerModal.vue";
|
|
22
|
-
import { ElMessageBox, ElTable, ElTableColumn, ElButton, ElDropdown, ElDropdownItem, ElDropdownMenu, ElIcon, ElTag, ElTooltip } from "element-plus";
|
|
22
|
+
import { ElMessageBox, ElTable, ElTableColumn, ElButton, ElDropdown, ElDropdownItem, ElDropdownMenu, ElIcon, ElTag, ElTooltip, ElPopover } from "element-plus";
|
|
23
23
|
import { fa } from "element-plus/es/locales.mjs";
|
|
24
|
-
const props = defineProps()
|
|
24
|
+
const props = withDefaults(defineProps(), {
|
|
25
|
+
layout: 'list'
|
|
26
|
+
});
|
|
25
27
|
const attachId = defineModel({
|
|
26
28
|
required: false
|
|
27
29
|
});
|
|
@@ -371,7 +373,40 @@ watch(() => props.attachToken, () => {
|
|
|
371
373
|
}
|
|
372
374
|
});
|
|
373
375
|
watch(() => props.classificationLevel, updateAllowedClassificationLevels);
|
|
376
|
+
function getFileIcon(fileName) {
|
|
377
|
+
if (!fileName)
|
|
378
|
+
return Document;
|
|
379
|
+
const ext = fileName.split('.').pop()?.toLowerCase();
|
|
380
|
+
switch (ext) {
|
|
381
|
+
case 'jpg':
|
|
382
|
+
case 'jpeg':
|
|
383
|
+
case 'png':
|
|
384
|
+
case 'gif':
|
|
385
|
+
case 'bmp':
|
|
386
|
+
case 'webp':
|
|
387
|
+
case 'svg':
|
|
388
|
+
return Picture;
|
|
389
|
+
case 'mp4':
|
|
390
|
+
case 'mkv':
|
|
391
|
+
case 'avi':
|
|
392
|
+
case 'mov':
|
|
393
|
+
case 'wmv':
|
|
394
|
+
case 'webm':
|
|
395
|
+
return VideoPlay;
|
|
396
|
+
case 'mp3':
|
|
397
|
+
case 'wav':
|
|
398
|
+
case 'ogg':
|
|
399
|
+
case 'flac':
|
|
400
|
+
case 'm4a':
|
|
401
|
+
return Headset;
|
|
402
|
+
default:
|
|
403
|
+
return Document;
|
|
404
|
+
}
|
|
405
|
+
}
|
|
374
406
|
debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
|
|
407
|
+
const __VLS_withDefaultsArg = (function (t) { return t; })({
|
|
408
|
+
layout: 'list'
|
|
409
|
+
});
|
|
375
410
|
const __VLS_defaults = {};
|
|
376
411
|
const __VLS_modelEmit = defineEmits();
|
|
377
412
|
const __VLS_ctx = {};
|
|
@@ -534,227 +569,417 @@ if (__VLS_ctx.uploadingProgress < 100 && __VLS_ctx.uploadingProgress > 0) {
|
|
|
534
569
|
});
|
|
535
570
|
(__VLS_ctx.uploadingProgress);
|
|
536
571
|
}
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
}
|
|
548
|
-
const __VLS_46 = __VLS_45({
|
|
549
|
-
data: (__VLS_ctx.files),
|
|
550
|
-
showHeader: (true),
|
|
551
|
-
...{ style: {} },
|
|
552
|
-
emptyText: "暂无文件",
|
|
553
|
-
height: (props.height),
|
|
554
|
-
maxHeight: (props.maxHeight),
|
|
555
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_45));
|
|
556
|
-
__VLS_47.slots.default;
|
|
557
|
-
const __VLS_48 = {}.ElTableColumn;
|
|
558
|
-
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
|
|
559
|
-
// @ts-ignore
|
|
560
|
-
const __VLS_49 = __VLS_asFunctionalComponent(__VLS_48, new __VLS_48({
|
|
561
|
-
prop: "fileName",
|
|
562
|
-
}));
|
|
563
|
-
const __VLS_50 = __VLS_49({
|
|
564
|
-
prop: "fileName",
|
|
565
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_49));
|
|
566
|
-
const __VLS_52 = {}.ElTableColumn;
|
|
567
|
-
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
|
|
568
|
-
// @ts-ignore
|
|
569
|
-
const __VLS_53 = __VLS_asFunctionalComponent(__VLS_52, new __VLS_52({
|
|
570
|
-
prop: "fileSize",
|
|
571
|
-
width: "100",
|
|
572
|
-
}));
|
|
573
|
-
const __VLS_54 = __VLS_53({
|
|
574
|
-
prop: "fileSize",
|
|
575
|
-
width: "100",
|
|
576
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_53));
|
|
577
|
-
__VLS_55.slots.default;
|
|
578
|
-
{
|
|
579
|
-
const { default: __VLS_thisSlot } = __VLS_55.slots;
|
|
580
|
-
const [scope] = __VLS_getSlotParams(__VLS_thisSlot);
|
|
581
|
-
(__VLS_ctx.prettyBytes(scope.row.fileSize));
|
|
582
|
-
}
|
|
583
|
-
var __VLS_55;
|
|
584
|
-
const __VLS_56 = {}.ElTableColumn;
|
|
585
|
-
/** @type {[typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, typeof __VLS_components.ElTableColumn, typeof __VLS_components.elTableColumn, ]} */ ;
|
|
586
|
-
// @ts-ignore
|
|
587
|
-
const __VLS_57 = __VLS_asFunctionalComponent(__VLS_56, new __VLS_56({
|
|
588
|
-
prop: "classifiedLevel",
|
|
589
|
-
width: "80",
|
|
590
|
-
}));
|
|
591
|
-
const __VLS_58 = __VLS_57({
|
|
592
|
-
prop: "classifiedLevel",
|
|
593
|
-
width: "80",
|
|
594
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_57));
|
|
595
|
-
__VLS_59.slots.default;
|
|
596
|
-
{
|
|
597
|
-
const { default: __VLS_thisSlot } = __VLS_59.slots;
|
|
598
|
-
const [scope] = __VLS_getSlotParams(__VLS_thisSlot);
|
|
599
|
-
const __VLS_60 = {}.ElTag;
|
|
600
|
-
/** @type {[typeof __VLS_components.ElTag, typeof __VLS_components.elTag, typeof __VLS_components.ElTag, typeof __VLS_components.elTag, ]} */ ;
|
|
601
|
-
// @ts-ignore
|
|
602
|
-
const __VLS_61 = __VLS_asFunctionalComponent(__VLS_60, new __VLS_60({
|
|
603
|
-
type: (scope.row.classifiedLevel < 50 ? (scope.row.classifiedLevel < 30 ? 'danger' : 'warning') : 'info'),
|
|
604
|
-
}));
|
|
605
|
-
const __VLS_62 = __VLS_61({
|
|
606
|
-
type: (scope.row.classifiedLevel < 50 ? (scope.row.classifiedLevel < 30 ? 'danger' : 'warning') : 'info'),
|
|
607
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_61));
|
|
608
|
-
__VLS_63.slots.default;
|
|
609
|
-
(__VLS_ctx.classificationLevelMap?.get(scope.row.classifiedLevel));
|
|
610
|
-
var __VLS_63;
|
|
611
|
-
if (scope.row.classifiedLevel < __VLS_ctx.highestClassificationLevel) {
|
|
612
|
-
const __VLS_64 = {}.ElTooltip;
|
|
613
|
-
/** @type {[typeof __VLS_components.ElTooltip, typeof __VLS_components.elTooltip, typeof __VLS_components.ElTooltip, typeof __VLS_components.elTooltip, ]} */ ;
|
|
572
|
+
if (__VLS_ctx.layout === 'inline') {
|
|
573
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({
|
|
574
|
+
...{ class: "inline-files" },
|
|
575
|
+
});
|
|
576
|
+
for (const [file] of __VLS_getVForSourceType((__VLS_ctx.files))) {
|
|
577
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({
|
|
578
|
+
key: (file.id),
|
|
579
|
+
...{ class: "inline-file-item" },
|
|
580
|
+
});
|
|
581
|
+
const __VLS_44 = {}.ElPopover;
|
|
582
|
+
/** @type {[typeof __VLS_components.ElPopover, typeof __VLS_components.elPopover, typeof __VLS_components.ElPopover, typeof __VLS_components.elPopover, ]} */ ;
|
|
614
583
|
// @ts-ignore
|
|
615
|
-
const
|
|
616
|
-
|
|
584
|
+
const __VLS_45 = __VLS_asFunctionalComponent(__VLS_44, new __VLS_44({
|
|
585
|
+
placement: "top",
|
|
586
|
+
width: (300),
|
|
587
|
+
trigger: "hover",
|
|
617
588
|
}));
|
|
618
|
-
const
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
589
|
+
const __VLS_46 = __VLS_45({
|
|
590
|
+
placement: "top",
|
|
591
|
+
width: (300),
|
|
592
|
+
trigger: "hover",
|
|
593
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_45));
|
|
594
|
+
__VLS_47.slots.default;
|
|
595
|
+
{
|
|
596
|
+
const { reference: __VLS_thisSlot } = __VLS_47.slots;
|
|
597
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({
|
|
598
|
+
...{ class: "inline-file-icon-wrapper" },
|
|
599
|
+
});
|
|
600
|
+
const __VLS_48 = {}.ElIcon;
|
|
601
|
+
/** @type {[typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, ]} */ ;
|
|
602
|
+
// @ts-ignore
|
|
603
|
+
const __VLS_49 = __VLS_asFunctionalComponent(__VLS_48, new __VLS_48({
|
|
604
|
+
...{ class: "file-icon" },
|
|
605
|
+
size: "20",
|
|
606
|
+
}));
|
|
607
|
+
const __VLS_50 = __VLS_49({
|
|
608
|
+
...{ class: "file-icon" },
|
|
609
|
+
size: "20",
|
|
610
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_49));
|
|
611
|
+
__VLS_51.slots.default;
|
|
612
|
+
const __VLS_52 = ((__VLS_ctx.getFileIcon(file.fileName)));
|
|
613
|
+
// @ts-ignore
|
|
614
|
+
const __VLS_53 = __VLS_asFunctionalComponent(__VLS_52, new __VLS_52({}));
|
|
615
|
+
const __VLS_54 = __VLS_53({}, ...__VLS_functionalComponentArgsRest(__VLS_53));
|
|
616
|
+
var __VLS_51;
|
|
617
|
+
}
|
|
618
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({
|
|
619
|
+
...{ class: "file-popover-content" },
|
|
620
|
+
});
|
|
621
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({
|
|
622
|
+
...{ class: "popover-row" },
|
|
623
|
+
});
|
|
624
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.span, __VLS_intrinsicElements.span)({
|
|
625
|
+
...{ class: "label" },
|
|
626
|
+
});
|
|
627
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.span, __VLS_intrinsicElements.span)({
|
|
628
|
+
...{ class: "value" },
|
|
629
|
+
});
|
|
630
|
+
(file.fileName);
|
|
631
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({
|
|
632
|
+
...{ class: "popover-row" },
|
|
633
|
+
});
|
|
634
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.span, __VLS_intrinsicElements.span)({
|
|
635
|
+
...{ class: "label" },
|
|
636
|
+
});
|
|
637
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.span, __VLS_intrinsicElements.span)({
|
|
638
|
+
...{ class: "value" },
|
|
639
|
+
});
|
|
640
|
+
(__VLS_ctx.prettyBytes(file.fileSize));
|
|
641
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({
|
|
642
|
+
...{ class: "popover-row" },
|
|
643
|
+
});
|
|
644
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.span, __VLS_intrinsicElements.span)({
|
|
645
|
+
...{ class: "label" },
|
|
646
|
+
});
|
|
647
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.span, __VLS_intrinsicElements.span)({
|
|
648
|
+
...{ class: "value" },
|
|
649
|
+
});
|
|
650
|
+
const __VLS_56 = {}.ElTag;
|
|
651
|
+
/** @type {[typeof __VLS_components.ElTag, typeof __VLS_components.elTag, typeof __VLS_components.ElTag, typeof __VLS_components.elTag, ]} */ ;
|
|
624
652
|
// @ts-ignore
|
|
625
|
-
const
|
|
626
|
-
|
|
653
|
+
const __VLS_57 = __VLS_asFunctionalComponent(__VLS_56, new __VLS_56({
|
|
654
|
+
size: "small",
|
|
655
|
+
type: (file.classifiedLevel < 50 ? (file.classifiedLevel < 30 ? 'danger' : 'warning') : 'info'),
|
|
627
656
|
}));
|
|
628
|
-
const
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
657
|
+
const __VLS_58 = __VLS_57({
|
|
658
|
+
size: "small",
|
|
659
|
+
type: (file.classifiedLevel < 50 ? (file.classifiedLevel < 30 ? 'danger' : 'warning') : 'info'),
|
|
660
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_57));
|
|
661
|
+
__VLS_59.slots.default;
|
|
662
|
+
(__VLS_ctx.classificationLevelMap?.get(file.classifiedLevel));
|
|
663
|
+
var __VLS_59;
|
|
664
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({
|
|
665
|
+
...{ class: "popover-actions" },
|
|
666
|
+
});
|
|
667
|
+
if (__VLS_ctx.checkAllowPreview(file)) {
|
|
668
|
+
const __VLS_60 = {}.ElButton;
|
|
669
|
+
/** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
|
|
670
|
+
// @ts-ignore
|
|
671
|
+
const __VLS_61 = __VLS_asFunctionalComponent(__VLS_60, new __VLS_60({
|
|
672
|
+
...{ 'onClick': {} },
|
|
673
|
+
link: true,
|
|
674
|
+
type: "primary",
|
|
675
|
+
}));
|
|
676
|
+
const __VLS_62 = __VLS_61({
|
|
677
|
+
...{ 'onClick': {} },
|
|
678
|
+
link: true,
|
|
679
|
+
type: "primary",
|
|
680
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_61));
|
|
681
|
+
let __VLS_64;
|
|
682
|
+
let __VLS_65;
|
|
683
|
+
let __VLS_66;
|
|
684
|
+
const __VLS_67 = {
|
|
685
|
+
onClick: (...[$event]) => {
|
|
686
|
+
if (!(__VLS_ctx.layout === 'inline'))
|
|
687
|
+
return;
|
|
688
|
+
if (!(__VLS_ctx.checkAllowPreview(file)))
|
|
689
|
+
return;
|
|
690
|
+
__VLS_ctx.previewFile(file.token);
|
|
691
|
+
}
|
|
692
|
+
};
|
|
693
|
+
__VLS_63.slots.default;
|
|
694
|
+
var __VLS_63;
|
|
695
|
+
}
|
|
696
|
+
if (__VLS_ctx.checkAllowDownload()) {
|
|
697
|
+
const __VLS_68 = {}.ElButton;
|
|
698
|
+
/** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
|
|
699
|
+
// @ts-ignore
|
|
700
|
+
const __VLS_69 = __VLS_asFunctionalComponent(__VLS_68, new __VLS_68({
|
|
701
|
+
...{ 'onClick': {} },
|
|
702
|
+
link: true,
|
|
703
|
+
type: "primary",
|
|
704
|
+
}));
|
|
705
|
+
const __VLS_70 = __VLS_69({
|
|
706
|
+
...{ 'onClick': {} },
|
|
707
|
+
link: true,
|
|
708
|
+
type: "primary",
|
|
709
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_69));
|
|
710
|
+
let __VLS_72;
|
|
711
|
+
let __VLS_73;
|
|
712
|
+
let __VLS_74;
|
|
713
|
+
const __VLS_75 = {
|
|
714
|
+
onClick: (...[$event]) => {
|
|
715
|
+
if (!(__VLS_ctx.layout === 'inline'))
|
|
716
|
+
return;
|
|
717
|
+
if (!(__VLS_ctx.checkAllowDownload()))
|
|
718
|
+
return;
|
|
719
|
+
__VLS_ctx.downloadFile(file.token);
|
|
720
|
+
}
|
|
721
|
+
};
|
|
722
|
+
__VLS_71.slots.default;
|
|
723
|
+
var __VLS_71;
|
|
724
|
+
}
|
|
725
|
+
if (__VLS_ctx.checkAllowDelete()) {
|
|
726
|
+
const __VLS_76 = {}.ElButton;
|
|
727
|
+
/** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
|
|
728
|
+
// @ts-ignore
|
|
729
|
+
const __VLS_77 = __VLS_asFunctionalComponent(__VLS_76, new __VLS_76({
|
|
730
|
+
...{ 'onClick': {} },
|
|
731
|
+
link: true,
|
|
732
|
+
type: "danger",
|
|
733
|
+
}));
|
|
734
|
+
const __VLS_78 = __VLS_77({
|
|
735
|
+
...{ 'onClick': {} },
|
|
736
|
+
link: true,
|
|
737
|
+
type: "danger",
|
|
738
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_77));
|
|
739
|
+
let __VLS_80;
|
|
740
|
+
let __VLS_81;
|
|
741
|
+
let __VLS_82;
|
|
742
|
+
const __VLS_83 = {
|
|
743
|
+
onClick: (...[$event]) => {
|
|
744
|
+
if (!(__VLS_ctx.layout === 'inline'))
|
|
745
|
+
return;
|
|
746
|
+
if (!(__VLS_ctx.checkAllowDelete()))
|
|
747
|
+
return;
|
|
748
|
+
__VLS_ctx.delUploadedFile(file);
|
|
749
|
+
}
|
|
750
|
+
};
|
|
751
|
+
__VLS_79.slots.default;
|
|
752
|
+
var __VLS_79;
|
|
753
|
+
}
|
|
754
|
+
var __VLS_47;
|
|
639
755
|
}
|
|
640
756
|
}
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
})
|
|
650
|
-
const __VLS_78 = __VLS_77({
|
|
651
|
-
align: "right",
|
|
652
|
-
width: "150",
|
|
653
|
-
fixed: "right",
|
|
654
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_77));
|
|
655
|
-
__VLS_79.slots.default;
|
|
656
|
-
{
|
|
657
|
-
const { default: __VLS_thisSlot } = __VLS_79.slots;
|
|
658
|
-
const [scope] = __VLS_getSlotParams(__VLS_thisSlot);
|
|
659
|
-
if (__VLS_ctx.checkAllowPreview(scope.row)) {
|
|
660
|
-
const __VLS_80 = {}.ElButton;
|
|
661
|
-
/** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
|
|
662
|
-
// @ts-ignore
|
|
663
|
-
const __VLS_81 = __VLS_asFunctionalComponent(__VLS_80, new __VLS_80({
|
|
664
|
-
...{ 'onClick': {} },
|
|
665
|
-
link: true,
|
|
666
|
-
type: "warning",
|
|
667
|
-
}));
|
|
668
|
-
const __VLS_82 = __VLS_81({
|
|
669
|
-
...{ 'onClick': {} },
|
|
670
|
-
link: true,
|
|
671
|
-
type: "warning",
|
|
672
|
-
}, ...__VLS_functionalComponentArgsRest(__VLS_81));
|
|
673
|
-
let __VLS_84;
|
|
674
|
-
let __VLS_85;
|
|
675
|
-
let __VLS_86;
|
|
676
|
-
const __VLS_87 = {
|
|
677
|
-
onClick: (...[$event]) => {
|
|
678
|
-
if (!(__VLS_ctx.checkAllowPreview(scope.row)))
|
|
679
|
-
return;
|
|
680
|
-
__VLS_ctx.previewFile(scope.row.token);
|
|
681
|
-
}
|
|
682
|
-
};
|
|
683
|
-
__VLS_83.slots.default;
|
|
684
|
-
var __VLS_83;
|
|
757
|
+
if (__VLS_ctx.layout === 'list') {
|
|
758
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({
|
|
759
|
+
...{ class: "file-list" },
|
|
760
|
+
...{ style: ({ height: typeof props.height === 'number' ? props.height + 'px' : props.height, maxHeight: typeof props.maxHeight === 'number' ? props.maxHeight + 'px' : props.maxHeight }) },
|
|
761
|
+
});
|
|
762
|
+
if (__VLS_ctx.files.length === 0) {
|
|
763
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({
|
|
764
|
+
...{ class: "empty-text" },
|
|
765
|
+
});
|
|
685
766
|
}
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
767
|
+
for (const [file] of __VLS_getVForSourceType((__VLS_ctx.files))) {
|
|
768
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({
|
|
769
|
+
key: (file.id),
|
|
770
|
+
...{ class: "file-item" },
|
|
771
|
+
});
|
|
772
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({
|
|
773
|
+
...{ class: "file-main" },
|
|
774
|
+
});
|
|
775
|
+
const __VLS_84 = {}.ElIcon;
|
|
776
|
+
/** @type {[typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, ]} */ ;
|
|
689
777
|
// @ts-ignore
|
|
690
|
-
const
|
|
691
|
-
...{
|
|
692
|
-
link: true,
|
|
693
|
-
type: "primary",
|
|
778
|
+
const __VLS_85 = __VLS_asFunctionalComponent(__VLS_84, new __VLS_84({
|
|
779
|
+
...{ class: "file-icon" },
|
|
694
780
|
}));
|
|
695
|
-
const
|
|
696
|
-
...{
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
781
|
+
const __VLS_86 = __VLS_85({
|
|
782
|
+
...{ class: "file-icon" },
|
|
783
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_85));
|
|
784
|
+
__VLS_87.slots.default;
|
|
785
|
+
const __VLS_88 = ((__VLS_ctx.getFileIcon(file.fileName)));
|
|
786
|
+
// @ts-ignore
|
|
787
|
+
const __VLS_89 = __VLS_asFunctionalComponent(__VLS_88, new __VLS_88({}));
|
|
788
|
+
const __VLS_90 = __VLS_89({}, ...__VLS_functionalComponentArgsRest(__VLS_89));
|
|
789
|
+
var __VLS_87;
|
|
790
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.span, __VLS_intrinsicElements.span)({
|
|
791
|
+
...{ class: "file-name" },
|
|
792
|
+
title: (file.fileName),
|
|
793
|
+
});
|
|
794
|
+
(file.fileName);
|
|
795
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({
|
|
796
|
+
...{ class: "file-info-right" },
|
|
797
|
+
});
|
|
798
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.span, __VLS_intrinsicElements.span)({
|
|
799
|
+
...{ class: "file-size" },
|
|
800
|
+
});
|
|
801
|
+
(__VLS_ctx.prettyBytes(file.fileSize));
|
|
802
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({
|
|
803
|
+
...{ class: "file-tag" },
|
|
804
|
+
});
|
|
805
|
+
const __VLS_92 = {}.ElTag;
|
|
806
|
+
/** @type {[typeof __VLS_components.ElTag, typeof __VLS_components.elTag, typeof __VLS_components.ElTag, typeof __VLS_components.elTag, ]} */ ;
|
|
716
807
|
// @ts-ignore
|
|
717
|
-
const
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
type: "danger",
|
|
808
|
+
const __VLS_93 = __VLS_asFunctionalComponent(__VLS_92, new __VLS_92({
|
|
809
|
+
size: "small",
|
|
810
|
+
type: (file.classifiedLevel < 50 ? (file.classifiedLevel < 30 ? 'danger' : 'warning') : 'info'),
|
|
721
811
|
}));
|
|
722
|
-
const
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
812
|
+
const __VLS_94 = __VLS_93({
|
|
813
|
+
size: "small",
|
|
814
|
+
type: (file.classifiedLevel < 50 ? (file.classifiedLevel < 30 ? 'danger' : 'warning') : 'info'),
|
|
815
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_93));
|
|
816
|
+
__VLS_95.slots.default;
|
|
817
|
+
(__VLS_ctx.classificationLevelMap?.get(file.classifiedLevel));
|
|
818
|
+
var __VLS_95;
|
|
819
|
+
if (file.classifiedLevel < __VLS_ctx.highestClassificationLevel) {
|
|
820
|
+
const __VLS_96 = {}.ElTooltip;
|
|
821
|
+
/** @type {[typeof __VLS_components.ElTooltip, typeof __VLS_components.elTooltip, typeof __VLS_components.ElTooltip, typeof __VLS_components.elTooltip, ]} */ ;
|
|
822
|
+
// @ts-ignore
|
|
823
|
+
const __VLS_97 = __VLS_asFunctionalComponent(__VLS_96, new __VLS_96({
|
|
824
|
+
content: "文件密级已高于当前许可范围,请立即删除",
|
|
825
|
+
}));
|
|
826
|
+
const __VLS_98 = __VLS_97({
|
|
827
|
+
content: "文件密级已高于当前许可范围,请立即删除",
|
|
828
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_97));
|
|
829
|
+
__VLS_99.slots.default;
|
|
830
|
+
const __VLS_100 = {}.ElIcon;
|
|
831
|
+
/** @type {[typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, typeof __VLS_components.ElIcon, typeof __VLS_components.elIcon, ]} */ ;
|
|
832
|
+
// @ts-ignore
|
|
833
|
+
const __VLS_101 = __VLS_asFunctionalComponent(__VLS_100, new __VLS_100({
|
|
834
|
+
color: "#F56C6C",
|
|
835
|
+
...{ class: "warning-icon" },
|
|
836
|
+
}));
|
|
837
|
+
const __VLS_102 = __VLS_101({
|
|
838
|
+
color: "#F56C6C",
|
|
839
|
+
...{ class: "warning-icon" },
|
|
840
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_101));
|
|
841
|
+
__VLS_103.slots.default;
|
|
842
|
+
const __VLS_104 = {}.WarningFilled;
|
|
843
|
+
/** @type {[typeof __VLS_components.WarningFilled, typeof __VLS_components.warningFilled, ]} */ ;
|
|
844
|
+
// @ts-ignore
|
|
845
|
+
const __VLS_105 = __VLS_asFunctionalComponent(__VLS_104, new __VLS_104({}));
|
|
846
|
+
const __VLS_106 = __VLS_105({}, ...__VLS_functionalComponentArgsRest(__VLS_105));
|
|
847
|
+
var __VLS_103;
|
|
848
|
+
var __VLS_99;
|
|
849
|
+
}
|
|
850
|
+
__VLS_asFunctionalElement(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({
|
|
851
|
+
...{ class: "file-actions" },
|
|
852
|
+
});
|
|
853
|
+
if (__VLS_ctx.checkAllowPreview(file)) {
|
|
854
|
+
const __VLS_108 = {}.ElButton;
|
|
855
|
+
/** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
|
|
856
|
+
// @ts-ignore
|
|
857
|
+
const __VLS_109 = __VLS_asFunctionalComponent(__VLS_108, new __VLS_108({
|
|
858
|
+
...{ 'onClick': {} },
|
|
859
|
+
link: true,
|
|
860
|
+
type: "primary",
|
|
861
|
+
}));
|
|
862
|
+
const __VLS_110 = __VLS_109({
|
|
863
|
+
...{ 'onClick': {} },
|
|
864
|
+
link: true,
|
|
865
|
+
type: "primary",
|
|
866
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_109));
|
|
867
|
+
let __VLS_112;
|
|
868
|
+
let __VLS_113;
|
|
869
|
+
let __VLS_114;
|
|
870
|
+
const __VLS_115 = {
|
|
871
|
+
onClick: (...[$event]) => {
|
|
872
|
+
if (!(__VLS_ctx.layout === 'list'))
|
|
873
|
+
return;
|
|
874
|
+
if (!(__VLS_ctx.checkAllowPreview(file)))
|
|
875
|
+
return;
|
|
876
|
+
__VLS_ctx.previewFile(file.token);
|
|
877
|
+
}
|
|
878
|
+
};
|
|
879
|
+
__VLS_111.slots.default;
|
|
880
|
+
var __VLS_111;
|
|
881
|
+
}
|
|
882
|
+
if (__VLS_ctx.checkAllowDownload()) {
|
|
883
|
+
const __VLS_116 = {}.ElButton;
|
|
884
|
+
/** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
|
|
885
|
+
// @ts-ignore
|
|
886
|
+
const __VLS_117 = __VLS_asFunctionalComponent(__VLS_116, new __VLS_116({
|
|
887
|
+
...{ 'onClick': {} },
|
|
888
|
+
link: true,
|
|
889
|
+
type: "primary",
|
|
890
|
+
}));
|
|
891
|
+
const __VLS_118 = __VLS_117({
|
|
892
|
+
...{ 'onClick': {} },
|
|
893
|
+
link: true,
|
|
894
|
+
type: "primary",
|
|
895
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_117));
|
|
896
|
+
let __VLS_120;
|
|
897
|
+
let __VLS_121;
|
|
898
|
+
let __VLS_122;
|
|
899
|
+
const __VLS_123 = {
|
|
900
|
+
onClick: (...[$event]) => {
|
|
901
|
+
if (!(__VLS_ctx.layout === 'list'))
|
|
902
|
+
return;
|
|
903
|
+
if (!(__VLS_ctx.checkAllowDownload()))
|
|
904
|
+
return;
|
|
905
|
+
__VLS_ctx.downloadFile(file.token);
|
|
906
|
+
}
|
|
907
|
+
};
|
|
908
|
+
__VLS_119.slots.default;
|
|
909
|
+
var __VLS_119;
|
|
910
|
+
}
|
|
911
|
+
if (__VLS_ctx.checkAllowDelete()) {
|
|
912
|
+
const __VLS_124 = {}.ElButton;
|
|
913
|
+
/** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
|
|
914
|
+
// @ts-ignore
|
|
915
|
+
const __VLS_125 = __VLS_asFunctionalComponent(__VLS_124, new __VLS_124({
|
|
916
|
+
...{ 'onClick': {} },
|
|
917
|
+
link: true,
|
|
918
|
+
type: "danger",
|
|
919
|
+
}));
|
|
920
|
+
const __VLS_126 = __VLS_125({
|
|
921
|
+
...{ 'onClick': {} },
|
|
922
|
+
link: true,
|
|
923
|
+
type: "danger",
|
|
924
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_125));
|
|
925
|
+
let __VLS_128;
|
|
926
|
+
let __VLS_129;
|
|
927
|
+
let __VLS_130;
|
|
928
|
+
const __VLS_131 = {
|
|
929
|
+
onClick: (...[$event]) => {
|
|
930
|
+
if (!(__VLS_ctx.layout === 'list'))
|
|
931
|
+
return;
|
|
932
|
+
if (!(__VLS_ctx.checkAllowDelete()))
|
|
933
|
+
return;
|
|
934
|
+
__VLS_ctx.delUploadedFile(file);
|
|
935
|
+
}
|
|
936
|
+
};
|
|
937
|
+
__VLS_127.slots.default;
|
|
938
|
+
var __VLS_127;
|
|
939
|
+
}
|
|
739
940
|
}
|
|
740
941
|
}
|
|
741
|
-
var __VLS_79;
|
|
742
|
-
var __VLS_47;
|
|
743
942
|
/** @type {[typeof PdfViewerModal, typeof PdfViewerModal, ]} */ ;
|
|
744
943
|
// @ts-ignore
|
|
745
|
-
const
|
|
944
|
+
const __VLS_132 = __VLS_asFunctionalComponent(PdfViewerModal, new PdfViewerModal({
|
|
746
945
|
src: (__VLS_ctx.pdfSrc),
|
|
747
946
|
modelValue: (__VLS_ctx.pdfViewerVisible),
|
|
748
947
|
}));
|
|
749
|
-
const
|
|
948
|
+
const __VLS_133 = __VLS_132({
|
|
750
949
|
src: (__VLS_ctx.pdfSrc),
|
|
751
950
|
modelValue: (__VLS_ctx.pdfViewerVisible),
|
|
752
|
-
}, ...__VLS_functionalComponentArgsRest(
|
|
951
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_132));
|
|
753
952
|
/** @type {__VLS_StyleScopedClasses['ja-uploader']} */ ;
|
|
754
953
|
/** @type {__VLS_StyleScopedClasses['ja-uploader-tools']} */ ;
|
|
755
954
|
/** @type {__VLS_StyleScopedClasses['el-icon--right']} */ ;
|
|
756
955
|
/** @type {__VLS_StyleScopedClasses['container']} */ ;
|
|
757
956
|
/** @type {__VLS_StyleScopedClasses['loader-shimmer']} */ ;
|
|
957
|
+
/** @type {__VLS_StyleScopedClasses['inline-files']} */ ;
|
|
958
|
+
/** @type {__VLS_StyleScopedClasses['inline-file-item']} */ ;
|
|
959
|
+
/** @type {__VLS_StyleScopedClasses['inline-file-icon-wrapper']} */ ;
|
|
960
|
+
/** @type {__VLS_StyleScopedClasses['file-icon']} */ ;
|
|
961
|
+
/** @type {__VLS_StyleScopedClasses['file-popover-content']} */ ;
|
|
962
|
+
/** @type {__VLS_StyleScopedClasses['popover-row']} */ ;
|
|
963
|
+
/** @type {__VLS_StyleScopedClasses['label']} */ ;
|
|
964
|
+
/** @type {__VLS_StyleScopedClasses['value']} */ ;
|
|
965
|
+
/** @type {__VLS_StyleScopedClasses['popover-row']} */ ;
|
|
966
|
+
/** @type {__VLS_StyleScopedClasses['label']} */ ;
|
|
967
|
+
/** @type {__VLS_StyleScopedClasses['value']} */ ;
|
|
968
|
+
/** @type {__VLS_StyleScopedClasses['popover-row']} */ ;
|
|
969
|
+
/** @type {__VLS_StyleScopedClasses['label']} */ ;
|
|
970
|
+
/** @type {__VLS_StyleScopedClasses['value']} */ ;
|
|
971
|
+
/** @type {__VLS_StyleScopedClasses['popover-actions']} */ ;
|
|
972
|
+
/** @type {__VLS_StyleScopedClasses['file-list']} */ ;
|
|
973
|
+
/** @type {__VLS_StyleScopedClasses['empty-text']} */ ;
|
|
974
|
+
/** @type {__VLS_StyleScopedClasses['file-item']} */ ;
|
|
975
|
+
/** @type {__VLS_StyleScopedClasses['file-main']} */ ;
|
|
976
|
+
/** @type {__VLS_StyleScopedClasses['file-icon']} */ ;
|
|
977
|
+
/** @type {__VLS_StyleScopedClasses['file-name']} */ ;
|
|
978
|
+
/** @type {__VLS_StyleScopedClasses['file-info-right']} */ ;
|
|
979
|
+
/** @type {__VLS_StyleScopedClasses['file-size']} */ ;
|
|
980
|
+
/** @type {__VLS_StyleScopedClasses['file-tag']} */ ;
|
|
981
|
+
/** @type {__VLS_StyleScopedClasses['warning-icon']} */ ;
|
|
982
|
+
/** @type {__VLS_StyleScopedClasses['file-actions']} */ ;
|
|
758
983
|
var __VLS_dollars;
|
|
759
984
|
const __VLS_self = (await import('vue')).defineComponent({
|
|
760
985
|
setup() {
|
|
@@ -765,8 +990,6 @@ const __VLS_self = (await import('vue')).defineComponent({
|
|
|
765
990
|
WarningFilled: WarningFilled,
|
|
766
991
|
prettyBytes: prettyBytes,
|
|
767
992
|
PdfViewerModal: PdfViewerModal,
|
|
768
|
-
ElTable: ElTable,
|
|
769
|
-
ElTableColumn: ElTableColumn,
|
|
770
993
|
ElButton: ElButton,
|
|
771
994
|
ElDropdown: ElDropdown,
|
|
772
995
|
ElDropdownItem: ElDropdownItem,
|
|
@@ -774,6 +997,7 @@ const __VLS_self = (await import('vue')).defineComponent({
|
|
|
774
997
|
ElIcon: ElIcon,
|
|
775
998
|
ElTag: ElTag,
|
|
776
999
|
ElTooltip: ElTooltip,
|
|
1000
|
+
ElPopover: ElPopover,
|
|
777
1001
|
loading: loading,
|
|
778
1002
|
files: files,
|
|
779
1003
|
allowedClassificationLevels: allowedClassificationLevels,
|
|
@@ -794,10 +1018,12 @@ const __VLS_self = (await import('vue')).defineComponent({
|
|
|
794
1018
|
checkAllowDownload: checkAllowDownload,
|
|
795
1019
|
checkAllowDelete: checkAllowDelete,
|
|
796
1020
|
checkAllowPreview: checkAllowPreview,
|
|
1021
|
+
getFileIcon: getFileIcon,
|
|
797
1022
|
};
|
|
798
1023
|
},
|
|
799
1024
|
__typeEmits: {},
|
|
800
1025
|
__typeProps: {},
|
|
1026
|
+
props: {},
|
|
801
1027
|
});
|
|
802
1028
|
export default (await import('vue')).defineComponent({
|
|
803
1029
|
setup() {
|
|
@@ -805,6 +1031,7 @@ export default (await import('vue')).defineComponent({
|
|
|
805
1031
|
},
|
|
806
1032
|
__typeEmits: {},
|
|
807
1033
|
__typeProps: {},
|
|
1034
|
+
props: {},
|
|
808
1035
|
});
|
|
809
1036
|
; /* PartiallyEnd: #4569/main.vue */
|
|
810
1037
|
//# sourceMappingURL=uploader.vue.js.map
|