@opentinyvue/vue-file-upload 2.21.0 → 3.21.0

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/src/index.d.ts CHANGED
@@ -335,7 +335,7 @@ export declare const fileUploadProps: {
335
335
  type: BooleanConstructor;
336
336
  default: boolean;
337
337
  };
338
- customClass: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
338
+ customClass: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
339
339
  hwh5: ObjectConstructor;
340
340
  mode: {
341
341
  type: StringConstructor;
@@ -385,5 +385,626 @@ export declare const fileUploadProps: {
385
385
  tiny_theme: StringConstructor;
386
386
  tiny_chart_theme: ObjectConstructor;
387
387
  };
388
- declare const _default: any;
388
+ declare const _default: import("@vue/runtime-core").DefineComponent<{
389
+ _constants: {
390
+ type: ObjectConstructor;
391
+ default: () => {
392
+ FILE_UPLOAD_INNER_TEMPLATE: string;
393
+ UPLOAD_INNER: string;
394
+ UPLOAD_INNER_TEMPLATE: string;
395
+ UPLOAD_LIST_INNER: string;
396
+ UPLOAD_LIST_INNER_TEMPLATE: string;
397
+ ONLY_SUPPORT: string;
398
+ COMMA: string;
399
+ FILE_NOT_LESS_THAN: string;
400
+ FILE_NOT_MORE_THAN: string;
401
+ FILE_SIZE_RANGE: string;
402
+ NUMBER_LIMIT: string;
403
+ FILE_STATUS: {
404
+ READY: string;
405
+ SUCESS: string;
406
+ UPLOADING: string;
407
+ FAIL: string;
408
+ DOWNLOADING: string;
409
+ };
410
+ LIST_TYPE: {
411
+ TEXT: string;
412
+ PICTURE_CARD: string;
413
+ PICTURE: string;
414
+ THUMB: string;
415
+ PICTURE_SINGLE: string;
416
+ DRAG_SINGLE: string;
417
+ SAAS: string;
418
+ };
419
+ EDM: {
420
+ CHUNKINIT: string;
421
+ FILESIZE: string;
422
+ CHUNKS: string;
423
+ FILENAME: string;
424
+ ISCHECKCODE: string;
425
+ CHECKCODE: string;
426
+ MULTIPART: string;
427
+ DOCID: string;
428
+ CHUNK: string;
429
+ SINGLEUPLOAD: string;
430
+ LOWERNAME: string;
431
+ FOLDERKEY: string;
432
+ FORMAT: string;
433
+ WATER: string;
434
+ SOURCE: string;
435
+ URLCONTS: string;
436
+ EDMTOKEN: string;
437
+ TRACEID: string;
438
+ TEXT: string;
439
+ JSLIB: string;
440
+ I18NKEY: string;
441
+ LARGEFILEKEY: string;
442
+ EXCEED: string;
443
+ SIZE: string;
444
+ SIZE_17G: number;
445
+ SIZE_2G: number;
446
+ SIZE_64M: number;
447
+ SIZE_32M: number;
448
+ SIZE_20M: number;
449
+ SIZE_16M: number;
450
+ SIZE_8M: number;
451
+ SIZE_4M: number;
452
+ SIZE_2M: number;
453
+ SIZE_0M: number;
454
+ FILEEMPTY: string;
455
+ KIASCANTIP: string;
456
+ FILENAMEEXCEEDS: string;
457
+ THEFILENAME: string;
458
+ CALCHASH: string;
459
+ KIASTATUS: number;
460
+ NumberExceed: string;
461
+ notSupport: string;
462
+ NOT_SUPPORT_NO_SUFFIX: string;
463
+ STATUS_SPECIAL_CHARACTERS: number;
464
+ NOT_SUPPORT_SPECIAL_CHARACTERS: string;
465
+ DOC_PREVIEW: string;
466
+ };
467
+ IMAGE_TYPE: string;
468
+ FILE_TYPE: {
469
+ EXCEL: string;
470
+ FILE: string;
471
+ PDF: string;
472
+ PICTURE: string;
473
+ PPT: string;
474
+ TEXT: string;
475
+ WORD: string;
476
+ ZIP: string;
477
+ VIDEO: string;
478
+ AUDIO: string;
479
+ };
480
+ SOURCE_TYPE: {
481
+ SOURCE_VIDEO: string;
482
+ SOURCE_AUDIO: string;
483
+ SOURCE_PICTURE: string;
484
+ };
485
+ MODE: {
486
+ BUBBLE: string;
487
+ };
488
+ };
489
+ };
490
+ accept: StringConstructor;
491
+ action: StringConstructor;
492
+ autoUpload: {
493
+ type: BooleanConstructor;
494
+ default: () => boolean;
495
+ };
496
+ beforeRemove: FunctionConstructor;
497
+ beforeUpload: FunctionConstructor;
498
+ data: ObjectConstructor;
499
+ disabled: BooleanConstructor;
500
+ display: {
501
+ type: BooleanConstructor;
502
+ default: () => boolean;
503
+ };
504
+ drag: BooleanConstructor;
505
+ dragger: BooleanConstructor;
506
+ edm: {
507
+ type: ObjectConstructor;
508
+ default: () => {};
509
+ };
510
+ fileIconList: {
511
+ type: ArrayConstructor;
512
+ default: () => never[];
513
+ };
514
+ fileList: {
515
+ type: ArrayConstructor;
516
+ default: () => never[];
517
+ };
518
+ fileSize: {
519
+ type: (ArrayConstructor | NumberConstructor)[];
520
+ validator(value: any): boolean;
521
+ };
522
+ fileTitle: {
523
+ type: StringConstructor;
524
+ default: () => string;
525
+ };
526
+ headerShow: {
527
+ type: BooleanConstructor;
528
+ default: () => boolean;
529
+ };
530
+ headers: {
531
+ type: ObjectConstructor;
532
+ default: () => {};
533
+ };
534
+ httpRequest: FunctionConstructor;
535
+ limit: NumberConstructor;
536
+ listType: {
537
+ type: StringConstructor;
538
+ default: () => string;
539
+ validator: (value: string) => boolean;
540
+ };
541
+ mergeService: {
542
+ type: BooleanConstructor;
543
+ default: () => boolean;
544
+ };
545
+ multiple: BooleanConstructor;
546
+ name: {
547
+ type: StringConstructor;
548
+ default: () => string;
549
+ };
550
+ openDownloadFile: {
551
+ type: BooleanConstructor;
552
+ default: () => boolean;
553
+ };
554
+ showFileList: {
555
+ type: BooleanConstructor;
556
+ default: () => boolean;
557
+ };
558
+ size: StringConstructor;
559
+ successStatistics: {
560
+ type: BooleanConstructor;
561
+ default: () => boolean;
562
+ };
563
+ thumbOption: {
564
+ type: ObjectConstructor;
565
+ default: () => {
566
+ popperClass: string;
567
+ width: number;
568
+ showDownload: boolean;
569
+ downloadFile: FunctionConstructor;
570
+ showDel: boolean;
571
+ icon: string;
572
+ showTooltip: boolean;
573
+ };
574
+ };
575
+ type: {
576
+ type: StringConstructor;
577
+ default: () => string;
578
+ };
579
+ uploadIcon: {
580
+ type: BooleanConstructor;
581
+ default: () => boolean;
582
+ };
583
+ withCredentials: {
584
+ type: BooleanConstructor;
585
+ default: () => boolean;
586
+ };
587
+ isFolderTitle: {
588
+ type: BooleanConstructor;
589
+ default: boolean;
590
+ };
591
+ listOption: {
592
+ type: ObjectConstructor;
593
+ default: () => {
594
+ showUpdate: boolean;
595
+ showDel: boolean;
596
+ };
597
+ };
598
+ maxNameLength: {
599
+ type: NumberConstructor;
600
+ default: number;
601
+ };
602
+ scale: {
603
+ type: (StringConstructor | NumberConstructor)[];
604
+ default: number;
605
+ };
606
+ showName: {
607
+ type: BooleanConstructor;
608
+ default: boolean;
609
+ };
610
+ sourceType: {
611
+ type: StringConstructor;
612
+ default: string;
613
+ validator(val: any): any;
614
+ };
615
+ showTitle: {
616
+ type: BooleanConstructor;
617
+ default: boolean;
618
+ };
619
+ title: {
620
+ type: StringConstructor;
621
+ default: string;
622
+ };
623
+ displayOnly: {
624
+ type: BooleanConstructor;
625
+ default: boolean;
626
+ };
627
+ customClass: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
628
+ hwh5: ObjectConstructor;
629
+ mode: {
630
+ type: StringConstructor;
631
+ default: string;
632
+ validator(val: any): boolean;
633
+ };
634
+ cacheToken: {
635
+ type: BooleanConstructor;
636
+ default: boolean;
637
+ };
638
+ lockScroll: {
639
+ type: BooleanConstructor;
640
+ default: boolean;
641
+ };
642
+ compact: {
643
+ type: BooleanConstructor;
644
+ default: boolean;
645
+ };
646
+ beforeAddFile: FunctionConstructor;
647
+ encryptConfig: {
648
+ type: ObjectConstructor;
649
+ default: () => {
650
+ enabled: boolean;
651
+ encrypt: boolean;
652
+ watermark: string;
653
+ };
654
+ };
655
+ promptTip: {
656
+ type: BooleanConstructor;
657
+ default: boolean;
658
+ };
659
+ isHidden: {
660
+ type: BooleanConstructor;
661
+ default: boolean;
662
+ };
663
+ pasteUpload: {
664
+ type: BooleanConstructor;
665
+ default: boolean;
666
+ };
667
+ reUploadable: BooleanConstructor;
668
+ reUploadTip: FunctionConstructor;
669
+ imageBgColor: StringConstructor;
670
+ tiny_mode: StringConstructor;
671
+ tiny_mode_root: BooleanConstructor;
672
+ tiny_template: (ObjectConstructor | FunctionConstructor)[];
673
+ tiny_renderless: FunctionConstructor;
674
+ tiny_theme: StringConstructor;
675
+ tiny_chart_theme: ObjectConstructor;
676
+ }, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
677
+ [key: string]: any;
678
+ }>, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
679
+ _constants: {
680
+ type: ObjectConstructor;
681
+ default: () => {
682
+ FILE_UPLOAD_INNER_TEMPLATE: string;
683
+ UPLOAD_INNER: string;
684
+ UPLOAD_INNER_TEMPLATE: string;
685
+ UPLOAD_LIST_INNER: string;
686
+ UPLOAD_LIST_INNER_TEMPLATE: string;
687
+ ONLY_SUPPORT: string;
688
+ COMMA: string;
689
+ FILE_NOT_LESS_THAN: string;
690
+ FILE_NOT_MORE_THAN: string;
691
+ FILE_SIZE_RANGE: string;
692
+ NUMBER_LIMIT: string;
693
+ FILE_STATUS: {
694
+ READY: string;
695
+ SUCESS: string;
696
+ UPLOADING: string;
697
+ FAIL: string;
698
+ DOWNLOADING: string;
699
+ };
700
+ LIST_TYPE: {
701
+ TEXT: string;
702
+ PICTURE_CARD: string;
703
+ PICTURE: string;
704
+ THUMB: string;
705
+ PICTURE_SINGLE: string;
706
+ DRAG_SINGLE: string;
707
+ SAAS: string;
708
+ };
709
+ EDM: {
710
+ CHUNKINIT: string;
711
+ FILESIZE: string;
712
+ CHUNKS: string;
713
+ FILENAME: string;
714
+ ISCHECKCODE: string;
715
+ CHECKCODE: string;
716
+ MULTIPART: string;
717
+ DOCID: string;
718
+ CHUNK: string;
719
+ SINGLEUPLOAD: string;
720
+ LOWERNAME: string;
721
+ FOLDERKEY: string;
722
+ FORMAT: string;
723
+ WATER: string;
724
+ SOURCE: string;
725
+ URLCONTS: string;
726
+ EDMTOKEN: string;
727
+ TRACEID: string;
728
+ TEXT: string;
729
+ JSLIB: string;
730
+ I18NKEY: string;
731
+ LARGEFILEKEY: string;
732
+ EXCEED: string;
733
+ SIZE: string;
734
+ SIZE_17G: number;
735
+ SIZE_2G: number;
736
+ SIZE_64M: number;
737
+ SIZE_32M: number;
738
+ SIZE_20M: number;
739
+ SIZE_16M: number;
740
+ SIZE_8M: number;
741
+ SIZE_4M: number;
742
+ SIZE_2M: number;
743
+ SIZE_0M: number;
744
+ FILEEMPTY: string;
745
+ KIASCANTIP: string;
746
+ FILENAMEEXCEEDS: string;
747
+ THEFILENAME: string;
748
+ CALCHASH: string;
749
+ KIASTATUS: number;
750
+ NumberExceed: string;
751
+ notSupport: string;
752
+ NOT_SUPPORT_NO_SUFFIX: string;
753
+ STATUS_SPECIAL_CHARACTERS: number;
754
+ NOT_SUPPORT_SPECIAL_CHARACTERS: string;
755
+ DOC_PREVIEW: string;
756
+ };
757
+ IMAGE_TYPE: string;
758
+ FILE_TYPE: {
759
+ EXCEL: string;
760
+ FILE: string;
761
+ PDF: string;
762
+ PICTURE: string;
763
+ PPT: string;
764
+ TEXT: string;
765
+ WORD: string;
766
+ ZIP: string;
767
+ VIDEO: string;
768
+ AUDIO: string;
769
+ };
770
+ SOURCE_TYPE: {
771
+ SOURCE_VIDEO: string;
772
+ SOURCE_AUDIO: string;
773
+ SOURCE_PICTURE: string;
774
+ };
775
+ MODE: {
776
+ BUBBLE: string;
777
+ };
778
+ };
779
+ };
780
+ accept: StringConstructor;
781
+ action: StringConstructor;
782
+ autoUpload: {
783
+ type: BooleanConstructor;
784
+ default: () => boolean;
785
+ };
786
+ beforeRemove: FunctionConstructor;
787
+ beforeUpload: FunctionConstructor;
788
+ data: ObjectConstructor;
789
+ disabled: BooleanConstructor;
790
+ display: {
791
+ type: BooleanConstructor;
792
+ default: () => boolean;
793
+ };
794
+ drag: BooleanConstructor;
795
+ dragger: BooleanConstructor;
796
+ edm: {
797
+ type: ObjectConstructor;
798
+ default: () => {};
799
+ };
800
+ fileIconList: {
801
+ type: ArrayConstructor;
802
+ default: () => never[];
803
+ };
804
+ fileList: {
805
+ type: ArrayConstructor;
806
+ default: () => never[];
807
+ };
808
+ fileSize: {
809
+ type: (ArrayConstructor | NumberConstructor)[];
810
+ validator(value: any): boolean;
811
+ };
812
+ fileTitle: {
813
+ type: StringConstructor;
814
+ default: () => string;
815
+ };
816
+ headerShow: {
817
+ type: BooleanConstructor;
818
+ default: () => boolean;
819
+ };
820
+ headers: {
821
+ type: ObjectConstructor;
822
+ default: () => {};
823
+ };
824
+ httpRequest: FunctionConstructor;
825
+ limit: NumberConstructor;
826
+ listType: {
827
+ type: StringConstructor;
828
+ default: () => string;
829
+ validator: (value: string) => boolean;
830
+ };
831
+ mergeService: {
832
+ type: BooleanConstructor;
833
+ default: () => boolean;
834
+ };
835
+ multiple: BooleanConstructor;
836
+ name: {
837
+ type: StringConstructor;
838
+ default: () => string;
839
+ };
840
+ openDownloadFile: {
841
+ type: BooleanConstructor;
842
+ default: () => boolean;
843
+ };
844
+ showFileList: {
845
+ type: BooleanConstructor;
846
+ default: () => boolean;
847
+ };
848
+ size: StringConstructor;
849
+ successStatistics: {
850
+ type: BooleanConstructor;
851
+ default: () => boolean;
852
+ };
853
+ thumbOption: {
854
+ type: ObjectConstructor;
855
+ default: () => {
856
+ popperClass: string;
857
+ width: number;
858
+ showDownload: boolean;
859
+ downloadFile: FunctionConstructor;
860
+ showDel: boolean;
861
+ icon: string;
862
+ showTooltip: boolean;
863
+ };
864
+ };
865
+ type: {
866
+ type: StringConstructor;
867
+ default: () => string;
868
+ };
869
+ uploadIcon: {
870
+ type: BooleanConstructor;
871
+ default: () => boolean;
872
+ };
873
+ withCredentials: {
874
+ type: BooleanConstructor;
875
+ default: () => boolean;
876
+ };
877
+ isFolderTitle: {
878
+ type: BooleanConstructor;
879
+ default: boolean;
880
+ };
881
+ listOption: {
882
+ type: ObjectConstructor;
883
+ default: () => {
884
+ showUpdate: boolean;
885
+ showDel: boolean;
886
+ };
887
+ };
888
+ maxNameLength: {
889
+ type: NumberConstructor;
890
+ default: number;
891
+ };
892
+ scale: {
893
+ type: (StringConstructor | NumberConstructor)[];
894
+ default: number;
895
+ };
896
+ showName: {
897
+ type: BooleanConstructor;
898
+ default: boolean;
899
+ };
900
+ sourceType: {
901
+ type: StringConstructor;
902
+ default: string;
903
+ validator(val: any): any;
904
+ };
905
+ showTitle: {
906
+ type: BooleanConstructor;
907
+ default: boolean;
908
+ };
909
+ title: {
910
+ type: StringConstructor;
911
+ default: string;
912
+ };
913
+ displayOnly: {
914
+ type: BooleanConstructor;
915
+ default: boolean;
916
+ };
917
+ customClass: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
918
+ hwh5: ObjectConstructor;
919
+ mode: {
920
+ type: StringConstructor;
921
+ default: string;
922
+ validator(val: any): boolean;
923
+ };
924
+ cacheToken: {
925
+ type: BooleanConstructor;
926
+ default: boolean;
927
+ };
928
+ lockScroll: {
929
+ type: BooleanConstructor;
930
+ default: boolean;
931
+ };
932
+ compact: {
933
+ type: BooleanConstructor;
934
+ default: boolean;
935
+ };
936
+ beforeAddFile: FunctionConstructor;
937
+ encryptConfig: {
938
+ type: ObjectConstructor;
939
+ default: () => {
940
+ enabled: boolean;
941
+ encrypt: boolean;
942
+ watermark: string;
943
+ };
944
+ };
945
+ promptTip: {
946
+ type: BooleanConstructor;
947
+ default: boolean;
948
+ };
949
+ isHidden: {
950
+ type: BooleanConstructor;
951
+ default: boolean;
952
+ };
953
+ pasteUpload: {
954
+ type: BooleanConstructor;
955
+ default: boolean;
956
+ };
957
+ reUploadable: BooleanConstructor;
958
+ reUploadTip: FunctionConstructor;
959
+ imageBgColor: StringConstructor;
960
+ tiny_mode: StringConstructor;
961
+ tiny_mode_root: BooleanConstructor;
962
+ tiny_template: (ObjectConstructor | FunctionConstructor)[];
963
+ tiny_renderless: FunctionConstructor;
964
+ tiny_theme: StringConstructor;
965
+ tiny_chart_theme: ObjectConstructor;
966
+ }>>, {
967
+ name: string;
968
+ disabled: boolean;
969
+ type: string;
970
+ title: string;
971
+ mode: string;
972
+ drag: boolean;
973
+ display: boolean;
974
+ tiny_mode_root: boolean;
975
+ _constants: Record<string, any>;
976
+ lockScroll: boolean;
977
+ showTitle: boolean;
978
+ displayOnly: boolean;
979
+ multiple: boolean;
980
+ isHidden: boolean;
981
+ scale: string | number;
982
+ listType: string;
983
+ withCredentials: boolean;
984
+ sourceType: string;
985
+ openDownloadFile: boolean;
986
+ isFolderTitle: boolean;
987
+ listOption: Record<string, any>;
988
+ maxNameLength: number;
989
+ showName: boolean;
990
+ compact: boolean;
991
+ autoUpload: boolean;
992
+ pasteUpload: boolean;
993
+ fileList: unknown[];
994
+ headers: Record<string, any>;
995
+ promptTip: boolean;
996
+ showFileList: boolean;
997
+ encryptConfig: Record<string, any>;
998
+ fileIconList: unknown[];
999
+ fileTitle: string;
1000
+ headerShow: boolean;
1001
+ successStatistics: boolean;
1002
+ uploadIcon: boolean;
1003
+ edm: Record<string, any>;
1004
+ dragger: boolean;
1005
+ mergeService: boolean;
1006
+ thumbOption: Record<string, any>;
1007
+ cacheToken: boolean;
1008
+ reUploadable: boolean;
1009
+ }, {}>;
389
1010
  export default _default;