cnhis-design-vue 3.1.49-beta.5 → 3.1.49-beta.7
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/field-set/index.d.ts +114 -20
- package/es/components/field-set/src/FieldSet.vue.d.ts +114 -20
- package/es/components/field-set/src/FieldSet.vue2.js +1 -1
- package/es/components/field-set/src/components/Row.vue.d.ts +110 -19
- 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 +15 -0
- 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 +6 -0
- package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +0 -3
- 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/package.json.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/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/fabricjs/index.d.ts +0 -6823
- package/es/shared/utils/tapable/index.d.ts +0 -139
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
|
+
```
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="lodash" />
|
|
1
2
|
import { SFCWithInstall } from '../../../es/shared/types';
|
|
2
3
|
export * from './src/types';
|
|
3
4
|
declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
@@ -120,7 +121,7 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
120
121
|
isShowColumn: (column: import("../../../es/shared/types").AnyObject) => boolean;
|
|
121
122
|
initFields: () => import("../../../es/shared/types").AnyObject[];
|
|
122
123
|
handleGroup: (fields: import("../../../es/shared/types").AnyObject[]) => import("../../../es/shared/types").AnyObject[];
|
|
123
|
-
getTableFields: () => import("
|
|
124
|
+
getTableFields: () => import("lodash").Omit<never, "uuid">[];
|
|
124
125
|
handleAllCheck: (checked: boolean, field: string) => void;
|
|
125
126
|
handleCheck: ({ checked, column }: {
|
|
126
127
|
checked: boolean;
|
|
@@ -131,6 +132,8 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
131
132
|
NButton: any;
|
|
132
133
|
NCheckbox: any;
|
|
133
134
|
NPopconfirm: any;
|
|
135
|
+
NIcon: any;
|
|
136
|
+
NTooltip: any;
|
|
134
137
|
Draggable: import("vue").DefineComponent<{
|
|
135
138
|
list: {
|
|
136
139
|
type: ArrayConstructor;
|
|
@@ -206,10 +209,6 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
206
209
|
}>;
|
|
207
210
|
Row: import("vue").DefineComponent<{
|
|
208
211
|
element: {
|
|
209
|
-
type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
|
|
210
|
-
default: () => {};
|
|
211
|
-
};
|
|
212
|
-
columns: {
|
|
213
212
|
type: import("vue").PropType<Partial<{
|
|
214
213
|
[key: string]: any;
|
|
215
214
|
id: string;
|
|
@@ -227,13 +226,38 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
227
226
|
required: boolean;
|
|
228
227
|
requiredDisable: boolean;
|
|
229
228
|
hide: boolean;
|
|
230
|
-
}
|
|
229
|
+
}>>;
|
|
230
|
+
default: () => {};
|
|
231
|
+
};
|
|
232
|
+
columns: {
|
|
233
|
+
type: import("vue").PropType<import("./src/types").FieldSetColumnItem[]>;
|
|
231
234
|
default: () => never[];
|
|
232
235
|
};
|
|
233
236
|
idx: {
|
|
234
237
|
type: NumberConstructor;
|
|
235
238
|
default: number;
|
|
236
239
|
};
|
|
240
|
+
fieldList: {
|
|
241
|
+
type: import("vue").PropType<Partial<{
|
|
242
|
+
[key: string]: any;
|
|
243
|
+
id: string;
|
|
244
|
+
name: string;
|
|
245
|
+
show: boolean;
|
|
246
|
+
sort: boolean;
|
|
247
|
+
sortDirection: "NONE" | "ASC" | "DESC";
|
|
248
|
+
title: string;
|
|
249
|
+
alias: string;
|
|
250
|
+
fixedShow: boolean;
|
|
251
|
+
fixedWay: "NONE" | "LEFT" | "RIGHT";
|
|
252
|
+
columnWidth: number | null;
|
|
253
|
+
editable: boolean;
|
|
254
|
+
editableDisable: boolean;
|
|
255
|
+
required: boolean;
|
|
256
|
+
requiredDisable: boolean;
|
|
257
|
+
hide: boolean;
|
|
258
|
+
}>[]>;
|
|
259
|
+
default: () => never[];
|
|
260
|
+
};
|
|
237
261
|
}, {
|
|
238
262
|
fixedWayOptions: {
|
|
239
263
|
label: string;
|
|
@@ -245,10 +269,6 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
245
269
|
}[];
|
|
246
270
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
247
271
|
element: {
|
|
248
|
-
type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
|
|
249
|
-
default: () => {};
|
|
250
|
-
};
|
|
251
|
-
columns: {
|
|
252
272
|
type: import("vue").PropType<Partial<{
|
|
253
273
|
[key: string]: any;
|
|
254
274
|
id: string;
|
|
@@ -266,22 +286,56 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
266
286
|
required: boolean;
|
|
267
287
|
requiredDisable: boolean;
|
|
268
288
|
hide: boolean;
|
|
269
|
-
}
|
|
289
|
+
}>>;
|
|
290
|
+
default: () => {};
|
|
291
|
+
};
|
|
292
|
+
columns: {
|
|
293
|
+
type: import("vue").PropType<import("./src/types").FieldSetColumnItem[]>;
|
|
270
294
|
default: () => never[];
|
|
271
295
|
};
|
|
272
296
|
idx: {
|
|
273
297
|
type: NumberConstructor;
|
|
274
298
|
default: number;
|
|
275
299
|
};
|
|
300
|
+
fieldList: {
|
|
301
|
+
type: import("vue").PropType<Partial<{
|
|
302
|
+
[key: string]: any;
|
|
303
|
+
id: string;
|
|
304
|
+
name: string;
|
|
305
|
+
show: boolean;
|
|
306
|
+
sort: boolean;
|
|
307
|
+
sortDirection: "NONE" | "ASC" | "DESC";
|
|
308
|
+
title: string;
|
|
309
|
+
alias: string;
|
|
310
|
+
fixedShow: boolean;
|
|
311
|
+
fixedWay: "NONE" | "LEFT" | "RIGHT";
|
|
312
|
+
columnWidth: number | null;
|
|
313
|
+
editable: boolean;
|
|
314
|
+
editableDisable: boolean;
|
|
315
|
+
required: boolean;
|
|
316
|
+
requiredDisable: boolean;
|
|
317
|
+
hide: boolean;
|
|
318
|
+
}>[]>;
|
|
319
|
+
default: () => never[];
|
|
320
|
+
};
|
|
276
321
|
}>> & {
|
|
277
322
|
onUpdateChecked?: ((...args: any[]) => any) | undefined;
|
|
278
323
|
}>>;
|
|
279
324
|
emit: (event: "updateChecked", ...args: any[]) => void;
|
|
280
|
-
|
|
325
|
+
getSortPriorityOptions: () => {
|
|
326
|
+
label: string;
|
|
327
|
+
value: number;
|
|
328
|
+
}[];
|
|
329
|
+
getOptions: (column: import("../../../es/shared/types").AnyObject) => {
|
|
281
330
|
label: string;
|
|
282
331
|
value: string;
|
|
332
|
+
}[] | {
|
|
333
|
+
label: string;
|
|
334
|
+
value: number;
|
|
283
335
|
}[];
|
|
336
|
+
setDisabled: (column: import("../../../es/shared/types").AnyObject) => boolean;
|
|
284
337
|
onUpdateChecked: (checked: boolean, column: import("../../../es/shared/types").AnyObject) => void;
|
|
338
|
+
handleUpdateSelect: (value: string, column: import("../../../es/shared/types").AnyObject) => void;
|
|
285
339
|
NCheckbox: any;
|
|
286
340
|
NSelect: any;
|
|
287
341
|
NInput: any;
|
|
@@ -293,10 +347,6 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
293
347
|
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<{}>>, {}>;
|
|
294
348
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "updateChecked"[], "updateChecked", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
295
349
|
element: {
|
|
296
|
-
type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
|
|
297
|
-
default: () => {};
|
|
298
|
-
};
|
|
299
|
-
columns: {
|
|
300
350
|
type: import("vue").PropType<Partial<{
|
|
301
351
|
[key: string]: any;
|
|
302
352
|
id: string;
|
|
@@ -314,17 +364,43 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
314
364
|
required: boolean;
|
|
315
365
|
requiredDisable: boolean;
|
|
316
366
|
hide: boolean;
|
|
317
|
-
}
|
|
367
|
+
}>>;
|
|
368
|
+
default: () => {};
|
|
369
|
+
};
|
|
370
|
+
columns: {
|
|
371
|
+
type: import("vue").PropType<import("./src/types").FieldSetColumnItem[]>;
|
|
318
372
|
default: () => never[];
|
|
319
373
|
};
|
|
320
374
|
idx: {
|
|
321
375
|
type: NumberConstructor;
|
|
322
376
|
default: number;
|
|
323
377
|
};
|
|
378
|
+
fieldList: {
|
|
379
|
+
type: import("vue").PropType<Partial<{
|
|
380
|
+
[key: string]: any;
|
|
381
|
+
id: string;
|
|
382
|
+
name: string;
|
|
383
|
+
show: boolean;
|
|
384
|
+
sort: boolean;
|
|
385
|
+
sortDirection: "NONE" | "ASC" | "DESC";
|
|
386
|
+
title: string;
|
|
387
|
+
alias: string;
|
|
388
|
+
fixedShow: boolean;
|
|
389
|
+
fixedWay: "NONE" | "LEFT" | "RIGHT";
|
|
390
|
+
columnWidth: number | null;
|
|
391
|
+
editable: boolean;
|
|
392
|
+
editableDisable: boolean;
|
|
393
|
+
required: boolean;
|
|
394
|
+
requiredDisable: boolean;
|
|
395
|
+
hide: boolean;
|
|
396
|
+
}>[]>;
|
|
397
|
+
default: () => never[];
|
|
398
|
+
};
|
|
324
399
|
}>> & {
|
|
325
400
|
onUpdateChecked?: ((...args: any[]) => any) | undefined;
|
|
326
401
|
}, {
|
|
327
|
-
columns:
|
|
402
|
+
columns: import("./src/types").FieldSetColumnItem[];
|
|
403
|
+
element: Partial<{
|
|
328
404
|
[key: string]: any;
|
|
329
405
|
id: string;
|
|
330
406
|
name: string;
|
|
@@ -341,15 +417,33 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
341
417
|
required: boolean;
|
|
342
418
|
requiredDisable: boolean;
|
|
343
419
|
hide: boolean;
|
|
344
|
-
}
|
|
345
|
-
element: import("../../../es/shared/types").AnyObject;
|
|
420
|
+
}>;
|
|
346
421
|
idx: number;
|
|
422
|
+
fieldList: Partial<{
|
|
423
|
+
[key: string]: any;
|
|
424
|
+
id: string;
|
|
425
|
+
name: string;
|
|
426
|
+
show: boolean;
|
|
427
|
+
sort: boolean;
|
|
428
|
+
sortDirection: "NONE" | "ASC" | "DESC";
|
|
429
|
+
title: string;
|
|
430
|
+
alias: string;
|
|
431
|
+
fixedShow: boolean;
|
|
432
|
+
fixedWay: "NONE" | "LEFT" | "RIGHT";
|
|
433
|
+
columnWidth: number | null;
|
|
434
|
+
editable: boolean;
|
|
435
|
+
editableDisable: boolean;
|
|
436
|
+
required: boolean;
|
|
437
|
+
requiredDisable: boolean;
|
|
438
|
+
hide: boolean;
|
|
439
|
+
}>[];
|
|
347
440
|
}>;
|
|
348
441
|
isArray: {
|
|
349
442
|
(value?: any): value is any[];
|
|
350
443
|
<T>(value?: any): value is any[];
|
|
351
444
|
};
|
|
352
445
|
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<{}>>, {}>;
|
|
353
447
|
}, 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<{
|
|
354
448
|
fields: {
|
|
355
449
|
type: import("vue").PropType<Partial<{
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="lodash" />
|
|
1
2
|
import { PropType } from 'vue';
|
|
2
3
|
import { setStyle, isDisable } from './utils';
|
|
3
4
|
import { FieldSetColumnName, FieldSetColumnItem } from '../../../../es/components/field-set/src/types';
|
|
@@ -122,7 +123,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
122
123
|
isShowColumn: (column: AnyObject) => boolean;
|
|
123
124
|
initFields: () => AnyObject[];
|
|
124
125
|
handleGroup: (fields: AnyObject[]) => AnyObject[];
|
|
125
|
-
getTableFields: () =>
|
|
126
|
+
getTableFields: () => import("lodash").Omit<never, "uuid">[];
|
|
126
127
|
handleAllCheck: (checked: boolean, field: string) => void;
|
|
127
128
|
handleCheck: ({ checked, column }: {
|
|
128
129
|
checked: boolean;
|
|
@@ -133,6 +134,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
133
134
|
NButton: any;
|
|
134
135
|
NCheckbox: any;
|
|
135
136
|
NPopconfirm: any;
|
|
137
|
+
NIcon: any;
|
|
138
|
+
NTooltip: any;
|
|
136
139
|
Draggable: import("vue").DefineComponent<{
|
|
137
140
|
list: {
|
|
138
141
|
type: ArrayConstructor;
|
|
@@ -208,10 +211,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
208
211
|
}>;
|
|
209
212
|
Row: import("vue").DefineComponent<{
|
|
210
213
|
element: {
|
|
211
|
-
type: PropType<AnyObject>;
|
|
212
|
-
default: () => {};
|
|
213
|
-
};
|
|
214
|
-
columns: {
|
|
215
214
|
type: PropType<Partial<{
|
|
216
215
|
[key: string]: any;
|
|
217
216
|
id: string;
|
|
@@ -229,13 +228,38 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
229
228
|
required: boolean;
|
|
230
229
|
requiredDisable: boolean;
|
|
231
230
|
hide: boolean;
|
|
232
|
-
}
|
|
231
|
+
}>>;
|
|
232
|
+
default: () => {};
|
|
233
|
+
};
|
|
234
|
+
columns: {
|
|
235
|
+
type: PropType<FieldSetColumnItem[]>;
|
|
233
236
|
default: () => never[];
|
|
234
237
|
};
|
|
235
238
|
idx: {
|
|
236
239
|
type: NumberConstructor;
|
|
237
240
|
default: number;
|
|
238
241
|
};
|
|
242
|
+
fieldList: {
|
|
243
|
+
type: PropType<Partial<{
|
|
244
|
+
[key: string]: any;
|
|
245
|
+
id: string;
|
|
246
|
+
name: string;
|
|
247
|
+
show: boolean;
|
|
248
|
+
sort: boolean;
|
|
249
|
+
sortDirection: "NONE" | "ASC" | "DESC";
|
|
250
|
+
title: string;
|
|
251
|
+
alias: string;
|
|
252
|
+
fixedShow: boolean;
|
|
253
|
+
fixedWay: "NONE" | "LEFT" | "RIGHT";
|
|
254
|
+
columnWidth: number | null;
|
|
255
|
+
editable: boolean;
|
|
256
|
+
editableDisable: boolean;
|
|
257
|
+
required: boolean;
|
|
258
|
+
requiredDisable: boolean;
|
|
259
|
+
hide: boolean;
|
|
260
|
+
}>[]>;
|
|
261
|
+
default: () => never[];
|
|
262
|
+
};
|
|
239
263
|
}, {
|
|
240
264
|
fixedWayOptions: {
|
|
241
265
|
label: string;
|
|
@@ -247,10 +271,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
247
271
|
}[];
|
|
248
272
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
249
273
|
element: {
|
|
250
|
-
type: PropType<AnyObject>;
|
|
251
|
-
default: () => {};
|
|
252
|
-
};
|
|
253
|
-
columns: {
|
|
254
274
|
type: PropType<Partial<{
|
|
255
275
|
[key: string]: any;
|
|
256
276
|
id: string;
|
|
@@ -268,22 +288,56 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
268
288
|
required: boolean;
|
|
269
289
|
requiredDisable: boolean;
|
|
270
290
|
hide: boolean;
|
|
271
|
-
}
|
|
291
|
+
}>>;
|
|
292
|
+
default: () => {};
|
|
293
|
+
};
|
|
294
|
+
columns: {
|
|
295
|
+
type: PropType<FieldSetColumnItem[]>;
|
|
272
296
|
default: () => never[];
|
|
273
297
|
};
|
|
274
298
|
idx: {
|
|
275
299
|
type: NumberConstructor;
|
|
276
300
|
default: number;
|
|
277
301
|
};
|
|
302
|
+
fieldList: {
|
|
303
|
+
type: PropType<Partial<{
|
|
304
|
+
[key: string]: any;
|
|
305
|
+
id: string;
|
|
306
|
+
name: string;
|
|
307
|
+
show: boolean;
|
|
308
|
+
sort: boolean;
|
|
309
|
+
sortDirection: "NONE" | "ASC" | "DESC";
|
|
310
|
+
title: string;
|
|
311
|
+
alias: string;
|
|
312
|
+
fixedShow: boolean;
|
|
313
|
+
fixedWay: "NONE" | "LEFT" | "RIGHT";
|
|
314
|
+
columnWidth: number | null;
|
|
315
|
+
editable: boolean;
|
|
316
|
+
editableDisable: boolean;
|
|
317
|
+
required: boolean;
|
|
318
|
+
requiredDisable: boolean;
|
|
319
|
+
hide: boolean;
|
|
320
|
+
}>[]>;
|
|
321
|
+
default: () => never[];
|
|
322
|
+
};
|
|
278
323
|
}>> & {
|
|
279
324
|
onUpdateChecked?: ((...args: any[]) => any) | undefined;
|
|
280
325
|
}>>;
|
|
281
326
|
emit: (event: "updateChecked", ...args: any[]) => void;
|
|
282
|
-
|
|
327
|
+
getSortPriorityOptions: () => {
|
|
328
|
+
label: string;
|
|
329
|
+
value: number;
|
|
330
|
+
}[];
|
|
331
|
+
getOptions: (column: AnyObject) => {
|
|
283
332
|
label: string;
|
|
284
333
|
value: string;
|
|
334
|
+
}[] | {
|
|
335
|
+
label: string;
|
|
336
|
+
value: number;
|
|
285
337
|
}[];
|
|
338
|
+
setDisabled: (column: AnyObject) => boolean;
|
|
286
339
|
onUpdateChecked: (checked: boolean, column: AnyObject) => void;
|
|
340
|
+
handleUpdateSelect: (value: string, column: AnyObject) => void;
|
|
287
341
|
NCheckbox: any;
|
|
288
342
|
NSelect: any;
|
|
289
343
|
NInput: any;
|
|
@@ -295,10 +349,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
295
349
|
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<{}>>, {}>;
|
|
296
350
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "updateChecked"[], "updateChecked", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
297
351
|
element: {
|
|
298
|
-
type: PropType<AnyObject>;
|
|
299
|
-
default: () => {};
|
|
300
|
-
};
|
|
301
|
-
columns: {
|
|
302
352
|
type: PropType<Partial<{
|
|
303
353
|
[key: string]: any;
|
|
304
354
|
id: string;
|
|
@@ -316,17 +366,43 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
316
366
|
required: boolean;
|
|
317
367
|
requiredDisable: boolean;
|
|
318
368
|
hide: boolean;
|
|
319
|
-
}
|
|
369
|
+
}>>;
|
|
370
|
+
default: () => {};
|
|
371
|
+
};
|
|
372
|
+
columns: {
|
|
373
|
+
type: PropType<FieldSetColumnItem[]>;
|
|
320
374
|
default: () => never[];
|
|
321
375
|
};
|
|
322
376
|
idx: {
|
|
323
377
|
type: NumberConstructor;
|
|
324
378
|
default: number;
|
|
325
379
|
};
|
|
380
|
+
fieldList: {
|
|
381
|
+
type: PropType<Partial<{
|
|
382
|
+
[key: string]: any;
|
|
383
|
+
id: string;
|
|
384
|
+
name: string;
|
|
385
|
+
show: boolean;
|
|
386
|
+
sort: boolean;
|
|
387
|
+
sortDirection: "NONE" | "ASC" | "DESC";
|
|
388
|
+
title: string;
|
|
389
|
+
alias: string;
|
|
390
|
+
fixedShow: boolean;
|
|
391
|
+
fixedWay: "NONE" | "LEFT" | "RIGHT";
|
|
392
|
+
columnWidth: number | null;
|
|
393
|
+
editable: boolean;
|
|
394
|
+
editableDisable: boolean;
|
|
395
|
+
required: boolean;
|
|
396
|
+
requiredDisable: boolean;
|
|
397
|
+
hide: boolean;
|
|
398
|
+
}>[]>;
|
|
399
|
+
default: () => never[];
|
|
400
|
+
};
|
|
326
401
|
}>> & {
|
|
327
402
|
onUpdateChecked?: ((...args: any[]) => any) | undefined;
|
|
328
403
|
}, {
|
|
329
|
-
columns:
|
|
404
|
+
columns: FieldSetColumnItem[];
|
|
405
|
+
element: Partial<{
|
|
330
406
|
[key: string]: any;
|
|
331
407
|
id: string;
|
|
332
408
|
name: string;
|
|
@@ -343,15 +419,33 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
343
419
|
required: boolean;
|
|
344
420
|
requiredDisable: boolean;
|
|
345
421
|
hide: boolean;
|
|
346
|
-
}
|
|
347
|
-
element: AnyObject;
|
|
422
|
+
}>;
|
|
348
423
|
idx: number;
|
|
424
|
+
fieldList: Partial<{
|
|
425
|
+
[key: string]: any;
|
|
426
|
+
id: string;
|
|
427
|
+
name: string;
|
|
428
|
+
show: boolean;
|
|
429
|
+
sort: boolean;
|
|
430
|
+
sortDirection: "NONE" | "ASC" | "DESC";
|
|
431
|
+
title: string;
|
|
432
|
+
alias: string;
|
|
433
|
+
fixedShow: boolean;
|
|
434
|
+
fixedWay: "NONE" | "LEFT" | "RIGHT";
|
|
435
|
+
columnWidth: number | null;
|
|
436
|
+
editable: boolean;
|
|
437
|
+
editableDisable: boolean;
|
|
438
|
+
required: boolean;
|
|
439
|
+
requiredDisable: boolean;
|
|
440
|
+
hide: boolean;
|
|
441
|
+
}>[];
|
|
349
442
|
}>;
|
|
350
443
|
isArray: {
|
|
351
444
|
(value?: any): value is any[];
|
|
352
445
|
<T>(value?: any): value is any[];
|
|
353
446
|
};
|
|
354
447
|
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<{}>>, {}>;
|
|
355
449
|
}, 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<{
|
|
356
450
|
fields: {
|
|
357
451
|
type: PropType<Partial<{
|