cnhis-design-vue 3.3.3-beta.10 → 3.3.3-beta.15
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/es/components/expand-field/index.d.ts +157 -3
- package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +157 -3
- package/es/components/expand-field/src/components/PersonModal.vue.d.ts +157 -3
- package/es/components/expand-field/src/components/form.vue.d.ts +157 -3
- package/es/components/expand-field/src/index.vue.d.ts +157 -3
- package/es/components/field-editor/src/FieldEditor.vue2.js +2 -1
- package/es/components/field-editor/src/fields.d.ts +1 -0
- package/es/components/field-editor/src/fields.js +6 -0
- package/es/components/field-set/src/FieldColor.vue.d.ts +4 -4
- package/es/components/field-set/src/FieldFilter.vue.d.ts +4 -4
- package/es/components/field-set/src/FieldSet.vue.d.ts +36 -5
- package/es/components/field-set/src/FieldSet.vue2.js +112 -65
- package/es/components/field-set/src/Index.vue2.js +3 -2
- package/es/components/field-set/src/TableStyle.vue2.js +2 -2
- package/es/components/field-set/src/components/table-row.vue.d.ts +4 -4
- package/es/components/field-set/src/constants/index.d.ts +1 -1
- package/es/components/field-set/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/select-person/index.d.ts +157 -3
- package/es/components/select-person/src/SelectPerson.vue.d.ts +139 -2
- package/es/components/select-person/src/SelectPerson.vue2.js +57 -19
- package/es/components/select-person/src/components/GroupItem.vue.d.ts +19 -0
- package/es/components/select-person/src/components/GroupItem.vue.js +6 -0
- package/es/components/select-person/src/components/GroupItem.vue2.js +37 -0
- package/es/components/select-person/src/components/SearchGroupList.vue.d.ts +87 -0
- package/es/components/select-person/src/components/SearchGroupList.vue2.js +44 -5
- package/es/components/select-person/src/components/TagItem.vue.d.ts +43 -0
- package/es/components/select-person/src/components/TagItem.vue.js +6 -0
- package/es/components/select-person/src/components/TagItem.vue2.js +40 -0
- package/es/components/select-person/src/index.vue.d.ts +160 -5
- package/es/components/select-person/src/index.vue2.js +6 -2
- package/es/components/select-person/src/utils/index.d.ts +2 -0
- package/es/components/select-person/src/utils/index.js +24 -1
- package/es/components/select-person/style/index.css +1 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
- package/es/components/select-person/src/SelectPersonTest.vue.d.ts +0 -555
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, createElementVNode, createTextVNode, toDisplayString } from 'vue';
|
|
2
|
+
|
|
3
|
+
const _hoisted_1 = ["title"];
|
|
4
|
+
const _hoisted_2 = {
|
|
5
|
+
class: "font-12 ml-4"
|
|
6
|
+
};
|
|
7
|
+
const _hoisted_3 = {
|
|
8
|
+
class: "c-select-person__searchGroupItemDesc c-select-person__ellipsis"
|
|
9
|
+
};
|
|
10
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
|
+
__name: "GroupItem",
|
|
12
|
+
props: {
|
|
13
|
+
item: {
|
|
14
|
+
type: Object,
|
|
15
|
+
required: true
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
emits: ["checked"],
|
|
19
|
+
setup(__props, {
|
|
20
|
+
emit
|
|
21
|
+
}) {
|
|
22
|
+
function handleClick(item) {
|
|
23
|
+
emit("checked", item);
|
|
24
|
+
}
|
|
25
|
+
return (_ctx, _cache) => {
|
|
26
|
+
return openBlock(), createElementBlock("div", {
|
|
27
|
+
class: "c-select-person__searchGroupItemCell",
|
|
28
|
+
onClick: _cache[0] || (_cache[0] = ($event) => handleClick(__props.item))
|
|
29
|
+
}, [createElementVNode("div", {
|
|
30
|
+
class: "c-select-person__ellipsis",
|
|
31
|
+
title: __props.item.label
|
|
32
|
+
}, [createTextVNode(toDisplayString(__props.item.label) + " " + toDisplayString(__props.item.innerItemsNum ? `(${__props.item.innerItemsNum}\u4EBA)` : "") + " ", 1), createElementVNode("span", _hoisted_2, toDisplayString(__props.item.labelExpand), 1)], 8, _hoisted_1), createElementVNode("div", _hoisted_3, toDisplayString(__props.item.parentName), 1)]);
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export { _sfc_main as default };
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
+
import { type TreeOption } from 'naive-ui';
|
|
2
3
|
import { AnyObject } from '../../../../shared/types';
|
|
4
|
+
import { PTreeOption, IWordBook } from '../types';
|
|
5
|
+
type ITreeOption = TreeOption & AnyObject;
|
|
3
6
|
declare const _default: import("vue").DefineComponent<{
|
|
4
7
|
data: {
|
|
5
8
|
type: PropType<{
|
|
@@ -13,6 +16,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
16
|
}[]>;
|
|
14
17
|
required: true;
|
|
15
18
|
};
|
|
19
|
+
wordbook: {
|
|
20
|
+
type: PropType<IWordBook<ITreeOption>>;
|
|
21
|
+
default: () => {};
|
|
22
|
+
};
|
|
23
|
+
showTagHover: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
16
27
|
type: {
|
|
17
28
|
type: StringConstructor;
|
|
18
29
|
default: string;
|
|
@@ -32,6 +43,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
32
43
|
}[]>;
|
|
33
44
|
required: true;
|
|
34
45
|
};
|
|
46
|
+
wordbook: {
|
|
47
|
+
type: PropType<IWordBook<ITreeOption>>;
|
|
48
|
+
default: () => {};
|
|
49
|
+
};
|
|
50
|
+
showTagHover: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
default: boolean;
|
|
53
|
+
};
|
|
35
54
|
type: {
|
|
36
55
|
type: StringConstructor;
|
|
37
56
|
default: string;
|
|
@@ -48,10 +67,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
48
67
|
parentName: string;
|
|
49
68
|
}[];
|
|
50
69
|
}[]>;
|
|
70
|
+
getChildren: (tag: PTreeOption) => AnyObject[];
|
|
51
71
|
handleClick: (item: AnyObject) => void;
|
|
52
72
|
handleChange: (item: AnyObject, checked: boolean) => void;
|
|
53
73
|
NVirtualList: any;
|
|
54
74
|
NCheckbox: any;
|
|
75
|
+
NPopover: any;
|
|
55
76
|
CDefaultPage: import("../../../../shared/types").SFCWithInstall<import("vue").DefineComponent<{
|
|
56
77
|
type: {
|
|
57
78
|
type: StringConstructor;
|
|
@@ -107,6 +128,62 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
107
128
|
type: string;
|
|
108
129
|
config: AnyObject;
|
|
109
130
|
}>>;
|
|
131
|
+
GroupItem: import("vue").DefineComponent<{
|
|
132
|
+
item: {
|
|
133
|
+
type: PropType<AnyObject>;
|
|
134
|
+
required: true;
|
|
135
|
+
};
|
|
136
|
+
}, {
|
|
137
|
+
emit: (event: "checked", ...args: any[]) => void;
|
|
138
|
+
handleClick: (item: AnyObject) => void;
|
|
139
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "checked"[], "checked", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
140
|
+
item: {
|
|
141
|
+
type: PropType<AnyObject>;
|
|
142
|
+
required: true;
|
|
143
|
+
};
|
|
144
|
+
}>> & {
|
|
145
|
+
onChecked?: ((...args: any[]) => any) | undefined;
|
|
146
|
+
}, {}>;
|
|
147
|
+
TagItem: import("vue").DefineComponent<{
|
|
148
|
+
tag: {
|
|
149
|
+
type: PropType<AnyObject>;
|
|
150
|
+
required: true;
|
|
151
|
+
};
|
|
152
|
+
showClose: {
|
|
153
|
+
type: BooleanConstructor;
|
|
154
|
+
default: boolean;
|
|
155
|
+
};
|
|
156
|
+
}, {
|
|
157
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
158
|
+
tag: {
|
|
159
|
+
type: PropType<AnyObject>;
|
|
160
|
+
required: true;
|
|
161
|
+
};
|
|
162
|
+
showClose: {
|
|
163
|
+
type: BooleanConstructor;
|
|
164
|
+
default: boolean;
|
|
165
|
+
};
|
|
166
|
+
}>> & {
|
|
167
|
+
onUnchecked?: ((...args: any[]) => any) | undefined;
|
|
168
|
+
}>>;
|
|
169
|
+
emit: (event: "unchecked", ...args: any[]) => void;
|
|
170
|
+
updateChecked: (key: string, checked: boolean) => void;
|
|
171
|
+
NIcon: any;
|
|
172
|
+
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<{}>>, {}>;
|
|
173
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "unchecked"[], "unchecked", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
174
|
+
tag: {
|
|
175
|
+
type: PropType<AnyObject>;
|
|
176
|
+
required: true;
|
|
177
|
+
};
|
|
178
|
+
showClose: {
|
|
179
|
+
type: BooleanConstructor;
|
|
180
|
+
default: boolean;
|
|
181
|
+
};
|
|
182
|
+
}>> & {
|
|
183
|
+
onUnchecked?: ((...args: any[]) => any) | undefined;
|
|
184
|
+
}, {
|
|
185
|
+
showClose: boolean;
|
|
186
|
+
}>;
|
|
110
187
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "checked"[], "checked", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
111
188
|
data: {
|
|
112
189
|
type: PropType<{
|
|
@@ -120,6 +197,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
120
197
|
}[]>;
|
|
121
198
|
required: true;
|
|
122
199
|
};
|
|
200
|
+
wordbook: {
|
|
201
|
+
type: PropType<IWordBook<ITreeOption>>;
|
|
202
|
+
default: () => {};
|
|
203
|
+
};
|
|
204
|
+
showTagHover: {
|
|
205
|
+
type: BooleanConstructor;
|
|
206
|
+
default: boolean;
|
|
207
|
+
};
|
|
123
208
|
type: {
|
|
124
209
|
type: StringConstructor;
|
|
125
210
|
default: string;
|
|
@@ -128,5 +213,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
128
213
|
onChecked?: ((...args: any[]) => any) | undefined;
|
|
129
214
|
}, {
|
|
130
215
|
type: string;
|
|
216
|
+
wordbook: IWordBook<ITreeOption>;
|
|
217
|
+
showTagHover: boolean;
|
|
131
218
|
}>;
|
|
132
219
|
export default _default;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createElementBlock, Fragment, renderList, unref, normalizeStyle, createCommentVNode, createVNode, withCtx, createElementVNode, createTextVNode, toDisplayString, createBlock } from 'vue';
|
|
2
|
-
import { NVirtualList, NCheckbox } from 'naive-ui';
|
|
2
|
+
import { NVirtualList, NCheckbox, NPopover } from 'naive-ui';
|
|
3
3
|
import DefaultPage from '../../../default-page/index.js';
|
|
4
|
+
import GroupItem from './GroupItem.vue.js';
|
|
5
|
+
import TagItem from './TagItem.vue.js';
|
|
6
|
+
import { getAllChildren } from '../utils/index.js';
|
|
4
7
|
|
|
5
8
|
const _hoisted_1 = {
|
|
6
9
|
class: "c-select-person__searchGroup"
|
|
@@ -18,9 +21,12 @@ const _hoisted_5 = {
|
|
|
18
21
|
const _hoisted_6 = ["onClick"];
|
|
19
22
|
const _hoisted_7 = ["title"];
|
|
20
23
|
const _hoisted_8 = {
|
|
21
|
-
class: "
|
|
24
|
+
class: "c-select-person__popover"
|
|
22
25
|
};
|
|
23
26
|
const _hoisted_9 = {
|
|
27
|
+
class: "font-12 ml-4"
|
|
28
|
+
};
|
|
29
|
+
const _hoisted_10 = {
|
|
24
30
|
class: "c-select-person__searchGroupItemDesc c-select-person__ellipsis"
|
|
25
31
|
};
|
|
26
32
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -30,6 +36,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
30
36
|
type: Array,
|
|
31
37
|
required: true
|
|
32
38
|
},
|
|
39
|
+
wordbook: {
|
|
40
|
+
type: Object,
|
|
41
|
+
default: () => ({})
|
|
42
|
+
},
|
|
43
|
+
showTagHover: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: false
|
|
46
|
+
},
|
|
33
47
|
type: {
|
|
34
48
|
type: String,
|
|
35
49
|
default: ""
|
|
@@ -47,6 +61,15 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
47
61
|
}
|
|
48
62
|
return props.data;
|
|
49
63
|
});
|
|
64
|
+
function getChildren(tag) {
|
|
65
|
+
var _a;
|
|
66
|
+
const {
|
|
67
|
+
children: childrenKey = "children"
|
|
68
|
+
} = props.wordbook;
|
|
69
|
+
if (!tag || !((_a = tag[childrenKey]) == null ? void 0 : _a.length))
|
|
70
|
+
return [];
|
|
71
|
+
return getAllChildren(tag, childrenKey);
|
|
72
|
+
}
|
|
50
73
|
function handleClick(item) {
|
|
51
74
|
emit("checked", item.key, true);
|
|
52
75
|
}
|
|
@@ -95,14 +118,30 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
95
118
|
}, {
|
|
96
119
|
default: withCtx(({
|
|
97
120
|
item
|
|
98
|
-
}) => [(openBlock(), createElementBlock("div", {
|
|
99
|
-
key:
|
|
121
|
+
}) => [__props.showTagHover && item.innerItemsNum > 0 ? (openBlock(), createElementBlock("div", {
|
|
122
|
+
key: 0,
|
|
100
123
|
class: "c-select-person__searchGroupItemCell",
|
|
101
124
|
onClick: ($event) => handleClick(item)
|
|
102
125
|
}, [createElementVNode("div", {
|
|
103
126
|
class: "c-select-person__ellipsis",
|
|
104
127
|
title: item.label
|
|
105
|
-
}, [
|
|
128
|
+
}, [createVNode(unref(NPopover), {
|
|
129
|
+
trigger: "hover"
|
|
130
|
+
}, {
|
|
131
|
+
trigger: withCtx(() => [createElementVNode("span", null, toDisplayString(item.label), 1)]),
|
|
132
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_8, [(openBlock(true), createElementBlock(Fragment, null, renderList(getChildren(item), (childTag) => {
|
|
133
|
+
return openBlock(), createBlock(TagItem, {
|
|
134
|
+
key: childTag.key,
|
|
135
|
+
tag: childTag,
|
|
136
|
+
showClose: false
|
|
137
|
+
}, null, 8, ["tag"]);
|
|
138
|
+
}), 128))])]),
|
|
139
|
+
_: 2
|
|
140
|
+
}, 1024), createTextVNode(" " + toDisplayString(item.innerItemsNum ? `(${item.innerItemsNum}\u4EBA)` : "") + " ", 1), createElementVNode("span", _hoisted_9, toDisplayString(item.labelExpand), 1)], 8, _hoisted_7), createElementVNode("div", _hoisted_10, toDisplayString(item.parentName), 1)], 8, _hoisted_6)) : (openBlock(), createBlock(GroupItem, {
|
|
141
|
+
key: 1,
|
|
142
|
+
item,
|
|
143
|
+
onChecked: handleClick
|
|
144
|
+
}, null, 8, ["item"]))]),
|
|
106
145
|
_: 2
|
|
107
146
|
}, 1032, ["items"])], 64))], 4);
|
|
108
147
|
}), 128)), !__props.data.length ? (openBlock(), createBlock(unref(DefaultPage), {
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { AnyObject } from '../../../../shared/types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
tag: {
|
|
5
|
+
type: PropType<AnyObject>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
showClose: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
}, {
|
|
13
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
14
|
+
tag: {
|
|
15
|
+
type: PropType<AnyObject>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
showClose: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
}>> & {
|
|
23
|
+
onUnchecked?: ((...args: any[]) => any) | undefined;
|
|
24
|
+
}>>;
|
|
25
|
+
emit: (event: "unchecked", ...args: any[]) => void;
|
|
26
|
+
updateChecked: (key: string, checked: boolean) => void;
|
|
27
|
+
NIcon: any;
|
|
28
|
+
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<{}>>, {}>;
|
|
29
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "unchecked"[], "unchecked", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
|
+
tag: {
|
|
31
|
+
type: PropType<AnyObject>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
showClose: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
}>> & {
|
|
39
|
+
onUnchecked?: ((...args: any[]) => any) | undefined;
|
|
40
|
+
}, {
|
|
41
|
+
showClose: boolean;
|
|
42
|
+
}>;
|
|
43
|
+
export default _default;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, createCommentVNode, renderSlot, createTextVNode, toDisplayString, createBlock, unref } from 'vue';
|
|
2
|
+
import { NIcon } from 'naive-ui';
|
|
3
|
+
import { CloseCircleSharp } from '@vicons/ionicons5';
|
|
4
|
+
|
|
5
|
+
const _hoisted_1 = {
|
|
6
|
+
class: "c-select-person__tag-item"
|
|
7
|
+
};
|
|
8
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
+
__name: "TagItem",
|
|
10
|
+
props: {
|
|
11
|
+
tag: {
|
|
12
|
+
type: Object,
|
|
13
|
+
required: true
|
|
14
|
+
},
|
|
15
|
+
showClose: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: true
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
emits: ["unchecked"],
|
|
21
|
+
setup(__props, {
|
|
22
|
+
emit
|
|
23
|
+
}) {
|
|
24
|
+
const updateChecked = (key, checked) => {
|
|
25
|
+
emit("unchecked", key, checked);
|
|
26
|
+
};
|
|
27
|
+
return (_ctx, _cache) => {
|
|
28
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [createCommentVNode(" \u6807\u7B7E\u63D2\u69FD "), renderSlot(_ctx.$slots, "tag", {
|
|
29
|
+
tag: __props.tag
|
|
30
|
+
}, () => [createTextVNode(toDisplayString(__props.tag.label) + " " + toDisplayString(__props.tag.parentName ? `(${__props.tag.parentName})` : "") + " " + toDisplayString(__props.tag.innerItemsNum ? `(${__props.tag.innerItemsNum}\u4EBA)` : ""), 1)]), __props.showClose ? (openBlock(), createBlock(unref(NIcon), {
|
|
31
|
+
key: 0,
|
|
32
|
+
class: "tag-close",
|
|
33
|
+
component: unref(CloseCircleSharp),
|
|
34
|
+
onClick: _cache[0] || (_cache[0] = ($event) => updateChecked(__props.tag.key, false))
|
|
35
|
+
}, null, 8, ["component"])) : createCommentVNode("v-if", true)]);
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export { _sfc_main as default };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ref, PropType } from 'vue';
|
|
2
2
|
import { type TreeOption } from 'naive-ui';
|
|
3
3
|
import { AnyObject } from '../../../shared/types';
|
|
4
|
+
import { Strategy } from './types';
|
|
4
5
|
type IKey = string | number;
|
|
5
6
|
type ITreeOption = TreeOption & AnyObject;
|
|
6
7
|
type IWordBook<T> = {
|
|
@@ -125,6 +126,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
125
126
|
type: PropType<(node: ITreeOption) => IKey>;
|
|
126
127
|
default: undefined;
|
|
127
128
|
};
|
|
129
|
+
showTagHover: {
|
|
130
|
+
type: BooleanConstructor;
|
|
131
|
+
default: boolean;
|
|
132
|
+
};
|
|
128
133
|
}, {
|
|
129
134
|
$attrs: {
|
|
130
135
|
[x: string]: unknown;
|
|
@@ -235,6 +240,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
235
240
|
type: PropType<(node: ITreeOption) => IKey>;
|
|
236
241
|
default: undefined;
|
|
237
242
|
};
|
|
243
|
+
showTagHover: {
|
|
244
|
+
type: BooleanConstructor;
|
|
245
|
+
default: boolean;
|
|
246
|
+
};
|
|
238
247
|
}>> & {
|
|
239
248
|
onCheck?: ((...args: any[]) => any) | undefined;
|
|
240
249
|
onCheckWithLevel?: ((...args: any[]) => any) | undefined;
|
|
@@ -1345,6 +1354,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1345
1354
|
type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
|
|
1346
1355
|
default: undefined;
|
|
1347
1356
|
};
|
|
1357
|
+
showTagHover: {
|
|
1358
|
+
type: BooleanConstructor;
|
|
1359
|
+
default: boolean;
|
|
1360
|
+
};
|
|
1348
1361
|
}, {
|
|
1349
1362
|
$message: import("naive-ui").MessageApi;
|
|
1350
1363
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -1427,6 +1440,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1427
1440
|
type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
|
|
1428
1441
|
default: undefined;
|
|
1429
1442
|
};
|
|
1443
|
+
showTagHover: {
|
|
1444
|
+
type: BooleanConstructor;
|
|
1445
|
+
default: boolean;
|
|
1446
|
+
};
|
|
1430
1447
|
}>> & {}>>;
|
|
1431
1448
|
emit: any;
|
|
1432
1449
|
keyword: import("vue").Ref<string>;
|
|
@@ -1523,12 +1540,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1523
1540
|
renderLabel: ({ option }: {
|
|
1524
1541
|
option: TreeOption;
|
|
1525
1542
|
}) => JSX.Element;
|
|
1543
|
+
getChildren: (tag: import("./types").PTreeOption) => AnyObject[];
|
|
1526
1544
|
transformData: (trees: (import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject)[], parentNode: import("./types").PTreeOption | null, visitor?: Partial<Record<"enter" | "leave", (node: import("./types").PTreeOption) => unknown>> | undefined) => {
|
|
1527
1545
|
treeItems: import("./types").PTreeOption[];
|
|
1528
1546
|
leafCount: number;
|
|
1529
1547
|
};
|
|
1530
1548
|
onSearch: () => Promise<void>;
|
|
1531
|
-
getAllKeys: (tree: import("./types").PTreeOption[], strategy:
|
|
1549
|
+
getAllKeys: (tree: import("./types").PTreeOption[], strategy: Strategy) => (string | number)[];
|
|
1532
1550
|
getParentKeys: (node: import("./types").PTreeOption, map: Map<string | number, import("./types").PTreeOption>) => never[];
|
|
1533
1551
|
getTopLevelCheckedKey: (node: import("./types").PTreeOption, checked: Set<string | number>, map: Map<string | number, import("./types").PTreeOption>) => string | number;
|
|
1534
1552
|
checkedAllChange: (checked: boolean) => void;
|
|
@@ -1541,7 +1559,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1541
1559
|
updateChecked: (key: string | number, checked: boolean) => void;
|
|
1542
1560
|
notifyCheck: (key: string | number, isChecked?: boolean) => void;
|
|
1543
1561
|
checkSearchClear: (kw: string) => void;
|
|
1544
|
-
getCheckWithLevel: (strategy?:
|
|
1562
|
+
getCheckWithLevel: (strategy?: Strategy | undefined, hideLeaf?: boolean | undefined) => {
|
|
1545
1563
|
parentNode: import("./types").PTreeOption | undefined;
|
|
1546
1564
|
key: string | number;
|
|
1547
1565
|
label: string;
|
|
@@ -1562,11 +1580,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1562
1580
|
NInputGroup: any;
|
|
1563
1581
|
NCheckbox: any;
|
|
1564
1582
|
NTree: any;
|
|
1565
|
-
NIcon: any;
|
|
1566
1583
|
NSpace: any;
|
|
1567
1584
|
NGrid: any;
|
|
1568
1585
|
NGi: any;
|
|
1569
|
-
|
|
1586
|
+
NPopover: any;
|
|
1570
1587
|
SearchGroupList: import("vue").DefineComponent<{
|
|
1571
1588
|
data: {
|
|
1572
1589
|
type: PropType<{
|
|
@@ -1580,6 +1597,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1580
1597
|
}[]>;
|
|
1581
1598
|
required: true;
|
|
1582
1599
|
};
|
|
1600
|
+
wordbook: {
|
|
1601
|
+
type: PropType<import("./types").IWordBook<import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject>>;
|
|
1602
|
+
default: () => {};
|
|
1603
|
+
};
|
|
1604
|
+
showTagHover: {
|
|
1605
|
+
type: BooleanConstructor;
|
|
1606
|
+
default: boolean;
|
|
1607
|
+
};
|
|
1583
1608
|
type: {
|
|
1584
1609
|
type: StringConstructor;
|
|
1585
1610
|
default: string;
|
|
@@ -1599,6 +1624,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1599
1624
|
}[]>;
|
|
1600
1625
|
required: true;
|
|
1601
1626
|
};
|
|
1627
|
+
wordbook: {
|
|
1628
|
+
type: PropType<import("./types").IWordBook<import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject>>;
|
|
1629
|
+
default: () => {};
|
|
1630
|
+
};
|
|
1631
|
+
showTagHover: {
|
|
1632
|
+
type: BooleanConstructor;
|
|
1633
|
+
default: boolean;
|
|
1634
|
+
};
|
|
1602
1635
|
type: {
|
|
1603
1636
|
type: StringConstructor;
|
|
1604
1637
|
default: string;
|
|
@@ -1615,10 +1648,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1615
1648
|
parentName: string;
|
|
1616
1649
|
}[];
|
|
1617
1650
|
}[]>;
|
|
1651
|
+
getChildren: (tag: import("./types").PTreeOption) => AnyObject[];
|
|
1618
1652
|
handleClick: (item: AnyObject) => void;
|
|
1619
1653
|
handleChange: (item: AnyObject, checked: boolean) => void;
|
|
1620
1654
|
NVirtualList: any;
|
|
1621
1655
|
NCheckbox: any;
|
|
1656
|
+
NPopover: any;
|
|
1622
1657
|
CDefaultPage: import("../../../shared/types").SFCWithInstall<import("vue").DefineComponent<{
|
|
1623
1658
|
type: {
|
|
1624
1659
|
type: StringConstructor;
|
|
@@ -1674,6 +1709,62 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1674
1709
|
type: string;
|
|
1675
1710
|
config: AnyObject;
|
|
1676
1711
|
}>>;
|
|
1712
|
+
GroupItem: import("vue").DefineComponent<{
|
|
1713
|
+
item: {
|
|
1714
|
+
type: PropType<AnyObject>;
|
|
1715
|
+
required: true;
|
|
1716
|
+
};
|
|
1717
|
+
}, {
|
|
1718
|
+
emit: (event: "checked", ...args: any[]) => void;
|
|
1719
|
+
handleClick: (item: AnyObject) => void;
|
|
1720
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "checked"[], "checked", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1721
|
+
item: {
|
|
1722
|
+
type: PropType<AnyObject>;
|
|
1723
|
+
required: true;
|
|
1724
|
+
};
|
|
1725
|
+
}>> & {
|
|
1726
|
+
onChecked?: ((...args: any[]) => any) | undefined;
|
|
1727
|
+
}, {}>;
|
|
1728
|
+
TagItem: import("vue").DefineComponent<{
|
|
1729
|
+
tag: {
|
|
1730
|
+
type: PropType<AnyObject>;
|
|
1731
|
+
required: true;
|
|
1732
|
+
};
|
|
1733
|
+
showClose: {
|
|
1734
|
+
type: BooleanConstructor;
|
|
1735
|
+
default: boolean;
|
|
1736
|
+
};
|
|
1737
|
+
}, {
|
|
1738
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
1739
|
+
tag: {
|
|
1740
|
+
type: PropType<AnyObject>;
|
|
1741
|
+
required: true;
|
|
1742
|
+
};
|
|
1743
|
+
showClose: {
|
|
1744
|
+
type: BooleanConstructor;
|
|
1745
|
+
default: boolean;
|
|
1746
|
+
};
|
|
1747
|
+
}>> & {
|
|
1748
|
+
onUnchecked?: ((...args: any[]) => any) | undefined;
|
|
1749
|
+
}>>;
|
|
1750
|
+
emit: (event: "unchecked", ...args: any[]) => void;
|
|
1751
|
+
updateChecked: (key: string, checked: boolean) => void;
|
|
1752
|
+
NIcon: any;
|
|
1753
|
+
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<{}>>, {}>;
|
|
1754
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "unchecked"[], "unchecked", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1755
|
+
tag: {
|
|
1756
|
+
type: PropType<AnyObject>;
|
|
1757
|
+
required: true;
|
|
1758
|
+
};
|
|
1759
|
+
showClose: {
|
|
1760
|
+
type: BooleanConstructor;
|
|
1761
|
+
default: boolean;
|
|
1762
|
+
};
|
|
1763
|
+
}>> & {
|
|
1764
|
+
onUnchecked?: ((...args: any[]) => any) | undefined;
|
|
1765
|
+
}, {
|
|
1766
|
+
showClose: boolean;
|
|
1767
|
+
}>;
|
|
1677
1768
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "checked"[], "checked", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1678
1769
|
data: {
|
|
1679
1770
|
type: PropType<{
|
|
@@ -1687,6 +1778,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1687
1778
|
}[]>;
|
|
1688
1779
|
required: true;
|
|
1689
1780
|
};
|
|
1781
|
+
wordbook: {
|
|
1782
|
+
type: PropType<import("./types").IWordBook<import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject>>;
|
|
1783
|
+
default: () => {};
|
|
1784
|
+
};
|
|
1785
|
+
showTagHover: {
|
|
1786
|
+
type: BooleanConstructor;
|
|
1787
|
+
default: boolean;
|
|
1788
|
+
};
|
|
1690
1789
|
type: {
|
|
1691
1790
|
type: StringConstructor;
|
|
1692
1791
|
default: string;
|
|
@@ -1695,6 +1794,48 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1695
1794
|
onChecked?: ((...args: any[]) => any) | undefined;
|
|
1696
1795
|
}, {
|
|
1697
1796
|
type: string;
|
|
1797
|
+
wordbook: import("./types").IWordBook<import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject>;
|
|
1798
|
+
showTagHover: boolean;
|
|
1799
|
+
}>;
|
|
1800
|
+
TagItem: import("vue").DefineComponent<{
|
|
1801
|
+
tag: {
|
|
1802
|
+
type: PropType<AnyObject>;
|
|
1803
|
+
required: true;
|
|
1804
|
+
};
|
|
1805
|
+
showClose: {
|
|
1806
|
+
type: BooleanConstructor;
|
|
1807
|
+
default: boolean;
|
|
1808
|
+
};
|
|
1809
|
+
}, {
|
|
1810
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
1811
|
+
tag: {
|
|
1812
|
+
type: PropType<AnyObject>;
|
|
1813
|
+
required: true;
|
|
1814
|
+
};
|
|
1815
|
+
showClose: {
|
|
1816
|
+
type: BooleanConstructor;
|
|
1817
|
+
default: boolean;
|
|
1818
|
+
};
|
|
1819
|
+
}>> & {
|
|
1820
|
+
onUnchecked?: ((...args: any[]) => any) | undefined;
|
|
1821
|
+
}>>;
|
|
1822
|
+
emit: (event: "unchecked", ...args: any[]) => void;
|
|
1823
|
+
updateChecked: (key: string, checked: boolean) => void;
|
|
1824
|
+
NIcon: any;
|
|
1825
|
+
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<{}>>, {}>;
|
|
1826
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "unchecked"[], "unchecked", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1827
|
+
tag: {
|
|
1828
|
+
type: PropType<AnyObject>;
|
|
1829
|
+
required: true;
|
|
1830
|
+
};
|
|
1831
|
+
showClose: {
|
|
1832
|
+
type: BooleanConstructor;
|
|
1833
|
+
default: boolean;
|
|
1834
|
+
};
|
|
1835
|
+
}>> & {
|
|
1836
|
+
onUnchecked?: ((...args: any[]) => any) | undefined;
|
|
1837
|
+
}, {
|
|
1838
|
+
showClose: boolean;
|
|
1698
1839
|
}>;
|
|
1699
1840
|
CDefaultPage: import("../../../shared/types").SFCWithInstall<import("vue").DefineComponent<{
|
|
1700
1841
|
type: {
|
|
@@ -1831,6 +1972,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1831
1972
|
type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
|
|
1832
1973
|
default: undefined;
|
|
1833
1974
|
};
|
|
1975
|
+
showTagHover: {
|
|
1976
|
+
type: BooleanConstructor;
|
|
1977
|
+
default: boolean;
|
|
1978
|
+
};
|
|
1834
1979
|
}>>, {
|
|
1835
1980
|
data: (import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject)[];
|
|
1836
1981
|
defaultList: ((string | number) | {
|
|
@@ -1853,6 +1998,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1853
1998
|
onlyForwardCascade: boolean;
|
|
1854
1999
|
hideLeaf: boolean;
|
|
1855
2000
|
itemKey: (node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number;
|
|
2001
|
+
showTagHover: boolean;
|
|
1856
2002
|
}>>;
|
|
1857
2003
|
getProps: import("vue").ComputedRef<Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
1858
2004
|
defaultList: {
|
|
@@ -1960,6 +2106,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1960
2106
|
type: PropType<(node: ITreeOption) => IKey>;
|
|
1961
2107
|
default: undefined;
|
|
1962
2108
|
};
|
|
2109
|
+
showTagHover: {
|
|
2110
|
+
type: BooleanConstructor;
|
|
2111
|
+
default: boolean;
|
|
2112
|
+
};
|
|
1963
2113
|
}>> & {
|
|
1964
2114
|
onCheck?: ((...args: any[]) => any) | undefined;
|
|
1965
2115
|
onCheckWithLevel?: ((...args: any[]) => any) | undefined;
|
|
@@ -1967,7 +2117,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1967
2117
|
[x: string]: unknown;
|
|
1968
2118
|
}>;
|
|
1969
2119
|
emits: (event: "check" | "checkWithLevel", ...args: any[]) => void;
|
|
1970
|
-
getCheckWithLevel: () => any;
|
|
2120
|
+
getCheckWithLevel: (strategy?: Strategy, hideLeaf?: boolean) => any;
|
|
1971
2121
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("check" | "checkWithLevel")[], "check" | "checkWithLevel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1972
2122
|
defaultList: {
|
|
1973
2123
|
type: PropType<(IKey | ITag)[]>;
|
|
@@ -2074,6 +2224,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2074
2224
|
type: PropType<(node: ITreeOption) => IKey>;
|
|
2075
2225
|
default: undefined;
|
|
2076
2226
|
};
|
|
2227
|
+
showTagHover: {
|
|
2228
|
+
type: BooleanConstructor;
|
|
2229
|
+
default: boolean;
|
|
2230
|
+
};
|
|
2077
2231
|
}>> & {
|
|
2078
2232
|
onCheck?: ((...args: any[]) => any) | undefined;
|
|
2079
2233
|
onCheckWithLevel?: ((...args: any[]) => any) | undefined;
|
|
@@ -2103,5 +2257,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2103
2257
|
onlyForwardCascade: boolean;
|
|
2104
2258
|
hideLeaf: boolean;
|
|
2105
2259
|
itemKey: (node: ITreeOption) => IKey;
|
|
2260
|
+
showTagHover: boolean;
|
|
2106
2261
|
}>;
|
|
2107
2262
|
export default _default;
|