yahee-components 0.0.100 → 0.0.102

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/es/_virtual/_commonjs-dynamic-modules.js +6 -0
  2. package/es/_virtual/jszip.min.js +7 -0
  3. package/es/_virtual/jszip.min2.js +4 -0
  4. package/es/drop-down-condition/drop-down-condition.vue.js +34 -33
  5. package/es/file-download-wrapper/file-download-wrapper.vue.js +265 -0
  6. package/es/file-download-wrapper/file-download-wrapper.vue2.js +4 -0
  7. package/es/file-download-wrapper/index.js +7 -0
  8. package/es/file-download-wrapper/key.js +17 -0
  9. package/es/file-download-wrapper/props.js +12 -0
  10. package/es/file-download-wrapper/style/index.css +66 -0
  11. package/es/height-collapse/height-collapse.vue.js +53 -0
  12. package/es/height-collapse/height-collapse.vue2.js +4 -0
  13. package/es/height-collapse/index.js +7 -0
  14. package/es/height-collapse/props.js +11 -0
  15. package/es/height-collapse/style/index.css +32 -0
  16. package/es/index.js +56 -50
  17. package/es/installs.js +22 -20
  18. package/es/node_modules/.pnpm/jszip@3.10.1/node_modules/jszip/dist/jszip.min.js +2320 -0
  19. package/es/style.css +99 -4
  20. package/lib/file-download-wrapper/style/index.css +66 -0
  21. package/lib/height-collapse/style/index.css +32 -0
  22. package/lib/style.css +99 -4
  23. package/package.json +4 -3
  24. package/types/src/annex-upload/annex-upload.vue.d.ts +8 -8
  25. package/types/src/annex-upload/index.d.ts +4 -4
  26. package/types/src/components.d.ts +2 -1
  27. package/types/src/drop-down-condition/drop-down-condition.vue.d.ts +2 -2
  28. package/types/src/drop-down-condition/index.d.ts +2 -2
  29. package/types/src/drop-down-condition/props.d.ts +1 -1
  30. package/types/src/file-download-wrapper/file-download-wrapper.d.ts +11 -0
  31. package/types/src/file-download-wrapper/file-download-wrapper.vue.d.ts +4 -0
  32. package/types/src/file-download-wrapper/index.d.ts +8 -0
  33. package/types/src/file-download-wrapper/key.d.ts +20 -0
  34. package/types/src/file-download-wrapper/props.d.ts +21 -0
  35. package/types/src/filter-container/filter-container.d.ts +2 -0
  36. package/types/src/filter-container/props.d.ts +0 -2
  37. package/types/src/filter-wrapper/index.d.ts +2 -1
  38. package/types/src/height-collapse/height-collapse.vue.d.ts +32 -0
  39. package/types/src/height-collapse/index.d.ts +50 -0
  40. package/types/src/height-collapse/props.d.ts +11 -0
  41. package/types/src/help-tag/help-tag.vue.d.ts +5 -5
  42. package/types/src/help-tag/index.d.ts +5 -5
  43. package/types/src/help-tag/props.d.ts +5 -5
  44. package/types/src/installs.d.ts +65 -526
  45. package/types/src/operation-log/index.d.ts +2 -2
  46. package/types/src/operation-log/operation-log.vue.d.ts +2 -2
  47. package/types/src/operation-log/props.d.ts +1 -1
  48. package/types/src/scale-screen/props.d.ts +2 -2
  49. package/es/input/index.js +0 -7
  50. package/es/input/input.vue.js +0 -40
  51. package/es/input/input.vue2.js +0 -4
  52. package/es/input/style/index.css +0 -3
  53. package/lib/input/style/index.css +0 -3
  54. package/types/src/input/index.d.ts +0 -515
  55. package/types/src/input/input.d.ts +0 -18
  56. package/types/src/input/input.vue.d.ts +0 -513
  57. package/types/src/shared/hello.d.ts +0 -1
  58. package/types/src/shared/index.d.ts +0 -2
  59. package/types/src/shared/typeCheck.d.ts +0 -2
  60. package/types/src/shared/types/InferVueDefaults.d.ts +0 -7
  61. package/types/src/shared/types/index.d.ts +0 -1
package/es/style.css CHANGED
@@ -1,8 +1,4 @@
1
1
  @charset "UTF-8";
