@skyfox2000/webui 1.4.21 → 1.4.22
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/lib/assets/modules/{baseLayout-Da4Ox7Lj.js → baseLayout-BcSEYvus.js} +3 -3
- package/lib/assets/modules/{file-upload-Bu6FkNjZ.js → file-upload-D11e2io7.js} +1 -1
- package/lib/assets/modules/{index-BYVerdEw.js → index-CO9_YadW.js} +2 -2
- package/lib/assets/modules/{index-Ch3meKe4.js → index-ClMWx3tg.js} +1 -1
- package/lib/assets/modules/{index-BysCt107.js → index-voAmrZ30.js} +2 -2
- package/lib/assets/modules/{menuTabs-BqLT-YbD.js → menuTabs-C9wkt-m9.js} +2 -2
- package/lib/assets/modules/{toolIcon-Dd58W0UM.js → toolIcon-9zQ4jiFD.js} +1 -1
- package/lib/assets/modules/{upload-template-Csccple9.js → upload-template-CM0O990W.js} +386 -369
- package/lib/assets/modules/uploadList-DhkFSkqE.js +466 -0
- package/lib/components/content/index.d.ts +4 -0
- package/lib/components/content/list/index.vue.d.ts +126 -0
- package/lib/components/content/list/listOperate.vue.d.ts +18 -0
- package/lib/components/form/switch/index.vue.d.ts +11 -1
- package/lib/components/form/upload/uploadList.vue.d.ts +448 -0
- package/lib/components/index.d.ts +1 -1
- package/lib/const/options.d.ts +4 -2
- package/lib/es/AceEditor/index.js +3 -3
- package/lib/es/BasicLayout/index.js +2 -2
- package/lib/es/Error403/index.js +1 -1
- package/lib/es/Error404/index.js +1 -1
- package/lib/es/ExcelForm/index.js +5 -5
- package/lib/es/MenuLayout/index.js +2 -2
- package/lib/es/TemplateFile/index.js +4 -4
- package/lib/es/UploadForm/index.js +70 -56
- package/lib/index.d.ts +1 -1
- package/lib/typings/upload.d.ts +10 -0
- package/lib/webui.css +1 -1
- package/lib/webui.es.js +1418 -1167
- package/package.json +1 -1
- package/src/components/content/dialog/uploadForm.vue +96 -13
- package/src/components/content/index.ts +5 -0
- package/src/components/content/list/index.vue +198 -0
- package/src/components/content/list/listOperate.vue +122 -0
- package/src/components/content/table/index.vue +1 -1
- package/src/components/content/table/tableOperate.vue +19 -37
- package/src/components/form/switch/index.vue +27 -14
- package/src/components/form/upload/uploadList.vue +46 -3
- package/src/components/index.ts +2 -0
- package/src/const/options.ts +11 -1
- package/src/index.ts +2 -0
- package/src/typings/upload.d.ts +10 -0
- package/lib/assets/modules/uploadList-D8scq04c.js +0 -423
|
@@ -23,6 +23,7 @@ export interface UploadListProps {
|
|
|
23
23
|
showActionText?: boolean;
|
|
24
24
|
showOnlineSwitch?: boolean;
|
|
25
25
|
showDelete?: boolean;
|
|
26
|
+
showFolderUpload?: boolean;
|
|
26
27
|
}
|
|
27
28
|
declare const _default: DefineComponent<UploadListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
28
29
|
"update:file-list": (...args: any[]) => void;
|
|
@@ -40,6 +41,7 @@ declare const _default: DefineComponent<UploadListProps, {}, {}, {}, {}, Compone
|
|
|
40
41
|
showDelete: boolean;
|
|
41
42
|
showActionText: boolean;
|
|
42
43
|
showOnlineSwitch: boolean;
|
|
44
|
+
showFolderUpload: boolean;
|
|
43
45
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
44
46
|
fileUploader: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
45
47
|
capture: {
|
|
@@ -487,5 +489,451 @@ declare const _default: DefineComponent<UploadListProps, {}, {}, {}, {}, Compone
|
|
|
487
489
|
file: UploadFile<any>;
|
|
488
490
|
}) => VueNode;
|
|
489
491
|
}> | null;
|
|
492
|
+
fileFolderUploader: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
493
|
+
capture: {
|
|
494
|
+
type: PropType<boolean | "user" | "environment">;
|
|
495
|
+
default: boolean | "user" | "environment";
|
|
496
|
+
};
|
|
497
|
+
type: {
|
|
498
|
+
type: PropType<UploadType>;
|
|
499
|
+
default: UploadType;
|
|
500
|
+
};
|
|
501
|
+
name: StringConstructor;
|
|
502
|
+
defaultFileList: {
|
|
503
|
+
type: PropType< UploadFile<any>[]>;
|
|
504
|
+
default: UploadFile<any>[];
|
|
505
|
+
};
|
|
506
|
+
fileList: {
|
|
507
|
+
type: PropType< UploadFile<any>[]>;
|
|
508
|
+
default: UploadFile<any>[];
|
|
509
|
+
};
|
|
510
|
+
action: {
|
|
511
|
+
type: PropType<string | ((file: FileType) => string) | ((file: FileType) => PromiseLike<string>)>;
|
|
512
|
+
default: string | ((file: FileType) => string) | ((file: FileType) => PromiseLike<string>);
|
|
513
|
+
};
|
|
514
|
+
directory: {
|
|
515
|
+
type: BooleanConstructor;
|
|
516
|
+
default: boolean;
|
|
517
|
+
};
|
|
518
|
+
data: {
|
|
519
|
+
type: PropType<Record<string, unknown> | ((file: UploadFile<any>) => Record<string, unknown> | Promise<Record<string, unknown>>)>;
|
|
520
|
+
default: Record<string, unknown> | ((file: UploadFile<any>) => Record<string, unknown> | Promise<Record<string, unknown>>);
|
|
521
|
+
};
|
|
522
|
+
method: {
|
|
523
|
+
type: PropType<"post" | "POST" | "PUT" | "PATCH" | "put" | "patch">;
|
|
524
|
+
default: "post" | "POST" | "PUT" | "PATCH" | "put" | "patch";
|
|
525
|
+
};
|
|
526
|
+
headers: {
|
|
527
|
+
type: PropType<HttpRequestHeader>;
|
|
528
|
+
default: HttpRequestHeader;
|
|
529
|
+
};
|
|
530
|
+
showUploadList: {
|
|
531
|
+
type: PropType<boolean | ShowUploadListInterface>;
|
|
532
|
+
default: boolean | ShowUploadListInterface;
|
|
533
|
+
};
|
|
534
|
+
multiple: {
|
|
535
|
+
type: BooleanConstructor;
|
|
536
|
+
default: boolean;
|
|
537
|
+
};
|
|
538
|
+
accept: StringConstructor;
|
|
539
|
+
beforeUpload: {
|
|
540
|
+
type: PropType<(file: FileType, FileList: FileType[]) => (string | boolean | void | Blob | FileType) | Promise<string | boolean | void | Blob | FileType>>;
|
|
541
|
+
default: (file: FileType, FileList: FileType[]) => (string | boolean | void | Blob | FileType) | Promise<string | boolean | void | Blob | FileType>;
|
|
542
|
+
};
|
|
543
|
+
onChange: {
|
|
544
|
+
type: PropType<(info: UploadChangeParam<UploadFile<any>>) => void>;
|
|
545
|
+
default: (info: UploadChangeParam<UploadFile<any>>) => void;
|
|
546
|
+
};
|
|
547
|
+
'onUpdate:fileList': {
|
|
548
|
+
type: PropType<(fileList: UploadFile<any>[]) => void>;
|
|
549
|
+
default: (fileList: UploadFile<any>[]) => void;
|
|
550
|
+
};
|
|
551
|
+
onDrop: {
|
|
552
|
+
type: PropType<(event: DragEvent) => void>;
|
|
553
|
+
default: (event: DragEvent) => void;
|
|
554
|
+
};
|
|
555
|
+
listType: {
|
|
556
|
+
type: PropType<UploadListType>;
|
|
557
|
+
default: UploadListType;
|
|
558
|
+
};
|
|
559
|
+
onPreview: {
|
|
560
|
+
type: PropType<(file: UploadFile<any>) => void>;
|
|
561
|
+
default: (file: UploadFile<any>) => void;
|
|
562
|
+
};
|
|
563
|
+
onDownload: {
|
|
564
|
+
type: PropType<(file: UploadFile<any>) => void>;
|
|
565
|
+
default: (file: UploadFile<any>) => void;
|
|
566
|
+
};
|
|
567
|
+
onReject: {
|
|
568
|
+
type: PropType<(fileList: FileType[]) => void>;
|
|
569
|
+
default: (fileList: FileType[]) => void;
|
|
570
|
+
};
|
|
571
|
+
onRemove: {
|
|
572
|
+
type: PropType<(file: UploadFile<any>) => boolean | void | Promise<boolean | void>>;
|
|
573
|
+
default: (file: UploadFile<any>) => boolean | void | Promise<boolean | void>;
|
|
574
|
+
};
|
|
575
|
+
remove: {
|
|
576
|
+
type: PropType<(file: UploadFile<any>) => boolean | void | Promise<boolean | void>>;
|
|
577
|
+
default: (file: UploadFile<any>) => boolean | void | Promise<boolean | void>;
|
|
578
|
+
};
|
|
579
|
+
supportServerRender: {
|
|
580
|
+
type: BooleanConstructor;
|
|
581
|
+
default: boolean;
|
|
582
|
+
};
|
|
583
|
+
disabled: {
|
|
584
|
+
type: BooleanConstructor;
|
|
585
|
+
default: boolean;
|
|
586
|
+
};
|
|
587
|
+
prefixCls: StringConstructor;
|
|
588
|
+
customRequest: {
|
|
589
|
+
type: PropType<(options: UploadRequestOption<any>) => void>;
|
|
590
|
+
default: (options: UploadRequestOption<any>) => void;
|
|
591
|
+
};
|
|
592
|
+
withCredentials: {
|
|
593
|
+
type: BooleanConstructor;
|
|
594
|
+
default: boolean;
|
|
595
|
+
};
|
|
596
|
+
openFileDialogOnClick: {
|
|
597
|
+
type: BooleanConstructor;
|
|
598
|
+
default: boolean;
|
|
599
|
+
};
|
|
600
|
+
locale: {
|
|
601
|
+
type: PropType<UploadLocale>;
|
|
602
|
+
default: UploadLocale;
|
|
603
|
+
};
|
|
604
|
+
id: StringConstructor;
|
|
605
|
+
previewFile: {
|
|
606
|
+
type: PropType<(file: Blob | FileType) => PromiseLike<string>>;
|
|
607
|
+
default: (file: Blob | FileType) => PromiseLike<string>;
|
|
608
|
+
};
|
|
609
|
+
transformFile: {
|
|
610
|
+
type: PropType<(file: FileType) => string | Blob | FileType | PromiseLike<string | Blob | FileType>>;
|
|
611
|
+
default: (file: FileType) => string | Blob | FileType | PromiseLike<string | Blob | FileType>;
|
|
612
|
+
};
|
|
613
|
+
iconRender: {
|
|
614
|
+
type: PropType<(opt: {
|
|
615
|
+
file: UploadFile<any>;
|
|
616
|
+
listType?: UploadListType;
|
|
617
|
+
}) => VueNode>;
|
|
618
|
+
default: (opt: {
|
|
619
|
+
file: UploadFile<any>;
|
|
620
|
+
listType?: UploadListType;
|
|
621
|
+
}) => VueNode;
|
|
622
|
+
};
|
|
623
|
+
isImageUrl: {
|
|
624
|
+
type: PropType<(file: UploadFile<any>) => boolean>;
|
|
625
|
+
default: (file: UploadFile<any>) => boolean;
|
|
626
|
+
};
|
|
627
|
+
progress: {
|
|
628
|
+
type: PropType<UploadListProgressProps>;
|
|
629
|
+
default: UploadListProgressProps;
|
|
630
|
+
};
|
|
631
|
+
itemRender: {
|
|
632
|
+
type: PropType<ItemRender<any>>;
|
|
633
|
+
default: ItemRender<any>;
|
|
634
|
+
};
|
|
635
|
+
maxCount: NumberConstructor;
|
|
636
|
+
height: {
|
|
637
|
+
type: PropType<unknown>;
|
|
638
|
+
default: unknown;
|
|
639
|
+
};
|
|
640
|
+
removeIcon: {
|
|
641
|
+
type: PropType<(opt: {
|
|
642
|
+
file: UploadFile<any>;
|
|
643
|
+
}) => VueNode>;
|
|
644
|
+
default: (opt: {
|
|
645
|
+
file: UploadFile<any>;
|
|
646
|
+
}) => VueNode;
|
|
647
|
+
};
|
|
648
|
+
downloadIcon: {
|
|
649
|
+
type: PropType<(opt: {
|
|
650
|
+
file: UploadFile<any>;
|
|
651
|
+
}) => VueNode>;
|
|
652
|
+
default: (opt: {
|
|
653
|
+
file: UploadFile<any>;
|
|
654
|
+
}) => VueNode;
|
|
655
|
+
};
|
|
656
|
+
previewIcon: {
|
|
657
|
+
type: PropType<(opt: {
|
|
658
|
+
file: UploadFile<any>;
|
|
659
|
+
}) => VueNode>;
|
|
660
|
+
default: (opt: {
|
|
661
|
+
file: UploadFile<any>;
|
|
662
|
+
}) => VueNode;
|
|
663
|
+
};
|
|
664
|
+
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
665
|
+
progress: UploadListProgressProps;
|
|
666
|
+
type: UploadType;
|
|
667
|
+
height: unknown;
|
|
668
|
+
data: Record<string, unknown> | ((file: UploadFile<any>) => Record<string, unknown> | Promise<Record<string, unknown>>);
|
|
669
|
+
onDrop: (event: DragEvent) => void;
|
|
670
|
+
onChange: (info: UploadChangeParam<UploadFile<any>>) => void;
|
|
671
|
+
multiple: boolean;
|
|
672
|
+
disabled: boolean;
|
|
673
|
+
method: "post" | "POST" | "PUT" | "PATCH" | "put" | "patch";
|
|
674
|
+
remove: (file: UploadFile<any>) => boolean | void | Promise<boolean | void>;
|
|
675
|
+
locale: UploadLocale;
|
|
676
|
+
action: string | ((file: FileType) => string) | ((file: FileType) => PromiseLike<string>);
|
|
677
|
+
capture: boolean | "user" | "environment";
|
|
678
|
+
iconRender: (opt: {
|
|
679
|
+
file: UploadFile<any>;
|
|
680
|
+
listType?: UploadListType;
|
|
681
|
+
}) => VueNode;
|
|
682
|
+
onRemove: (file: UploadFile<any>) => boolean | void | Promise<boolean | void>;
|
|
683
|
+
removeIcon: (opt: {
|
|
684
|
+
file: UploadFile<any>;
|
|
685
|
+
}) => VueNode;
|
|
686
|
+
itemRender: ItemRender<any>;
|
|
687
|
+
directory: boolean;
|
|
688
|
+
headers: HttpRequestHeader;
|
|
689
|
+
onReject: (fileList: FileType[]) => void;
|
|
690
|
+
beforeUpload: (file: FileType, FileList: FileType[]) => (string | boolean | void | Blob | FileType) | Promise<string | boolean | void | Blob | FileType>;
|
|
691
|
+
customRequest: (options: UploadRequestOption<any>) => void;
|
|
692
|
+
withCredentials: boolean;
|
|
693
|
+
openFileDialogOnClick: boolean;
|
|
694
|
+
fileList: UploadFile<any>[];
|
|
695
|
+
defaultFileList: UploadFile<any>[];
|
|
696
|
+
showUploadList: boolean | ShowUploadListInterface;
|
|
697
|
+
'onUpdate:fileList': (fileList: UploadFile<any>[]) => void;
|
|
698
|
+
listType: UploadListType;
|
|
699
|
+
onPreview: (file: UploadFile<any>) => void;
|
|
700
|
+
onDownload: (file: UploadFile<any>) => void;
|
|
701
|
+
supportServerRender: boolean;
|
|
702
|
+
previewFile: (file: Blob | FileType) => PromiseLike<string>;
|
|
703
|
+
transformFile: (file: FileType) => string | Blob | FileType | PromiseLike<string | Blob | FileType>;
|
|
704
|
+
isImageUrl: (file: UploadFile<any>) => boolean;
|
|
705
|
+
downloadIcon: (opt: {
|
|
706
|
+
file: UploadFile<any>;
|
|
707
|
+
}) => VueNode;
|
|
708
|
+
previewIcon: (opt: {
|
|
709
|
+
file: UploadFile<any>;
|
|
710
|
+
}) => VueNode;
|
|
711
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
712
|
+
P: {};
|
|
713
|
+
B: {};
|
|
714
|
+
D: {};
|
|
715
|
+
C: {};
|
|
716
|
+
M: {};
|
|
717
|
+
Defaults: {};
|
|
718
|
+
}, Readonly< ExtractPropTypes<{
|
|
719
|
+
capture: {
|
|
720
|
+
type: PropType<boolean | "user" | "environment">;
|
|
721
|
+
default: boolean | "user" | "environment";
|
|
722
|
+
};
|
|
723
|
+
type: {
|
|
724
|
+
type: PropType<UploadType>;
|
|
725
|
+
default: UploadType;
|
|
726
|
+
};
|
|
727
|
+
name: StringConstructor;
|
|
728
|
+
defaultFileList: {
|
|
729
|
+
type: PropType< UploadFile<any>[]>;
|
|
730
|
+
default: UploadFile<any>[];
|
|
731
|
+
};
|
|
732
|
+
fileList: {
|
|
733
|
+
type: PropType< UploadFile<any>[]>;
|
|
734
|
+
default: UploadFile<any>[];
|
|
735
|
+
};
|
|
736
|
+
action: {
|
|
737
|
+
type: PropType<string | ((file: FileType) => string) | ((file: FileType) => PromiseLike<string>)>;
|
|
738
|
+
default: string | ((file: FileType) => string) | ((file: FileType) => PromiseLike<string>);
|
|
739
|
+
};
|
|
740
|
+
directory: {
|
|
741
|
+
type: BooleanConstructor;
|
|
742
|
+
default: boolean;
|
|
743
|
+
};
|
|
744
|
+
data: {
|
|
745
|
+
type: PropType<Record<string, unknown> | ((file: UploadFile<any>) => Record<string, unknown> | Promise<Record<string, unknown>>)>;
|
|
746
|
+
default: Record<string, unknown> | ((file: UploadFile<any>) => Record<string, unknown> | Promise<Record<string, unknown>>);
|
|
747
|
+
};
|
|
748
|
+
method: {
|
|
749
|
+
type: PropType<"post" | "POST" | "PUT" | "PATCH" | "put" | "patch">;
|
|
750
|
+
default: "post" | "POST" | "PUT" | "PATCH" | "put" | "patch";
|
|
751
|
+
};
|
|
752
|
+
headers: {
|
|
753
|
+
type: PropType<HttpRequestHeader>;
|
|
754
|
+
default: HttpRequestHeader;
|
|
755
|
+
};
|
|
756
|
+
showUploadList: {
|
|
757
|
+
type: PropType<boolean | ShowUploadListInterface>;
|
|
758
|
+
default: boolean | ShowUploadListInterface;
|
|
759
|
+
};
|
|
760
|
+
multiple: {
|
|
761
|
+
type: BooleanConstructor;
|
|
762
|
+
default: boolean;
|
|
763
|
+
};
|
|
764
|
+
accept: StringConstructor;
|
|
765
|
+
beforeUpload: {
|
|
766
|
+
type: PropType<(file: FileType, FileList: FileType[]) => (string | boolean | void | Blob | FileType) | Promise<string | boolean | void | Blob | FileType>>;
|
|
767
|
+
default: (file: FileType, FileList: FileType[]) => (string | boolean | void | Blob | FileType) | Promise<string | boolean | void | Blob | FileType>;
|
|
768
|
+
};
|
|
769
|
+
onChange: {
|
|
770
|
+
type: PropType<(info: UploadChangeParam<UploadFile<any>>) => void>;
|
|
771
|
+
default: (info: UploadChangeParam<UploadFile<any>>) => void;
|
|
772
|
+
};
|
|
773
|
+
'onUpdate:fileList': {
|
|
774
|
+
type: PropType<(fileList: UploadFile<any>[]) => void>;
|
|
775
|
+
default: (fileList: UploadFile<any>[]) => void;
|
|
776
|
+
};
|
|
777
|
+
onDrop: {
|
|
778
|
+
type: PropType<(event: DragEvent) => void>;
|
|
779
|
+
default: (event: DragEvent) => void;
|
|
780
|
+
};
|
|
781
|
+
listType: {
|
|
782
|
+
type: PropType<UploadListType>;
|
|
783
|
+
default: UploadListType;
|
|
784
|
+
};
|
|
785
|
+
onPreview: {
|
|
786
|
+
type: PropType<(file: UploadFile<any>) => void>;
|
|
787
|
+
default: (file: UploadFile<any>) => void;
|
|
788
|
+
};
|
|
789
|
+
onDownload: {
|
|
790
|
+
type: PropType<(file: UploadFile<any>) => void>;
|
|
791
|
+
default: (file: UploadFile<any>) => void;
|
|
792
|
+
};
|
|
793
|
+
onReject: {
|
|
794
|
+
type: PropType<(fileList: FileType[]) => void>;
|
|
795
|
+
default: (fileList: FileType[]) => void;
|
|
796
|
+
};
|
|
797
|
+
onRemove: {
|
|
798
|
+
type: PropType<(file: UploadFile<any>) => boolean | void | Promise<boolean | void>>;
|
|
799
|
+
default: (file: UploadFile<any>) => boolean | void | Promise<boolean | void>;
|
|
800
|
+
};
|
|
801
|
+
remove: {
|
|
802
|
+
type: PropType<(file: UploadFile<any>) => boolean | void | Promise<boolean | void>>;
|
|
803
|
+
default: (file: UploadFile<any>) => boolean | void | Promise<boolean | void>;
|
|
804
|
+
};
|
|
805
|
+
supportServerRender: {
|
|
806
|
+
type: BooleanConstructor;
|
|
807
|
+
default: boolean;
|
|
808
|
+
};
|
|
809
|
+
disabled: {
|
|
810
|
+
type: BooleanConstructor;
|
|
811
|
+
default: boolean;
|
|
812
|
+
};
|
|
813
|
+
prefixCls: StringConstructor;
|
|
814
|
+
customRequest: {
|
|
815
|
+
type: PropType<(options: UploadRequestOption<any>) => void>;
|
|
816
|
+
default: (options: UploadRequestOption<any>) => void;
|
|
817
|
+
};
|
|
818
|
+
withCredentials: {
|
|
819
|
+
type: BooleanConstructor;
|
|
820
|
+
default: boolean;
|
|
821
|
+
};
|
|
822
|
+
openFileDialogOnClick: {
|
|
823
|
+
type: BooleanConstructor;
|
|
824
|
+
default: boolean;
|
|
825
|
+
};
|
|
826
|
+
locale: {
|
|
827
|
+
type: PropType<UploadLocale>;
|
|
828
|
+
default: UploadLocale;
|
|
829
|
+
};
|
|
830
|
+
id: StringConstructor;
|
|
831
|
+
previewFile: {
|
|
832
|
+
type: PropType<(file: Blob | FileType) => PromiseLike<string>>;
|
|
833
|
+
default: (file: Blob | FileType) => PromiseLike<string>;
|
|
834
|
+
};
|
|
835
|
+
transformFile: {
|
|
836
|
+
type: PropType<(file: FileType) => string | Blob | FileType | PromiseLike<string | Blob | FileType>>;
|
|
837
|
+
default: (file: FileType) => string | Blob | FileType | PromiseLike<string | Blob | FileType>;
|
|
838
|
+
};
|
|
839
|
+
iconRender: {
|
|
840
|
+
type: PropType<(opt: {
|
|
841
|
+
file: UploadFile<any>;
|
|
842
|
+
listType?: UploadListType;
|
|
843
|
+
}) => VueNode>;
|
|
844
|
+
default: (opt: {
|
|
845
|
+
file: UploadFile<any>;
|
|
846
|
+
listType?: UploadListType;
|
|
847
|
+
}) => VueNode;
|
|
848
|
+
};
|
|
849
|
+
isImageUrl: {
|
|
850
|
+
type: PropType<(file: UploadFile<any>) => boolean>;
|
|
851
|
+
default: (file: UploadFile<any>) => boolean;
|
|
852
|
+
};
|
|
853
|
+
progress: {
|
|
854
|
+
type: PropType<UploadListProgressProps>;
|
|
855
|
+
default: UploadListProgressProps;
|
|
856
|
+
};
|
|
857
|
+
itemRender: {
|
|
858
|
+
type: PropType<ItemRender<any>>;
|
|
859
|
+
default: ItemRender<any>;
|
|
860
|
+
};
|
|
861
|
+
maxCount: NumberConstructor;
|
|
862
|
+
height: {
|
|
863
|
+
type: PropType<unknown>;
|
|
864
|
+
default: unknown;
|
|
865
|
+
};
|
|
866
|
+
removeIcon: {
|
|
867
|
+
type: PropType<(opt: {
|
|
868
|
+
file: UploadFile<any>;
|
|
869
|
+
}) => VueNode>;
|
|
870
|
+
default: (opt: {
|
|
871
|
+
file: UploadFile<any>;
|
|
872
|
+
}) => VueNode;
|
|
873
|
+
};
|
|
874
|
+
downloadIcon: {
|
|
875
|
+
type: PropType<(opt: {
|
|
876
|
+
file: UploadFile<any>;
|
|
877
|
+
}) => VueNode>;
|
|
878
|
+
default: (opt: {
|
|
879
|
+
file: UploadFile<any>;
|
|
880
|
+
}) => VueNode;
|
|
881
|
+
};
|
|
882
|
+
previewIcon: {
|
|
883
|
+
type: PropType<(opt: {
|
|
884
|
+
file: UploadFile<any>;
|
|
885
|
+
}) => VueNode>;
|
|
886
|
+
default: (opt: {
|
|
887
|
+
file: UploadFile<any>;
|
|
888
|
+
}) => VueNode;
|
|
889
|
+
};
|
|
890
|
+
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
|
|
891
|
+
progress: UploadListProgressProps;
|
|
892
|
+
type: UploadType;
|
|
893
|
+
height: unknown;
|
|
894
|
+
data: Record<string, unknown> | ((file: UploadFile<any>) => Record<string, unknown> | Promise<Record<string, unknown>>);
|
|
895
|
+
onDrop: (event: DragEvent) => void;
|
|
896
|
+
onChange: (info: UploadChangeParam<UploadFile<any>>) => void;
|
|
897
|
+
multiple: boolean;
|
|
898
|
+
disabled: boolean;
|
|
899
|
+
method: "post" | "POST" | "PUT" | "PATCH" | "put" | "patch";
|
|
900
|
+
remove: (file: UploadFile<any>) => boolean | void | Promise<boolean | void>;
|
|
901
|
+
locale: UploadLocale;
|
|
902
|
+
action: string | ((file: FileType) => string) | ((file: FileType) => PromiseLike<string>);
|
|
903
|
+
capture: boolean | "user" | "environment";
|
|
904
|
+
iconRender: (opt: {
|
|
905
|
+
file: UploadFile<any>;
|
|
906
|
+
listType?: UploadListType;
|
|
907
|
+
}) => VueNode;
|
|
908
|
+
onRemove: (file: UploadFile<any>) => boolean | void | Promise<boolean | void>;
|
|
909
|
+
removeIcon: (opt: {
|
|
910
|
+
file: UploadFile<any>;
|
|
911
|
+
}) => VueNode;
|
|
912
|
+
itemRender: ItemRender<any>;
|
|
913
|
+
directory: boolean;
|
|
914
|
+
headers: HttpRequestHeader;
|
|
915
|
+
onReject: (fileList: FileType[]) => void;
|
|
916
|
+
beforeUpload: (file: FileType, FileList: FileType[]) => (string | boolean | void | Blob | FileType) | Promise<string | boolean | void | Blob | FileType>;
|
|
917
|
+
customRequest: (options: UploadRequestOption<any>) => void;
|
|
918
|
+
withCredentials: boolean;
|
|
919
|
+
openFileDialogOnClick: boolean;
|
|
920
|
+
fileList: UploadFile<any>[];
|
|
921
|
+
defaultFileList: UploadFile<any>[];
|
|
922
|
+
showUploadList: boolean | ShowUploadListInterface;
|
|
923
|
+
'onUpdate:fileList': (fileList: UploadFile<any>[]) => void;
|
|
924
|
+
listType: UploadListType;
|
|
925
|
+
onPreview: (file: UploadFile<any>) => void;
|
|
926
|
+
onDownload: (file: UploadFile<any>) => void;
|
|
927
|
+
supportServerRender: boolean;
|
|
928
|
+
previewFile: (file: Blob | FileType) => PromiseLike<string>;
|
|
929
|
+
transformFile: (file: FileType) => string | Blob | FileType | PromiseLike<string | Blob | FileType>;
|
|
930
|
+
isImageUrl: (file: UploadFile<any>) => boolean;
|
|
931
|
+
downloadIcon: (opt: {
|
|
932
|
+
file: UploadFile<any>;
|
|
933
|
+
}) => VueNode;
|
|
934
|
+
previewIcon: (opt: {
|
|
935
|
+
file: UploadFile<any>;
|
|
936
|
+
}) => VueNode;
|
|
937
|
+
}> | null;
|
|
490
938
|
}, HTMLDivElement>;
|
|
491
939
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Button, Tooltip, AppIcon, Fullscreen, Helper, Icon, LayoutIcon, ProjectIcon, ToolIcon, Loading, Alert, } from './common';
|
|
2
|
-
export { Dialog, Drawer, Form, FormItem, Search, SearchItem, Table, TableOperate, Toolbar, Icontool, Tree, } from './content';
|
|
2
|
+
export { Dialog, Drawer, Form, FormItem, List, ListOperate, Search, SearchItem, Table, TableOperate, Toolbar, Icontool, Tree, } from './content';
|
|
3
3
|
export { AutoComplete, Cascader, Checkbox, DatePicker, Input, InputIcon, InputPassword, InputNumber, PropEditor, type PropConfigItem, Radio, RadioStatus, RangePicker, Select, Switch, Textarea, TimePicker, Transfer, TransferTable, TreeSelect, ImageList, UploadList, } from './form';
|
|
4
4
|
export { Breadcrumb, Content, Datetime, Header, HeaderExits, Menu, MenuTabs } from './layout';
|
package/lib/const/options.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { OptionItemProps } from '../typings/option';
|
|
1
2
|
export declare class OPTIONS {
|
|
2
3
|
private static dict;
|
|
3
4
|
static Keys: {
|
|
@@ -6,8 +7,9 @@ export declare class OPTIONS {
|
|
|
6
7
|
YesNo: string;
|
|
7
8
|
MaleFemale: string;
|
|
8
9
|
};
|
|
9
|
-
static getOptions: (key: string) => Record<string, any>[];
|
|
10
|
-
static
|
|
10
|
+
static getOptions: (key: string) => (Record<string, any> | OptionItemProps)[];
|
|
11
|
+
static getOptionItems: (key: string) => OptionItemProps[];
|
|
12
|
+
static getOptionItem: (key: string, value: string | number) => Record<string, any> | OptionItemProps | undefined;
|
|
11
13
|
static setOptions: (key: string, list: Record<string, any>[]) => void;
|
|
12
14
|
static EnableDisable: {
|
|
13
15
|
label: string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as F, defineAsyncComponent as M, ref as m, watch as V, onMounted as J, createElementBlock as x, openBlock as p, Fragment as K, createElementVNode as v, createVNode as _, toDisplayString as W, unref as i, createBlock as P, withKeys as f, normalizeClass as N, withModifiers as w, withCtx as z, createCommentVNode as L } from "vue";
|
|
2
2
|
import "ant-design-vue";
|
|
3
|
-
import { _ as q } from "../../assets/modules/toolIcon-
|
|
3
|
+
import { _ as q } from "../../assets/modules/toolIcon-9zQ4jiFD.js";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
|
-
import "../../assets/modules/upload-template-
|
|
5
|
+
import "../../assets/modules/upload-template-CM0O990W.js";
|
|
6
6
|
import "@skyfox2000/microbase";
|
|
7
7
|
import "vue-m-message";
|
|
8
8
|
import "async-validator";
|
|
9
9
|
import "dayjs";
|
|
10
|
-
import { _ as D } from "../../assets/modules/index-
|
|
10
|
+
import { _ as D } from "../../assets/modules/index-CO9_YadW.js";
|
|
11
11
|
import "vue-draggable-next";
|
|
12
12
|
const h = async (s) => window.ace ? window.ace : new Promise((l, t) => {
|
|
13
13
|
const o = document.createElement("script");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as f, ref as d, watch as _, onMounted as v, resolveComponent as h, createBlock as o, openBlock as t, withCtx as s, createElementVNode as C, normalizeClass as x, createVNode as w, KeepAlive as y, unref as n, resolveDynamicComponent as I } from "vue";
|
|
2
|
-
import { _ as g } from "../../assets/modules/baseLayout-
|
|
3
|
-
import { ah as A, a as S } from "../../assets/modules/upload-template-
|
|
2
|
+
import { _ as g } from "../../assets/modules/baseLayout-BcSEYvus.js";
|
|
3
|
+
import { ah as A, a as S } from "../../assets/modules/upload-template-CM0O990W.js";
|
|
4
4
|
import "@skyfox2000/microbase";
|
|
5
5
|
import "@skyfox2000/fapi";
|
|
6
6
|
import b from "vue-m-message";
|
package/lib/es/Error403/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as i, createBlock as p, openBlock as m, unref as r, withCtx as e, createVNode as n, createTextVNode as a } from "vue";
|
|
2
|
-
import { r as s } from "../../assets/modules/upload-template-
|
|
2
|
+
import { r as s } from "../../assets/modules/upload-template-CM0O990W.js";
|
|
3
3
|
import "@skyfox2000/microbase";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
5
|
import "vue-m-message";
|
package/lib/es/Error404/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as i, createBlock as p, openBlock as m, unref as r, withCtx as e, createVNode as n, createTextVNode as a } from "vue";
|
|
2
|
-
import { r as s } from "../../assets/modules/upload-template-
|
|
2
|
+
import { r as s } from "../../assets/modules/upload-template-CM0O990W.js";
|
|
3
3
|
import "@skyfox2000/microbase";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
5
|
import "vue-m-message";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as we, ref as f, computed as T, watch as H, onMounted as be, createBlock as W, openBlock as d, unref as n, withCtx as S, renderSlot as J, createElementBlock as g, createCommentVNode as K, createElementVNode as h, createVNode as C, createTextVNode as X, toDisplayString as E, normalizeClass as Ce, Fragment as ie, renderList as ne } from "vue";
|
|
2
|
-
import { _ as Y } from "../../assets/modules/index-
|
|
2
|
+
import { _ as Y } from "../../assets/modules/index-ClMWx3tg.js";
|
|
3
3
|
import { Modal as Fe, Upload as ue, Space as _e } from "ant-design-vue";
|
|
4
4
|
import { httpGet as Ue, ResStatus as fe } from "@skyfox2000/fapi";
|
|
5
|
-
import { G as Te, a5 as Se, ab as Ee } from "../../assets/modules/upload-template-
|
|
6
|
-
import { A as Re, p as De, U as ce } from "../../assets/modules/file-upload-
|
|
5
|
+
import { G as Te, a5 as Se, ab as Ee } from "../../assets/modules/upload-template-CM0O990W.js";
|
|
6
|
+
import { A as Re, p as De, U as ce } from "../../assets/modules/file-upload-D11e2io7.js";
|
|
7
7
|
import "@skyfox2000/microbase";
|
|
8
8
|
import p from "vue-m-message";
|
|
9
|
-
import { c as ke, _ as Z, h as Le, p as Ne, i as Ke } from "../../assets/modules/index-
|
|
9
|
+
import { c as ke, _ as Z, h as Le, p as Ne, i as Ke } from "../../assets/modules/index-voAmrZ30.js";
|
|
10
10
|
import "dayjs";
|
|
11
11
|
import "vue-draggable-next";
|
|
12
12
|
import "async-validator";
|
|
@@ -307,7 +307,7 @@ const Be = (l) => l.includes(",") || l.includes(`
|
|
|
307
307
|
return p.error(v), ue.LIST_IGNORE;
|
|
308
308
|
try {
|
|
309
309
|
if (A(), y.value = t.name, q.value = u ? "text/csv" : "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", u) {
|
|
310
|
-
const w = await t.arrayBuffer(), O = new TextDecoder("utf-8").decode(w), { csvToExcelView: G } = await import("../../assets/modules/index-
|
|
310
|
+
const w = await t.arrayBuffer(), O = new TextDecoder("utf-8").decode(w), { csvToExcelView: G } = await import("../../assets/modules/index-voAmrZ30.js").then((he) => he.j), M = await G(O, t.name);
|
|
311
311
|
if (!M.success)
|
|
312
312
|
throw new Error(M.error || "CSV文件处理失败");
|
|
313
313
|
const oe = await (await fetch(M.blobUrl)).arrayBuffer();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as f, ref as d, watch as _, onMounted as h, resolveComponent as v, createBlock as o, openBlock as t, withCtx as s, createElementVNode as C, normalizeClass as x, createVNode as w, KeepAlive as I, unref as n, resolveDynamicComponent as g } from "vue";
|
|
2
|
-
import { _ as y } from "../../assets/modules/baseLayout-
|
|
3
|
-
import { ah as A, a as S } from "../../assets/modules/upload-template-
|
|
2
|
+
import { _ as y } from "../../assets/modules/baseLayout-BcSEYvus.js";
|
|
3
|
+
import { ah as A, a as S } from "../../assets/modules/upload-template-CM0O990W.js";
|
|
4
4
|
import "@skyfox2000/microbase";
|
|
5
5
|
import "@skyfox2000/fapi";
|
|
6
6
|
import k from "vue-m-message";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as x, ref as o, watch as S, onMounted as h, createBlock as C, openBlock as F, unref as m, withCtx as s, createVNode as f, createTextVNode as q } from "vue";
|
|
2
|
-
import { _ as L } from "../../assets/modules/index-
|
|
2
|
+
import { _ as L } from "../../assets/modules/index-ClMWx3tg.js";
|
|
3
3
|
import { Modal as z, Space as D } from "ant-design-vue";
|
|
4
4
|
import { httpPost as N, ResStatus as O } from "@skyfox2000/fapi";
|
|
5
|
-
import { ak as d } from "../../assets/modules/upload-template-
|
|
6
|
-
import { U as b } from "../../assets/modules/file-upload-
|
|
5
|
+
import { ak as d } from "../../assets/modules/upload-template-CM0O990W.js";
|
|
6
|
+
import { U as b } from "../../assets/modules/file-upload-D11e2io7.js";
|
|
7
7
|
import "@skyfox2000/microbase";
|
|
8
8
|
import "vue-m-message";
|
|
9
9
|
import "async-validator";
|
|
10
10
|
import "dayjs";
|
|
11
11
|
import "vue-draggable-next";
|
|
12
|
-
import { U as g } from "../../assets/modules/uploadList-
|
|
12
|
+
import { U as g } from "../../assets/modules/uploadList-DhkFSkqE.js";
|
|
13
13
|
const _ = /* @__PURE__ */ x({
|
|
14
14
|
__name: "templateFile",
|
|
15
15
|
props: {
|