cnhis-design-vue 3.1.57-beta.0 → 3.1.57-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 +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/classification/src/components/table-modal/index.vue.d.ts +0 -3
- package/es/components/classification/src/index.vue.d.ts +3 -3
- package/es/components/expand-field/index.d.ts +84 -3
- package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +84 -3
- package/es/components/expand-field/src/components/PersonModal.vue.d.ts +84 -3
- package/es/components/expand-field/src/components/form.vue.d.ts +84 -3
- package/es/components/expand-field/src/components/form.vue2.js +1 -1
- package/es/components/expand-field/src/index.vue.d.ts +84 -3
- package/es/components/form-config/index.d.ts +24 -12
- package/es/components/form-config/src/FormConfig.vue.d.ts +24 -12
- package/es/components/form-config/src/FormConfig.vue2.js +1 -1
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue.d.ts +5 -2
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue2.js +1 -1
- package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +5 -2
- package/es/components/form-config/src/components/renderer/ComplexNode.vue2.js +1 -1
- package/es/components/form-config/src/components/renderer/DefaultNode.vue2.js +1 -1
- package/es/components/form-config/src/constants/index.d.ts +2 -1
- package/es/components/form-config/src/constants/index.js +1 -1
- package/es/components/form-config/src/hooks/useSortalbeConfig.d.ts +16 -12
- package/es/components/form-config/src/hooks/useSortalbeConfig.js +1 -1
- package/es/components/form-config/src/types/index.d.ts +12 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +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/index.d.ts +84 -3
- package/es/components/select-person/src/SearchMultiple.vue.d.ts +0 -6
- package/es/components/select-person/src/SelectPerson.vue.d.ts +73 -3
- package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
- package/es/components/select-person/src/types/enums.d.ts +9 -0
- package/es/components/select-person/src/types/enums.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 +3 -0
- 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';
|
|
@@ -699,9 +699,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
699
699
|
handleInitConditions: () => Promise<void>;
|
|
700
700
|
validate: () => Promise<unknown>;
|
|
701
701
|
saveAdd: () => void;
|
|
702
|
-
/**
|
|
703
|
-
* 改变展示方式
|
|
704
|
-
*/
|
|
705
702
|
cancelSaveAdd: () => void;
|
|
706
703
|
checkActionList: () => boolean;
|
|
707
704
|
NSpin: any;
|
|
@@ -1450,6 +1447,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1450
1447
|
isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | 0;
|
|
1451
1448
|
};
|
|
1452
1449
|
NSelect: any;
|
|
1450
|
+
/**
|
|
1451
|
+
* 改变展示方式
|
|
1452
|
+
*/
|
|
1453
1453
|
NPopover: any;
|
|
1454
1454
|
CDatePicker: import("../../../shared/types").SFCWithInstall<import("vue").DefineComponent<{
|
|
1455
1455
|
updateUnchangedValue: {
|
|
@@ -847,6 +847,7 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
847
847
|
};
|
|
848
848
|
wordbook: {
|
|
849
849
|
type: import("vue").PropType<{
|
|
850
|
+
[key: string]: any;
|
|
850
851
|
parent_id_obj: string | number;
|
|
851
852
|
parent_name_obj: string | number;
|
|
852
853
|
user_count_obj?: string | number | undefined;
|
|
@@ -896,6 +897,24 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
896
897
|
type: import("vue").PropType<(keyWork: string) => Promise<import("../../shared/types").AnyObject[]>>;
|
|
897
898
|
default: () => Promise<never[]>;
|
|
898
899
|
};
|
|
900
|
+
showSelectType: {
|
|
901
|
+
type: BooleanConstructor;
|
|
902
|
+
default: boolean;
|
|
903
|
+
};
|
|
904
|
+
roleData: {
|
|
905
|
+
type: import("vue").PropType<(import("naive-ui/es/tree/src/interface").TreeOptionBase & {
|
|
906
|
+
[k: string]: unknown;
|
|
907
|
+
} & import("../../shared/types").AnyObject)[]>;
|
|
908
|
+
default: () => never[];
|
|
909
|
+
};
|
|
910
|
+
roleFields: {
|
|
911
|
+
type: ObjectConstructor;
|
|
912
|
+
default: () => {
|
|
913
|
+
label: string;
|
|
914
|
+
key: string;
|
|
915
|
+
children: string;
|
|
916
|
+
};
|
|
917
|
+
};
|
|
899
918
|
}, {
|
|
900
919
|
searchFilterBase: {
|
|
901
920
|
isOpen: boolean;
|
|
@@ -903,6 +922,10 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
903
922
|
customTitles: string[];
|
|
904
923
|
itemHeight: number;
|
|
905
924
|
};
|
|
925
|
+
labelList: {
|
|
926
|
+
key: string;
|
|
927
|
+
label: string;
|
|
928
|
+
}[];
|
|
906
929
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
907
930
|
defaultList: {
|
|
908
931
|
type: import("vue").PropType<((string | number) | {
|
|
@@ -928,6 +951,7 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
928
951
|
};
|
|
929
952
|
wordbook: {
|
|
930
953
|
type: import("vue").PropType<{
|
|
954
|
+
[key: string]: any;
|
|
931
955
|
parent_id_obj: string | number;
|
|
932
956
|
parent_name_obj: string | number;
|
|
933
957
|
user_count_obj?: string | number | undefined;
|
|
@@ -977,6 +1001,24 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
977
1001
|
type: import("vue").PropType<(keyWork: string) => Promise<import("../../shared/types").AnyObject[]>>;
|
|
978
1002
|
default: () => Promise<never[]>;
|
|
979
1003
|
};
|
|
1004
|
+
showSelectType: {
|
|
1005
|
+
type: BooleanConstructor;
|
|
1006
|
+
default: boolean;
|
|
1007
|
+
};
|
|
1008
|
+
roleData: {
|
|
1009
|
+
type: import("vue").PropType<(import("naive-ui/es/tree/src/interface").TreeOptionBase & {
|
|
1010
|
+
[k: string]: unknown;
|
|
1011
|
+
} & import("../../shared/types").AnyObject)[]>;
|
|
1012
|
+
default: () => never[];
|
|
1013
|
+
};
|
|
1014
|
+
roleFields: {
|
|
1015
|
+
type: ObjectConstructor;
|
|
1016
|
+
default: () => {
|
|
1017
|
+
label: string;
|
|
1018
|
+
key: string;
|
|
1019
|
+
children: string;
|
|
1020
|
+
};
|
|
1021
|
+
};
|
|
980
1022
|
}>> & {
|
|
981
1023
|
onCheck?: ((...args: any[]) => any) | undefined;
|
|
982
1024
|
onCheckWithLevel?: ((...args: any[]) => any) | undefined;
|
|
@@ -1008,11 +1050,12 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1008
1050
|
name: string;
|
|
1009
1051
|
}[]>;
|
|
1010
1052
|
isSearch: import("vue").Ref<boolean>;
|
|
1011
|
-
|
|
1053
|
+
tempData: import("naive-ui").TreeOption[];
|
|
1012
1054
|
allCheckedKeys: (string | number)[];
|
|
1013
1055
|
isRemote: import("vue").ComputedRef<boolean>;
|
|
1014
1056
|
checkStrategyResult: import("vue").ComputedRef<any>;
|
|
1015
1057
|
isSearchFilter: import("vue").ComputedRef<boolean>;
|
|
1058
|
+
curSelectKey: import("vue").Ref<string>;
|
|
1016
1059
|
mergeSearchFilter: import("vue").ComputedRef<{
|
|
1017
1060
|
isOpen: boolean;
|
|
1018
1061
|
multiple: boolean;
|
|
@@ -1020,8 +1063,20 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1020
1063
|
itemHeight: number;
|
|
1021
1064
|
}>;
|
|
1022
1065
|
wordbookChildExpandkeys: import("vue").ComputedRef<string[]>;
|
|
1023
|
-
caculateTagData: import("vue").ComputedRef<any
|
|
1066
|
+
caculateTagData: import("vue").ComputedRef<any>;
|
|
1067
|
+
treeDataMiddle: any;
|
|
1068
|
+
checkedKeysMiddle: any;
|
|
1069
|
+
checkedTagsMiddle: any;
|
|
1070
|
+
attrType: import("vue").ComputedRef<any>;
|
|
1071
|
+
keyStr: import("vue").ComputedRef<string>;
|
|
1072
|
+
getTreeDataMiddleData: () => void;
|
|
1073
|
+
getDeptData: (list: any[]) => any[];
|
|
1074
|
+
getRoleData: (list: any[]) => any[];
|
|
1075
|
+
onHandleLabelChange: (item: any) => void;
|
|
1076
|
+
setSelectTagData: (tree: import("naive-ui").TreeOption[]) => void;
|
|
1077
|
+
uniqArrObj: (arr: any[], name: string) => any;
|
|
1024
1078
|
init: () => void;
|
|
1079
|
+
transformTree: (tree: import("naive-ui").TreeOption[], parentNode: import("naive-ui").TreeOption | null) => void;
|
|
1025
1080
|
getallCheckedKeysWithChild: (item: import("naive-ui").TreeOption) => void;
|
|
1026
1081
|
getallCheckedKeysWithParent: (item: import("naive-ui").TreeOption) => void;
|
|
1027
1082
|
queryLoadChildNode: (node: import("naive-ui").TreeOption) => Promise<import("../../shared/types").AnyObject>;
|
|
@@ -1032,7 +1087,7 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1032
1087
|
getLabelName: (option: import("naive-ui").TreeOption) => unknown;
|
|
1033
1088
|
transformData: (trees: import("naive-ui").TreeOption[]) => import("naive-ui").TreeOption[];
|
|
1034
1089
|
calculateRootItems: (trees: import("naive-ui").TreeOption[], items: import("naive-ui").TreeOption[]) => import("naive-ui").TreeOption[];
|
|
1035
|
-
transformParentNodeName: (trees: import("naive-ui").TreeOption[],
|
|
1090
|
+
transformParentNodeName: (trees: import("naive-ui").TreeOption[], tempContent: any) => import("naive-ui").TreeOption[];
|
|
1036
1091
|
setAllCheckedKeys: (tree: import("naive-ui").TreeOption[]) => void;
|
|
1037
1092
|
setAllCheckedKeysWithChild: (tree: import("naive-ui").TreeOption[]) => void;
|
|
1038
1093
|
setAllCheckedKeysWithParent: (tree: import("naive-ui").TreeOption[]) => void;
|
|
@@ -1082,6 +1137,7 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1082
1137
|
}>>, {}>;
|
|
1083
1138
|
NCheckbox: any;
|
|
1084
1139
|
NTree: any;
|
|
1140
|
+
NTag: any;
|
|
1085
1141
|
NIcon: any;
|
|
1086
1142
|
NSpace: any;
|
|
1087
1143
|
NGrid: any;
|
|
@@ -1424,6 +1480,7 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1424
1480
|
};
|
|
1425
1481
|
wordbook: {
|
|
1426
1482
|
type: import("vue").PropType<{
|
|
1483
|
+
[key: string]: any;
|
|
1427
1484
|
parent_id_obj: string | number;
|
|
1428
1485
|
parent_name_obj: string | number;
|
|
1429
1486
|
user_count_obj?: string | number | undefined;
|
|
@@ -1473,6 +1530,24 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1473
1530
|
type: import("vue").PropType<(keyWork: string) => Promise<import("../../shared/types").AnyObject[]>>;
|
|
1474
1531
|
default: () => Promise<never[]>;
|
|
1475
1532
|
};
|
|
1533
|
+
showSelectType: {
|
|
1534
|
+
type: BooleanConstructor;
|
|
1535
|
+
default: boolean;
|
|
1536
|
+
};
|
|
1537
|
+
roleData: {
|
|
1538
|
+
type: import("vue").PropType<(import("naive-ui/es/tree/src/interface").TreeOptionBase & {
|
|
1539
|
+
[k: string]: unknown;
|
|
1540
|
+
} & import("../../shared/types").AnyObject)[]>;
|
|
1541
|
+
default: () => never[];
|
|
1542
|
+
};
|
|
1543
|
+
roleFields: {
|
|
1544
|
+
type: ObjectConstructor;
|
|
1545
|
+
default: () => {
|
|
1546
|
+
label: string;
|
|
1547
|
+
key: string;
|
|
1548
|
+
children: string;
|
|
1549
|
+
};
|
|
1550
|
+
};
|
|
1476
1551
|
}>> & {
|
|
1477
1552
|
onCheck?: ((...args: any[]) => any) | undefined;
|
|
1478
1553
|
onCheckWithLevel?: ((...args: any[]) => any) | undefined;
|
|
@@ -1488,6 +1563,7 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1488
1563
|
searchPlaceholder: string;
|
|
1489
1564
|
searchButtonText: string;
|
|
1490
1565
|
wordbook: {
|
|
1566
|
+
[key: string]: any;
|
|
1491
1567
|
parent_id_obj: string | number;
|
|
1492
1568
|
parent_name_obj: string | number;
|
|
1493
1569
|
user_count_obj?: string | number | undefined;
|
|
@@ -1508,6 +1584,11 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1508
1584
|
} & import("../../shared/types").AnyObject;
|
|
1509
1585
|
queryLoadChildData: (node: import("naive-ui").TreeOption) => Promise<import("../../shared/types").AnyObject>;
|
|
1510
1586
|
queryTreeSearch: (keyWork: string) => Promise<import("../../shared/types").AnyObject[]>;
|
|
1587
|
+
showSelectType: boolean;
|
|
1588
|
+
roleData: (import("naive-ui/es/tree/src/interface").TreeOptionBase & {
|
|
1589
|
+
[k: string]: unknown;
|
|
1590
|
+
} & import("../../shared/types").AnyObject)[];
|
|
1591
|
+
roleFields: Record<string, any>;
|
|
1511
1592
|
}>>;
|
|
1512
1593
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("check" | "changeModalVisible")[], "check" | "changeModalVisible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1513
1594
|
visible: {
|
|
@@ -129,6 +129,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
129
129
|
};
|
|
130
130
|
wordbook: {
|
|
131
131
|
type: PropType<{
|
|
132
|
+
[key: string]: any;
|
|
132
133
|
parent_id_obj: string | number;
|
|
133
134
|
parent_name_obj: string | number;
|
|
134
135
|
user_count_obj?: string | number | undefined;
|
|
@@ -178,6 +179,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
178
179
|
type: PropType<(keyWork: string) => Promise<import("../../..").AnyObject[]>>;
|
|
179
180
|
default: () => Promise<never[]>;
|
|
180
181
|
};
|
|
182
|
+
showSelectType: {
|
|
183
|
+
type: BooleanConstructor;
|
|
184
|
+
default: boolean;
|
|
185
|
+
};
|
|
186
|
+
roleData: {
|
|
187
|
+
type: PropType<(import("naive-ui/es/tree/src/interface").TreeOptionBase & {
|
|
188
|
+
[k: string]: unknown;
|
|
189
|
+
} & import("../../..").AnyObject)[]>;
|
|
190
|
+
default: () => never[];
|
|
191
|
+
};
|
|
192
|
+
roleFields: {
|
|
193
|
+
type: ObjectConstructor;
|
|
194
|
+
default: () => {
|
|
195
|
+
label: string;
|
|
196
|
+
key: string;
|
|
197
|
+
children: string;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
181
200
|
}, {
|
|
182
201
|
searchFilterBase: {
|
|
183
202
|
isOpen: boolean;
|
|
@@ -185,6 +204,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
185
204
|
customTitles: string[];
|
|
186
205
|
itemHeight: number;
|
|
187
206
|
};
|
|
207
|
+
labelList: {
|
|
208
|
+
key: string;
|
|
209
|
+
label: string;
|
|
210
|
+
}[];
|
|
188
211
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
189
212
|
defaultList: {
|
|
190
213
|
type: PropType<((string | number) | {
|
|
@@ -210,6 +233,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
210
233
|
};
|
|
211
234
|
wordbook: {
|
|
212
235
|
type: PropType<{
|
|
236
|
+
[key: string]: any;
|
|
213
237
|
parent_id_obj: string | number;
|
|
214
238
|
parent_name_obj: string | number;
|
|
215
239
|
user_count_obj?: string | number | undefined;
|
|
@@ -259,6 +283,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
259
283
|
type: PropType<(keyWork: string) => Promise<import("../../..").AnyObject[]>>;
|
|
260
284
|
default: () => Promise<never[]>;
|
|
261
285
|
};
|
|
286
|
+
showSelectType: {
|
|
287
|
+
type: BooleanConstructor;
|
|
288
|
+
default: boolean;
|
|
289
|
+
};
|
|
290
|
+
roleData: {
|
|
291
|
+
type: PropType<(import("naive-ui/es/tree/src/interface").TreeOptionBase & {
|
|
292
|
+
[k: string]: unknown;
|
|
293
|
+
} & import("../../..").AnyObject)[]>;
|
|
294
|
+
default: () => never[];
|
|
295
|
+
};
|
|
296
|
+
roleFields: {
|
|
297
|
+
type: ObjectConstructor;
|
|
298
|
+
default: () => {
|
|
299
|
+
label: string;
|
|
300
|
+
key: string;
|
|
301
|
+
children: string;
|
|
302
|
+
};
|
|
303
|
+
};
|
|
262
304
|
}>> & {
|
|
263
305
|
onCheck?: ((...args: any[]) => any) | undefined;
|
|
264
306
|
onCheckWithLevel?: ((...args: any[]) => any) | undefined;
|
|
@@ -290,11 +332,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
290
332
|
name: string;
|
|
291
333
|
}[]>;
|
|
292
334
|
isSearch: import("vue").Ref<boolean>;
|
|
293
|
-
|
|
335
|
+
tempData: import("naive-ui").TreeOption[];
|
|
294
336
|
allCheckedKeys: (string | number)[];
|
|
295
337
|
isRemote: import("vue").ComputedRef<boolean>;
|
|
296
338
|
checkStrategyResult: import("vue").ComputedRef<any>;
|
|
297
339
|
isSearchFilter: import("vue").ComputedRef<boolean>;
|
|
340
|
+
curSelectKey: import("vue").Ref<string>;
|
|
298
341
|
mergeSearchFilter: import("vue").ComputedRef<{
|
|
299
342
|
isOpen: boolean;
|
|
300
343
|
multiple: boolean;
|
|
@@ -302,8 +345,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
302
345
|
itemHeight: number;
|
|
303
346
|
}>;
|
|
304
347
|
wordbookChildExpandkeys: import("vue").ComputedRef<string[]>;
|
|
305
|
-
caculateTagData: import("vue").ComputedRef<any
|
|
348
|
+
caculateTagData: import("vue").ComputedRef<any>;
|
|
349
|
+
treeDataMiddle: any;
|
|
350
|
+
checkedKeysMiddle: any;
|
|
351
|
+
checkedTagsMiddle: any;
|
|
352
|
+
attrType: import("vue").ComputedRef<any>;
|
|
353
|
+
keyStr: import("vue").ComputedRef<string>;
|
|
354
|
+
getTreeDataMiddleData: () => void;
|
|
355
|
+
getDeptData: (list: any[]) => any[];
|
|
356
|
+
getRoleData: (list: any[]) => any[];
|
|
357
|
+
onHandleLabelChange: (item: any) => void;
|
|
358
|
+
setSelectTagData: (tree: import("naive-ui").TreeOption[]) => void;
|
|
359
|
+
uniqArrObj: (arr: any[], name: string) => any;
|
|
306
360
|
init: () => void;
|
|
361
|
+
transformTree: (tree: import("naive-ui").TreeOption[], parentNode: import("naive-ui").TreeOption | null) => void;
|
|
307
362
|
getallCheckedKeysWithChild: (item: import("naive-ui").TreeOption) => void;
|
|
308
363
|
getallCheckedKeysWithParent: (item: import("naive-ui").TreeOption) => void;
|
|
309
364
|
queryLoadChildNode: (node: import("naive-ui").TreeOption) => Promise<import("../../..").AnyObject>;
|
|
@@ -314,7 +369,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
314
369
|
getLabelName: (option: import("naive-ui").TreeOption) => unknown;
|
|
315
370
|
transformData: (trees: import("naive-ui").TreeOption[]) => import("naive-ui").TreeOption[];
|
|
316
371
|
calculateRootItems: (trees: import("naive-ui").TreeOption[], items: import("naive-ui").TreeOption[]) => import("naive-ui").TreeOption[];
|
|
317
|
-
transformParentNodeName: (trees: import("naive-ui").TreeOption[],
|
|
372
|
+
transformParentNodeName: (trees: import("naive-ui").TreeOption[], tempContent: any) => import("naive-ui").TreeOption[];
|
|
318
373
|
setAllCheckedKeys: (tree: import("naive-ui").TreeOption[]) => void;
|
|
319
374
|
setAllCheckedKeysWithChild: (tree: import("naive-ui").TreeOption[]) => void;
|
|
320
375
|
setAllCheckedKeysWithParent: (tree: import("naive-ui").TreeOption[]) => void;
|
|
@@ -364,6 +419,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
364
419
|
}>>, {}>;
|
|
365
420
|
NCheckbox: any;
|
|
366
421
|
NTree: any;
|
|
422
|
+
NTag: any;
|
|
367
423
|
NIcon: any;
|
|
368
424
|
NSpace: any;
|
|
369
425
|
NGrid: any;
|
|
@@ -706,6 +762,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
706
762
|
};
|
|
707
763
|
wordbook: {
|
|
708
764
|
type: PropType<{
|
|
765
|
+
[key: string]: any;
|
|
709
766
|
parent_id_obj: string | number;
|
|
710
767
|
parent_name_obj: string | number;
|
|
711
768
|
user_count_obj?: string | number | undefined;
|
|
@@ -755,6 +812,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
755
812
|
type: PropType<(keyWork: string) => Promise<import("../../..").AnyObject[]>>;
|
|
756
813
|
default: () => Promise<never[]>;
|
|
757
814
|
};
|
|
815
|
+
showSelectType: {
|
|
816
|
+
type: BooleanConstructor;
|
|
817
|
+
default: boolean;
|
|
818
|
+
};
|
|
819
|
+
roleData: {
|
|
820
|
+
type: PropType<(import("naive-ui/es/tree/src/interface").TreeOptionBase & {
|
|
821
|
+
[k: string]: unknown;
|
|
822
|
+
} & import("../../..").AnyObject)[]>;
|
|
823
|
+
default: () => never[];
|
|
824
|
+
};
|
|
825
|
+
roleFields: {
|
|
826
|
+
type: ObjectConstructor;
|
|
827
|
+
default: () => {
|
|
828
|
+
label: string;
|
|
829
|
+
key: string;
|
|
830
|
+
children: string;
|
|
831
|
+
};
|
|
832
|
+
};
|
|
758
833
|
}>> & {
|
|
759
834
|
onCheck?: ((...args: any[]) => any) | undefined;
|
|
760
835
|
onCheckWithLevel?: ((...args: any[]) => any) | undefined;
|
|
@@ -770,6 +845,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
770
845
|
searchPlaceholder: string;
|
|
771
846
|
searchButtonText: string;
|
|
772
847
|
wordbook: {
|
|
848
|
+
[key: string]: any;
|
|
773
849
|
parent_id_obj: string | number;
|
|
774
850
|
parent_name_obj: string | number;
|
|
775
851
|
user_count_obj?: string | number | undefined;
|
|
@@ -790,6 +866,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
790
866
|
} & import("../../..").AnyObject;
|
|
791
867
|
queryLoadChildData: (node: import("naive-ui").TreeOption) => Promise<import("../../..").AnyObject>;
|
|
792
868
|
queryTreeSearch: (keyWork: string) => Promise<import("../../..").AnyObject[]>;
|
|
869
|
+
showSelectType: boolean;
|
|
870
|
+
roleData: (import("naive-ui/es/tree/src/interface").TreeOptionBase & {
|
|
871
|
+
[k: string]: unknown;
|
|
872
|
+
} & import("../../..").AnyObject)[];
|
|
873
|
+
roleFields: Record<string, any>;
|
|
793
874
|
}>>;
|
|
794
875
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("check" | "changeModalVisible")[], "check" | "changeModalVisible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
795
876
|
visible: {
|