2
- .yahee-input .el-input {
3
- border: 1px solid red;
4
- }
5
-
6
2
  .yahee-copy .el-tooltip__trigger {
7
3
  width: -moz-fit-content !important;
8
4
  width: fit-content !important;
@@ -556,6 +552,105 @@
556
552
  text-align: left;
557
553
  }
558
554
 
555
+ .yahee-height-collapse-wrapper {
556
+ width: 100%;
557
+ position: relative;
558
+ }
559
+ .yahee-height-collapse-wrapper .height-collapse-content {
560
+ width: 100%;
561
+ transition: max-height 0.2s ease;
562
+ }
563
+ .yahee-height-collapse-wrapper .show-filters {
564
+ cursor: pointer;
565
+ width: 100%;
566
+ background: #eaeded;
567
+ font-weight: bold;
568
+ color: #3366cc;
569
+ text-align: center;
570
+ font-size: 10px;
571
+ height: 12px;
572
+ z-index: 1111;
573
+ display: inline-block;
574
+ position: absolute;
575
+ margin: 0;
576
+ border-bottom: 1px solid #3366cc;
577
+ border-top: 1px solid #ddd;
578
+ line-height: 9px;
579
+ left: 0;
580
+ /* 收起状态的额外样式可以通过 .show-filters.more 来扩展 */
581
+ }
582
+ .yahee-height-collapse-wrapper .show-filters:hover {
583
+ background: #9bafbf;
584
+ color: #fff;
585
+ }
586
+
587
+ .yahee-file-download-wrapper {
588
+ width: 100%;
589
+ padding: 8px 0;
590
+ box-sizing: border-box;
591
+ }
592
+ .yahee-file-download-wrapper .batch-toolbar {
593
+ display: flex;
594
+ align-items: center;
595
+ gap: 12px;
596
+ margin-bottom: 12px;
597
+ padding-bottom: 8px;
598
+ }
599
+ .yahee-file-download-wrapper .file-list {
600
+ display: flex;
601
+ flex-direction: column;
602
+ gap: 10px;
603
+ }
604
+ .yahee-file-download-wrapper .file-row {
605
+ display: flex;
606
+ align-items: flex-start;
607
+ gap: 8px;
608
+ width: 100%;
609
+ }
610
+ .yahee-file-download-wrapper .file-row .file-checkbox {
611
+ margin-top: 2px;
612
+ flex-shrink: 0;
613
+ }
614
+ .yahee-file-download-wrapper .file-item {
615
+ display: flex;
616
+ align-items: center;
617
+ gap: 8px;
618
+ flex: 1;
619
+ min-width: 0;
620
+ }
621
+ .yahee-file-download-wrapper .file-item .image-item .file-image {
622
+ max-width: 200px;
623
+ max-height: 200px;
624
+ border: 1px solid #dcdfe6;
625
+ border-radius: 4px;
626
+ cursor: pointer;
627
+ }
628
+ .yahee-file-download-wrapper .file-item .document-item {
629
+ display: flex;
630
+ align-items: center;
631
+ gap: 8px;
632
+ }
633
+ .yahee-file-download-wrapper .file-item .document-item .file-icon {
634
+ width: 24px;
635
+ height: 24px;
636
+ flex-shrink: 0;
637
+ }
638
+ .yahee-file-download-wrapper .file-item .document-item .file-link {
639
+ color: #409eff;
640
+ text-decoration: none;
641
+ word-break: break-all;
642
+ flex: 1;
643
+ min-width: 0;
644
+ font-size: 12px;
645
+ }
646
+ .yahee-file-download-wrapper .file-item .document-item .file-link:hover {
647
+ text-decoration: underline;
648
+ }
649
+ .yahee-file-download-wrapper .file-item .file-name {
650
+ color: #606266;
651
+ word-break: break-all;
652
+ }
653
+
559
654
  :root {
560
655
  --el-color-primary: #3366cc;
561
656
  --el-text-color-regular: #000;
@@ -0,0 +1,66 @@
1
+ .yahee-file-download-wrapper {
2
+ width: 100%;
3
+ padding: 8px 0;
4
+ box-sizing: border-box;
5
+ }
6
+ .yahee-file-download-wrapper .batch-toolbar {
7
+ display: flex;
8
+ align-items: center;
9
+ gap: 12px;
10
+ margin-bottom: 12px;
11
+ padding-bottom: 8px;
12
+ }
13
+ .yahee-file-download-wrapper .file-list {
14
+ display: flex;
15
+ flex-direction: column;
16
+ gap: 10px;
17
+ }
18
+ .yahee-file-download-wrapper .file-row {
19
+ display: flex;
20
+ align-items: flex-start;
21
+ gap: 8px;
22
+ width: 100%;
23
+ }
24
+ .yahee-file-download-wrapper .file-row .file-checkbox {
25
+ margin-top: 2px;
26
+ flex-shrink: 0;
27
+ }
28
+ .yahee-file-download-wrapper .file-item {
29
+ display: flex;
30
+ align-items: center;
31
+ gap: 8px;
32
+ flex: 1;
33
+ min-width: 0;
34
+ }
35
+ .yahee-file-download-wrapper .file-item .image-item .file-image {
36
+ max-width: 200px;
37
+ max-height: 200px;
38
+ border: 1px solid #dcdfe6;
39
+ border-radius: 4px;
40
+ cursor: pointer;
41
+ }
42
+ .yahee-file-download-wrapper .file-item .document-item {
43
+ display: flex;
44
+ align-items: center;
45
+ gap: 8px;
46
+ }
47
+ .yahee-file-download-wrapper .file-item .document-item .file-icon {
48
+ width: 24px;
49
+ height: 24px;
50
+ flex-shrink: 0;
51
+ }
52
+ .yahee-file-download-wrapper .file-item .document-item .file-link {
53
+ color: #409eff;
54
+ text-decoration: none;
55
+ word-break: break-all;
56
+ flex: 1;
57
+ min-width: 0;
58
+ font-size: 12px;
59
+ }
60
+ .yahee-file-download-wrapper .file-item .document-item .file-link:hover {
61
+ text-decoration: underline;
62
+ }
63
+ .yahee-file-download-wrapper .file-item .file-name {
64
+ color: #606266;
65
+ word-break: break-all;
66
+ }
@@ -0,0 +1,32 @@
1
+ @charset "UTF-8";
2
+ .yahee-height-collapse-wrapper {
3
+ width: 100%;
4
+ position: relative;
5
+ }
6
+ .yahee-height-collapse-wrapper .height-collapse-content {
7
+ width: 100%;
8
+ transition: max-height 0.2s ease;
9
+ }
10
+ .yahee-height-collapse-wrapper .show-filters {
11
+ cursor: pointer;
12
+ width: 100%;
13
+ background: #eaeded;
14
+ font-weight: bold;
15
+ color: #3366cc;
16
+ text-align: center;
17
+ font-size: 10px;
18
+ height: 12px;
19
+ z-index: 1111;
20
+ display: inline-block;
21
+ position: absolute;
22
+ margin: 0;
23
+ border-bottom: 1px solid #3366cc;
24
+ border-top: 1px solid #ddd;
25
+ line-height: 9px;
26
+ left: 0;
27
+ /* 收起状态的额外样式可以通过 .show-filters.more 来扩展 */
28
+ }
29
+ .yahee-height-collapse-wrapper .show-filters:hover {
30
+ background: #9bafbf;
31
+ color: #fff;
32
+ }
package/lib/style.css CHANGED
@@ -1,8 +1,4 @@
1
1
  @charset "UTF-8";
2
- .yahee-input .el-input {
3
- border: 1px solid red;
4
- }
5
-
6
2
  .yahee-copy .el-tooltip__trigger {
7
3
  width: -moz-fit-content !important;
8
4
  width: fit-content !important;
@@ -556,6 +552,105 @@
556
552
  text-align: left;
557
553
  }
558
554
 
555
+ .yahee-height-collapse-wrapper {
556
+ width: 100%;
557
+ position: relative;
558
+ }
559
+ .yahee-height-collapse-wrapper .height-collapse-content {
560
+ width: 100%;
561
+ transition: max-height 0.2s ease;
562
+ }
563
+ .yahee-height-collapse-wrapper .show-filters {
564
+ cursor: pointer;
565
+ width: 100%;
566
+ background: #eaeded;
567
+ font-weight: bold;
568
+ color: #3366cc;
569
+ text-align: center;
570
+ font-size: 10px;
571
+ height: 12px;
572
+ z-index: 1111;
573
+ display: inline-block;
574
+ position: absolute;
575
+ margin: 0;
576
+ border-bottom: 1px solid #3366cc;
577
+ border-top: 1px solid #ddd;
578
+ line-height: 9px;
579
+ left: 0;
580
+ /* 收起状态的额外样式可以通过 .show-filters.more 来扩展 */
581
+ }
582
+ .yahee-height-collapse-wrapper .show-filters:hover {
583
+ background: #9bafbf;
584
+ color: #fff;
585
+ }
586
+
587
+ .yahee-file-download-wrapper {
588
+ width: 100%;
589
+ padding: 8px 0;
590
+ box-sizing: border-box;
591
+ }
592
+ .yahee-file-download-wrapper .batch-toolbar {
593
+ display: flex;
594
+ align-items: center;
595
+ gap: 12px;
596
+ margin-bottom: 12px;
597
+ padding-bottom: 8px;
598
+ }
599
+ .yahee-file-download-wrapper .file-list {
600
+ display: flex;
601
+ flex-direction: column;
602
+ gap: 10px;
603
+ }
604
+ .yahee-file-download-wrapper .file-row {
605
+ display: flex;
606
+ align-items: flex-start;
607
+ gap: 8px;
608
+ width: 100%;
609
+ }
610
+ .yahee-file-download-wrapper .file-row .file-checkbox {
611
+ margin-top: 2px;
612
+ flex-shrink: 0;
613
+ }
614
+ .yahee-file-download-wrapper .file-item {
615
+ display: flex;
616
+ align-items: center;
617
+ gap: 8px;
618
+ flex: 1;
619
+ min-width: 0;
620
+ }
621
+ .yahee-file-download-wrapper .file-item .image-item .file-image {
622
+ max-width: 200px;
623
+ max-height: 200px;
624
+ border: 1px solid #dcdfe6;
625
+ border-radius: 4px;
626
+ cursor: pointer;
627
+ }
628
+ .yahee-file-download-wrapper .file-item .document-item {
629
+ display: flex;
630
+ align-items: center;
631
+ gap: 8px;
632
+ }
633
+ .yahee-file-download-wrapper .file-item .document-item .file-icon {
634
+ width: 24px;
635
+ height: 24px;
636
+ flex-shrink: 0;
637
+ }
638
+ .yahee-file-download-wrapper .file-item .document-item .file-link {
639
+ color: #409eff;
640
+ text-decoration: none;
641
+ word-break: break-all;
642
+ flex: 1;
643
+ min-width: 0;
644
+ font-size: 12px;
645
+ }
646
+ .yahee-file-download-wrapper .file-item .document-item .file-link:hover {
647
+ text-decoration: underline;
648
+ }
649
+ .yahee-file-download-wrapper .file-item .file-name {
650
+ color: #606266;
651
+ word-break: break-all;
652
+ }
653
+
559
654
  :root {
560
655
  --el-color-primary: #3366cc;
561
656
  --el-text-color-regular: #000;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "yahee-components",
3
3
  "private": false,
4
- "version": "0.0.100",
4
+ "version": "0.0.102",
5
5
  "description": "深圳前海亚讯前端组件库",
6
6
  "main": "lib",
7
7
  "module": "es",
@@ -34,13 +34,14 @@
34
34
  "@element-plus/icons-vue": "^2.3.1",
35
35
  "@vueuse/core": "^11.1.0",
36
36
  "dayjs": "^1.11.13",
37
+ "echarts": "^6.0.0",
37
38
  "element-plus": "^2.8.3",
38
- "v3-infinite-loading": "^1.3.2",
39
- "echarts": "^6.0.0"
39
+ "v3-infinite-loading": "^1.3.2"
40
40
  },
41
41
  "dependencies": {
42
42
  "dotenv": "^16.4.5",
43
43
  "install": "^0.13.0",
44
+ "jszip": "^3.10.1",
44
45
  "lodash": "^4.17.21"
45
46
  }
46
47
  }
