kso-sel-org 1.0.14 → 1.0.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/index.js +372 -301
- package/package.json +1 -1
- package/src/org-selector/index.vue.d.ts +152 -115
package/index.js
CHANGED
@@ -1,267 +1,166 @@
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("[data-v-
|
2
|
-
import { defineComponent as
|
3
|
-
import {
|
4
|
-
const
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".org-list-box[data-v-d7df037a]{display:flex;padding:10px;box-sizing:border-box;justify-content:space-between}.org-list-box .left-tree-box[data-v-d7df037a]{width:50%;overflow:hidden;border:1px solid #ebeef5}.org-list-box .left-tree-box .search-box[data-v-d7df037a]{display:flex;height:52px;padding:5px 12px;background:#f0f2f5;box-sizing:border-box;align-items:center}.org-list-box .left-tree-box .search-box label[data-v-d7df037a]{font-weight:700;color:#303133;white-space:nowrap}.org-list-box .left-tree-box .search-box .el-input[data-v-d7df037a]{width:100%;margin-left:10px}.org-list-box .right-selected-list[data-v-d7df037a]{width:48%;border:1px solid #ebeef5}.org-list-box .right-selected-list .selected-box[data-v-d7df037a]{display:flex;height:52px;padding:5px 12px;background:#f0f2f5;box-sizing:border-box;align-items:center;justify-content:space-between}.org-list-box .right-selected-list .selected-box span[data-v-d7df037a]{font-weight:700;color:#303133}.org-list-box .right-selected-list .selected-box .delete-btn[data-v-d7df037a]{display:inline-block;width:17px;height:17px;cursor:pointer;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAARCAYAAAA7bUf6AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAADkSURBVDiN7ZOxccJAEEXfwiX2EFCCSnAHhkoM+V4NtKAZRCw6kVwCHUAHDixImPsOPJ5BMrKsGYd+4d79d/+CNTqc3SvBojv/wqB+LIrl7Sxc3FuBBPM+AYBg3s2EBNVPoTs8dTNBZmuTMmCD2V7wOmQxeEZamVme4GAAF/dFgkpm69l2ux+SvMe4MqmcwPKhKOrJyK/cpVfSuKuJsQRoYiwbd42W/EmTf8l3DGqkE4BSOhjUfXdD38Htks12uxzIRzcZQ6uJwebs/jIUktTa9E9JCEeu1zekTJD96nmzI9PpEeADOClObZiMikMAAAAASUVORK5CYII=) no-repeat;block-size:100% 100%}.org-list-box .right-selected-list .el-icon svg[data-v-d7df037a]{width:1.5em;height:1.5em}.org-list-box .tree-content-box[data-v-d7df037a]{height:420px;padding:5px 15px;overflow:auto;box-sizing:border-box}.org-list-box ul li[data-v-d7df037a]{display:flex;width:100%;padding:0 20px;margin-bottom:8px;line-height:40px;border:solid 1px #d7dde4;border-radius:4px;box-sizing:border-box;align-items:center;justify-content:space-between}.org-list-box ul .org-name[data-v-d7df037a]{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.org-list-box ul .el-icon[data-v-d7df037a]{cursor:pointer}.org-list-box .org-del .img-box[data-v-d7df037a]{margin:7px 0 0;cursor:pointer}.org-list-box .flow-modal-title[data-v-d7df037a]{width:100%;height:40px;line-height:40px;color:#fff;text-indent:1em;background:#2b5fda}.selector-footer[data-v-d7df037a]{display:flex;padding:10px;border-top:solid 1px #dcdfe6;justify-content:flex-end}[data-v-d7df037a] .tree-folder-node-icon{display:inline-block;width:18px;height:18px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAIvSURBVFiF7ZaxaxRBFMZ/73JFhBQWlhIDXmGRIoKFxR1OYboIFloKu7cBAyLEykpIYSFYi4W32QQFiwTyDwhOsaJgm+KKNFpdYRkkYJJncZO7SW7vdu+SgMH74Ir5bt77vn3v7czCGP87JG+DSfQtytIZajb5Q80+ll8ApdztZysOcIMJ7h4tykME7iCkI8sqFaAKgDA5vAEhtaGEo+qbWAPEGfCQ34JzRvEKKHOmobN2UbZ92sSaADBBagOJAcyaRhy0n9ZGg6s2TAXmKPHdrOqDY6wQIASoV16l2uFzMNCAeae3T1CTwIZJ9Hlh2zno2wLT0PsI7z1qG5gFQHllEp3hB09tXXrOEjeshQY2swIm1mWEDYQpR63zk5vAQ2DPmVhimi3zRqeychTFsQqYFS1zjdcoyx3ykBd2UV661aaJtYWwBVwBFrjEZ5PoPRtKy3uAKsJ1AFuX9UEGOhUwK1pmmo+e+D7wyBMHwEaSItSAHUfdQvlqGlrxskbAmvsNRLcFV1kAjiZ8F2He1uVDVpANpYlQQ/jmqBlKjDSYXQPCZY9/ZkOxgwJtKC1+M+/Fd9t5SIwSovmDmP0WKPt5gQD2ieyaVe3lI0mh2L1xMY5ik2iCtk+1rPf+NPsvRgWGhvIl/1vrHA3YujSARpG9/2gLhMjEeqez9q7azv1/Ekq173/tnJUsumtA2fP6Vs36fHKJgj4SlX4iPVB3oeG34IBPQLNQgtOh6bTGGAOAv4Uio5lixzLEAAAAAElFTkSuQmCC) no-repeat;background-size:100% 100%}[data-v-d7df037a] .tree-file-node-icon{display:inline-block;width:18px;height:18px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAJxSURBVFiF7Za/a1NRFMc/5zWFCh07ZBBF6NDBoUOhFjpchw5iCwpdHARfWiEigotTl4CjiyBSi315gRa6VByiOEjoFYQ6dHToUBBbh/wBoS0YehzeTWh+vDRJ0xahXwiEc8893+89P+598D/DLOmQWdKh08TwuibP6iz97NHPnsnq7LkKMIGmUdaAAWAAZc0Emj4XASarCwiLCImqUUggLJqsLnQaT9omzmiC67xCee5MZeCJ+78ITpDwmt+8sBkp90yAyWiCa6wBlVqXAN+mZB1cP0AIDLr1dXZ50I6IEwWYtzrIFfKAqZIrd+ycfK/xC3QS4csxEZYDZuxTKXUtwISaRMkDY85URLhtfdmO8R9B2QCSzrSFMGN9KcZxxDahWdZhF6xCvo0wEUcOYH3ZRpgAKj5jKBtmWYfj9jTNgFnWm3h8rZ5E+AHcb3WSmv2hJoGPKLecqcgRU3Zeftb7NmTA1XKzSq4U2GeqXXIA60uRfaZQCs6URNg0gU7W+9ZkwHXzCtEFE2GX/nZHqh5uev4eMx0CDyvTUyPA3WRvai4YwKakeZmyOo1wFwDls03Jpxg/rTEoZeCZnZN34EpgQh3BYxyPVYQcsNPyZFl9CeRR0ihpIG8CzbTaA+wg5PBYxWPchDoCcU0YaojyCBozYN7rVTx+1WcKpcwRN+xj+VMnNsqAkLO++PVcnT9GfYw2kEcECfoY7TRc5wKU+GlotdYrAXZOtoBvTcgLbu1sBQBwwDRKQPQolVACDrnXTajGWrYB98DMu9+p0PUnWa9wKeDCBZzYhCbQ8EIFINGVfFZoXgLlA9GM9wolF/MSl2jAP+MZ1PXRPKaQAAAAAElFTkSuQmCC) no-repeat;background-size:100% 100%}[data-v-d7df037a] .el-input{height:32px}[data-v-d7df037a] .node-text-box{display:flex;align-items:center}[data-v-d7df037a] .node-text-box .el-radio{margin-right:5px}[data-v-d7df037a] .node-text-box .el-radio .el-radio__label{display:none}[data-v-d7df037a] .el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content{background-color:#f0f5ff}[data-v-d7df037a] .el-input__icon{color:#a8abb2}[data-v-d7df037a]::-webkit-scrollbar{width:5px}[data-v-d7df037a]::-webkit-scrollbar-thumb{background:#b7c7dd;border-radius:3px}[data-v-d7df037a]::-webkit-scrollbar-track{background:#ededed;border-radius:3px}.close[data-v-d7df037a]{position:absolute;display:none;padding:2px;cursor:pointer;border-radius:50%}.org-selector:hover .close[data-v-d7df037a]{display:block}")),document.head.appendChild(e)}}catch(d){console.error("vite-plugin-css-injected-by-js",d)}})();
|
2
|
+
import { defineComponent as pe, mergeModels as Y, useAttrs as ve, useModel as he, inject as ge, ref as f, onMounted as _e, resolveComponent as y, openBlock as g, createElementBlock as b, createElementVNode as o, createVNode as r, unref as _, isRef as j, Fragment as Z, renderList as ee, toDisplayString as E, withCtx as k, renderSlot as me, createBlock as le, createTextVNode as q, normalizeStyle as ye, createCommentVNode as ke, pushScopeId as xe, popScopeId as be } from "vue";
|
3
|
+
import { ElMessage as te } from "element-plus";
|
4
|
+
const K = (h) => (xe("data-v-d7df037a"), h = h(), be(), h), Ce = {
|
5
5
|
key: 0,
|
6
6
|
class: "org-selector"
|
7
|
-
},
|
7
|
+
}, Ne = { class: "org-list-box" }, Ve = { class: "left-tree-box" }, Te = { class: "search-box" }, Ie = /* @__PURE__ */ K(() => /* @__PURE__ */ o("label", null, "单位列表", -1)), Se = { class: "tree-content-box" }, Ee = { class: "right-selected-list" }, Oe = /* @__PURE__ */ K(() => /* @__PURE__ */ o("span", null, "已选单位", -1)), Be = { class: "tree-content-box" }, De = ["title"], we = {
|
8
8
|
key: 1,
|
9
9
|
class: "org-selector"
|
10
|
-
},
|
11
|
-
class: "selector-footer"
|
12
|
-
}, ve = /* @__PURE__ */ q({
|
10
|
+
}, Ae = { class: "org-list-box" }, je = { class: "left-tree-box" }, Ke = { class: "search-box" }, Le = /* @__PURE__ */ K(() => /* @__PURE__ */ o("label", null, "单位列表", -1)), Me = { class: "tree-content-box" }, qe = { class: "right-selected-list" }, ze = /* @__PURE__ */ K(() => /* @__PURE__ */ o("span", null, "已选单位", -1)), Fe = { class: "tree-content-box" }, Pe = ["title"], Re = { class: "selector-footer" }, Ue = /* @__PURE__ */ pe({
|
13
11
|
__name: "index",
|
14
|
-
props: {
|
15
|
-
notDialog: {
|
16
|
-
|
17
|
-
},
|
18
|
-
|
19
|
-
|
20
|
-
},
|
21
|
-
|
22
|
-
|
23
|
-
},
|
24
|
-
|
25
|
-
|
26
|
-
},
|
27
|
-
|
28
|
-
|
29
|
-
},
|
30
|
-
|
31
|
-
|
32
|
-
}
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
type: Boolean,
|
43
|
-
default: !1
|
44
|
-
},
|
45
|
-
buttonText: {
|
46
|
-
default: "选择"
|
47
|
-
},
|
48
|
-
multiple: {
|
49
|
-
type: Boolean,
|
50
|
-
default: !0
|
51
|
-
},
|
52
|
-
bindEvent: {
|
53
|
-
type: Boolean,
|
54
|
-
default: !0
|
55
|
-
},
|
56
|
-
defaultText: {
|
57
|
-
type: Boolean,
|
58
|
-
default: !1
|
59
|
-
},
|
60
|
-
expandKeys: {
|
61
|
-
default: () => []
|
62
|
-
},
|
63
|
-
reqParams: {
|
64
|
-
default: void 0
|
65
|
-
}
|
66
|
-
},
|
67
|
-
emits: ["onCancel", "onSelect", "update:modelValue", "onClear"],
|
68
|
-
setup(C, {
|
69
|
-
expose: T,
|
70
|
-
emit: b
|
71
|
-
}) {
|
72
|
-
const o = C;
|
73
|
-
let N = ne();
|
74
|
-
const y = b, S = P("req"), {
|
75
|
-
warningMsgBox: z
|
76
|
-
} = P("msgBox"), $ = {
|
12
|
+
props: /* @__PURE__ */ Y({
|
13
|
+
notDialog: { type: Boolean },
|
14
|
+
title: { default: "单位选择" },
|
15
|
+
modelValue: { default: "" },
|
16
|
+
rootOrgId: { default: "" },
|
17
|
+
orgType: { default: "" },
|
18
|
+
inputText: { default: "" },
|
19
|
+
returnValue: { default: "" },
|
20
|
+
separator: { default: "," },
|
21
|
+
readonly: { type: Boolean, default: !0 },
|
22
|
+
isClear: { type: Boolean, default: !0 },
|
23
|
+
disabled: { type: Boolean, default: !1 },
|
24
|
+
buttonText: { default: "选择" },
|
25
|
+
multiple: { type: Boolean, default: !0 },
|
26
|
+
bindEvent: { type: Boolean, default: !0 },
|
27
|
+
defaultText: { type: Boolean, default: !1 },
|
28
|
+
expandKeys: { default: () => [] },
|
29
|
+
reqParams: { default: void 0 },
|
30
|
+
fontFize: { default: 15 }
|
31
|
+
}, {
|
32
|
+
inputText: { type: String },
|
33
|
+
inputTextModifiers: {}
|
34
|
+
}),
|
35
|
+
emits: /* @__PURE__ */ Y(["onCancel", "onSelect", "update:modelValue", "onClear"], ["update:inputText"]),
|
36
|
+
setup(h, { expose: L, emit: O }) {
|
37
|
+
const n = h;
|
38
|
+
let B = ve();
|
39
|
+
const C = O, N = he(h, "inputText"), z = ge("req"), F = {
|
77
40
|
children: "childrenList",
|
78
41
|
label: "orgName"
|
79
|
-
},
|
80
|
-
let
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
class: "org-list-box"
|
90
|
-
}, [a("div", {
|
91
|
-
class: "left-tree-box"
|
92
|
-
}, [a("div", {
|
93
|
-
class: "search-box"
|
94
|
-
}, [a("label", null, [v("单位列表")]), a(f("el-input"), {
|
95
|
-
modelValue: V.value,
|
96
|
-
"onUpdate:modelValue": (e) => V.value = e,
|
97
|
-
"suffix-icon": f("Search"),
|
98
|
-
onInput: X,
|
99
|
-
placeholder: "请输入单位名称查询"
|
100
|
-
}, null)]), a("div", {
|
101
|
-
class: "tree-content-box"
|
102
|
-
}, [a(f("el-tree"), {
|
103
|
-
ref: (e) => r.value = e,
|
104
|
-
data: D.value,
|
105
|
-
"node-key": "id",
|
106
|
-
props: $,
|
107
|
-
"expand-on-click-node": !1,
|
108
|
-
"show-checkbox": o.multiple,
|
109
|
-
"check-strictly": !0,
|
110
|
-
"highlight-current": !0,
|
111
|
-
accordion: !0,
|
112
|
-
"check-on-click-node": !0,
|
113
|
-
"filter-node-method": W,
|
114
|
-
indent: 26,
|
115
|
-
onCheck: Z,
|
116
|
-
"render-content": Q,
|
117
|
-
"default-expanded-keys": o.expandKeys,
|
118
|
-
"icon-class": "el-icon-arrow-right"
|
119
|
-
}, null)])]), a("div", {
|
120
|
-
class: "right-selected-list"
|
121
|
-
}, [a("div", {
|
122
|
-
class: "selected-box"
|
123
|
-
}, [a("span", null, [v("已选单位")]), a("div", {
|
124
|
-
title: "删除全部"
|
125
|
-
}, [a("i", {
|
126
|
-
onClick: K,
|
127
|
-
class: "delete-btn"
|
128
|
-
}, null)])]), a("div", null, [a("div", {
|
129
|
-
class: "tree-content-box"
|
130
|
-
}, [a("ul", null, [d.value.map((e, l) => a("li", {
|
131
|
-
title: e.orgName + "(" + e.id + ")"
|
132
|
-
}, [a("span", {
|
133
|
-
class: "org-name"
|
134
|
-
}, [e.orgName, v("("), e.id, v(")")]), a(f("el-icon"), {
|
135
|
-
onClick: () => ee(e, l),
|
136
|
-
color: "#909399",
|
137
|
-
size: "16"
|
138
|
-
}, {
|
139
|
-
default: () => [a(se, null, null)]
|
140
|
-
})]))])])])])]);
|
42
|
+
}, i = f();
|
43
|
+
let P = f(!1), p = f(!1), D = f(!1), V = f(""), v = f(""), u = f([]), w = f([]), x = f([]);
|
44
|
+
const T = f([]), m = f("");
|
45
|
+
function A() {
|
46
|
+
if (n.modelValue)
|
47
|
+
m.value = n.modelValue, x.value = m.value.split(","), T.value = x.value;
|
48
|
+
else {
|
49
|
+
m.value = "";
|
50
|
+
const e = JSON.parse(localStorage.getItem("userInfo"));
|
51
|
+
T.value = [e.orgId], x.value = [];
|
141
52
|
}
|
142
|
-
|
143
|
-
|
144
|
-
if (o.modelValue ? h.value = o.modelValue.split(",") : h.value = [], p.value = !0, j.value && r.value) {
|
145
|
-
r.value.setCheckedKeys(h.value), d.value = r.value.getCheckedNodes();
|
53
|
+
if (p.value = !0, P.value && i.value) {
|
54
|
+
i.value.setCheckedKeys(x.value), u.value = i.value.getCheckedNodes();
|
146
55
|
return;
|
147
56
|
}
|
148
|
-
|
57
|
+
ne();
|
149
58
|
}
|
150
|
-
function
|
151
|
-
|
59
|
+
function oe() {
|
60
|
+
n.bindEvent && A();
|
152
61
|
}
|
153
|
-
function
|
62
|
+
function ne() {
|
154
63
|
let e = {
|
155
|
-
pid:
|
156
|
-
orgType:
|
64
|
+
pid: n.rootOrgId,
|
65
|
+
orgType: n.orgType
|
157
66
|
};
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
}).then(({
|
162
|
-
data: l
|
163
|
-
}) => {
|
164
|
-
o.rootOrgId && l.forEach((n) => {
|
165
|
-
n.id == o.rootOrgId && (n.pid = "");
|
67
|
+
n.reqParams && (e = Object.assign(e, n.reqParams)), z.post({ url: getKsoRoot("/sys/org/list-by-condition"), params: e }).then(({ data: l }) => {
|
68
|
+
n.rootOrgId && l.forEach((a) => {
|
69
|
+
a.id == n.rootOrgId && (a.pid = "");
|
166
70
|
});
|
167
|
-
let t =
|
168
|
-
t && t.length > 0 && t.forEach((
|
169
|
-
|
170
|
-
}),
|
71
|
+
let t = ae(l);
|
72
|
+
T.value.length < 1 && t && t.length > 0 && t.forEach((a) => {
|
73
|
+
a.expanded = !0;
|
74
|
+
}), w.value = t, i.value.setCheckedKeys(x.value), P.value = !0;
|
171
75
|
});
|
172
76
|
}
|
173
|
-
function
|
174
|
-
if (!
|
77
|
+
function R() {
|
78
|
+
if (!m.value)
|
175
79
|
return;
|
176
|
-
|
177
|
-
let e = {
|
178
|
-
|
179
|
-
|
180
|
-
S.post({
|
181
|
-
url: getKsoRoot("/sys/org/find-by-ids"),
|
182
|
-
params: e
|
183
|
-
}).then(({
|
184
|
-
data: l
|
185
|
-
}) => {
|
186
|
-
if (l && l.length > 0) {
|
187
|
-
let t = [];
|
188
|
-
l.forEach((n) => {
|
189
|
-
t.push(n.orgName);
|
190
|
-
}), i.value = t.join(",");
|
191
|
-
}
|
80
|
+
D.value = !0;
|
81
|
+
let e = { ids: m.value };
|
82
|
+
z.post({ url: getKsoRoot("/sys/org/find-by-ids"), params: e }).then(({ data: l }) => {
|
83
|
+
l && l.length > 0 && (W(l), C("onSelect", l));
|
192
84
|
});
|
193
85
|
}
|
194
|
-
function
|
86
|
+
function ae(e) {
|
195
87
|
return e.forEach((l) => {
|
196
|
-
l.name = l.orgName,
|
88
|
+
l.name = l.orgName, x.value.length > 0 && x.value.includes(l.id) && u.value.push(l);
|
197
89
|
let t = [];
|
198
|
-
e.forEach((
|
199
|
-
|
90
|
+
e.forEach((a) => {
|
91
|
+
a.pid == l.id && t.push(a);
|
200
92
|
}), l.childrenList = t;
|
201
93
|
}), e = e.filter((l) => l.pid == ""), e;
|
202
94
|
}
|
203
|
-
function
|
204
|
-
node: l,
|
205
|
-
data: t
|
206
|
-
}) {
|
95
|
+
function U(e, { node: l, data: t }) {
|
207
96
|
t.expanded && (l.expanded = !0);
|
208
|
-
let
|
209
|
-
l.childNodes && l.childNodes.length > 0 && (
|
210
|
-
let
|
211
|
-
if (!
|
212
|
-
let
|
213
|
-
t.id ===
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
97
|
+
let a = "tree-file-node-icon";
|
98
|
+
l.childNodes && l.childNodes.length > 0 && (a = "tree-folder-node-icon");
|
99
|
+
let d = [];
|
100
|
+
if (!n.multiple) {
|
101
|
+
let c = "";
|
102
|
+
t.id === V.value && (c = t.id), d.push(
|
103
|
+
e(y("el-radio"), {
|
104
|
+
modelValue: c,
|
105
|
+
label: t.id
|
106
|
+
})
|
107
|
+
);
|
218
108
|
}
|
219
|
-
return
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
109
|
+
return d.push(
|
110
|
+
e("i", {
|
111
|
+
class: a,
|
112
|
+
style: {
|
113
|
+
marginRight: "5px"
|
114
|
+
}
|
115
|
+
})
|
116
|
+
), d.push(
|
117
|
+
e(
|
118
|
+
"span",
|
119
|
+
{
|
120
|
+
title: t.name
|
121
|
+
},
|
122
|
+
t.name
|
123
|
+
)
|
124
|
+
), e("span", { class: "node-text-box" }, d);
|
231
125
|
}
|
232
|
-
function
|
126
|
+
function $(e, l) {
|
233
127
|
return e ? l.name.indexOf(e) !== -1 || l.id.indexOf(e) !== -1 : !0;
|
234
128
|
}
|
235
|
-
function
|
236
|
-
|
129
|
+
function H() {
|
130
|
+
i.value.filter(v.value), v.value || se(w.value[0].id, !1);
|
237
131
|
}
|
238
|
-
function
|
239
|
-
var t =
|
240
|
-
for (let
|
241
|
-
e ===
|
132
|
+
function se(e, l) {
|
133
|
+
var t = i.value.store.nodesMap;
|
134
|
+
for (let a in t)
|
135
|
+
e === a ? t[a].expanded = !0 : t[a].expanded = l;
|
242
136
|
}
|
243
|
-
function
|
244
|
-
|
137
|
+
function J(e) {
|
138
|
+
n.multiple || (i.value.setCheckedNodes([e]), V.value = e.id), u.value = i.value.getCheckedNodes();
|
245
139
|
}
|
246
|
-
function
|
247
|
-
|
140
|
+
function G(e, l) {
|
141
|
+
u.value.splice(l, 1), V.value = "", i.value.setCheckedNodes(u.value);
|
248
142
|
}
|
249
|
-
function
|
250
|
-
|
143
|
+
function M() {
|
144
|
+
u.value = [], V.value = "", i.value && i.value.setCheckedNodes(u.value);
|
251
145
|
}
|
252
|
-
function
|
253
|
-
p.value = !1,
|
146
|
+
function de() {
|
147
|
+
p.value = !1, C("onCancel", "");
|
254
148
|
}
|
255
|
-
function
|
256
|
-
if (
|
257
|
-
return
|
258
|
-
|
259
|
-
|
149
|
+
function ie() {
|
150
|
+
if (u.value.length == 0)
|
151
|
+
return te.closeAll(), te({
|
152
|
+
message: "请选择数据",
|
153
|
+
duration: 1e3,
|
154
|
+
type: "warning",
|
155
|
+
offset: document.documentElement.clientHeight / 3
|
156
|
+
}), !1;
|
157
|
+
let e = Q(u.value);
|
158
|
+
W(e), p.value = !1, C("onSelect", e);
|
260
159
|
}
|
261
|
-
function
|
160
|
+
function Q(e) {
|
262
161
|
let l = [];
|
263
162
|
return e.forEach((t) => {
|
264
|
-
let
|
163
|
+
let a = {
|
265
164
|
id: t.id,
|
266
165
|
orgName: t.orgName,
|
267
166
|
orgType: t.orgType,
|
@@ -272,104 +171,276 @@ const ce = {
|
|
272
171
|
cityId: t.cityId,
|
273
172
|
cityName: t.cityName
|
274
173
|
};
|
275
|
-
l.push(
|
174
|
+
l.push(a);
|
276
175
|
}), l;
|
277
176
|
}
|
278
|
-
function
|
177
|
+
function W(e) {
|
279
178
|
let l = {};
|
280
|
-
Object.keys(e[0]).forEach((
|
281
|
-
l[
|
282
|
-
}), e.forEach((
|
283
|
-
var
|
284
|
-
for (let
|
285
|
-
(
|
286
|
-
}),
|
287
|
-
let t =
|
288
|
-
t && t.length > 0 && t.forEach((
|
289
|
-
let
|
290
|
-
if (
|
291
|
-
let
|
292
|
-
|
179
|
+
Object.keys(e[0]).forEach((a) => {
|
180
|
+
l[a] = [];
|
181
|
+
}), e.forEach((a) => {
|
182
|
+
var d;
|
183
|
+
for (let c in a)
|
184
|
+
(d = l[c]) == null || d.push(a[c]);
|
185
|
+
}), N.value = l.orgName.join(n.separator), C("update:modelValue", l.id.join(","));
|
186
|
+
let t = n.returnValue.split("|");
|
187
|
+
t && t.length > 0 && t.forEach((a) => {
|
188
|
+
let d = a.split(":");
|
189
|
+
if (d && d.length > 1) {
|
190
|
+
let c = l[d[1]], I = c ? c.join(",") : "";
|
191
|
+
B.sync[d[0]] = I;
|
293
192
|
}
|
294
193
|
});
|
295
194
|
}
|
296
|
-
function
|
297
|
-
if (
|
298
|
-
let e =
|
195
|
+
function X() {
|
196
|
+
if (N.value = "", C("update:modelValue", ""), n.returnValue) {
|
197
|
+
let e = n.returnValue.split("|");
|
299
198
|
e && e.length > 0 && e.forEach((l) => {
|
300
199
|
let t = l.split(":");
|
301
|
-
t && t.length > 1 && (
|
200
|
+
t && t.length > 1 && (B.sync[t[0]] = "");
|
302
201
|
});
|
303
202
|
}
|
304
|
-
|
203
|
+
M(), C("onClear", "");
|
305
204
|
}
|
306
|
-
|
307
|
-
|
308
|
-
})
|
205
|
+
_e(() => {
|
206
|
+
m.value = n.modelValue, n.notDialog && A(), n.defaultText && !D.value && R(), n.multiple || (V.value = m.value);
|
207
|
+
});
|
208
|
+
function re(e) {
|
209
|
+
m.value = e, D.value = !1, n.defaultText && !D.value && R();
|
210
|
+
}
|
211
|
+
return L({
|
309
212
|
/** 获取选中的数据 */
|
310
|
-
|
311
|
-
|
213
|
+
clear: X,
|
214
|
+
setValue: re,
|
215
|
+
getSelectData: () => Q(u.value),
|
216
|
+
openDialogEvent: A
|
312
217
|
}), (e, l) => {
|
313
|
-
const t =
|
314
|
-
return e.notDialog ? (
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
218
|
+
const t = y("el-input"), a = y("el-tree"), d = y("CircleCloseFilled"), c = y("el-icon"), I = y("el-button"), ue = y("CircleClose"), ce = y("el-dialog");
|
219
|
+
return e.notDialog ? (g(), b("div", Ce, [
|
220
|
+
o("div", Ne, [
|
221
|
+
o("div", Ve, [
|
222
|
+
o("div", Te, [
|
223
|
+
Ie,
|
224
|
+
r(t, {
|
225
|
+
modelValue: _(v),
|
226
|
+
"onUpdate:modelValue": l[0] || (l[0] = (s) => j(v) ? v.value = s : v = s),
|
227
|
+
"suffix-icon": "Search",
|
228
|
+
onInput: H,
|
229
|
+
placeholder: "请输入单位名称查询"
|
230
|
+
}, null, 8, ["modelValue"])
|
231
|
+
]),
|
232
|
+
o("div", Se, [
|
233
|
+
r(a, {
|
234
|
+
ref_key: "orgTree",
|
235
|
+
ref: i,
|
236
|
+
data: _(w),
|
237
|
+
"node-key": "id",
|
238
|
+
props: F,
|
239
|
+
"expand-on-click-node": !1,
|
240
|
+
"show-checkbox": n.multiple,
|
241
|
+
"check-strictly": !0,
|
242
|
+
"highlight-current": !0,
|
243
|
+
accordion: !1,
|
244
|
+
"check-on-click-node": !0,
|
245
|
+
"filter-node-method": $,
|
246
|
+
indent: 26,
|
247
|
+
onCheck: J,
|
248
|
+
"render-content": U,
|
249
|
+
"default-expanded-keys": _(T),
|
250
|
+
"icon-class": "el-icon-arrow-right"
|
251
|
+
}, null, 8, ["data", "show-checkbox", "default-expanded-keys"])
|
252
|
+
])
|
253
|
+
]),
|
254
|
+
o("div", Ee, [
|
255
|
+
o("div", { class: "selected-box" }, [
|
256
|
+
Oe,
|
257
|
+
o("div", { title: "删除全部" }, [
|
258
|
+
o("i", {
|
259
|
+
onClick: M,
|
260
|
+
class: "delete-btn"
|
261
|
+
})
|
262
|
+
])
|
263
|
+
]),
|
264
|
+
o("div", null, [
|
265
|
+
o("div", Be, [
|
266
|
+
o("ul", null, [
|
267
|
+
(g(!0), b(Z, null, ee(_(u), (s, S) => (g(), b("li", {
|
268
|
+
key: S + "s"
|
269
|
+
}, [
|
270
|
+
o("span", {
|
271
|
+
class: "org-name",
|
272
|
+
title: s.orgName + "(" + s.id + ")"
|
273
|
+
}, E(s.orgName) + "(" + E(s.id) + ") ", 9, De),
|
274
|
+
r(c, {
|
275
|
+
onClick: (fe) => G(s, S),
|
276
|
+
title: "移除",
|
277
|
+
color: "#909399",
|
278
|
+
size: "16"
|
279
|
+
}, {
|
280
|
+
default: k(() => [
|
281
|
+
r(d)
|
282
|
+
]),
|
283
|
+
_: 2
|
284
|
+
}, 1032, ["onClick"])
|
285
|
+
]))), 128))
|
286
|
+
])
|
287
|
+
])
|
288
|
+
])
|
289
|
+
])
|
290
|
+
])
|
291
|
+
])) : (g(), b("div", we, [
|
292
|
+
e.$slots.func ? (g(), b("div", {
|
326
293
|
key: 0,
|
327
|
-
class: "
|
294
|
+
class: "slot-box",
|
328
295
|
onClick: oe
|
329
|
-
},
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
type: "primary",
|
296
|
+
}, [
|
297
|
+
me(e.$slots, "func", {}, void 0, !0)
|
298
|
+
])) : (g(), le(t, {
|
299
|
+
key: 1,
|
300
|
+
modelValue: N.value,
|
301
|
+
"onUpdate:modelValue": l[1] || (l[1] = (s) => N.value = s),
|
336
302
|
disabled: e.disabled,
|
337
|
-
|
338
|
-
}, {
|
339
|
-
default: m(() => [v(de(e.buttonText), 1)]),
|
340
|
-
_: 1
|
341
|
-
}, 8, ["disabled"])]),
|
342
|
-
_: 1
|
343
|
-
}, 8, ["modelValue", "disabled", "readonly"])), a(O, {
|
344
|
-
title: "单位选择",
|
345
|
-
modelValue: _(p),
|
346
|
-
"onUpdate:modelValue": l[1] || (l[1] = (x) => U(p) ? p.value = x : p = x),
|
347
|
-
onClose: w,
|
348
|
-
width: 1e3
|
349
|
-
}, {
|
350
|
-
default: m(() => [a(_(A)), ie("div", pe, [a(u, {
|
351
|
-
onClick: w
|
303
|
+
readonly: e.readonly
|
352
304
|
}, {
|
353
|
-
|
305
|
+
append: k(() => [
|
306
|
+
r(I, {
|
307
|
+
type: "primary",
|
308
|
+
disabled: e.disabled,
|
309
|
+
onClick: A
|
310
|
+
}, {
|
311
|
+
default: k(() => [
|
312
|
+
q(E(e.buttonText), 1)
|
313
|
+
]),
|
314
|
+
_: 1
|
315
|
+
}, 8, ["disabled"]),
|
316
|
+
N.value && e.isClear ? (g(), le(c, {
|
317
|
+
key: 0,
|
318
|
+
class: "close",
|
319
|
+
style: ye({ right: n.buttonText.length * n.fontFize + 25 + "px" }),
|
320
|
+
onClick: X
|
321
|
+
}, {
|
322
|
+
default: k(() => [
|
323
|
+
r(ue, { color: "#868484" })
|
324
|
+
]),
|
325
|
+
_: 1
|
326
|
+
}, 8, ["style"])) : ke("", !0)
|
327
|
+
]),
|
354
328
|
_: 1
|
355
|
-
}
|
356
|
-
|
357
|
-
|
329
|
+
}, 8, ["modelValue", "disabled", "readonly"])),
|
330
|
+
r(ce, {
|
331
|
+
title: n.title,
|
332
|
+
modelValue: _(p),
|
333
|
+
"onUpdate:modelValue": l[4] || (l[4] = (s) => j(p) ? p.value = s : p = s),
|
334
|
+
"append-to-body": !0,
|
335
|
+
"close-on-click-modal": !1,
|
336
|
+
"close-on-press-escape": !1,
|
337
|
+
onClose: de,
|
338
|
+
width: 1e3
|
358
339
|
}, {
|
359
|
-
default:
|
340
|
+
default: k(() => [
|
341
|
+
o("div", Ae, [
|
342
|
+
o("div", je, [
|
343
|
+
o("div", Ke, [
|
344
|
+
Le,
|
345
|
+
r(t, {
|
346
|
+
modelValue: _(v),
|
347
|
+
"onUpdate:modelValue": l[2] || (l[2] = (s) => j(v) ? v.value = s : v = s),
|
348
|
+
"suffix-icon": "Search",
|
349
|
+
onInput: H,
|
350
|
+
placeholder: "请输入单位名称查询"
|
351
|
+
}, null, 8, ["modelValue"])
|
352
|
+
]),
|
353
|
+
o("div", Me, [
|
354
|
+
r(a, {
|
355
|
+
ref_key: "orgTree",
|
356
|
+
ref: i,
|
357
|
+
data: _(w),
|
358
|
+
"node-key": "id",
|
359
|
+
props: F,
|
360
|
+
"expand-on-click-node": !1,
|
361
|
+
"show-checkbox": n.multiple,
|
362
|
+
"check-strictly": !0,
|
363
|
+
"highlight-current": !0,
|
364
|
+
accordion: !1,
|
365
|
+
"check-on-click-node": !0,
|
366
|
+
"filter-node-method": $,
|
367
|
+
indent: 26,
|
368
|
+
onCheck: J,
|
369
|
+
"render-content": U,
|
370
|
+
"default-expanded-keys": _(T),
|
371
|
+
"icon-class": "el-icon-arrow-right"
|
372
|
+
}, null, 8, ["data", "show-checkbox", "default-expanded-keys"])
|
373
|
+
])
|
374
|
+
]),
|
375
|
+
o("div", qe, [
|
376
|
+
o("div", { class: "selected-box" }, [
|
377
|
+
ze,
|
378
|
+
o("div", { title: "删除全部" }, [
|
379
|
+
o("i", {
|
380
|
+
onClick: M,
|
381
|
+
class: "delete-btn"
|
382
|
+
})
|
383
|
+
])
|
384
|
+
]),
|
385
|
+
o("div", null, [
|
386
|
+
o("div", Fe, [
|
387
|
+
o("ul", null, [
|
388
|
+
(g(!0), b(Z, null, ee(_(u), (s, S) => (g(), b("li", {
|
389
|
+
key: S + "s"
|
390
|
+
}, [
|
391
|
+
o("span", {
|
392
|
+
class: "org-name",
|
393
|
+
title: s.orgName + "(" + s.id + ")"
|
394
|
+
}, E(s.orgName) + "(" + E(s.id) + ") ", 9, Pe),
|
395
|
+
r(c, {
|
396
|
+
onClick: (fe) => G(s, S),
|
397
|
+
title: "移除",
|
398
|
+
color: "#909399",
|
399
|
+
size: "16"
|
400
|
+
}, {
|
401
|
+
default: k(() => [
|
402
|
+
r(d)
|
403
|
+
]),
|
404
|
+
_: 2
|
405
|
+
}, 1032, ["onClick"])
|
406
|
+
]))), 128))
|
407
|
+
])
|
408
|
+
])
|
409
|
+
])
|
410
|
+
])
|
411
|
+
]),
|
412
|
+
o("div", Re, [
|
413
|
+
r(I, {
|
414
|
+
onClick: l[3] || (l[3] = (s) => j(p) ? p.value = !1 : p = !1)
|
415
|
+
}, {
|
416
|
+
default: k(() => [
|
417
|
+
q("取消")
|
418
|
+
]),
|
419
|
+
_: 1
|
420
|
+
}),
|
421
|
+
r(I, {
|
422
|
+
type: "primary",
|
423
|
+
onClick: ie
|
424
|
+
}, {
|
425
|
+
default: k(() => [
|
426
|
+
q("确认")
|
427
|
+
]),
|
428
|
+
_: 1
|
429
|
+
})
|
430
|
+
])
|
431
|
+
]),
|
360
432
|
_: 1
|
361
|
-
}
|
362
|
-
|
363
|
-
}, 8, ["modelValue"])]));
|
433
|
+
}, 8, ["title", "modelValue"])
|
434
|
+
]));
|
364
435
|
};
|
365
436
|
}
|
366
437
|
});
|
367
|
-
const
|
368
|
-
const
|
369
|
-
for (const [
|
370
|
-
|
371
|
-
return
|
372
|
-
},
|
438
|
+
const $e = (h, L) => {
|
439
|
+
const O = h.__vccOpts || h;
|
440
|
+
for (const [n, B] of L)
|
441
|
+
O[n] = B;
|
442
|
+
return O;
|
443
|
+
}, Ge = /* @__PURE__ */ $e(Ue, [["__scopeId", "data-v-d7df037a"]]);
|
373
444
|
export {
|
374
|
-
|
445
|
+
Ge as ksoSelOrg
|
375
446
|
};
|
package/package.json
CHANGED
@@ -1,52 +1,80 @@
|
|
1
1
|
declare function openDialogEvent(): void;
|
2
|
-
declare
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
}
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
2
|
+
declare function clearAction(): void;
|
3
|
+
declare function setValue(orgId: any): void;
|
4
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
5
|
+
inputText: import("vue").PropType<any>;
|
6
|
+
notDialog: {
|
7
|
+
type: import("vue").PropType<boolean>;
|
8
|
+
};
|
9
|
+
title: {
|
10
|
+
type: import("vue").PropType<string>;
|
11
|
+
default: string;
|
12
|
+
};
|
13
|
+
modelValue: {
|
14
|
+
type: import("vue").PropType<string>;
|
15
|
+
required: true;
|
16
|
+
default: string;
|
17
|
+
};
|
18
|
+
rootOrgId: {
|
19
|
+
type: import("vue").PropType<string>;
|
20
|
+
default: string;
|
21
|
+
};
|
22
|
+
orgType: {
|
23
|
+
type: import("vue").PropType<string>;
|
24
|
+
default: string;
|
25
|
+
};
|
26
|
+
returnValue: {
|
27
|
+
type: import("vue").PropType<string>;
|
28
|
+
default: string;
|
29
|
+
};
|
30
|
+
separator: {
|
31
|
+
type: import("vue").PropType<string>;
|
32
|
+
default: string;
|
33
|
+
};
|
34
|
+
readonly: {
|
35
|
+
type: import("vue").PropType<boolean>;
|
36
|
+
default: boolean;
|
37
|
+
};
|
38
|
+
isClear: {
|
39
|
+
type: import("vue").PropType<boolean>;
|
40
|
+
default: boolean;
|
41
|
+
};
|
42
|
+
disabled: {
|
43
|
+
type: import("vue").PropType<boolean>;
|
44
|
+
default: boolean;
|
45
|
+
};
|
46
|
+
buttonText: {
|
47
|
+
type: import("vue").PropType<string>;
|
48
|
+
default: string;
|
49
|
+
};
|
50
|
+
multiple: {
|
51
|
+
type: import("vue").PropType<boolean>;
|
52
|
+
default: boolean;
|
53
|
+
};
|
54
|
+
bindEvent: {
|
55
|
+
type: import("vue").PropType<boolean>;
|
56
|
+
default: boolean;
|
57
|
+
};
|
58
|
+
defaultText: {
|
59
|
+
type: import("vue").PropType<boolean>;
|
60
|
+
default: boolean;
|
61
|
+
};
|
62
|
+
expandKeys: {
|
63
|
+
type: import("vue").PropType<string[]>;
|
64
|
+
default: () => never[];
|
65
|
+
};
|
66
|
+
reqParams: {
|
67
|
+
type: import("vue").PropType<object>;
|
68
|
+
default: undefined;
|
69
|
+
};
|
70
|
+
fontFize: {
|
71
|
+
type: import("vue").PropType<number>;
|
72
|
+
default: number;
|
73
|
+
};
|
74
|
+
}, {
|
49
75
|
/** 获取选中的数据 */
|
76
|
+
clear: typeof clearAction;
|
77
|
+
setValue: typeof setValue;
|
50
78
|
getSelectData: () => object[];
|
51
79
|
openDialogEvent: typeof openDialogEvent;
|
52
80
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
@@ -54,61 +82,88 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
54
82
|
onSelect: (...args: any[]) => void;
|
55
83
|
"update:modelValue": (...args: any[]) => void;
|
56
84
|
onClear: (...args: any[]) => void;
|
57
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<
|
58
|
-
|
59
|
-
notDialog
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
85
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
86
|
+
inputText: import("vue").PropType<any>;
|
87
|
+
notDialog: {
|
88
|
+
type: import("vue").PropType<boolean>;
|
89
|
+
};
|
90
|
+
title: {
|
91
|
+
type: import("vue").PropType<string>;
|
92
|
+
default: string;
|
93
|
+
};
|
94
|
+
modelValue: {
|
95
|
+
type: import("vue").PropType<string>;
|
96
|
+
required: true;
|
97
|
+
default: string;
|
98
|
+
};
|
99
|
+
rootOrgId: {
|
100
|
+
type: import("vue").PropType<string>;
|
101
|
+
default: string;
|
102
|
+
};
|
103
|
+
orgType: {
|
104
|
+
type: import("vue").PropType<string>;
|
105
|
+
default: string;
|
106
|
+
};
|
107
|
+
returnValue: {
|
108
|
+
type: import("vue").PropType<string>;
|
109
|
+
default: string;
|
110
|
+
};
|
111
|
+
separator: {
|
112
|
+
type: import("vue").PropType<string>;
|
113
|
+
default: string;
|
114
|
+
};
|
115
|
+
readonly: {
|
116
|
+
type: import("vue").PropType<boolean>;
|
117
|
+
default: boolean;
|
118
|
+
};
|
119
|
+
isClear: {
|
120
|
+
type: import("vue").PropType<boolean>;
|
121
|
+
default: boolean;
|
122
|
+
};
|
123
|
+
disabled: {
|
124
|
+
type: import("vue").PropType<boolean>;
|
125
|
+
default: boolean;
|
126
|
+
};
|
127
|
+
buttonText: {
|
128
|
+
type: import("vue").PropType<string>;
|
129
|
+
default: string;
|
130
|
+
};
|
131
|
+
multiple: {
|
132
|
+
type: import("vue").PropType<boolean>;
|
133
|
+
default: boolean;
|
134
|
+
};
|
135
|
+
bindEvent: {
|
136
|
+
type: import("vue").PropType<boolean>;
|
137
|
+
default: boolean;
|
138
|
+
};
|
139
|
+
defaultText: {
|
140
|
+
type: import("vue").PropType<boolean>;
|
141
|
+
default: boolean;
|
142
|
+
};
|
143
|
+
expandKeys: {
|
144
|
+
type: import("vue").PropType<string[]>;
|
145
|
+
default: () => never[];
|
146
|
+
};
|
147
|
+
reqParams: {
|
148
|
+
type: import("vue").PropType<object>;
|
149
|
+
default: undefined;
|
150
|
+
};
|
151
|
+
fontFize: {
|
152
|
+
type: import("vue").PropType<number>;
|
153
|
+
default: number;
|
154
|
+
};
|
155
|
+
}>> & {
|
104
156
|
onOnCancel?: ((...args: any[]) => any) | undefined;
|
105
157
|
onOnSelect?: ((...args: any[]) => any) | undefined;
|
106
158
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
107
159
|
onOnClear?: ((...args: any[]) => any) | undefined;
|
108
160
|
}, {
|
161
|
+
title: string;
|
109
162
|
modelValue: string;
|
110
|
-
|
163
|
+
rootOrgId: string;
|
164
|
+
orgType: string;
|
111
165
|
returnValue: string;
|
166
|
+
separator: string;
|
112
167
|
readonly: boolean;
|
113
168
|
isClear: boolean;
|
114
169
|
disabled: boolean;
|
@@ -116,31 +171,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
116
171
|
multiple: boolean;
|
117
172
|
bindEvent: boolean;
|
118
173
|
defaultText: boolean;
|
119
|
-
expandKeys:
|
174
|
+
expandKeys: string[];
|
120
175
|
reqParams: object;
|
121
|
-
|
122
|
-
orgType: string;
|
176
|
+
fontFize: number;
|
123
177
|
}, {}>, {
|
124
178
|
func?(_: {}): any;
|
125
179
|
}>;
|
126
180
|
export default _default;
|
127
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
128
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
129
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
130
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
131
|
-
} : {
|
132
|
-
type: import('vue').PropType<T[K]>;
|
133
|
-
required: true;
|
134
|
-
};
|
135
|
-
};
|
136
|
-
type __VLS_WithDefaults<P, D> = {
|
137
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
138
|
-
default: D[K];
|
139
|
-
}> : P[K];
|
140
|
-
};
|
141
|
-
type __VLS_Prettify<T> = {
|
142
|
-
[K in keyof T]: T[K];
|
143
|
-
} & {};
|
144
181
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
145
182
|
new (): {
|
146
183
|
$slots: S;
|