cnhis-design-vue 3.1.31-beta.7 → 3.1.31-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/README.md +123 -123
  2. package/es/components/button-print/index.d.ts +64 -45
  3. package/es/components/button-print/src/ButtonPrint.vue.d.ts +64 -45
  4. package/es/components/button-print/src/components/EditFormat.vue.d.ts +65 -46
  5. package/es/components/button-print/src/components/EditFormat.vue.js +108 -88
  6. package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +64 -45
  7. package/es/components/button-print/src/components/IdentityVerification.vue.js +7 -4
  8. package/es/components/button-print/style/index.css +1 -1
  9. package/es/components/form-render/index.js +1 -1
  10. package/es/components/form-render/src/components/renderer/select.js +3 -3
  11. package/es/components/form-render/src/hooks/useAutographOptions.js +2 -2
  12. package/es/components/form-render/src/utils/index.d.ts +2 -2
  13. package/es/components/form-render/src/utils/index.js +27 -3
  14. package/es/components/index.css +1 -1
  15. package/es/components/index.js +1 -1
  16. package/es/components/keyboard/index.d.ts +26 -16
  17. package/es/components/keyboard/src/Keyboard.vue.d.ts +27 -8
  18. package/es/components/keyboard/src/Keyboard.vue.js +8 -2
  19. package/es/components/steps-wheel/index.d.ts +3 -0
  20. package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +3 -0
  21. package/es/components/steps-wheel/src/StepsWheel.vue.js +38 -9
  22. package/es/components/steps-wheel/style/index.css +1 -1
  23. package/es/shared/assets/img/failure.js +1 -1
  24. package/es/shared/assets/img/failure.png.js +1 -1
  25. package/es/shared/assets/img/icon-asc.js +1 -1
  26. package/es/shared/assets/img/icon-desc.js +1 -1
  27. package/es/shared/assets/img/no-permission.js +1 -1
  28. package/es/shared/assets/img/no-permission.png.js +1 -1
  29. package/es/shared/assets/img/nodata.js +1 -1
  30. package/es/shared/assets/img/nodata.png.js +1 -1
  31. package/es/shared/assets/img/notfound.js +1 -1
  32. package/es/shared/assets/img/notfound.png.js +1 -1
  33. package/es/shared/assets/img/qr.js +1 -1
  34. package/es/shared/assets/img/qr.png.js +1 -1
  35. package/es/shared/assets/img/success.js +1 -1
  36. package/es/shared/assets/img/success.png.js +1 -1
  37. package/es/shared/assets/img/video.js +1 -1
  38. package/es/shared/assets/img/video.png.js +1 -1
  39. package/es/shared/assets/img/video_default_cover.js +1 -1
  40. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  41. package/es/shared/assets/img/video_hover.js +1 -1
  42. package/es/shared/assets/img/video_play_hover.js +1 -1
  43. package/es/shared/assets/img/xb_big.js +1 -1
  44. package/es/shared/assets/img/xb_big.png.js +1 -1
  45. package/es/shared/assets/img/xb_small.js +1 -1
  46. package/es/shared/assets/img/xb_small.png.js +1 -1
  47. package/package.json +2 -2
  48. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  49. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  50. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  51. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  52. package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
  53. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  54. package/es/shared/utils/tapable/index.d.ts +0 -139
package/README.md CHANGED
@@ -1,123 +1,123 @@
1
- # 安装
2
-
3
- ```shell
4
- npm i cnhis-design-vue@[版本号]
5
- # or
6
- yarn add cnhis-design-vue@[版本号] #推荐
7
- ```
8
-
9
- ## 1.全局引入
10
-
11
- ```typescript
12
- // main.ts
13
- import { createApp } from 'vue';
14
- import App from './App.vue';
15
- import 'cnhis-design-vue/es/packages/index.css';
16
- import cui from 'cnhis-design-vue';
17
-
18
- const app = createApp(App);
19
- app.use(cui).mount('#app');
20
- ```
21
-
22
- ## 2. 按需引入
23
-
24
- 组件现在支持了自动按需引入, 但是样式文件需要额外的处理
25
-
26
- ### 2.1 样式处理方式 1(按需引入样式)
27
-
28
- ```shell
29
- # 安装自动导入样式的插件
30
- npm i -d vite-plugin-style-import
31
- ```
32
-
33
- ```typescript
34
- // vite.config.ts
35
- import { defineConfig } from 'vite';
36
- import { createStyleImportPlugin } from 'vite-plugin-style-import';
37
-
38
- export default defineConfig({
39
- plugins: [
40
- // ...otherPlugins
41
- createStyleImportPlugin({
42
- libs: [
43
- {
44
- libraryName: 'cnhis-design-vue',
45
- esModule: true,
46
- ensureStyleFile: true,
47
- resolveStyle: name => {
48
- return `cnhis-design-vue/es/components/${ name.slice(2) }/style/index.css`;
49
- }
50
- }
51
- ]
52
- })
53
- ]
54
- });
55
- ```
56
-
57
- ### 2.2 样式处理方式 2(全局引入样式)
58
-
59
- ```typescript
60
- // main.ts
61
- import 'cnhis-design-vue/es/components/index.css';
62
- ```
63
-
64
- ## 3. 注意
65
-
66
- 由于 vxe-table 目前的引入方式是由组件 install 触发的,所以如果需要使用 c-grid/c-big-table 组件,需要全局注册二者任意一个
67
-
68
- ```typescript
69
- // main.ts
70
- import { createApp } from 'vue';
71
- import App from './App.vue';
72
-
73
- import { CGrid } from 'cnhis-design-vue';
74
- // 或者
75
- import { CBigTable } from 'cnhis-design-vue';
76
-
77
- const app = createApp(App);
78
- app.use(CGrid);
79
- // 或者
80
- app.use(CBigTable);
81
- app.mount('#app');
82
- ```
83
-
84
- ## 4.FAQ
85
-
86
- ### 4.1 项目打包后样式丢失
87
-
88
- > 处理方法, 将 cnhis-design-vue 从 vendor 包中移除
89
-
90
- ```typescript
91
- // vite.config.ts
92
- import { defineConfig } from 'vite';
93
-
94
- export default defineConfig({
95
- rollupOptions: {
96
- // ..otherOptions
97
- output: {
98
- dir: './dist',
99
- manualChunks(id: string) {
100
- if (id.includes('node_modules') && !id.includes('cnhis-design-vue')) {
101
- return 'vendor';
102
- }
103
- }
104
- }
105
- }
106
- });
107
- ```
108
-
109
- ### 4.2 找不到文件
110
-
111
- > 由于组件库输出文件类型由 js 修改成了 mjs, 如果配置了 resolve 属性的项目, 需要将 mjs 文件类型添加至 extensions 中
112
-
113
- ```javascript
114
- // vite.config.ts
115
- const config = {
116
- // ...otherOptions
117
- resolve: {
118
- // ...otherOptions
119
- // 如果没有配置, 则不用考虑
120
- extensions: ['.js', '.ts', '.vue', '.json', '.mjs']
121
- }
122
- };
123
- ```
1
+ # 安装
2
+
3
+ ```shell
4
+ npm i cnhis-design-vue@[版本号]
5
+ # or
6
+ yarn add cnhis-design-vue@[版本号] #推荐
7
+ ```
8
+
9
+ ## 1.全局引入
10
+
11
+ ```typescript
12
+ // main.ts
13
+ import { createApp } from 'vue';
14
+ import App from './App.vue';
15
+ import 'cnhis-design-vue/es/packages/index.css';
16
+ import cui from 'cnhis-design-vue';
17
+
18
+ const app = createApp(App);
19
+ app.use(cui).mount('#app');
20
+ ```
21
+
22
+ ## 2. 按需引入
23
+
24
+ 组件现在支持了自动按需引入, 但是样式文件需要额外的处理
25
+
26
+ ### 2.1 样式处理方式 1(按需引入样式)
27
+
28
+ ```shell
29
+ # 安装自动导入样式的插件
30
+ npm i -d vite-plugin-style-import
31
+ ```
32
+
33
+ ```typescript
34
+ // vite.config.ts
35
+ import { defineConfig } from 'vite';
36
+ import { createStyleImportPlugin } from 'vite-plugin-style-import';
37
+
38
+ export default defineConfig({
39
+ plugins: [
40
+ // ...otherPlugins
41
+ createStyleImportPlugin({
42
+ libs: [
43
+ {
44
+ libraryName: 'cnhis-design-vue',
45
+ esModule: true,
46
+ ensureStyleFile: true,
47
+ resolveStyle: name => {
48
+ return `cnhis-design-vue/es/components/${ name.slice(2) }/style/index.css`;
49
+ }
50
+ }
51
+ ]
52
+ })
53
+ ]
54
+ });
55
+ ```
56
+
57
+ ### 2.2 样式处理方式 2(全局引入样式)
58
+
59
+ ```typescript
60
+ // main.ts
61
+ import 'cnhis-design-vue/es/components/index.css';
62
+ ```
63
+
64
+ ## 3. 注意
65
+
66
+ 由于 vxe-table 目前的引入方式是由组件 install 触发的,所以如果需要使用 c-grid/c-big-table 组件,需要全局注册二者任意一个
67
+
68
+ ```typescript
69
+ // main.ts
70
+ import { createApp } from 'vue';
71
+ import App from './App.vue';
72
+
73
+ import { CGrid } from 'cnhis-design-vue';
74
+ // 或者
75
+ import { CBigTable } from 'cnhis-design-vue';
76
+
77
+ const app = createApp(App);
78
+ app.use(CGrid);
79
+ // 或者
80
+ app.use(CBigTable);
81
+ app.mount('#app');
82
+ ```
83
+
84
+ ## 4.FAQ
85
+
86
+ ### 4.1 项目打包后样式丢失
87
+
88
+ > 处理方法, 将 cnhis-design-vue 从 vendor 包中移除
89
+
90
+ ```typescript
91
+ // vite.config.ts
92
+ import { defineConfig } from 'vite';
93
+
94
+ export default defineConfig({
95
+ rollupOptions: {
96
+ // ..otherOptions
97
+ output: {
98
+ dir: './dist',
99
+ manualChunks(id: string) {
100
+ if (id.includes('node_modules') && !id.includes('cnhis-design-vue')) {
101
+ return 'vendor';
102
+ }
103
+ }
104
+ }
105
+ }
106
+ });
107
+ ```
108
+
109
+ ### 4.2 找不到文件
110
+
111
+ > 由于组件库输出文件类型由 js 修改成了 mjs, 如果配置了 resolve 属性的项目, 需要将 mjs 文件类型添加至 extensions 中
112
+
113
+ ```javascript
114
+ // vite.config.ts
115
+ const config = {
116
+ // ...otherOptions
117
+ resolve: {
118
+ // ...otherOptions
119
+ // 如果没有配置, 则不用考虑
120
+ extensions: ['.js', '.ts', '.vue', '.json', '.mjs']
121
+ }
122
+ };
123
+ ```
@@ -539,59 +539,69 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
539
539
  readonly ignorePathChange: boolean;
