cnhis-design-vue 3.1.31-beta.0 → 3.1.31-beta.2
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 +23 -45
- package/es/components/button-print/index.js +1 -1
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +23 -45
- package/es/components/button-print/src/ButtonPrint.vue_vue_type_script_setup_true_lang.js +46 -84
- package/es/components/button-print/src/components/IdentityVerification.js +15 -6
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +23 -30
- package/es/components/button-print/src/components/edit.js +23 -12
- package/es/components/button-print/src/components/edit.vue.d.ts +8 -20
- package/es/components/button-print/src/utils/browserPrint.d.ts +2 -1
- package/es/components/button-print/src/utils/browserPrint.js +5 -1
- package/es/components/button-print/src/utils/dialog.d.ts +1 -1
- package/es/components/button-print/src/utils/dialog.js +4 -2
- package/es/components/button-print/src/utils/index.js +1 -1
- package/es/components/button-print/src/utils/print.d.ts +3 -2
- package/es/components/button-print/src/utils/print.js +41 -3
- package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +3 -2
- package/es/components/form-render/src/hooks/useBusinessBinding.js +20 -17
- package/es/components/iho-table/index.d.ts +36 -36
- package/es/components/iho-table/src/IhoTable.vue.d.ts +36 -36
- package/es/components/index.js +1 -1
- package/es/components/keyboard/src/Keyboard.js +2 -2
- package/es/shared/assets/img/failure.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/nodata.js +1 -1
- package/es/shared/assets/img/notfound.js +1 -1
- package/es/shared/assets/img/qr.js +1 -1
- package/es/shared/assets/img/success.js +1 -1
- package/es/shared/assets/img/video.js +1 -1
- package/es/shared/assets/img/video_default_cover.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_small.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
|
+
```
|
|
@@ -60,10 +60,6 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
60
60
|
default: string;
|
|
61
61
|
type: StringConstructor;
|
|
62
62
|
};
|
|
63
|
-
queryPrintFile: {
|
|
64
|
-
type: FunctionConstructor;
|
|
65
|
-
default: () => Promise<{}>;
|
|
66
|
-
};
|
|
67
63
|
}, {
|
|
68
64
|
$message: import("naive-ui").MessageApi;
|
|
69
65
|
printInstance: any;
|
|
@@ -126,10 +122,6 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
126
122
|
default: string;
|
|
127
123
|
type: StringConstructor;
|
|
128
124
|
};
|
|
129
|
-
queryPrintFile: {
|
|
130
|
-
type: FunctionConstructor;
|
|
131
|
-
default: () => Promise<{}>;
|
|
132
|
-
};
|
|
133
125
|
}>> & {
|
|
134
126
|
onError?: ((...args: any[]) => any) | undefined;
|
|
135
127
|
onSuccess?: ((...args: any[]) => any) | undefined;
|
|
@@ -149,7 +141,6 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
149
141
|
isInited: boolean;
|
|
150
142
|
watchPrintParamsReformatFn: null;
|
|
151
143
|
spinTimer: null;
|
|
152
|
-
fileObject: null;
|
|
153
144
|
};
|
|
154
145
|
options: {
|
|
155
146
|
label: string;
|
|
@@ -164,7 +155,6 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
164
155
|
prevFnError: () => void;
|
|
165
156
|
getPrintParams: (index?: number) => string;
|
|
166
157
|
getOnceParams: () => string;
|
|
167
|
-
browserPrint: (mode: any) => Promise<void>;
|
|
168
158
|
handleClickPrint: () => void;
|
|
169
159
|
handleClickPreview: () => Promise<void>;
|
|
170
160
|
handleClickPdf: () => Promise<void>;
|
|
@@ -206,10 +196,13 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
206
196
|
type: BooleanConstructor;
|
|
207
197
|
required: true;
|
|
208
198
|
};
|
|
209
|
-
|
|
210
|
-
type:
|
|
211
|
-
required:
|
|
212
|
-
|
|
199
|
+
formatId: {
|
|
200
|
+
type: StringConstructor;
|
|
201
|
+
required: false;
|
|
202
|
+
};
|
|
203
|
+
templateId: {
|
|
204
|
+
type: StringConstructor;
|
|
205
|
+
required: false;
|
|
213
206
|
};
|
|
214
207
|
}, {
|
|
215
208
|
$message: import("naive-ui").MessageApi;
|
|
@@ -221,7 +214,8 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
221
214
|
verifyUser: Function;
|
|
222
215
|
identityVerificationTitle: string;
|
|
223
216
|
modelValue: boolean;
|
|
224
|
-
|
|
217
|
+
formatId?: string | undefined;
|
|
218
|
+
templateId?: string | undefined;
|
|
225
219
|
};
|
|
226
220
|
emit: (event: "close" | "success" | "update:modelValue", ...args: any[]) => void;
|
|
227
221
|
editFormRef: import("vue").Ref<{
|
|
@@ -545,17 +539,12 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
545
539
|
readonly ignorePathChange: boolean;
|
|
546
540
|
}>;
|
|
547
541
|
NInput: any;
|
|
548
|
-
EditForm: import("vue").DefineComponent<{
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
};
|
|
554
|
-
}, {
|
|
542
|
+
EditForm: import("vue").DefineComponent<{}, {
|
|
543
|
+
PROTOCOL: string;
|
|
544
|
+
HOST: string;
|
|
545
|
+
SAVEIREPORT: string;
|
|
546
|
+
instance: import("axios").AxiosInstance;
|
|
555
547
|
$message: import("naive-ui").MessageApi;
|
|
556
|
-
props: {
|
|
557
|
-
saveIReportFormat: Function;
|
|
558
|
-
};
|
|
559
548
|
fileList: import("vue").Ref<{
|
|
560
549
|
key: string;
|
|
561
550
|
value: {
|
|
@@ -593,7 +582,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
593
582
|
fullPath?: string | null | undefined;
|
|
594
583
|
}[];
|
|
595
584
|
}[]>;
|
|
596
|
-
submit: (
|
|
585
|
+
submit: (datas: import("../../../es/shared/types").AnyObject) => Promise<unknown>;
|
|
597
586
|
onChange: (data: {
|
|
598
587
|
file: import("naive-ui").UploadFileInfo;
|
|
599
588
|
fileList: import("naive-ui").UploadFileInfo[];
|
|
@@ -1770,15 +1759,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1770
1759
|
}>;
|
|
1771
1760
|
NSpace: any;
|
|
1772
1761
|
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<{}>>, {}>;
|
|
1773
|
-
},
|
|
1774
|
-
saveIReportFormat: {
|
|
1775
|
-
type: FunctionConstructor;
|
|
1776
|
-
required: true;
|
|
1777
|
-
default: () => Promise<void>;
|
|
1778
|
-
};
|
|
1779
|
-
}>>, {
|
|
1780
|
-
saveIReportFormat: Function;
|
|
1781
|
-
}>;
|
|
1762
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
1782
1763
|
}, 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<{
|
|
1783
1764
|
verifyUser: {
|
|
1784
1765
|
type: FunctionConstructor;
|
|
@@ -1794,10 +1775,13 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1794
1775
|
type: BooleanConstructor;
|
|
1795
1776
|
required: true;
|
|
1796
1777
|
};
|
|
1797
|
-
|
|
1798
|
-
type:
|
|
1799
|
-
required:
|
|
1800
|
-
|
|
1778
|
+
formatId: {
|
|
1779
|
+
type: StringConstructor;
|
|
1780
|
+
required: false;
|
|
1781
|
+
};
|
|
1782
|
+
templateId: {
|
|
1783
|
+
type: StringConstructor;
|
|
1784
|
+
required: false;
|
|
1801
1785
|
};
|
|
1802
1786
|
}>> & {
|
|
1803
1787
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
@@ -1806,7 +1790,6 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1806
1790
|
}, {
|
|
1807
1791
|
verifyUser: Function;
|
|
1808
1792
|
identityVerificationTitle: string;
|
|
1809
|
-
printType: string | number;
|
|
1810
1793
|
}>;
|
|
1811
1794
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("error" | "success" | "clickoutside")[], "error" | "success" | "clickoutside", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1812
1795
|
printParams: {
|
|
@@ -1867,10 +1850,6 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1867
1850
|
default: string;
|
|
1868
1851
|
type: StringConstructor;
|
|
1869
1852
|
};
|
|
1870
|
-
queryPrintFile: {
|
|
1871
|
-
type: FunctionConstructor;
|
|
1872
|
-
default: () => Promise<{}>;
|
|
1873
|
-
};
|
|
1874
1853
|
}>> & {
|
|
1875
1854
|
onError?: ((...args: any[]) => any) | undefined;
|
|
1876
1855
|
onSuccess?: ((...args: any[]) => any) | undefined;
|
|
@@ -1889,6 +1868,5 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1889
1868
|
clickPrevFn: Function;
|
|
1890
1869
|
noDataMsg: string;
|
|
1891
1870
|
printdlgshow: string;
|
|
1892
|
-
queryPrintFile: Function;
|
|
1893
1871
|
}>>;
|
|
1894
1872
|
export default ButtonPrint;
|
|
@@ -2,7 +2,7 @@ import { COMPONENT_NAMESPACE } from '../../shared/global/variable.js';
|
|
|
2
2
|
import { safeComponentRegister } from '../../shared/utils/index.js';
|
|
3
3
|
import script from './src/ButtonPrint.js';
|
|
4
4
|
export { Print } from './src/utils/print.js';
|
|
5
|
-
export { useBrowserPrint } from './src/utils/browserPrint.js';
|
|
5
|
+
export { isIReport, useBrowserPrint } from './src/utils/browserPrint.js';
|
|
6
6
|
|
|
7
7
|
const ButtonPrint = script;
|
|
8
8
|
ButtonPrint.install = function(app) {
|
|
@@ -61,10 +61,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
61
61
|
default: string;
|
|
62
62
|
type: StringConstructor;
|
|
63
63
|
};
|
|
64
|
-
queryPrintFile: {
|
|
65
|
-
type: FunctionConstructor;
|
|
66
|
-
default: () => Promise<{}>;
|
|
67
|
-
};
|
|
68
64
|
}, {
|
|
69
65
|
$message: import("naive-ui").MessageApi;
|
|
70
66
|
printInstance: any;
|
|
@@ -130,10 +126,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
130
126
|
default: string;
|
|
131
127
|
type: StringConstructor;
|
|
132
128
|
};
|
|
133
|
-
queryPrintFile: {
|
|
134
|
-
type: FunctionConstructor;
|
|
135
|
-
default: () => Promise<{}>;
|
|
136
|
-
};
|
|
137
129
|
}>> & {
|
|
138
130
|
onError?: ((...args: any[]) => any) | undefined;
|
|
139
131
|
onSuccess?: ((...args: any[]) => any) | undefined;
|
|
@@ -153,7 +145,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
153
145
|
isInited: boolean;
|
|
154
146
|
watchPrintParamsReformatFn: null;
|
|
155
147
|
spinTimer: null;
|
|
156
|
-
fileObject: null;
|
|
157
148
|
};
|
|
158
149
|
options: {
|
|
159
150
|
label: string;
|
|
@@ -168,7 +159,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
168
159
|
prevFnError: () => void;
|
|
169
160
|
getPrintParams: (index?: number) => string;
|
|
170
161
|
getOnceParams: () => string;
|
|
171
|
-
browserPrint: (mode: any) => Promise<void>;
|
|
172
162
|
handleClickPrint: () => void;
|
|
173
163
|
handleClickPreview: () => Promise<void>;
|
|
174
164
|
handleClickPdf: () => Promise<void>;
|
|
@@ -210,10 +200,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
210
200
|
type: BooleanConstructor;
|
|
211
201
|
required: true;
|
|
212
202
|
};
|
|
213
|
-
|
|
214
|
-
type:
|
|
215
|
-
required:
|
|
216
|
-
|
|
203
|
+
formatId: {
|
|
204
|
+
type: StringConstructor;
|
|
205
|
+
required: false;
|
|
206
|
+
};
|
|
207
|
+
templateId: {
|
|
208
|
+
type: StringConstructor;
|
|
209
|
+
required: false;
|
|
217
210
|
};
|
|
218
211
|
}, {
|
|
219
212
|
$message: import("naive-ui").MessageApi;
|
|
@@ -225,7 +218,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
225
218
|
verifyUser: Function;
|
|
226
219
|
identityVerificationTitle: string;
|
|
227
220
|
modelValue: boolean;
|
|
228
|
-
|
|
221
|
+
formatId?: string | undefined;
|
|
222
|
+
templateId?: string | undefined;
|
|
229
223
|
};
|
|
230
224
|
emit: (event: "close" | "success" | "update:modelValue", ...args: any[]) => void;
|
|
231
225
|
editFormRef: import("vue").Ref<{
|
|
@@ -549,17 +543,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
549
543
|
readonly ignorePathChange: boolean;
|
|
550
544
|
}>;
|
|
551
545
|
NInput: any;
|
|
552
|
-
EditForm: import("vue").DefineComponent<{
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
};
|
|
558
|
-
}, {
|
|
546
|
+
EditForm: import("vue").DefineComponent<{}, {
|
|
547
|
+
PROTOCOL: string;
|
|
548
|
+
HOST: string;
|
|
549
|
+
SAVEIREPORT: string;
|
|
550
|
+
instance: import("axios").AxiosInstance;
|
|
559
551
|
$message: import("naive-ui").MessageApi;
|
|
560
|
-
props: {
|
|
561
|
-
saveIReportFormat: Function;
|
|
562
|
-
};
|
|
563
552
|
fileList: import("vue").Ref<{
|
|
564
553
|
key: string;
|
|
565
554
|
value: {
|
|
@@ -597,7 +586,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
597
586
|
fullPath?: string | null | undefined;
|
|
598
587
|
}[];
|
|
599
588
|
}[]>;
|
|
600
|
-
submit: (
|
|
589
|
+
submit: (datas: import("../../../shared/types").AnyObject) => Promise<unknown>;
|
|
601
590
|
onChange: (data: {
|
|
602
591
|
file: import("naive-ui").UploadFileInfo;
|
|
603
592
|
fileList: import("naive-ui").UploadFileInfo[];
|
|
@@ -1774,15 +1763,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1774
1763
|
}>;
|
|
1775
1764
|
NSpace: any;
|
|
1776
1765
|
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<{}>>, {}>;
|
|
1777
|
-
},
|
|
1778
|
-
saveIReportFormat: {
|
|
1779
|
-
type: FunctionConstructor;
|
|
1780
|
-
required: true;
|
|
1781
|
-
default: () => Promise<void>;
|
|
1782
|
-
};
|
|
1783
|
-
}>>, {
|
|
1784
|
-
saveIReportFormat: Function;
|
|
1785
|
-
}>;
|
|
1766
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
1786
1767
|
}, 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<{
|
|
1787
1768
|
verifyUser: {
|
|
1788
1769
|
type: FunctionConstructor;
|
|
@@ -1798,10 +1779,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1798
1779
|
type: BooleanConstructor;
|
|
1799
1780
|
required: true;
|
|
1800
1781
|
};
|
|
1801
|
-
|
|
1802
|
-
type:
|
|
1803
|
-
required:
|
|
1804
|
-
|
|
1782
|
+
formatId: {
|
|
1783
|
+
type: StringConstructor;
|
|
1784
|
+
required: false;
|
|
1785
|
+
};
|
|
1786
|
+
templateId: {
|
|
1787
|
+
type: StringConstructor;
|
|
1788
|
+
required: false;
|
|
1805
1789
|
};
|
|
1806
1790
|
}>> & {
|
|
1807
1791
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
@@ -1810,7 +1794,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1810
1794
|
}, {
|
|
1811
1795
|
verifyUser: Function;
|
|
1812
1796
|
identityVerificationTitle: string;
|
|
1813
|
-
printType: string | number;
|
|
1814
1797
|
}>;
|
|
1815
1798
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("error" | "success" | "clickoutside")[], "error" | "success" | "clickoutside", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1816
1799
|
printParams: {
|
|
@@ -1874,10 +1857,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1874
1857
|
default: string;
|
|
1875
1858
|
type: StringConstructor;
|
|
1876
1859
|
};
|
|
1877
|
-
queryPrintFile: {
|
|
1878
|
-
type: FunctionConstructor;
|
|
1879
|
-
default: () => Promise<{}>;
|
|
1880
|
-
};
|
|
1881
1860
|
}>> & {
|
|
1882
1861
|
onError?: ((...args: any[]) => any) | undefined;
|
|
1883
1862
|
onSuccess?: ((...args: any[]) => any) | undefined;
|
|
@@ -1896,6 +1875,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1896
1875
|
clickPrevFn: Function;
|
|
1897
1876
|
noDataMsg: string;
|
|
1898
1877
|
printdlgshow: string;
|
|
1899
|
-
queryPrintFile: Function;
|
|
1900
1878
|
}>;
|
|
1901
1879
|
export default _default;
|