cnhis-design-vue 3.1.57-beta.2 → 3.1.57-beta.3
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/classification/src/index.vue.d.ts +0 -3
- package/es/components/expand-field/index.d.ts +15 -24
- package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +15 -24
- package/es/components/expand-field/src/components/PersonModal.vue.d.ts +15 -24
- package/es/components/expand-field/src/components/form.vue.d.ts +15 -24
- package/es/components/expand-field/src/components/form.vue2.js +1 -1
- package/es/components/expand-field/src/index.vue.d.ts +15 -24
- 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/index.d.ts +15 -24
- package/es/components/select-person/src/SearchMultiple.vue.d.ts +6 -0
- package/es/components/select-person/src/SelectPerson.vue.d.ts +15 -18
- package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
- package/es/components/select-person/style/index.css +1 -1
- package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +0 -3
- 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
|
+
```
|
|
@@ -1447,9 +1447,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1447
1447
|
isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | 0;
|
|
1448
1448
|
};
|
|
1449
1449
|
NSelect: any;
|
|
1450
|
-
/**
|
|
1451
|
-
* 改变展示方式
|
|
1452
|
-
*/
|
|
1453
1450
|
NPopover: any;
|
|
1454
1451
|
CDatePicker: import("../../../shared/types").SFCWithInstall<import("vue").DefineComponent<{
|
|
1455
1452
|
updateUnchangedValue: {
|
|
@@ -827,7 +827,6 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
827
827
|
type: import("vue").PropType<((string | number) | {
|
|
828
828
|
[key: string]: any;
|
|
829
829
|
key: string | number;
|
|
830
|
-
name: string;
|
|
831
830
|
})[]>;
|
|
832
831
|
default: () => never[];
|
|
833
832
|
};
|
|
@@ -926,12 +925,15 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
926
925
|
key: string;
|
|
927
926
|
label: string;
|
|
928
927
|
}[];
|
|
928
|
+
labelListName: {
|
|
929
|
+
dept: string;
|
|
930
|
+
role: string;
|
|
931
|
+
};
|
|
929
932
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
930
933
|
defaultList: {
|
|
931
934
|
type: import("vue").PropType<((string | number) | {
|
|
932
935
|
[key: string]: any;
|
|
933
936
|
key: string | number;
|
|
934
|
-
name: string;
|
|
935
937
|
})[]>;
|
|
936
938
|
default: () => never[];
|
|
937
939
|
};
|
|
@@ -1042,16 +1044,14 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1042
1044
|
tagData: import("vue").Ref<{
|
|
1043
1045
|
[x: string]: any;
|
|
1044
1046
|
key: string | number;
|
|
1045
|
-
name: string;
|
|
1046
1047
|
}[]>;
|
|
1047
1048
|
initTagData: import("vue").Ref<{
|
|
1048
1049
|
[x: string]: any;
|
|
1049
1050
|
key: string | number;
|
|
1050
|
-
name: string;
|
|
1051
1051
|
}[]>;
|
|
1052
1052
|
isSearch: import("vue").Ref<boolean>;
|
|
1053
1053
|
tempData: import("naive-ui").TreeOption[];
|
|
1054
|
-
|
|
1054
|
+
allCheckedTreeKeys: import("vue").Ref<(string | number)[]>;
|
|
1055
1055
|
isRemote: import("vue").ComputedRef<boolean>;
|
|
1056
1056
|
checkStrategyResult: import("vue").ComputedRef<any>;
|
|
1057
1057
|
isSearchFilter: import("vue").ComputedRef<boolean>;
|
|
@@ -1067,18 +1067,20 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1067
1067
|
treeDataMiddle: any;
|
|
1068
1068
|
checkedKeysMiddle: any;
|
|
1069
1069
|
checkedTagsMiddle: any;
|
|
1070
|
+
allCheckedKeysMiddle: any;
|
|
1070
1071
|
attrType: import("vue").ComputedRef<any>;
|
|
1071
1072
|
keyStr: import("vue").ComputedRef<string>;
|
|
1072
1073
|
getTreeDataMiddleData: () => void;
|
|
1073
|
-
getDeptData: (list: any[]) => any[];
|
|
1074
|
-
getRoleData: (list: any[]) => any[];
|
|
1074
|
+
getDeptData: (list: any[], cb?: any) => any[];
|
|
1075
|
+
getRoleData: (list: any[], cb?: any) => any[];
|
|
1075
1076
|
onHandleLabelChange: (item: any) => void;
|
|
1076
|
-
setSelectTagData: (tree: import("naive-ui").TreeOption[]) => void;
|
|
1077
|
+
setSelectTagData: (tree: import("naive-ui").TreeOption[], operatorType: string) => void;
|
|
1077
1078
|
uniqArrObj: (arr: any[], name: string) => any;
|
|
1078
1079
|
init: () => void;
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1080
|
+
getMainData: (tree: import("naive-ui").TreeOption[], parentNode: import("naive-ui").TreeOption | null, cb?: any) => void;
|
|
1081
|
+
setAllCheckedKeys: (tree: import("naive-ui").TreeOption, cb?: any) => void;
|
|
1082
|
+
setAllCheckedKeysWithChild: (item: import("naive-ui").TreeOption, cb?: any) => void;
|
|
1083
|
+
setAllCheckedKeysWithParent: (item: import("naive-ui").TreeOption, cb?: any) => void;
|
|
1082
1084
|
queryLoadChildNode: (node: import("naive-ui").TreeOption) => Promise<import("../../shared/types").AnyObject>;
|
|
1083
1085
|
setDisabled: (data: import("naive-ui").TreeOption) => void;
|
|
1084
1086
|
renderLabel: ({ option }: {
|
|
@@ -1088,9 +1090,6 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1088
1090
|
transformData: (trees: import("naive-ui").TreeOption[]) => import("naive-ui").TreeOption[];
|
|
1089
1091
|
calculateRootItems: (trees: import("naive-ui").TreeOption[], items: import("naive-ui").TreeOption[]) => import("naive-ui").TreeOption[];
|
|
1090
1092
|
transformParentNodeName: (trees: import("naive-ui").TreeOption[], tempContent: any) => import("naive-ui").TreeOption[];
|
|
1091
|
-
setAllCheckedKeys: (tree: import("naive-ui").TreeOption[]) => void;
|
|
1092
|
-
setAllCheckedKeysWithChild: (tree: import("naive-ui").TreeOption[]) => void;
|
|
1093
|
-
setAllCheckedKeysWithParent: (tree: import("naive-ui").TreeOption[]) => void;
|
|
1094
1093
|
searchSetting: () => string;
|
|
1095
1094
|
onSearch: () => Promise<void>;
|
|
1096
1095
|
setTreeCheckd: (tree: import("naive-ui").TreeOption[], checked: boolean) => void;
|
|
@@ -1100,11 +1099,9 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1100
1099
|
uniq: (arr: {
|
|
1101
1100
|
[key: string]: any;
|
|
1102
1101
|
key: string | number;
|
|
1103
|
-
name: string;
|
|
1104
1102
|
}[]) => {
|
|
1105
1103
|
[key: string]: any;
|
|
1106
1104
|
key: string | number;
|
|
1107
|
-
name: string;
|
|
1108
1105
|
}[];
|
|
1109
1106
|
setTagData: (tree: import("naive-ui").TreeOption[]) => void;
|
|
1110
1107
|
updateTreeChecked: (keys: (string | number)[]) => void;
|
|
@@ -1113,15 +1110,10 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1113
1110
|
closeTag: (tag: {
|
|
1114
1111
|
[key: string]: any;
|
|
1115
1112
|
key: string | number;
|
|
1116
|
-
name: string;
|
|
1117
1113
|
}) => void;
|
|
1118
1114
|
notifyCheck: (keys: (string | number)[]) => void;
|
|
1119
1115
|
notifySearchClear: () => void;
|
|
1120
|
-
getCheckWithLevel: () =>
|
|
1121
|
-
[x: string]: any;
|
|
1122
|
-
key: string | number;
|
|
1123
|
-
name: string;
|
|
1124
|
-
}[];
|
|
1116
|
+
getCheckWithLevel: () => any;
|
|
1125
1117
|
NButton: any;
|
|
1126
1118
|
NInput: any;
|
|
1127
1119
|
NInputGroup: import("vue").DefineComponent<{
|
|
@@ -1191,6 +1183,7 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1191
1183
|
readonly suffix: boolean;
|
|
1192
1184
|
readonly privateShow: boolean;
|
|
1193
1185
|
}>;
|
|
1186
|
+
NEmpty: any;
|
|
1194
1187
|
CloseCircleSharp: 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<{}>>, {}>;
|
|
1195
1188
|
SearchMultiple: import("vue").DefineComponent<{
|
|
1196
1189
|
treeData: {
|
|
@@ -1460,7 +1453,6 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1460
1453
|
type: import("vue").PropType<((string | number) | {
|
|
1461
1454
|
[key: string]: any;
|
|
1462
1455
|
key: string | number;
|
|
1463
|
-
name: string;
|
|
1464
1456
|
})[]>;
|
|
1465
1457
|
default: () => never[];
|
|
1466
1458
|
};
|
|
@@ -1558,7 +1550,6 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1558
1550
|
defaultList: ((string | number) | {
|
|
1559
1551
|
[key: string]: any;
|
|
1560
1552
|
key: string | number;
|
|
1561
|
-
name: string;
|
|
1562
1553
|
})[];
|
|
1563
1554
|
searchPlaceholder: string;
|
|
1564
1555
|
searchButtonText: string;
|
|
@@ -109,7 +109,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
109
109
|
type: PropType<((string | number) | {
|
|
110
110
|
[key: string]: any;
|
|
111
111
|
key: string | number;
|
|
112
|
-
name: string;
|
|
113
112
|
})[]>;
|
|
114
113
|
default: () => never[];
|
|
115
114
|
};
|
|
@@ -208,12 +207,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
208
207
|
key: string;
|
|
209
208
|
label: string;
|
|
210
209
|
}[];
|
|
210
|
+
labelListName: {
|
|
211
|
+
dept: string;
|
|
212
|
+
role: string;
|
|
213
|
+
};
|
|
211
214
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
212
215
|
defaultList: {
|
|
213
216
|
type: PropType<((string | number) | {
|
|
214
217
|
[key: string]: any;
|
|
215
218
|
key: string | number;
|
|
216
|
-
name: string;
|
|
217
219
|
})[]>;
|
|
218
220
|
default: () => never[];
|
|
219
221
|
};
|
|
@@ -324,16 +326,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
324
326
|
tagData: import("vue").Ref<{
|
|
325
327
|
[x: string]: any;
|
|
326
328
|
key: string | number;
|
|
327
|
-
name: string;
|
|
328
329
|
}[]>;
|
|
329
330
|
initTagData: import("vue").Ref<{
|
|
330
331
|
[x: string]: any;
|
|
331
332
|
key: string | number;
|
|
332
|
-
name: string;
|
|
333
333
|
}[]>;
|
|
334
334
|
isSearch: import("vue").Ref<boolean>;
|
|
335
335
|
tempData: import("naive-ui").TreeOption[];
|
|
336
|
-
|
|
336
|
+
allCheckedTreeKeys: import("vue").Ref<(string | number)[]>;
|
|
337
337
|
isRemote: import("vue").ComputedRef<boolean>;
|
|
338
338
|
checkStrategyResult: import("vue").ComputedRef<any>;
|
|
339
339
|
isSearchFilter: import("vue").ComputedRef<boolean>;
|
|
@@ -349,18 +349,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
349
349
|
treeDataMiddle: any;
|
|
350
350
|
checkedKeysMiddle: any;
|
|
351
351
|
checkedTagsMiddle: any;
|
|
352
|
+
allCheckedKeysMiddle: any;
|
|
352
353
|
attrType: import("vue").ComputedRef<any>;
|
|
353
354
|
keyStr: import("vue").ComputedRef<string>;
|
|
354
355
|
getTreeDataMiddleData: () => void;
|
|
355
|
-
getDeptData: (list: any[]) => any[];
|
|
356
|
-
getRoleData: (list: any[]) => any[];
|
|
356
|
+
getDeptData: (list: any[], cb?: any) => any[];
|
|
357
|
+
getRoleData: (list: any[], cb?: any) => any[];
|
|
357
358
|
onHandleLabelChange: (item: any) => void;
|
|
358
|
-
setSelectTagData: (tree: import("naive-ui").TreeOption[]) => void;
|
|
359
|
+
setSelectTagData: (tree: import("naive-ui").TreeOption[], operatorType: string) => void;
|
|
359
360
|
uniqArrObj: (arr: any[], name: string) => any;
|
|
360
361
|
init: () => void;
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
362
|
+
getMainData: (tree: import("naive-ui").TreeOption[], parentNode: import("naive-ui").TreeOption | null, cb?: any) => void;
|
|
363
|
+
setAllCheckedKeys: (tree: import("naive-ui").TreeOption, cb?: any) => void;
|
|
364
|
+
setAllCheckedKeysWithChild: (item: import("naive-ui").TreeOption, cb?: any) => void;
|
|
365
|
+
setAllCheckedKeysWithParent: (item: import("naive-ui").TreeOption, cb?: any) => void;
|
|
364
366
|
queryLoadChildNode: (node: import("naive-ui").TreeOption) => Promise<import("../../..").AnyObject>;
|
|
365
367
|
setDisabled: (data: import("naive-ui").TreeOption) => void;
|
|
366
368
|
renderLabel: ({ option }: {
|
|
@@ -370,9 +372,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
370
372
|
transformData: (trees: import("naive-ui").TreeOption[]) => import("naive-ui").TreeOption[];
|
|
371
373
|
calculateRootItems: (trees: import("naive-ui").TreeOption[], items: import("naive-ui").TreeOption[]) => import("naive-ui").TreeOption[];
|
|
372
374
|
transformParentNodeName: (trees: import("naive-ui").TreeOption[], tempContent: any) => import("naive-ui").TreeOption[];
|
|
373
|
-
setAllCheckedKeys: (tree: import("naive-ui").TreeOption[]) => void;
|
|
374
|
-
setAllCheckedKeysWithChild: (tree: import("naive-ui").TreeOption[]) => void;
|
|
375
|
-
setAllCheckedKeysWithParent: (tree: import("naive-ui").TreeOption[]) => void;
|
|
376
375
|
searchSetting: () => string;
|
|
377
376
|
onSearch: () => Promise<void>;
|
|
378
377
|
setTreeCheckd: (tree: import("naive-ui").TreeOption[], checked: boolean) => void;
|
|
@@ -382,11 +381,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
382
381
|
uniq: (arr: {
|
|
383
382
|
[key: string]: any;
|
|
384
383
|
key: string | number;
|
|
385
|
-
name: string;
|
|
386
384
|
}[]) => {
|
|
387
385
|
[key: string]: any;
|
|
388
386
|
key: string | number;
|
|
389
|
-
name: string;
|
|
390
387
|
}[];
|
|
391
388
|
setTagData: (tree: import("naive-ui").TreeOption[]) => void;
|
|
392
389
|
updateTreeChecked: (keys: (string | number)[]) => void;
|
|
@@ -395,15 +392,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
395
392
|
closeTag: (tag: {
|
|
396
393
|
[key: string]: any;
|
|
397
394
|
key: string | number;
|
|
398
|
-
name: string;
|
|
399
395
|
}) => void;
|
|
400
396
|
notifyCheck: (keys: (string | number)[]) => void;
|
|
401
397
|
notifySearchClear: () => void;
|
|
402
|
-
getCheckWithLevel: () =>
|
|
403
|
-
[x: string]: any;
|
|
404
|
-
key: string | number;
|
|
405
|
-
name: string;
|
|
406
|
-
}[];
|
|
398
|
+
getCheckWithLevel: () => any;
|
|
407
399
|
NButton: any;
|
|
408
400
|
NInput: any;
|
|
409
401
|
NInputGroup: import("vue").DefineComponent<{
|
|
@@ -473,6 +465,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
473
465
|
readonly suffix: boolean;
|
|
474
466
|
readonly privateShow: boolean;
|
|
475
467
|
}>;
|
|
468
|
+
NEmpty: any;
|
|
476
469
|
CloseCircleSharp: 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<{}>>, {}>;
|
|
477
470
|
SearchMultiple: import("vue").DefineComponent<{
|
|
478
471
|
treeData: {
|
|
@@ -742,7 +735,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
742
735
|
type: PropType<((string | number) | {
|
|
743
736
|
[key: string]: any;
|
|
744
737
|
key: string | number;
|
|
745
|
-
name: string;
|
|
746
738
|
})[]>;
|
|
747
739
|
default: () => never[];
|
|
748
740
|
};
|
|
@@ -840,7 +832,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
840
832
|
defaultList: ((string | number) | {
|
|
841
833
|
[key: string]: any;
|
|
842
834
|
key: string | number;
|
|
843
|
-
name: string;
|
|
844
835
|
})[];
|
|
845
836
|
searchPlaceholder: string;
|
|
846
837
|
searchButtonText: string;
|
|
@@ -58,7 +58,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
58
58
|
type: PropType<((string | number) | {
|
|
59
59
|
[key: string]: any;
|
|
60
60
|
key: string | number;
|
|
61
|
-
name: string;
|
|
62
61
|
})[]>;
|
|
63
62
|
default: () => never[];
|
|
64
63
|
};
|
|
@@ -157,12 +156,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
157
156
|
key: string;
|
|
158
157
|
label: string;
|
|
159
158
|
}[];
|
|
159
|
+
labelListName: {
|
|
160
|
+
dept: string;
|
|
161
|
+
role: string;
|
|
162
|
+
};
|
|
160
163
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
161
164
|
defaultList: {
|
|
162
165
|
type: PropType<((string | number) | {
|
|
163
166
|
[key: string]: any;
|
|
164
167
|
key: string | number;
|
|
165
|
-
name: string;
|
|
166
168
|
})[]>;
|
|
167
169
|
default: () => never[];
|
|
168
170
|
};
|
|
@@ -273,16 +275,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
273
275
|
tagData: import("vue").Ref<{
|
|
274
276
|
[x: string]: any;
|
|
275
277
|
key: string | number;
|
|
276
|
-
name: string;
|
|
277
278
|
}[]>;
|
|
278
279
|
initTagData: import("vue").Ref<{
|
|
279
280
|
[x: string]: any;
|
|
280
281
|
key: string | number;
|
|
281
|
-
name: string;
|
|
282
282
|
}[]>;
|
|
283
283
|
isSearch: import("vue").Ref<boolean>;
|
|
284
284
|
tempData: import("naive-ui").TreeOption[];
|
|
285
|
-
|
|
285
|
+
allCheckedTreeKeys: import("vue").Ref<(string | number)[]>;
|
|
286
286
|
isRemote: import("vue").ComputedRef<boolean>;
|
|
287
287
|
checkStrategyResult: import("vue").ComputedRef<any>;
|
|
288
288
|
isSearchFilter: import("vue").ComputedRef<boolean>;
|
|
@@ -298,18 +298,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
298
298
|
treeDataMiddle: any;
|
|
299
299
|
checkedKeysMiddle: any;
|
|
300
300
|
checkedTagsMiddle: any;
|
|
301
|
+
allCheckedKeysMiddle: any;
|
|
301
302
|
attrType: import("vue").ComputedRef<any>;
|
|
302
303
|
keyStr: import("vue").ComputedRef<string>;
|
|
303
304
|
getTreeDataMiddleData: () => void;
|
|
304
|
-
getDeptData: (list: any[]) => any[];
|
|
305
|
-
getRoleData: (list: any[]) => any[];
|
|
305
|
+
getDeptData: (list: any[], cb?: any) => any[];
|
|
306
|
+
getRoleData: (list: any[], cb?: any) => any[];
|
|
306
307
|
onHandleLabelChange: (item: any) => void;
|
|
307
|
-
setSelectTagData: (tree: import("naive-ui").TreeOption[]) => void;
|
|
308
|
+
setSelectTagData: (tree: import("naive-ui").TreeOption[], operatorType: string) => void;
|
|
308
309
|
uniqArrObj: (arr: any[], name: string) => any;
|
|
309
310
|
init: () => void;
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
311
|
+
getMainData: (tree: import("naive-ui").TreeOption[], parentNode: import("naive-ui").TreeOption | null, cb?: any) => void;
|
|
312
|
+
setAllCheckedKeys: (tree: import("naive-ui").TreeOption, cb?: any) => void;
|
|
313
|
+
setAllCheckedKeysWithChild: (item: import("naive-ui").TreeOption, cb?: any) => void;
|
|
314
|
+
setAllCheckedKeysWithParent: (item: import("naive-ui").TreeOption, cb?: any) => void;
|
|
313
315
|
queryLoadChildNode: (node: import("naive-ui").TreeOption) => Promise<AnyObject>;
|
|
314
316
|
setDisabled: (data: import("naive-ui").TreeOption) => void;
|
|
315
317
|
renderLabel: ({ option }: {
|
|
@@ -319,9 +321,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
319
321
|
transformData: (trees: import("naive-ui").TreeOption[]) => import("naive-ui").TreeOption[];
|
|
320
322
|
calculateRootItems: (trees: import("naive-ui").TreeOption[], items: import("naive-ui").TreeOption[]) => import("naive-ui").TreeOption[];
|
|
321
323
|
transformParentNodeName: (trees: import("naive-ui").TreeOption[], tempContent: any) => import("naive-ui").TreeOption[];
|
|
322
|
-
setAllCheckedKeys: (tree: import("naive-ui").TreeOption[]) => void;
|
|
323
|
-
setAllCheckedKeysWithChild: (tree: import("naive-ui").TreeOption[]) => void;
|
|
324
|
-
setAllCheckedKeysWithParent: (tree: import("naive-ui").TreeOption[]) => void;
|
|
325
324
|
searchSetting: () => string;
|
|
326
325
|
onSearch: () => Promise<void>;
|
|
327
326
|
setTreeCheckd: (tree: import("naive-ui").TreeOption[], checked: boolean) => void;
|
|
@@ -331,11 +330,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
331
330
|
uniq: (arr: {
|
|
332
331
|
[key: string]: any;
|
|
333
332
|
key: string | number;
|
|
334
|
-
name: string;
|
|
335
333
|
}[]) => {
|
|
336
334
|
[key: string]: any;
|
|
337
335
|
key: string | number;
|
|
338
|
-
name: string;
|
|
339
336
|
}[];
|
|
340
337
|
setTagData: (tree: import("naive-ui").TreeOption[]) => void;
|
|
341
338
|
updateTreeChecked: (keys: (string | number)[]) => void;
|
|
@@ -344,15 +341,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
344
341
|
closeTag: (tag: {
|
|
345
342
|
[key: string]: any;
|
|
346
343
|
key: string | number;
|
|
347
|
-
name: string;
|
|
348
344
|
}) => void;
|
|
349
345
|
notifyCheck: (keys: (string | number)[]) => void;
|
|
350
346
|
notifySearchClear: () => void;
|
|
351
|
-
getCheckWithLevel: () =>
|
|
352
|
-
[x: string]: any;
|
|
353
|
-
key: string | number;
|
|
354
|
-
name: string;
|
|
355
|
-
}[];
|
|
347
|
+
getCheckWithLevel: () => any;
|
|
356
348
|
NButton: any;
|
|
357
349
|
NInput: any;
|
|
358
350
|
NInputGroup: import("vue").DefineComponent<{
|
|
@@ -422,6 +414,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
422
414
|
readonly suffix: boolean;
|
|
423
415
|
readonly privateShow: boolean;
|
|
424
416
|
}>;
|
|
417
|
+
NEmpty: any;
|
|
425
418
|
CloseCircleSharp: 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<{}>>, {}>;
|
|
426
419
|
SearchMultiple: import("vue").DefineComponent<{
|
|
427
420
|
treeData: {
|
|
@@ -691,7 +684,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
691
684
|
type: PropType<((string | number) | {
|
|
692
685
|
[key: string]: any;
|
|
693
686
|
key: string | number;
|
|
694
|
-
name: string;
|
|
695
687
|
})[]>;
|
|
696
688
|
default: () => never[];
|
|
697
689
|
};
|
|
@@ -789,7 +781,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
789
781
|
defaultList: ((string | number) | {
|
|
790
782
|
[key: string]: any;
|
|
791
783
|
key: string | number;
|
|
792
|
-
name: string;
|
|
793
784
|
})[];
|
|
794
785
|
searchPlaceholder: string;
|
|
795
786
|
searchButtonText: string;
|