540
540
  }>;
541
541
  NInput: any;
542
- EditFormat: import("vue").DefineComponent<{}, {
542
+ EditFormat: import("vue").DefineComponent<{
543
+ formatId: {
544
+ type: StringConstructor;
545
+ required: false;
546
+ };
547
+ token: {
548
+ type: StringConstructor;
549
+ required: true;
550
+ };
551
+ }, {
543
552
  PROTOCOL: string;
544
553
  HOST: string;
554
+ BASEURL: string;
545
555
  SAVEIREPORT: string;
556
+ QUERYFILELIST: string;
557
+ DELETEFILE: string;
546
558
  instance: import("axios").AxiosInstance;
547
559
  $message: import("naive-ui").MessageApi;
560
+ props: {
561
+ formatId?: string | undefined;
562
+ token: string;
563
+ };
548
564
  fileList: import("vue").Ref<{
549
- key: string;
550
- value: {
551
- id: string;
552
- name: string;
553
- batchId?: string | null | undefined;
554
- percentage?: number | null | undefined;
555
- status: "error" | "pending" | "uploading" | "finished" | "removed";
556
- url?: string | null | undefined;
557
- file?: {
558
- readonly lastModified: number;
559
- readonly name: string;
560
- readonly webkitRelativePath: string;
561
- readonly size: number;
562
- readonly type: string;
563
- arrayBuffer: {
564
- (): Promise<ArrayBuffer>;
565
- (): Promise<ArrayBuffer>;
566
- };
567
- slice: {
568
- (start?: number | undefined, end?: number | undefined, contentType?: string | undefined): Blob;
569
- (start?: number | undefined, end?: number | undefined, contentType?: string | undefined): Blob;
570
- };
571
- stream: {
572
- (): ReadableStream<Uint8Array>;
573
- (): NodeJS.ReadableStream;
574
- };
575
- text: {
576
- (): Promise<string>;
577
- (): Promise<string>;
578
- };
579
- } | null | undefined;
580
- thumbnailUrl?: string | null | undefined;
581
- type?: string | null | undefined;
582
- fullPath?: string | null | undefined;
583
- }[];
565
+ id: string;
566
+ name: string;
567
+ batchId?: string | null | undefined;
568
+ percentage?: number | null | undefined;
569
+ status: "error" | "pending" | "uploading" | "finished" | "removed";
570
+ url?: string | null | undefined;
571
+ file?: {
572
+ readonly lastModified: number;
573
+ readonly name: string;
574
+ readonly webkitRelativePath: string;
575
+ readonly size: number;
576
+ readonly type: string;
577
+ arrayBuffer: {
578
+ (): Promise<ArrayBuffer>;
579
+ (): Promise<ArrayBuffer>;
580
+ };
581
+ slice: {
582
+ (start?: number | undefined, end?: number | undefined, contentType?: string | undefined): Blob;
583
+ (start?: number | undefined, end?: number | undefined, contentType?: string | undefined): Blob;
584
+ };
585
+ stream: {
586
+ (): ReadableStream<Uint8Array>;
587
+ (): NodeJS.ReadableStream;
588
+ };
589
+ text: {
590
+ (): Promise<string>;
591
+ (): Promise<string>;
592
+ };
593
+ } | null | undefined;
594
+ thumbnailUrl?: string | null | undefined;
595
+ type?: string | null | undefined;
596
+ fullPath?: string | null | undefined;
584
597
  }[]>;
585
- submit: (datas: import("../../../es/shared/types").AnyObject) => Promise<unknown>;
586
- onChange: (data: {
598
+ queryFileList: () => void;
599
+ onRemove: (options: {
587
600
  file: import("naive-ui").UploadFileInfo;
588
601
  fileList: import("naive-ui").UploadFileInfo[];
589
- }, index: number) => void;
590
- onBeforeUpload: (data: {
591
- file: import("naive-ui").UploadFileInfo;
592
- fileList: import("naive-ui").UploadFileInfo[];
593
- }) => Promise<boolean>;
594
- validateFormat: (file: import("naive-ui").UploadFileInfo, format: string) => boolean;
602
+ }) => Promise<unknown>;
603
+ submit: (datas: import("../../../es/shared/types").AnyObject) => Promise<unknown>;
604
+ validateFormat: () => boolean;
595
605
  NForm: any;
596
606
  NFormItem: import("vue").DefineComponent<{
597
607
  readonly label: StringConstructor;
@@ -1759,7 +1769,16 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
1759
1769
  }>;
1760
1770
  NSpace: any;
1761
1771
  Archive: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
1762
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
1772
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1773
+ formatId: {
1774
+ type: StringConstructor;
1775
+ required: false;
1776
+ };
1777
+ token: {
1778
+ type: StringConstructor;
1779
+ required: true;
1780
+ };
1781
+ }>>, {}>;
1763
1782
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "success" | "update:modelValue")[], "close" | "success" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1764
1783
  verifyUser: {
1765
1784
  type: FunctionConstructor;
@@ -543,59 +543,69 @@ declare const _default: import("vue").DefineComponent<{
543
543
  readonly ignorePathChange: boolean;
544
544
  }>;
545
545
  NInput: any;
546
- EditFormat: import("vue").DefineComponent<{}, {
546
+ EditFormat: import("vue").DefineComponent<{
547
+ formatId: {
548
+ type: StringConstructor;
549
+ required: false;
550
+ };
551
+ token: {
552
+ type: StringConstructor;
553
+ required: true;
554
+ };
555
+ }, {
547
556
  PROTOCOL: string;
548
557
  HOST: string;
558
+ BASEURL: string;
549
559
  SAVEIREPORT: string;
560
+ QUERYFILELIST: string;
561
+ DELETEFILE: string;
550
562
  instance: import("axios").AxiosInstance;
551
563
  $message: import("naive-ui").MessageApi;
564
+ props: {
565
+ formatId?: string | undefined;
566
+ token: string;
567
+ };
552
568
  fileList: import("vue").Ref<{
553
- key: string;
554
- value: {
555
- id: string;
556
- name: string;
557
- batchId?: string | null | undefined;
558
- percentage?: number | null | undefined;
559
- status: "error" | "pending" | "uploading" | "finished" | "removed";
560
- url?: string | null | undefined;
561
- file?: {
562
- readonly lastModified: number;
563
- readonly name: string;
564
- readonly webkitRelativePath: string;
565
- readonly size: number;
566
- readonly type: string;
567
- arrayBuffer: {
568
- (): Promise<ArrayBuffer>;
569
- (): Promise<ArrayBuffer>;
570
- };
571
- slice: {
572
- (start?: number | undefined, end?: number | undefined, contentType?: string | undefined): Blob;
573
- (start?: number | undefined, end?: number | undefined, contentType?: string | undefined): Blob;
574
- };
575
- stream: {
576
- (): ReadableStream<Uint8Array>;
577
- (): NodeJS.ReadableStream;
578
- };
579
- text: {
580
- (): Promise<string>;
581
- (): Promise<string>;
582
- };
583
- } | null | undefined;
584
- thumbnailUrl?: string | null | undefined;
585
- type?: string | null | undefined;
586
- fullPath?: string | null | undefined;
587
- }[];
569
+ id: string;
570
+ name: string;
571
+ batchId?: string | null | undefined;
572
+ percentage?: number | null | undefined;
573
+ status: "error" | "pending" | "uploading" | "finished" | "removed";
574
+ url?: string | null | undefined;
575
+ file?: {
576
+ readonly lastModified: number;
577
+ readonly name: string;
578
+ readonly webkitRelativePath: string;
579
+ readonly size: number;
580
+ readonly type: string;
581
+ arrayBuffer: {
582
+ (): Promise<ArrayBuffer>;
583
+ (): Promise<ArrayBuffer>;
584
+ };
585
+ slice: {
586
+ (start?: number | undefined, end?: number | undefined, contentType?: string | undefined): Blob;
587
+ (start?: number | undefined, end?: number | undefined, contentType?: string | undefined): Blob;
588
+ };
589
+ stream: {
590
+ (): ReadableStream<Uint8Array>;
591
+ (): NodeJS.ReadableStream;
592
+ };
593
+ text: {
594
+ (): Promise<string>;
595
+ (): Promise<string>;
596
+ };
597
+ } | null | undefined;
598
+ thumbnailUrl?: string | null | undefined;
599
+ type?: string | null | undefined;
600
+ fullPath?: string | null | undefined;
588
601
  }[]>;
589
- submit: (datas: import("../../../shared/types").AnyObject) => Promise<unknown>;
590
- onChange: (data: {
602
+ queryFileList: () => void;
603
+ onRemove: (options: {
591
604
  file: import("naive-ui").UploadFileInfo;
592
605
  fileList: import("naive-ui").UploadFileInfo[];
593
- }, index: number) => void;
594
- onBeforeUpload: (data: {
595
- file: import("naive-ui").UploadFileInfo;
596
- fileList: import("naive-ui").UploadFileInfo[];
597
- }) => Promise<boolean>;
598
- validateFormat: (file: import("naive-ui").UploadFileInfo, format: string) => boolean;
606
+ }) => Promise<unknown>;
607
+ submit: (datas: import("../../../shared/types").AnyObject) => Promise<unknown>;
608
+ validateFormat: () => boolean;
599
609
  NForm: any;
600
610
  NFormItem: import("vue").DefineComponent<{
601
611
  readonly label: StringConstructor;
@@ -1763,7 +1773,16 @@ declare const _default: import("vue").DefineComponent<{
1763
1773
  }>;
1764
1774
  NSpace: any;
1765
1775
  Archive: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
1766
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
1776
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1777
+ formatId: {
1778
+ type: StringConstructor;
1779
+ required: false;
1780
+ };
1781
+ token: {
1782
+ type: StringConstructor;
1783
+ required: true;
1784
+ };
1785
+ }>>, {}>;
1767
1786
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "success" | "update:modelValue")[], "close" | "success" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1768
1787
  verifyUser: {
1769
1788
  type: FunctionConstructor;
@@ -1,59 +1,69 @@
1
1
  /// <reference types="node" />
2
2
  import { UploadFileInfo } from 'naive-ui';
3
3
  import { AnyObject } from '../../../../../es/shared/types';
4
- declare const _default: import("vue").DefineComponent<{}, {
4
+ declare const _default: import("vue").DefineComponent<{
5
+ formatId: {
6
+ type: StringConstructor;
7
+ required: false;
8
+ };
9
+ token: {
10
+ type: StringConstructor;
11
+ required: true;
12
+ };
13
+ }, {
5
14
  PROTOCOL: string;
6
15
  HOST: string;
16
+ BASEURL: string;
7
17
  SAVEIREPORT: string;
18
+ QUERYFILELIST: string;
19
+ DELETEFILE: string;
8
20
  instance: import("axios").AxiosInstance;
9
21
  $message: import("naive-ui").MessageApi;
22
+ props: {
23
+ formatId?: string | undefined;
24
+ token: string;
25
+ };
10
26
  fileList: import("vue").Ref<{
11
- key: string;
12
- value: {
13
- id: string;
14
- name: string;
15
- batchId?: string | null | undefined;
16
- percentage?: number | null | undefined;
17
- status: "error" | "pending" | "uploading" | "finished" | "removed";
18
- url?: string | null | undefined;
19
- file?: {
20
- readonly lastModified: number;
21
- readonly name: string;
22
- readonly webkitRelativePath: string;
23
- readonly size: number;
24
- readonly type: string;
25
- arrayBuffer: {
26
- (): Promise<ArrayBuffer>;
27
- (): Promise<ArrayBuffer>;
28
- };
29
- slice: {
30
- (start?: number | undefined, end?: number | undefined, contentType?: string | undefined): Blob;
31
- (start?: number | undefined, end?: number | undefined, contentType?: string | undefined): Blob;
32
- };
33
- stream: {
34
- (): ReadableStream<Uint8Array>;
35
- (): NodeJS.ReadableStream;
36
- };
37
- text: {
38
- (): Promise<string>;
39
- (): Promise<string>;
40
- };
41
- } | null | undefined;
42
- thumbnailUrl?: string | null | undefined;
43
- type?: string | null | undefined;
44
- fullPath?: string | null | undefined;
45
- }[];
27
+ id: string;
28
+ name: string;
29
+ batchId?: string | null | undefined;
30
+ percentage?: number | null | undefined;
31
+ status: "error" | "pending" | "uploading" | "finished" | "removed";
32
+ url?: string | null | undefined;
33
+ file?: {
34
+ readonly lastModified: number;
35
+ readonly name: string;
36
+ readonly webkitRelativePath: string;
37
+ readonly size: number;
38
+ readonly type: string;
39
+ arrayBuffer: {
40
+ (): Promise<ArrayBuffer>;
41
+ (): Promise<ArrayBuffer>;
42
+ };
43
+ slice: {
44
+ (start?: number | undefined, end?: number | undefined, contentType?: string | undefined): Blob;
45
+ (start?: number | undefined, end?: number | undefined, contentType?: string | undefined): Blob;
46
+ };
47
+ stream: {
48
+ (): ReadableStream<Uint8Array>;
49
+ (): NodeJS.ReadableStream;
50
+ };
51
+ text: {
52
+ (): Promise<string>;
53
+ (): Promise<string>;
54
+ };
55
+ } | null | undefined;
56
+ thumbnailUrl?: string | null | undefined;
57
+ type?: string | null | undefined;
58
+ fullPath?: string | null | undefined;
46
59
  }[]>;
47
- submit: (datas: AnyObject) => Promise<unknown>;
48
- onChange: (data: {
49
- file: UploadFileInfo;
50
- fileList: UploadFileInfo[];
51
- }, index: number) => void;
52
- onBeforeUpload: (data: {
60
+ queryFileList: () => void;
61
+ onRemove: (options: {
53
62
  file: UploadFileInfo;
54
- fileList: UploadFileInfo[];
55
- }) => Promise<boolean>;
56
- validateFormat: (file: UploadFileInfo, format: string) => boolean;
63
+ fileList: Array<UploadFileInfo>;
64
+ }) => Promise<unknown>;
65
+ submit: (datas: AnyObject) => Promise<unknown>;
66
+ validateFormat: () => boolean;
57
67
  NForm: any;
58
68
  NFormItem: import("vue").DefineComponent<{
59
69
  readonly label: StringConstructor;
@@ -1221,5 +1231,14 @@ declare const _default: import("vue").DefineComponent<{}, {
1221
1231
  }>;
1222
1232
  NSpace: any;
1223
1233
  Archive: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
1224
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
1234
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1235
+ formatId: {
1236
+ type: StringConstructor;
1237
+ required: false;
1238
+ };
1239
+ token: {
1240
+ type: StringConstructor;
1241
+ required: true;
1242
+ };
1243
+ }>>, {}>;
1225
1244
  export default _default;