cnhis-design-vue 3.1.49-beta.7 → 3.1.49-release.1
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 +87 -87
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/components/field-set/index.d.ts +20 -114
- package/es/components/field-set/src/FieldSet.vue.d.ts +20 -114
- package/es/components/field-set/src/FieldSet.vue2.js +1 -1
- package/es/components/field-set/src/components/Row.vue.d.ts +19 -110
- package/es/components/field-set/src/components/Row.vue2.js +1 -1
- package/es/components/field-set/src/types/index.d.ts +1 -1
- package/es/components/field-set/src/utils/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +0 -15
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -1
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
- package/es/components/select-person/src/SearchMultiple.vue.d.ts +0 -6
- package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +3 -0
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/env.d.ts +25 -25
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/fabricjs/index.d.ts +6823 -0
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,87 +1,87 @@
|
|
|
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.FAQ
|
|
65
|
-
|
|
66
|
-
### 3.1 项目打包后样式丢失
|
|
67
|
-
|
|
68
|
-
处理方法, 将 cnhis-design-vue 从 vendor 包中移除 (没有出现此问题则不需要)
|
|
69
|
-
|
|
70
|
-
```typescript
|
|
71
|
-
// vite.config.ts
|
|
72
|
-
import { defineConfig } from 'vite';
|
|
73
|
-
|
|
74
|
-
export default defineConfig({
|
|
75
|
-
build: {
|
|
76
|
-
rollupOptions: {
|
|
77
|
-
// ..otherOptions
|
|
78
|
-
output: {
|
|
79
|
-
dir: './dist',
|
|
80
|
-
manualChunks: {
|
|
81
|
-
'cnhis-vendor': ['cnhis-design-vue']
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
```
|
|
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.FAQ
|
|
65
|
+
|
|
66
|
+
### 3.1 项目打包后样式丢失
|
|
67
|
+
|
|
68
|
+
处理方法, 将 cnhis-design-vue 从 vendor 包中移除 (没有出现此问题则不需要)
|
|
69
|
+
|
|
70
|
+
```typescript
|
|
71
|
+
// vite.config.ts
|
|
72
|
+
import { defineConfig } from 'vite';
|
|
73
|
+
|
|
74
|
+
export default defineConfig({
|
|
75
|
+
build: {
|
|
76
|
+
rollupOptions: {
|
|
77
|
+
// ..otherOptions
|
|
78
|
+
output: {
|
|
79
|
+
dir: './dist',
|
|
80
|
+
manualChunks: {
|
|
81
|
+
'cnhis-vendor': ['cnhis-design-vue']
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
```
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module 'bpmn-js/lib/Viewer';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module 'bpmn-js/lib/features/modeling';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module 'diagram-js/lib/navigation/movecanvas';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="lodash" />
|
|
2
1
|
import { SFCWithInstall } from '../../../es/shared/types';
|
|
3
2
|
export * from './src/types';
|
|
4
3
|
declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
@@ -121,7 +120,7 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
121
120
|
isShowColumn: (column: import("../../../es/shared/types").AnyObject) => boolean;
|
|
122
121
|
initFields: () => import("../../../es/shared/types").AnyObject[];
|
|
123
122
|
handleGroup: (fields: import("../../../es/shared/types").AnyObject[]) => import("../../../es/shared/types").AnyObject[];
|
|
124
|
-
getTableFields: () => import("
|
|
123
|
+
getTableFields: () => import("../../../es/shared/types").AnyObject[];
|
|
125
124
|
handleAllCheck: (checked: boolean, field: string) => void;
|
|
126
125
|
handleCheck: ({ checked, column }: {
|
|
127
126
|
checked: boolean;
|
|
@@ -132,8 +131,6 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
132
131
|
NButton: any;
|
|
133
132
|
NCheckbox: any;
|
|
134
133
|
NPopconfirm: any;
|
|
135
|
-
NIcon: any;
|
|
136
|
-
NTooltip: any;
|
|
137
134
|
Draggable: import("vue").DefineComponent<{
|
|
138
135
|
list: {
|
|
139
136
|
type: ArrayConstructor;
|
|
@@ -209,35 +206,10 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
209
206
|
}>;
|
|
210
207
|
Row: import("vue").DefineComponent<{
|
|
211
208
|
element: {
|
|
212
|
-
type: import("vue").PropType<
|
|
213
|
-
[key: string]: any;
|
|
214
|
-
id: string;
|
|
215
|
-
name: string;
|
|
216
|
-
show: boolean;
|
|
217
|
-
sort: boolean;
|
|
218
|
-
sortDirection: "NONE" | "ASC" | "DESC";
|
|
219
|
-
title: string;
|
|
220
|
-
alias: string;
|
|
221
|
-
fixedShow: boolean;
|
|
222
|
-
fixedWay: "NONE" | "LEFT" | "RIGHT";
|
|
223
|
-
columnWidth: number | null;
|
|
224
|
-
editable: boolean;
|
|
225
|
-
editableDisable: boolean;
|
|
226
|
-
required: boolean;
|
|
227
|
-
requiredDisable: boolean;
|
|
228
|
-
hide: boolean;
|
|
229
|
-
}>>;
|
|
209
|
+
type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
|
|
230
210
|
default: () => {};
|
|
231
211
|
};
|
|
232
212
|
columns: {
|
|
233
|
-
type: import("vue").PropType<import("./src/types").FieldSetColumnItem[]>;
|
|
234
|
-
default: () => never[];
|
|
235
|
-
};
|
|
236
|
-
idx: {
|
|
237
|
-
type: NumberConstructor;
|
|
238
|
-
default: number;
|
|
239
|
-
};
|
|
240
|
-
fieldList: {
|
|
241
213
|
type: import("vue").PropType<Partial<{
|
|
242
214
|
[key: string]: any;
|
|
243
215
|
id: string;
|
|
@@ -258,6 +230,10 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
258
230
|
}>[]>;
|
|
259
231
|
default: () => never[];
|
|
260
232
|
};
|
|
233
|
+
idx: {
|
|
234
|
+
type: NumberConstructor;
|
|
235
|
+
default: number;
|
|
236
|
+
};
|
|
261
237
|
}, {
|
|
262
238
|
fixedWayOptions: {
|
|
263
239
|
label: string;
|
|
@@ -269,35 +245,10 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
269
245
|
}[];
|
|
270
246
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
271
247
|
element: {
|
|
272
|
-
type: import("vue").PropType<
|
|
273
|
-
[key: string]: any;
|
|
274
|
-
id: string;
|
|
275
|
-
name: string;
|
|
276
|
-
show: boolean;
|
|
277
|
-
sort: boolean;
|
|
278
|
-
sortDirection: "NONE" | "ASC" | "DESC";
|
|
279
|
-
title: string;
|
|
280
|
-
alias: string;
|
|
281
|
-
fixedShow: boolean;
|
|
282
|
-
fixedWay: "NONE" | "LEFT" | "RIGHT";
|
|
283
|
-
columnWidth: number | null;
|
|
284
|
-
editable: boolean;
|
|
285
|
-
editableDisable: boolean;
|
|
286
|
-
required: boolean;
|
|
287
|
-
requiredDisable: boolean;
|
|
288
|
-
hide: boolean;
|
|
289
|
-
}>>;
|
|
248
|
+
type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
|
|
290
249
|
default: () => {};
|
|
291
250
|
};
|
|
292
251
|
columns: {
|
|
293
|
-
type: import("vue").PropType<import("./src/types").FieldSetColumnItem[]>;
|
|
294
|
-
default: () => never[];
|
|
295
|
-
};
|
|
296
|
-
idx: {
|
|
297
|
-
type: NumberConstructor;
|
|
298
|
-
default: number;
|
|
299
|
-
};
|
|
300
|
-
fieldList: {
|
|
301
252
|
type: import("vue").PropType<Partial<{
|
|
302
253
|
[key: string]: any;
|
|
303
254
|
id: string;
|
|
@@ -318,24 +269,19 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
318
269
|
}>[]>;
|
|
319
270
|
default: () => never[];
|
|
320
271
|
};
|
|
272
|
+
idx: {
|
|
273
|
+
type: NumberConstructor;
|
|
274
|
+
default: number;
|
|
275
|
+
};
|
|
321
276
|
}>> & {
|
|
322
277
|
onUpdateChecked?: ((...args: any[]) => any) | undefined;
|
|
323
278
|
}>>;
|
|
324
279
|
emit: (event: "updateChecked", ...args: any[]) => void;
|
|
325
|
-
|
|
326
|
-
label: string;
|
|
327
|
-
value: number;
|
|
328
|
-
}[];
|
|
329
|
-
getOptions: (column: import("../../../es/shared/types").AnyObject) => {
|
|
280
|
+
setOptions: (column: import("../../../es/shared/types").AnyObject) => {
|
|
330
281
|
label: string;
|
|
331
282
|
value: string;
|
|
332
|
-
}[] | {
|
|
333
|
-
label: string;
|
|
334
|
-
value: number;
|
|
335
283
|
}[];
|
|
336
|
-
setDisabled: (column: import("../../../es/shared/types").AnyObject) => boolean;
|
|
337
284
|
onUpdateChecked: (checked: boolean, column: import("../../../es/shared/types").AnyObject) => void;
|
|
338
|
-
handleUpdateSelect: (value: string, column: import("../../../es/shared/types").AnyObject) => void;
|
|
339
285
|
NCheckbox: any;
|
|
340
286
|
NSelect: any;
|
|
341
287
|
NInput: any;
|
|
@@ -347,35 +293,10 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
347
293
|
ReorderTwoOutline: 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<{}>>, {}>;
|
|
348
294
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "updateChecked"[], "updateChecked", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
349
295
|
element: {
|
|
350
|
-
type: import("vue").PropType<
|
|
351
|
-
[key: string]: any;
|
|
352
|
-
id: string;
|
|
353
|
-
name: string;
|
|
354
|
-
show: boolean;
|
|
355
|
-
sort: boolean;
|
|
356
|
-
sortDirection: "NONE" | "ASC" | "DESC";
|
|
357
|
-
title: string;
|
|
358
|
-
alias: string;
|
|
359
|
-
fixedShow: boolean;
|
|
360
|
-
fixedWay: "NONE" | "LEFT" | "RIGHT";
|
|
361
|
-
columnWidth: number | null;
|
|
362
|
-
editable: boolean;
|
|
363
|
-
editableDisable: boolean;
|
|
364
|
-
required: boolean;
|
|
365
|
-
requiredDisable: boolean;
|
|
366
|
-
hide: boolean;
|
|
367
|
-
}>>;
|
|
296
|
+
type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
|
|
368
297
|
default: () => {};
|
|
369
298
|
};
|
|
370
299
|
columns: {
|
|
371
|
-
type: import("vue").PropType<import("./src/types").FieldSetColumnItem[]>;
|
|
372
|
-
default: () => never[];
|
|
373
|
-
};
|
|
374
|
-
idx: {
|
|
375
|
-
type: NumberConstructor;
|
|
376
|
-
default: number;
|
|
377
|
-
};
|
|
378
|
-
fieldList: {
|
|
379
300
|
type: import("vue").PropType<Partial<{
|
|
380
301
|
[key: string]: any;
|
|
381
302
|
id: string;
|
|
@@ -396,30 +317,14 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
396
317
|
}>[]>;
|
|
397
318
|
default: () => never[];
|
|
398
319
|
};
|
|
320
|
+
idx: {
|
|
321
|
+
type: NumberConstructor;
|
|
322
|
+
default: number;
|
|
323
|
+
};
|
|
399
324
|
}>> & {
|
|
400
325
|
onUpdateChecked?: ((...args: any[]) => any) | undefined;
|
|
401
326
|
}, {
|
|
402
|
-
columns:
|
|
403
|
-
element: Partial<{
|
|
404
|
-
[key: string]: any;
|
|
405
|
-
id: string;
|
|
406
|
-
name: string;
|
|
407
|
-
show: boolean;
|
|
408
|
-
sort: boolean;
|
|
409
|
-
sortDirection: "NONE" | "ASC" | "DESC";
|
|
410
|
-
title: string;
|
|
411
|
-
alias: string;
|
|
412
|
-
fixedShow: boolean;
|
|
413
|
-
fixedWay: "NONE" | "LEFT" | "RIGHT";
|
|
414
|
-
columnWidth: number | null;
|
|
415
|
-
editable: boolean;
|
|
416
|
-
editableDisable: boolean;
|
|
417
|
-
required: boolean;
|
|
418
|
-
requiredDisable: boolean;
|
|
419
|
-
hide: boolean;
|
|
420
|
-
}>;
|
|
421
|
-
idx: number;
|
|
422
|
-
fieldList: Partial<{
|
|
327
|
+
columns: Partial<{
|
|
423
328
|
[key: string]: any;
|
|
424
329
|
id: string;
|
|
425
330
|
name: string;
|
|
@@ -437,13 +342,14 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
437
342
|
requiredDisable: boolean;
|
|
438
343
|
hide: boolean;
|
|
439
344
|
}>[];
|
|
345
|
+
element: import("../../../es/shared/types").AnyObject;
|
|
346
|
+
idx: number;
|
|
440
347
|
}>;
|
|
441
348
|
isArray: {
|
|
442
349
|
(value?: any): value is any[];
|
|
443
350
|
<T>(value?: any): value is any[];
|
|
444
351
|
};
|
|
445
352
|
setStyle: typeof import("./src/utils").setStyle;
|
|
446
|
-
HelpCircleSharp: 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<{}>>, {}>;
|
|
447
353
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "save" | "reset")[], "close" | "save" | "reset", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
448
354
|
fields: {
|
|
449
355
|
type: import("vue").PropType<Partial<{
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="lodash" />
|
|
2
1
|
import { PropType } from 'vue';
|
|
3
2
|
import { setStyle, isDisable } from './utils';
|
|
4
3
|
import { FieldSetColumnName, FieldSetColumnItem } from '../../../../es/components/field-set/src/types';
|
|
@@ -123,7 +122,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
123
122
|
isShowColumn: (column: AnyObject) => boolean;
|
|
124
123
|
initFields: () => AnyObject[];
|
|
125
124
|
handleGroup: (fields: AnyObject[]) => AnyObject[];
|
|
126
|
-
getTableFields: () =>
|
|
125
|
+
getTableFields: () => AnyObject[];
|
|
127
126
|
handleAllCheck: (checked: boolean, field: string) => void;
|
|
128
127
|
handleCheck: ({ checked, column }: {
|
|
129
128
|
checked: boolean;
|
|
@@ -134,8 +133,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
134
133
|
NButton: any;
|
|
135
134
|
NCheckbox: any;
|
|
136
135
|
NPopconfirm: any;
|
|
137
|
-
NIcon: any;
|
|
138
|
-
NTooltip: any;
|
|
139
136
|
Draggable: import("vue").DefineComponent<{
|
|
140
137
|
list: {
|
|
141
138
|
type: ArrayConstructor;
|
|
@@ -211,35 +208,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
211
208
|
}>;
|
|
212
209
|
Row: import("vue").DefineComponent<{
|
|
213
210
|
element: {
|
|
214
|
-
type: PropType<
|
|
215
|
-
[key: string]: any;
|
|
216
|
-
id: string;
|
|
217
|
-
name: string;
|
|
218
|
-
show: boolean;
|
|
219
|
-
sort: boolean;
|
|
220
|
-
sortDirection: "NONE" | "ASC" | "DESC";
|
|
221
|
-
title: string;
|
|
222
|
-
alias: string;
|
|
223
|
-
fixedShow: boolean;
|
|
224
|
-
fixedWay: "NONE" | "LEFT" | "RIGHT";
|
|
225
|
-
columnWidth: number | null;
|
|
226
|
-
editable: boolean;
|
|
227
|
-
editableDisable: boolean;
|
|
228
|
-
required: boolean;
|
|
229
|
-
requiredDisable: boolean;
|
|
230
|
-
hide: boolean;
|
|
231
|
-
}>>;
|
|
211
|
+
type: PropType<AnyObject>;
|
|
232
212
|
default: () => {};
|
|
233
213
|
};
|
|
234
214
|
columns: {
|
|
235
|
-
type: PropType<FieldSetColumnItem[]>;
|
|
236
|
-
default: () => never[];
|
|
237
|
-
};
|
|
238
|
-
idx: {
|
|
239
|
-
type: NumberConstructor;
|
|
240
|
-
default: number;
|
|
241
|
-
};
|
|
242
|
-
fieldList: {
|
|
243
215
|
type: PropType<Partial<{
|
|
244
216
|
[key: string]: any;
|
|
245
217
|
id: string;
|
|
@@ -260,6 +232,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
260
232
|
}>[]>;
|
|
261
233
|
default: () => never[];
|
|
262
234
|
};
|
|
235
|
+
idx: {
|
|
236
|
+
type: NumberConstructor;
|
|
237
|
+
default: number;
|
|
238
|
+
};
|
|
263
239
|
}, {
|
|
264
240
|
fixedWayOptions: {
|
|
265
241
|
label: string;
|
|
@@ -271,35 +247,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
271
247
|
}[];
|
|
272
248
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
273
249
|
element: {
|
|
274
|
-
type: PropType<
|
|
275
|
-
[key: string]: any;
|
|
276
|
-
id: string;
|
|
277
|
-
name: string;
|
|
278
|
-
show: boolean;
|
|
279
|
-
sort: boolean;
|
|
280
|
-
sortDirection: "NONE" | "ASC" | "DESC";
|
|
281
|
-
title: string;
|
|
282
|
-
alias: string;
|
|
283
|
-
fixedShow: boolean;
|
|
284
|
-
fixedWay: "NONE" | "LEFT" | "RIGHT";
|
|
285
|
-
columnWidth: number | null;
|
|
286
|
-
editable: boolean;
|
|
287
|
-
editableDisable: boolean;
|
|
288
|
-
required: boolean;
|
|
289
|
-
requiredDisable: boolean;
|
|
290
|
-
hide: boolean;
|
|
291
|
-
}>>;
|
|
250
|
+
type: PropType<AnyObject>;
|
|
292
251
|
default: () => {};
|
|
293
252
|
};
|
|
294
253
|
columns: {
|
|
295
|
-
type: PropType<FieldSetColumnItem[]>;
|
|
296
|
-
default: () => never[];
|
|
297
|
-
};
|
|
298
|
-
idx: {
|
|
299
|
-
type: NumberConstructor;
|
|
300
|
-
default: number;
|
|
301
|
-
};
|
|
302
|
-
fieldList: {
|
|
303
254
|
type: PropType<Partial<{
|
|
304
255
|
[key: string]: any;
|
|
305
256
|
id: string;
|
|
@@ -320,24 +271,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
320
271
|
}>[]>;
|
|
321
272
|
default: () => never[];
|
|
322
273
|
};
|
|
274
|
+
idx: {
|
|
275
|
+
type: NumberConstructor;
|
|
276
|
+
default: number;
|
|
277
|
+
};
|
|
323
278
|
}>> & {
|
|
324
279
|
onUpdateChecked?: ((...args: any[]) => any) | undefined;
|
|
325
280
|
}>>;
|
|
326
281
|
emit: (event: "updateChecked", ...args: any[]) => void;
|
|
327
|
-
|
|
328
|
-
label: string;
|
|
329
|
-
value: number;
|
|
330
|
-
}[];
|
|
331
|
-
getOptions: (column: AnyObject) => {
|
|
282
|
+
setOptions: (column: AnyObject) => {
|
|
332
283
|
label: string;
|
|
333
284
|
value: string;
|
|
334
|
-
}[] | {
|
|
335
|
-
label: string;
|
|
336
|
-
value: number;
|
|
337
285
|
}[];
|
|
338
|
-
setDisabled: (column: AnyObject) => boolean;
|
|
339
286
|
onUpdateChecked: (checked: boolean, column: AnyObject) => void;
|
|
340
|
-
handleUpdateSelect: (value: string, column: AnyObject) => void;
|
|
341
287
|
NCheckbox: any;
|
|
342
288
|
NSelect: any;
|
|
343
289
|
NInput: any;
|
|
@@ -349,35 +295,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
349
295
|
ReorderTwoOutline: 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<{}>>, {}>;
|
|
350
296
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "updateChecked"[], "updateChecked", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
351
297
|
element: {
|
|
352
|
-
type: PropType<
|
|
353
|
-
[key: string]: any;
|
|
354
|
-
id: string;
|
|
355
|
-
name: string;
|
|
356
|
-
show: boolean;
|
|
357
|
-
sort: boolean;
|
|
358
|
-
sortDirection: "NONE" | "ASC" | "DESC";
|
|
359
|
-
title: string;
|
|
360
|
-
alias: string;
|
|
361
|
-
fixedShow: boolean;
|
|
362
|
-
fixedWay: "NONE" | "LEFT" | "RIGHT";
|
|
363
|
-
columnWidth: number | null;
|
|
364
|
-
editable: boolean;
|
|
365
|
-
editableDisable: boolean;
|
|
366
|
-
required: boolean;
|
|
367
|
-
requiredDisable: boolean;
|
|
368
|
-
hide: boolean;
|
|
369
|
-
}>>;
|
|
298
|
+
type: PropType<AnyObject>;
|
|
370
299
|
default: () => {};
|
|
371
300
|
};
|
|
372
301
|
columns: {
|
|
373
|
-
type: PropType<FieldSetColumnItem[]>;
|
|
374
|
-
default: () => never[];
|
|
375
|
-
};
|
|
376
|
-
idx: {
|
|
377
|
-
type: NumberConstructor;
|
|
378
|
-
default: number;
|
|
379
|
-
};
|
|
380
|
-
fieldList: {
|
|
381
302
|
type: PropType<Partial<{
|
|
382
303
|
[key: string]: any;
|
|
383
304
|
id: string;
|
|
@@ -398,30 +319,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
398
319
|
}>[]>;
|
|
399
320
|
default: () => never[];
|
|
400
321
|
};
|
|
322
|
+
idx: {
|
|
323
|
+
type: NumberConstructor;
|
|
324
|
+
default: number;
|
|
325
|
+
};
|
|
401
326
|
}>> & {
|
|
402
327
|
onUpdateChecked?: ((...args: any[]) => any) | undefined;
|
|
403
328
|
}, {
|
|
404
|
-
columns:
|
|
405
|
-
element: Partial<{
|
|
406
|
-
[key: string]: any;
|
|
407
|
-
id: string;
|
|
408
|
-
name: string;
|
|
409
|
-
show: boolean;
|
|
410
|
-
sort: boolean;
|
|
411
|
-
sortDirection: "NONE" | "ASC" | "DESC";
|
|
412
|
-
title: string;
|
|
413
|
-
alias: string;
|
|
414
|
-
fixedShow: boolean;
|
|
415
|
-
fixedWay: "NONE" | "LEFT" | "RIGHT";
|
|
416
|
-
columnWidth: number | null;
|
|
417
|
-
editable: boolean;
|
|
418
|
-
editableDisable: boolean;
|
|
419
|
-
required: boolean;
|
|
420
|
-
requiredDisable: boolean;
|
|
421
|
-
hide: boolean;
|
|
422
|
-
}>;
|
|
423
|
-
idx: number;
|
|
424
|
-
fieldList: Partial<{
|
|
329
|
+
columns: Partial<{
|
|
425
330
|
[key: string]: any;
|
|
426
331
|
id: string;
|
|
427
332
|
name: string;
|
|
@@ -439,13 +344,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
439
344
|
requiredDisable: boolean;
|
|
440
345
|
hide: boolean;
|
|
441
346
|
}>[];
|
|
347
|
+
element: AnyObject;
|
|
348
|
+
idx: number;
|
|
442
349
|
}>;
|
|
443
350
|
isArray: {
|
|
444
351
|
(value?: any): value is any[];
|
|
445
352
|
<T>(value?: any): value is any[];
|
|
446
353
|
};
|
|
447
354
|
setStyle: typeof setStyle;
|
|
448
|
-
HelpCircleSharp: 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<{}>>, {}>;
|
|
449
355
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "save" | "reset")[], "close" | "save" | "reset", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
450
356
|
fields: {
|
|
451
357
|
type: PropType<Partial<{
|