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.
- package/README.md +123 -123
- package/es/components/button-print/index.d.ts +64 -45
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +64 -45
- package/es/components/button-print/src/components/EditFormat.vue.d.ts +65 -46
- package/es/components/button-print/src/components/EditFormat.vue.js +108 -88
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +64 -45
- package/es/components/button-print/src/components/IdentityVerification.vue.js +7 -4
- package/es/components/button-print/style/index.css +1 -1
- package/es/components/form-render/index.js +1 -1
- package/es/components/form-render/src/components/renderer/select.js +3 -3
- package/es/components/form-render/src/hooks/useAutographOptions.js +2 -2
- package/es/components/form-render/src/utils/index.d.ts +2 -2
- package/es/components/form-render/src/utils/index.js +27 -3
- package/es/components/index.css +1 -1
- package/es/components/index.js +1 -1
- package/es/components/keyboard/index.d.ts +26 -16
- package/es/components/keyboard/src/Keyboard.vue.d.ts +27 -8
- package/es/components/keyboard/src/Keyboard.vue.js +8 -2
- package/es/components/steps-wheel/index.d.ts +3 -0
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +3 -0
- package/es/components/steps-wheel/src/StepsWheel.vue.js +38 -9
- package/es/components/steps-wheel/style/index.css +1 -1
- package/es/shared/assets/img/failure.js +1 -1
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/icon-asc.js +1 -1
- package/es/shared/assets/img/icon-desc.js +1 -1
- package/es/shared/assets/img/no-permission.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/video.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/video_hover.js +1 -1
- package/es/shared/assets/img/video_play_hover.js +1 -1
- package/es/shared/assets/img/xb_big.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/package.json +2 -2
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- 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
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
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
|
-
|
|
586
|
-
|
|
598
|
+
queryFileList: () => void;
|
|
599
|
+
onRemove: (options: {
|
|
587
600
|
file: import("naive-ui").UploadFileInfo;
|
|
588
601
|
fileList: import("naive-ui").UploadFileInfo[];
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
|
|
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
|
-
},
|
|
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
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
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
|
-
|
|
590
|
-
|
|
602
|
+
queryFileList: () => void;
|
|
603
|
+
onRemove: (options: {
|
|
591
604
|
file: import("naive-ui").UploadFileInfo;
|
|
592
605
|
fileList: import("naive-ui").UploadFileInfo[];
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
|
|
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
|
-
},
|
|
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
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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
|
-
|
|
48
|
-
|
|
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<
|
|
56
|
-
|
|
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
|
-
},
|
|
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;
|