@@ -38,13 +38,13 @@ declare function __VLS_template(): {
38
38
  readonly onExceed: (files: File[], uploadFiles: UploadUserFile[]) => void;
39
39
  }> & Omit<{
40
40
  readonly drag: boolean;
41
- readonly disabled: boolean;
42
41
  readonly name: string;
43
42
  readonly data: {};
43
+ readonly disabled: boolean;
44
+ readonly multiple: boolean;
44
45
  readonly onChange: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
45
46
  readonly onError: (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
46
47
  readonly onProgress: (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
47
- readonly multiple: boolean;
48
48
  readonly method: string;
49
49
  readonly withCredentials: boolean;
50
50
  readonly beforeUpload: (rawFile: UploadRawFile) => boolean | void | File | Blob | Promise<boolean | void | File | Blob>;
@@ -63,7 +63,7 @@ declare function __VLS_template(): {
63
63
  readonly beforeRemove?: (uploadFile: UploadFile, uploadFiles: UploadFiles) => boolean | Promise<boolean>;
64
64
  readonly crossorigin?: "" | "anonymous" | "use-credentials";
65
65
  readonly limit?: number;
66
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "drag" | "disabled" | "name" | "data" | "onChange" | "onError" | "onProgress" | "multiple" | "method" | "withCredentials" | "beforeUpload" | "onRemove" | "onPreview" | "onSuccess" | "onExceed" | "action" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest">;
66
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "drag" | "name" | "data" | "disabled" | "multiple" | "onChange" | "onError" | "onProgress" | "method" | "withCredentials" | "beforeUpload" | "onRemove" | "onPreview" | "onSuccess" | "onExceed" | "action" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest">;
67
67
  $attrs: {
68
68
  [x: string]: unknown;
69
69
  };
@@ -486,7 +486,7 @@ declare function __VLS_template(): {
486
486
  };
487
487
  readonly disabled: BooleanConstructor;
488
488
  readonly limit: NumberConstructor;
489
- }>>, "abort" | "drag" | "submit" | "disabled" | "name" | "data" | "onChange" | "onError" | "onProgress" | "multiple" | "method" | "withCredentials" | "beforeUpload" | "onRemove" | "onPreview" | "onSuccess" | "onExceed" | "action" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest" | "clearFiles" | "handleStart" | "handleRemove"> & ShallowUnwrapRef<{
489
+ }>>, "abort" | "drag" | "submit" | "name" | "data" | "disabled" | "multiple" | "onChange" | "onError" | "onProgress" | "method" | "withCredentials" | "beforeUpload" | "onRemove" | "onPreview" | "onSuccess" | "onExceed" | "action" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest" | "clearFiles" | "handleStart" | "handleRemove"> & ShallowUnwrapRef<{
490
490
  abort: (file: UploadFile) => void;
491
491
  submit: () => void;
492
492
  clearFiles: (states?: UploadStatus[]) => void;
@@ -576,13 +576,13 @@ declare const __VLS_component: DefineComponent<AnnexUploadProps, {
576
576
  readonly onExceed: (files: File[], uploadFiles: UploadUserFile[]) => void;
577
577
  }> & Omit<{
578
578
  readonly drag: boolean;
579
- readonly disabled: boolean;
580
579
  readonly name: string;
581
580
  readonly data: {};
581
+ readonly disabled: boolean;
582
+ readonly multiple: boolean;
582
583
  readonly onChange: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
583
584
  readonly onError: (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
584
585
  readonly onProgress: (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
585
- readonly multiple: boolean;
586
586
  readonly method: string;
587
587
  readonly withCredentials: boolean;
588
588
  readonly beforeUpload: (rawFile: UploadRawFile) => boolean | void | File | Blob | Promise<boolean | void | File | Blob>;
@@ -601,7 +601,7 @@ declare const __VLS_component: DefineComponent<AnnexUploadProps, {
601
601
  readonly beforeRemove?: (uploadFile: UploadFile, uploadFiles: UploadFiles) => boolean | Promise<boolean>;
602
602
  readonly crossorigin?: "" | "anonymous" | "use-credentials";
603
603
  readonly limit?: number;
604
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "drag" | "disabled" | "name" | "data" | "onChange" | "onError" | "onProgress" | "multiple" | "method" | "withCredentials" | "beforeUpload" | "onRemove" | "onPreview" | "onSuccess" | "onExceed" | "action" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest">;
604
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "drag" | "name" | "data" | "disabled" | "multiple" | "onChange" | "onError" | "onProgress" | "method" | "withCredentials" | "beforeUpload" | "onRemove" | "onPreview" | "onSuccess" | "onExceed" | "action" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest">;
605
605
  $attrs: {
606
606
  [x: string]: unknown;
607
607
  };
@@ -1024,7 +1024,7 @@ declare const __VLS_component: DefineComponent<AnnexUploadProps, {
1024
1024
  };
1025
1025
  readonly disabled: BooleanConstructor;
1026
1026
  readonly limit: NumberConstructor;
1027
- }>>, "abort" | "drag" | "submit" | "disabled" | "name" | "data" | "onChange" | "onError" | "onProgress" | "multiple" | "method" | "withCredentials" | "beforeUpload" | "onRemove" | "onPreview" | "onSuccess" | "onExceed" | "action" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest" | "clearFiles" | "handleStart" | "handleRemove"> & ShallowUnwrapRef<{
1027
+ }>>, "abort" | "drag" | "submit" | "name" | "data" | "disabled" | "multiple" | "onChange" | "onError" | "onProgress" | "method" | "withCredentials" | "beforeUpload" | "onRemove" | "onPreview" | "onSuccess" | "onExceed" | "action" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest" | "clearFiles" | "handleStart" | "handleRemove"> & ShallowUnwrapRef<{
1028
1028
  abort: (file: UploadFile) => void;
1029
1029
  submit: () => void;
1030
1030
  clearFiles: (states?: UploadStatus[]) => void;
@@ -66,13 +66,13 @@ export declare const YaheeAnnexUpload: SFCWithInstall<{
66
66
  readonly onExceed: (files: File[], uploadFiles: UploadUserFile[]) => void;
67
67
  }> & Omit<{
68
68
  readonly drag: boolean;
69
- readonly disabled: boolean;
70
69
  readonly name: string;
71
70
  readonly data: {};
71
+ readonly disabled: boolean;
72
+ readonly multiple: boolean;
72
73
  readonly onChange: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
73
74
  readonly onError: (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
74
75
  readonly onProgress: (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
75
- readonly multiple: boolean;
76
76
  readonly method: string;
77
77
  readonly withCredentials: boolean;
78
78
  readonly beforeUpload: (rawFile: UploadRawFile) => boolean | void | File | Blob | Promise<boolean | void | File | Blob>;
@@ -91,7 +91,7 @@ export declare const YaheeAnnexUpload: SFCWithInstall<{
91
91
  readonly beforeRemove?: (uploadFile: UploadFile, uploadFiles: UploadFiles) => boolean | Promise<boolean>;
92
92
  readonly crossorigin?: "" | "anonymous" | "use-credentials";
93
93
  readonly limit?: number;
94
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "drag" | "disabled" | "name" | "data" | "onChange" | "onError" | "onProgress" | "multiple" | "method" | "withCredentials" | "beforeUpload" | "onRemove" | "onPreview" | "onSuccess" | "onExceed" | "action" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest">;
94
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "drag" | "name" | "data" | "disabled" | "multiple" | "onChange" | "onError" | "onProgress" | "method" | "withCredentials" | "beforeUpload" | "onRemove" | "onPreview" | "onSuccess" | "onExceed" | "action" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest">;
95
95
  $attrs: {
96
96
  [x: string]: unknown;
97
97
  };
@@ -514,7 +514,7 @@ export declare const YaheeAnnexUpload: SFCWithInstall<{
514
514
  };
515
515
  readonly disabled: BooleanConstructor;
516
516
  readonly limit: NumberConstructor;
517
- }>>, "abort" | "drag" | "submit" | "disabled" | "name" | "data" | "onChange" | "onError" | "onProgress" | "multiple" | "method" | "withCredentials" | "beforeUpload" | "onRemove" | "onPreview" | "onSuccess" | "onExceed" | "action" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest" | "clearFiles" | "handleStart" | "handleRemove"> & ShallowUnwrapRef<{
517
+ }>>, "abort" | "drag" | "submit" | "name" | "data" | "disabled" | "multiple" | "onChange" | "onError" | "onProgress" | "method" | "withCredentials" | "beforeUpload" | "onRemove" | "onPreview" | "onSuccess" | "onExceed" | "action" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest" | "clearFiles" | "handleStart" | "handleRemove"> & ShallowUnwrapRef<{
518
518
  abort: (file: UploadFile) => void;
519
519
  submit: () => void;
520
520
  clearFiles: (states?: UploadStatus[]) => void;
@@ -1,4 +1,3 @@
1
- export * from './input';
2
1
  export * from './complex-search';
3
2
  export * from './copy';
4
3
  export * from './image-upload';
@@ -15,3 +14,5 @@ export * from './scale-screen';
15
14
  export * from './help-tag';
16
15
  export * from './filter-container';
17
16
  export * from './filter-wrapper';
17
+ export * from './height-collapse';
18
+ export * from './file-download-wrapper';
@@ -49,7 +49,7 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
49
49
  readonly __epPropKey: true;
50
50
  };
51
51
  readonly type: {
52
- readonly type: PropType<"" | "default" | "text" | "success" | "primary" | "warning" | "info" | "danger">;
52
+ readonly type: PropType<"" | "default" | "success" | "text" | "primary" | "warning" | "info" | "danger">;
53
53
  readonly required: false;
54
54
  readonly validator: ((val: unknown) => boolean) | undefined;
55
55
  __epPropKey: true;
@@ -261,7 +261,7 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
261
261
  readonly __epPropKey: true;
262
262
  };
263
263
  readonly type: {
264
- readonly type: PropType<"" | "default" | "text" | "success" | "primary" | "warning" | "info" | "danger">;
264
+ readonly type: PropType<"" | "default" | "success" | "text" | "primary" | "warning" | "info" | "danger">;
265
265
  readonly required: false;
266
266
  readonly validator: ((val: unknown) => boolean) | undefined;
267
267
  __epPropKey: true;
@@ -64,7 +64,7 @@ export declare const YaheeDropDownCondition: SFCWithInstall<DefineComponent<{
64
64
  readonly __epPropKey: true;
65
65
  };
66
66
  readonly type: {
67
- readonly type: PropType<"" | "default" | "text" | "success" | "primary" | "warning" | "info" | "danger">;
67
+ readonly type: PropType<"" | "default" | "success" | "text" | "primary" | "warning" | "info" | "danger">;
68
68
  readonly required: false;
69
69
  readonly validator: ((val: unknown) => boolean) | undefined;
70
70
  __epPropKey: true;
@@ -276,7 +276,7 @@ export declare const YaheeDropDownCondition: SFCWithInstall<DefineComponent<{
276
276
  readonly __epPropKey: true;
277
277
  };
278
278
  readonly type: {
279
- readonly type: PropType<"" | "default" | "text" | "success" | "primary" | "warning" | "info" | "danger">;
279
+ readonly type: PropType<"" | "default" | "success" | "text" | "primary" | "warning" | "info" | "danger">;
280
280
  readonly required: false;
281
281
  readonly validator: ((val: unknown) => boolean) | undefined;
282
282
  __epPropKey: true;
@@ -53,7 +53,7 @@ export interface DropdownConditionProps {
53
53
  * 查询接口方法
54
54
  * @default () => {}
55
55
  */
56
- initFilters?: Function;
56
+ initFilters?: () => void;
57
57
  }
58
58
  export declare function defaultDropdownConditionProps(): {
59
59
  filterList: () => any[];
@@ -0,0 +1,11 @@
1
+ /** 单个文件的类型定义 */
2
+ export interface FileItem {
3
+ /** 文件唯一ID(用于拼接文件地址) */
4
+ fileId?: string;
5
+ /** 文件全名(带后缀) */
6
+ fileName: string;
7
+ /** 文件直链地址(优先级高于fileId) */
8
+ fileUrl?: string;
9
+ /** 多选选中状态(内部使用) */
10
+ checked?: boolean;
11
+ }
@@ -0,0 +1,4 @@
1
+ import { FileDownloadWrapperProps } from './props';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ declare const _default: DefineComponent<FileDownloadWrapperProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<FileDownloadWrapperProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
4
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import { SFCWithInstall } from '../utils/typescript';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ import { FileDownloadWrapperProps } from './props';
4
+ export declare const YaheeFileDownloadWrapper: SFCWithInstall<DefineComponent<FileDownloadWrapperProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< FileDownloadWrapperProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>> & Record<string, any>;
5
+ export default YaheeFileDownloadWrapper;
6
+ export * from './file-download-wrapper.vue';
7
+ export * from './file-download-wrapper';
8
+ export * from './props';
@@ -0,0 +1,20 @@
1
+ import { InjectionKey } from 'vue';
2
+ /** 组件注入Key */
3
+ export declare const FilterWrapperKey: InjectionKey<{
4
+ batchDownload: () => Promise<void>;
5
+ }>;
6
+ /** 文件类型正则规则(内置,无需依赖外部工具) */
7
+ export declare const FILE_TYPE_REGEX: {
8
+ /** 图片文件 */
9
+ readonly image: RegExp;
10
+ /** Word文档 */
11
+ readonly word: RegExp;
12
+ /** PDF文档 */
13
+ readonly pdf: RegExp;
14
+ /** PPT演示文档 */
15
+ readonly ppt: RegExp;
16
+ /** Excel表格 */
17
+ readonly excel: RegExp;
18
+ /** TXT文本文件 */
19
+ readonly txt: RegExp;
20
+ };
@@ -0,0 +1,21 @@
1
+ import { FileItem } from './file-download-wrapper';
2
+ /** 组件Props定义 */
3
+ export interface FileDownloadWrapperProps {
4
+ /** 单文件模式:兼容原有写法,优先级低于files */
5
+ fileId: string;
6
+ /** 单文件模式:兼容原有写法,优先级低于files */
7
+ fileName: string;
8
+ /** 单文件模式:兼容原有写法,优先级低于files */
9
+ fileUrl: string;
10
+ /** 多文件模式:文件列表,优先级高于单文件参数 */
11
+ files: FileItem[];
12
+ /** 是否显示批量操作栏(多选+批量下载按钮) */
13
+ showBatchDownload: boolean;
14
+ }
15
+ export declare function defaultFileDownloadWrapperProps(): {
16
+ fileId: string;
17
+ fileName: string;
18
+ fileUrl: string;
19
+ files: () => any[];
20
+ showBatchDownload: true;
21
+ };
@@ -1,5 +1,7 @@
1
1
  import { default as FilterContainer } from './filter-container.vue';
2
+ import { SearchItem } from './key';
2
3
  /**
3
4
  * 定义instance类型
4
5
  */
5
6
  export type FilterContainerInstance = InstanceType<typeof FilterContainer>;
7
+ export type { SearchItem };
@@ -1,4 +1,3 @@
1
- import { SearchItem } from './key';
2
1
  export interface FilterContainerProps {
3
2
  /** 防抖间隔(毫秒) */
4
3
  debounceInterval?: number;
@@ -10,4 +9,3 @@ export interface FilterContainerProps {
10
9
  showSearchSection?: boolean;
11
10
  }
12
11
  export declare function defaultFilterContainerProps(): Required<FilterContainerProps>;
13
- export type { SearchItem };
@@ -1,7 +1,8 @@
1
1
  import { SFCWithInstall } from '../utils/typescript';
2
2
  import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
3
3
  import { FilterWrapperProps } from './props';
4
- import { ComponentMethods, FilterValue, SearchItem } from '../filter-container/key';
4
+ import { ComponentMethods, FilterValue } from '../filter-container/key';
5
+ import { SearchItem } from '../filter-container';
5
6
  export declare const YaheeFilterWrapper: SFCWithInstall<{
6
7
  new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< FilterWrapperProps> & Readonly<{}>, {
7
8
  register: (componentMethods?: ComponentMethods<FilterValue>) => void;
@@ -0,0 +1,32 @@
1
+ import { HeightCollapseProps } from './props';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ declare function __VLS_template(): {
4
+ attrs: Partial<{}>;
5
+ slots: {
6
+ default?(_: {}): any;
7
+ };
8
+ refs: {
9
+ contentRef: HTMLDivElement;
10
+ };
11
+ rootEl: any;
12
+ };
13
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
+ declare const __VLS_component: DefineComponent<HeightCollapseProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
15
+ change: (isExpand: boolean) => any;
16
+ }, string, PublicProps, Readonly<HeightCollapseProps> & Readonly<{
17
+ onChange?: (isExpand: boolean) => any;
18
+ }>, {
19
+ maxHeight: number;
20
+ defaultExpand: boolean;
21
+ expandTitle: string;
22
+ collapseTitle: string;
23
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {
24
+ contentRef: HTMLDivElement;
25
+ }, any>;
26
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
27
+ export default _default;
28
+ type __VLS_WithTemplateSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };