@vunk/form 2.19.19 → 2.19.20
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/components/select/index.cjs +1 -1
- package/components/select/index.mjs +132 -115
- package/components/select/src/core.vue.d.ts +11 -1
- package/components/select/src/ctx.d.ts +8 -1
- package/components/select/src/index.vue.d.ts +9 -0
- package/components/templates-default/src/index.vue.d.ts +9 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),C=require("@vunk/form/components/form-item"),p=require("element-plus"),O=require("@vunk/core/shared/utils-vue"),E=require("@vunk/form/shared/element-plus"),_=require("@vunk/core/shared/utils-object"),j=require("@vunk/form/composables"),F=require("../_plugin-vue_export-helper-BHFhmbuH.js"),y={...C._VkfFormItemCtx.props,...p.selectProps,modelValue:null,props:{type:Object,default:()=>({})},options:{type:Array,default:()=>[]},selectSlots:{type:Object,default:void 0},selectRef:null,optionsUrl:{type:String,default:""},stringify:{type:Boolean,default:!1},slots:null,optionChildrenProp:{type:String,default:""},closeOnClickOutside:{type:Boolean,default:!0}},N=O.bindPropsFactory(y),b={...p.selectEmits,"update:modelValue":null},B=O.onEmitsFactory(b),U=Object.freeze(Object.defineProperty({__proto__:null,createBindProps:N,createOnEmits:B,emits:b,props:y},Symbol.toStringTag,{value:"Module"}));function A(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const z=t.defineComponent({props:{data:{type:Array,required:!0},optionChildrenProp:{type:String,default:""},labelProp:{type:String,default:"label"},valueProp:{type:String,default:"value"},disabledProp:{type:String,default:"disabled"}},setup(e,{slots:n}){const i=o=>{let d;return e.optionChildrenProp&&Array.isArray(o[e.optionChildrenProp])&&o[e.optionChildrenProp].length>0?t.createVNode(p.ElOptionGroup,{label:o[e.labelProp],key:o[e.valueProp]||o[e.labelProp],disabled:o[e.disabledProp]},A(d=o[e.optionChildrenProp].map(u=>t.createVNode(i,t.mergeProps({key:u.value},u),null)))?d:{default:()=>[d]}):t.createVNode(p.ElOption,{key:o[e.valueProp]||o[e.labelProp],value:o[e.valueProp],class:o.class,created:o.created,disabled:o[e.disabledProp],label:o[e.labelProp],ref:o.ref,style:o.style},{default:()=>n.option?n.option(o):o[e.labelProp]})};return()=>e.data.map(o=>i(o))}}),T=t.defineComponent({components:{VkfFormItem:C.VkfFormItem,ElSelect:p.ElSelect,ElOption:p.ElOption,Options:z},props:y,emits:b,setup(e,{emit:n}){const i=C._VkfFormItemCtx.createBindProps(e),o=E.createSelectBindProps(e,["disabled","modelValue"]),d=j.useComputedReadonly(e),m=t.ref(),u=t.ref(),P=l=>{var r;(r=e.selectRef)==null||r.call(e,l),m.value=l==null?void 0:l.$el,u.value=l},f=t.ref(!1),s=t.ref(!1),V=()=>{s.value=!0},S=l=>{n("visible-change",l),!l&&!e.closeOnClickOutside&&!f.value&&!s.value&&u.value&&(u.value.expanded=!0),t.nextTick(()=>{f.value=!1,s.value=!1})},M={...E.createSelectOnEmits(n,["update:modelValue"]),"visible-change":S},g=j.useRtl(m),R=t.computed(()=>t.normalizeClass([e.popperClass,{"is-rtl":g.value}])),$=t.computed({get:()=>e.multiple&&e.stringify&&typeof e.modelValue=="string"?e.modelValue?e.modelValue.split(","):[]:e.modelValue??e.defaultModelValue,set:l=>{if(f.value=!0,e.multiple&&e.stringify&&Array.isArray(l)){const r=l.reduce((c,a)=>(typeof a=="string"?c.push(a):_.isNotEmptyObject(a)&&a[e.valueKey]!==void 0&&c.push(a[e.valueKey]),c),[]).join(",");n("update:modelValue",r);return}n("update:modelValue",l)}}),v=t.ref([]),k=l=>{l?fetch(l).then(r=>r.json()).then(r=>{v.value=r}):v.value=[]};e.optionsUrl&&k(e.optionsUrl),t.watch(()=>e.optionsUrl,l=>{n("update:modelValue",void 0),k(l)});const I=l=>_.isPlainObject(l.value)?l.value[o.value.valueKey]:l.value,q=t.computed(()=>(v.value.length?v.value:e.options).reduce((r,c)=>{const a=I(c);return!a&&a!==0&&a!==!1||r.push({...c,key:a}),r},[])),h=t.ref(!0);return t.watch(()=>o.value.multiple,()=>{n("update:modelValue",void 0),h.value=!1,t.nextTick(()=>{h.value=!0})}),{formItemBindProps:i,selectBindProps:o,selectOnEmits:M,selectOptions:q,reshow:h,readonly:d,theModelValue:$,selectRefResolve:P,isRtl:g,thePropperClass:R,onSelectMousedown:V}}});function K(e,n,i,o,d,m){const u=t.resolveComponent("Options"),P=t.resolveComponent("ElSelect"),f=t.resolveComponent("VkfFormItem");return t.openBlock(),t.createBlock(f,t.normalizeProps(t.guardReactiveProps(e.formItemBindProps)),{default:t.withCtx(()=>[e.reshow?(t.openBlock(),t.createBlock(P,t.mergeProps({key:0},e.selectBindProps,{ref:e.selectRefResolve,modelValue:e.theModelValue,"onUpdate:modelValue":n[0]||(n[0]=s=>e.theModelValue=s),disabled:e.readonly||e.disabled,class:{"is-readonly":e.readonly},"popper-class":e.thePropperClass},t.toHandlers(e.selectOnEmits),{onMousedown:e.onSelectMousedown}),t.createSlots({default:t.withCtx(()=>[t.createVNode(u,{data:e.selectOptions,"option-children-prop":e.props.options??e.optionChildrenProp,"label-prop":e.props.label,"value-prop":e.props.value,"disabled-prop":e.props.disabled},{option:t.withCtx(s=>[t.renderSlot(e.$slots,"option",t.normalizeProps(t.guardReactiveProps(s)))]),_:3},8,["data","option-children-prop","label-prop","value-prop","disabled-prop"]),t.renderSlot(e.$slots,"footer")]),_:2},[t.renderList(e.selectSlots,(s,V)=>({name:V,fn:t.withCtx(S=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(s==null?void 0:s(S))))])}))]),1040,["modelValue","disabled","class","popper-class","onMousedown"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")]),_:3},16)}const G=F._export_sfc(T,[["render",K]]),w=t.defineComponent({name:"VkfSelect",props:y,emits:b,setup(e,{emit:n,slots:i}){const o=B(n);return()=>t.h(G,{...e,...O.vOn(o)},{...e.slots,...i})}}),H=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));exports.VkfSelect=w;exports._VkfSelectCtx=U;exports.__VkfSelect=H;exports.default=w;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { _VkfFormItemCtx as
|
|
3
|
-
import { selectProps as
|
|
4
|
-
import { bindPropsFactory as
|
|
5
|
-
import { createSelectBindProps as
|
|
6
|
-
import { isNotEmptyObject as
|
|
7
|
-
import { useComputedReadonly as
|
|
8
|
-
import { _ as
|
|
9
|
-
const
|
|
10
|
-
...
|
|
11
|
-
...
|
|
1
|
+
import { defineComponent as R, createVNode as v, mergeProps as I, isVNode as D, ref as c, computed as g, normalizeClass as H, watch as M, nextTick as w, resolveComponent as C, openBlock as k, createBlock as E, normalizeProps as $, guardReactiveProps as F, withCtx as y, toHandlers as L, createSlots as J, renderSlot as j, renderList as Q, resolveDynamicComponent as W, createCommentVNode as X, h as Y } from "vue";
|
|
2
|
+
import { _VkfFormItemCtx as U, VkfFormItem as Z } from "@vunk/form/components/form-item";
|
|
3
|
+
import { selectProps as x, selectEmits as ee, ElOptionGroup as le, ElOption as A, ElSelect as oe } from "element-plus";
|
|
4
|
+
import { bindPropsFactory as te, onEmitsFactory as ne, vOn as re } from "@vunk/core/shared/utils-vue";
|
|
5
|
+
import { createSelectBindProps as ae, createSelectOnEmits as se } from "@vunk/form/shared/element-plus";
|
|
6
|
+
import { isNotEmptyObject as ue, isPlainObject as de } from "@vunk/core/shared/utils-object";
|
|
7
|
+
import { useComputedReadonly as ie, useRtl as ce } from "@vunk/form/composables";
|
|
8
|
+
import { _ as pe } from "../_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
9
|
+
const b = {
|
|
10
|
+
...U.props,
|
|
11
|
+
...x,
|
|
12
12
|
modelValue: null,
|
|
13
13
|
props: {
|
|
14
14
|
// For Type
|
|
@@ -52,21 +52,28 @@ const y = {
|
|
|
52
52
|
optionChildrenProp: {
|
|
53
53
|
type: String,
|
|
54
54
|
default: ""
|
|
55
|
+
},
|
|
56
|
+
/**
|
|
57
|
+
* @description 是否在点击外部时关闭下拉菜单
|
|
58
|
+
*/
|
|
59
|
+
closeOnClickOutside: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
default: !0
|
|
55
62
|
}
|
|
56
|
-
},
|
|
57
|
-
...
|
|
63
|
+
}, fe = te(b), P = {
|
|
64
|
+
...ee,
|
|
58
65
|
"update:modelValue": null
|
|
59
|
-
},
|
|
66
|
+
}, z = ne(P), je = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
60
67
|
__proto__: null,
|
|
61
|
-
createBindProps:
|
|
62
|
-
createOnEmits:
|
|
63
|
-
emits:
|
|
64
|
-
props:
|
|
68
|
+
createBindProps: fe,
|
|
69
|
+
createOnEmits: z,
|
|
70
|
+
emits: P,
|
|
71
|
+
props: b
|
|
65
72
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
66
|
-
function
|
|
67
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
73
|
+
function me(e) {
|
|
74
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !D(e);
|
|
68
75
|
}
|
|
69
|
-
const
|
|
76
|
+
const ye = /* @__PURE__ */ R({
|
|
70
77
|
props: {
|
|
71
78
|
data: {
|
|
72
79
|
type: Array,
|
|
@@ -90,157 +97,167 @@ const ie = /* @__PURE__ */ j({
|
|
|
90
97
|
}
|
|
91
98
|
},
|
|
92
99
|
setup(e, {
|
|
93
|
-
slots:
|
|
100
|
+
slots: t
|
|
94
101
|
}) {
|
|
95
|
-
const
|
|
102
|
+
const u = (l) => {
|
|
96
103
|
let d;
|
|
97
|
-
return e.optionChildrenProp && Array.isArray(
|
|
98
|
-
label:
|
|
99
|
-
key:
|
|
100
|
-
disabled:
|
|
101
|
-
},
|
|
102
|
-
key:
|
|
103
|
-
},
|
|
104
|
+
return e.optionChildrenProp && Array.isArray(l[e.optionChildrenProp]) && l[e.optionChildrenProp].length > 0 ? v(le, {
|
|
105
|
+
label: l[e.labelProp],
|
|
106
|
+
key: l[e.valueProp] || l[e.labelProp],
|
|
107
|
+
disabled: l[e.disabledProp]
|
|
108
|
+
}, me(d = l[e.optionChildrenProp].map((s) => v(u, I({
|
|
109
|
+
key: s.value
|
|
110
|
+
}, s), null))) ? d : {
|
|
104
111
|
default: () => [d]
|
|
105
|
-
}) :
|
|
106
|
-
key:
|
|
107
|
-
value:
|
|
108
|
-
class:
|
|
109
|
-
created:
|
|
110
|
-
disabled:
|
|
111
|
-
label:
|
|
112
|
-
ref:
|
|
113
|
-
style:
|
|
112
|
+
}) : v(A, {
|
|
113
|
+
key: l[e.valueProp] || l[e.labelProp],
|
|
114
|
+
value: l[e.valueProp],
|
|
115
|
+
class: l.class,
|
|
116
|
+
created: l.created,
|
|
117
|
+
disabled: l[e.disabledProp],
|
|
118
|
+
label: l[e.labelProp],
|
|
119
|
+
ref: l.ref,
|
|
120
|
+
style: l.style
|
|
114
121
|
}, {
|
|
115
|
-
default: () =>
|
|
122
|
+
default: () => t.option ? t.option(l) : l[e.labelProp]
|
|
116
123
|
});
|
|
117
124
|
};
|
|
118
|
-
return () => e.data.map((
|
|
125
|
+
return () => e.data.map((l) => u(l));
|
|
119
126
|
}
|
|
120
|
-
}),
|
|
127
|
+
}), ve = R({
|
|
121
128
|
components: {
|
|
122
|
-
VkfFormItem:
|
|
123
|
-
ElSelect:
|
|
124
|
-
ElOption:
|
|
125
|
-
Options:
|
|
129
|
+
VkfFormItem: Z,
|
|
130
|
+
ElSelect: oe,
|
|
131
|
+
ElOption: A,
|
|
132
|
+
Options: ye
|
|
126
133
|
},
|
|
127
|
-
props:
|
|
128
|
-
emits:
|
|
129
|
-
setup(e, { emit:
|
|
130
|
-
const
|
|
134
|
+
props: b,
|
|
135
|
+
emits: P,
|
|
136
|
+
setup(e, { emit: t }) {
|
|
137
|
+
const u = U.createBindProps(e), l = ae(e, ["disabled", "modelValue"]), d = ie(e), f = c(), s = c(), V = (o) => {
|
|
131
138
|
var n;
|
|
132
|
-
(n = e.selectRef) == null || n.call(e,
|
|
133
|
-
}, c =
|
|
139
|
+
(n = e.selectRef) == null || n.call(e, o), f.value = o == null ? void 0 : o.$el, s.value = o;
|
|
140
|
+
}, p = c(!1), r = c(!1), S = () => {
|
|
141
|
+
r.value = !0;
|
|
142
|
+
}, h = (o) => {
|
|
143
|
+
t("visible-change", o), !o && !e.closeOnClickOutside && !p.value && !r.value && s.value && (s.value.expanded = !0), w(() => {
|
|
144
|
+
p.value = !1, r.value = !1;
|
|
145
|
+
});
|
|
146
|
+
}, K = {
|
|
147
|
+
...se(t, ["update:modelValue"]),
|
|
148
|
+
"visible-change": h
|
|
149
|
+
}, _ = ce(f), N = g(() => H([
|
|
134
150
|
e.popperClass,
|
|
135
151
|
{
|
|
136
|
-
"is-rtl":
|
|
152
|
+
"is-rtl": _.value
|
|
137
153
|
}
|
|
138
|
-
])),
|
|
154
|
+
])), G = g({
|
|
139
155
|
get: () => e.multiple && e.stringify && typeof e.modelValue == "string" ? e.modelValue ? e.modelValue.split(",") : [] : e.modelValue ?? e.defaultModelValue,
|
|
140
|
-
set: (
|
|
141
|
-
if (e.multiple && e.stringify && Array.isArray(
|
|
142
|
-
const n =
|
|
143
|
-
|
|
156
|
+
set: (o) => {
|
|
157
|
+
if (p.value = !0, e.multiple && e.stringify && Array.isArray(o)) {
|
|
158
|
+
const n = o.reduce((i, a) => (typeof a == "string" ? i.push(a) : ue(a) && a[e.valueKey] !== void 0 && i.push(a[e.valueKey]), i), []).join(",");
|
|
159
|
+
t("update:modelValue", n);
|
|
144
160
|
return;
|
|
145
161
|
}
|
|
146
|
-
|
|
162
|
+
t("update:modelValue", o);
|
|
147
163
|
}
|
|
148
|
-
}),
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
}) :
|
|
164
|
+
}), m = c([]), B = (o) => {
|
|
165
|
+
o ? fetch(o).then((n) => n.json()).then((n) => {
|
|
166
|
+
m.value = n;
|
|
167
|
+
}) : m.value = [];
|
|
152
168
|
};
|
|
153
|
-
e.optionsUrl &&
|
|
154
|
-
|
|
169
|
+
e.optionsUrl && B(e.optionsUrl), M(() => e.optionsUrl, (o) => {
|
|
170
|
+
t("update:modelValue", void 0), B(o);
|
|
155
171
|
});
|
|
156
|
-
const
|
|
157
|
-
const
|
|
158
|
-
return !
|
|
159
|
-
...
|
|
160
|
-
key:
|
|
172
|
+
const T = (o) => de(o.value) ? o.value[l.value.valueKey] : o.value, q = g(() => (m.value.length ? m.value : e.options).reduce((n, i) => {
|
|
173
|
+
const a = T(i);
|
|
174
|
+
return !a && a !== 0 && a !== !1 || n.push({
|
|
175
|
+
...i,
|
|
176
|
+
key: a
|
|
161
177
|
}), n;
|
|
162
|
-
}, [])),
|
|
163
|
-
return
|
|
164
|
-
|
|
165
|
-
|
|
178
|
+
}, [])), O = c(!0);
|
|
179
|
+
return M(() => l.value.multiple, () => {
|
|
180
|
+
t("update:modelValue", void 0), O.value = !1, w(() => {
|
|
181
|
+
O.value = !0;
|
|
166
182
|
});
|
|
167
183
|
}), {
|
|
168
|
-
formItemBindProps:
|
|
169
|
-
selectBindProps:
|
|
170
|
-
selectOnEmits:
|
|
171
|
-
selectOptions:
|
|
172
|
-
reshow:
|
|
173
|
-
readonly:
|
|
174
|
-
theModelValue:
|
|
175
|
-
selectRefResolve:
|
|
176
|
-
isRtl:
|
|
177
|
-
thePropperClass:
|
|
184
|
+
formItemBindProps: u,
|
|
185
|
+
selectBindProps: l,
|
|
186
|
+
selectOnEmits: K,
|
|
187
|
+
selectOptions: q,
|
|
188
|
+
reshow: O,
|
|
189
|
+
readonly: d,
|
|
190
|
+
theModelValue: G,
|
|
191
|
+
selectRefResolve: V,
|
|
192
|
+
isRtl: _,
|
|
193
|
+
thePropperClass: N,
|
|
194
|
+
onSelectMousedown: S
|
|
178
195
|
};
|
|
179
196
|
}
|
|
180
197
|
});
|
|
181
|
-
function
|
|
182
|
-
const
|
|
183
|
-
return
|
|
184
|
-
default:
|
|
185
|
-
e.reshow ? (
|
|
198
|
+
function be(e, t, u, l, d, f) {
|
|
199
|
+
const s = C("Options"), V = C("ElSelect"), p = C("VkfFormItem");
|
|
200
|
+
return k(), E(p, $(F(e.formItemBindProps)), {
|
|
201
|
+
default: y(() => [
|
|
202
|
+
e.reshow ? (k(), E(V, I({ key: 0 }, e.selectBindProps, {
|
|
186
203
|
ref: e.selectRefResolve,
|
|
187
204
|
modelValue: e.theModelValue,
|
|
188
|
-
"onUpdate:modelValue":
|
|
205
|
+
"onUpdate:modelValue": t[0] || (t[0] = (r) => e.theModelValue = r),
|
|
189
206
|
disabled: e.readonly || e.disabled,
|
|
190
207
|
class: {
|
|
191
208
|
"is-readonly": e.readonly
|
|
192
209
|
},
|
|
193
210
|
"popper-class": e.thePropperClass
|
|
194
|
-
},
|
|
195
|
-
default:
|
|
196
|
-
|
|
211
|
+
}, L(e.selectOnEmits), { onMousedown: e.onSelectMousedown }), J({
|
|
212
|
+
default: y(() => [
|
|
213
|
+
v(s, {
|
|
197
214
|
data: e.selectOptions,
|
|
198
215
|
"option-children-prop": e.props.options ?? e.optionChildrenProp,
|
|
199
216
|
"label-prop": e.props.label,
|
|
200
217
|
"value-prop": e.props.value,
|
|
201
218
|
"disabled-prop": e.props.disabled
|
|
202
219
|
}, {
|
|
203
|
-
option:
|
|
204
|
-
|
|
220
|
+
option: y((r) => [
|
|
221
|
+
j(e.$slots, "option", $(F(r)))
|
|
205
222
|
]),
|
|
206
223
|
_: 3
|
|
207
224
|
}, 8, ["data", "option-children-prop", "label-prop", "value-prop", "disabled-prop"]),
|
|
208
|
-
|
|
225
|
+
j(e.$slots, "footer")
|
|
209
226
|
]),
|
|
210
227
|
_: 2
|
|
211
228
|
}, [
|
|
212
|
-
|
|
213
|
-
name:
|
|
214
|
-
fn:
|
|
215
|
-
(
|
|
229
|
+
Q(e.selectSlots, (r, S) => ({
|
|
230
|
+
name: S,
|
|
231
|
+
fn: y((h) => [
|
|
232
|
+
(k(), E(W(r == null ? void 0 : r(h))))
|
|
216
233
|
])
|
|
217
234
|
}))
|
|
218
|
-
]), 1040, ["modelValue", "disabled", "class", "popper-class"])) :
|
|
219
|
-
|
|
235
|
+
]), 1040, ["modelValue", "disabled", "class", "popper-class", "onMousedown"])) : X("", !0),
|
|
236
|
+
j(e.$slots, "default")
|
|
220
237
|
]),
|
|
221
238
|
_: 3
|
|
222
239
|
}, 16);
|
|
223
240
|
}
|
|
224
|
-
const
|
|
241
|
+
const Pe = /* @__PURE__ */ pe(ve, [["render", be]]), Re = R({
|
|
225
242
|
name: "VkfSelect",
|
|
226
|
-
props:
|
|
227
|
-
emits:
|
|
228
|
-
setup(e, { emit:
|
|
229
|
-
const
|
|
230
|
-
return () =>
|
|
243
|
+
props: b,
|
|
244
|
+
emits: P,
|
|
245
|
+
setup(e, { emit: t, slots: u }) {
|
|
246
|
+
const l = z(t);
|
|
247
|
+
return () => Y(Pe, {
|
|
231
248
|
...e,
|
|
232
|
-
...
|
|
249
|
+
...re(l)
|
|
233
250
|
}, {
|
|
234
251
|
...e.slots,
|
|
235
|
-
...
|
|
252
|
+
...u
|
|
236
253
|
});
|
|
237
254
|
}
|
|
238
|
-
}),
|
|
255
|
+
}), _e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
239
256
|
__proto__: null
|
|
240
257
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
241
258
|
export {
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
259
|
+
Re as VkfSelect,
|
|
260
|
+
je as _VkfSelectCtx,
|
|
261
|
+
_e as __VkfSelect,
|
|
262
|
+
Re as default
|
|
246
263
|
};
|
|
@@ -34,6 +34,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
34
34
|
type: StringConstructor;
|
|
35
35
|
default: string;
|
|
36
36
|
};
|
|
37
|
+
closeOnClickOutside: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
37
41
|
ariaLabel: StringConstructor;
|
|
38
42
|
emptyValues: ArrayConstructor;
|
|
39
43
|
valueOnClear: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | (((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null)) | null)[], unknown, unknown, undefined, boolean>;
|
|
@@ -323,6 +327,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
323
327
|
appendTo: import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | ((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | null)[], unknown, unknown> | undefined;
|
|
324
328
|
}>;
|
|
325
329
|
selectOnEmits: {
|
|
330
|
+
'visible-change': (visible: boolean) => void;
|
|
326
331
|
clear: (visible: boolean) => void;
|
|
327
332
|
focus: (visible: boolean) => void;
|
|
328
333
|
blur: (visible: boolean) => void;
|
|
@@ -330,7 +335,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
330
335
|
"popup-scroll": (visible: boolean) => void;
|
|
331
336
|
"end-reached": (visible: boolean) => void;
|
|
332
337
|
"remove-tag": (visible: boolean) => void;
|
|
333
|
-
"visible-change": (visible: boolean) => void;
|
|
334
338
|
};
|
|
335
339
|
selectOptions: import("vue").ComputedRef<(import("@vunk/shared").VueComponentPropsType<import("element-plus/es/utils/index.mjs").SFCWithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
336
340
|
value: {
|
|
@@ -412,6 +416,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
412
416
|
selectRefResolve: (e: any) => void;
|
|
413
417
|
isRtl: import("vue").ComputedRef<boolean>;
|
|
414
418
|
thePropperClass: import("vue").ComputedRef<string>;
|
|
419
|
+
onSelectMousedown: () => void;
|
|
415
420
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
416
421
|
'update:modelValue': null;
|
|
417
422
|
change: (val: import("element-plus").SelectProps["modelValue"] | any) => boolean;
|
|
@@ -458,6 +463,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
458
463
|
type: StringConstructor;
|
|
459
464
|
default: string;
|
|
460
465
|
};
|
|
466
|
+
closeOnClickOutside: {
|
|
467
|
+
type: BooleanConstructor;
|
|
468
|
+
default: boolean;
|
|
469
|
+
};
|
|
461
470
|
ariaLabel: StringConstructor;
|
|
462
471
|
emptyValues: ArrayConstructor;
|
|
463
472
|
valueOnClear: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | (((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null)) | null)[], unknown, unknown, undefined, boolean>;
|
|
@@ -738,6 +747,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
738
747
|
optionsUrl: string;
|
|
739
748
|
stringify: boolean;
|
|
740
749
|
optionChildrenProp: string;
|
|
750
|
+
closeOnClickOutside: boolean;
|
|
741
751
|
valueOnClear: import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | ((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | null)[], unknown, unknown>;
|
|
742
752
|
automaticDropdown: boolean;
|
|
743
753
|
filterable: boolean;
|
|
@@ -51,6 +51,13 @@ export declare const props: {
|
|
|
51
51
|
type: StringConstructor;
|
|
52
52
|
default: string;
|
|
53
53
|
};
|
|
54
|
+
/**
|
|
55
|
+
* @description 是否在点击外部时关闭下拉菜单
|
|
56
|
+
*/
|
|
57
|
+
closeOnClickOutside: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
54
61
|
ariaLabel: StringConstructor;
|
|
55
62
|
emptyValues: ArrayConstructor;
|
|
56
63
|
valueOnClear: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | (((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null)) | null)[], unknown, unknown, undefined, boolean>;
|
|
@@ -210,7 +217,7 @@ export declare const props: {
|
|
|
210
217
|
inlineMessage: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
211
218
|
showMessage: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
212
219
|
};
|
|
213
|
-
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"required", keyof T2> | Extract<"id", keyof T2> | Extract<"effect", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"popperStyle", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"fallbackPlacements", keyof T2> | Extract<"offset", keyof T2> | Extract<"placement", keyof T2> | Extract<"popperOptions", keyof T2> | Extract<"size", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"labelTipProps", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"clearable", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"name", keyof T2> | Extract<"props", keyof T2> | Extract<"slots", keyof T2> | Extract<"loading", keyof T2> | Extract<"options", keyof T2> | Extract<"selectSlots", keyof T2> | Extract<"selectRef", keyof T2> | Extract<"optionsUrl", keyof T2> | Extract<"stringify", keyof T2> | Extract<"optionChildrenProp", keyof T2> | Extract<"emptyValues", keyof T2> | Extract<"valueOnClear", keyof T2> | Extract<"automaticDropdown", keyof T2> | Extract<"filterable", keyof T2> | Extract<"allowCreate", keyof T2> | Extract<"remote", keyof T2> | Extract<"debounce", keyof T2> | Extract<"loadingText", keyof T2> | Extract<"noMatchText", keyof T2> | Extract<"noDataText", keyof T2> | Extract<"remoteMethod", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"multiple", keyof T2> | Extract<"multipleLimit", keyof T2> | Extract<"defaultFirstOption", keyof T2> | Extract<"reserveKeyword", keyof T2> | Extract<"valueKey", keyof T2> | Extract<"collapseTags", keyof T2> | Extract<"collapseTagsTooltip", keyof T2> | Extract<"tagTooltip", keyof T2> | Extract<"maxCollapseTags", keyof T2> | Extract<"teleported", keyof T2> | Extract<"persistent", keyof T2> | Extract<"fitInputWidth", keyof T2> | Extract<"tagType", keyof T2> | Extract<"tagEffect", keyof T2> | Extract<"remoteShowSuffix", keyof T2> | Extract<"showArrow", keyof T2> | Extract<"appendTo", keyof T2>)[]>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"required", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"effect", keyof T2>, KE> | Exclude<Extract<"popperClass", keyof T2>, KE> | Exclude<Extract<"popperStyle", keyof T2>, KE> | Exclude<Extract<"ariaLabel", keyof T2>, KE> | Exclude<Extract<"fallbackPlacements", keyof T2>, KE> | Exclude<Extract<"offset", keyof T2>, KE> | Exclude<Extract<"placement", keyof T2>, KE> | Exclude<Extract<"popperOptions", keyof T2>, KE> | Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"labelPosition", keyof T2>, KE> | Exclude<Extract<"formItemSize", keyof T2>, KE> | Exclude<Extract<"formItemSlots", keyof T2>, KE> | Exclude<Extract<"elRef", keyof T2>, KE> | Exclude<Extract<"inline", keyof T2>, KE> | Exclude<Extract<"readonly", keyof T2>, KE> | Exclude<Extract<"formItemTip", keyof T2>, KE> | Exclude<Extract<"formItemTipClass", keyof T2>, KE> | Exclude<Extract<"labelTip", keyof T2>, KE> | Exclude<Extract<"information", keyof T2>, KE> | Exclude<Extract<"prop", keyof T2>, KE> | Exclude<Extract<"defaultModelValue", keyof T2>, KE> | Exclude<Extract<"labelTipProps", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"rules", keyof T2>, KE> | Exclude<Extract<"error", keyof T2>, KE> | Exclude<Extract<"validateStatus", keyof T2>, KE> | Exclude<Extract<"for", keyof T2>, KE> | Exclude<Extract<"inlineMessage", keyof T2>, KE> | Exclude<Extract<"showMessage", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"autocomplete", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"clearable", keyof T2>, KE> | Exclude<Extract<"clearIcon", keyof T2>, KE> | Exclude<Extract<"suffixIcon", keyof T2>, KE> | Exclude<Extract<"tabindex", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"props", keyof T2>, KE> | Exclude<Extract<"slots", keyof T2>, KE> | Exclude<Extract<"loading", keyof T2>, KE> | Exclude<Extract<"options", keyof T2>, KE> | Exclude<Extract<"selectSlots", keyof T2>, KE> | Exclude<Extract<"selectRef", keyof T2>, KE> | Exclude<Extract<"optionsUrl", keyof T2>, KE> | Exclude<Extract<"stringify", keyof T2>, KE> | Exclude<Extract<"optionChildrenProp", keyof T2>, KE> | Exclude<Extract<"emptyValues", keyof T2>, KE> | Exclude<Extract<"valueOnClear", keyof T2>, KE> | Exclude<Extract<"automaticDropdown", keyof T2>, KE> | Exclude<Extract<"filterable", keyof T2>, KE> | Exclude<Extract<"allowCreate", keyof T2>, KE> | Exclude<Extract<"remote", keyof T2>, KE> | Exclude<Extract<"debounce", keyof T2>, KE> | Exclude<Extract<"loadingText", keyof T2>, KE> | Exclude<Extract<"noMatchText", keyof T2>, KE> | Exclude<Extract<"noDataText", keyof T2>, KE> | Exclude<Extract<"remoteMethod", keyof T2>, KE> | Exclude<Extract<"filterMethod", keyof T2>, KE> | Exclude<Extract<"multiple", keyof T2>, KE> | Exclude<Extract<"multipleLimit", keyof T2>, KE> | Exclude<Extract<"defaultFirstOption", keyof T2>, KE> | Exclude<Extract<"reserveKeyword", keyof T2>, KE> | Exclude<Extract<"valueKey", keyof T2>, KE> | Exclude<Extract<"collapseTags", keyof T2>, KE> | Exclude<Extract<"collapseTagsTooltip", keyof T2>, KE> | Exclude<Extract<"tagTooltip", keyof T2>, KE> | Exclude<Extract<"maxCollapseTags", keyof T2>, KE> | Exclude<Extract<"teleported", keyof T2>, KE> | Exclude<Extract<"persistent", keyof T2>, KE> | Exclude<Extract<"fitInputWidth", keyof T2>, KE> | Exclude<Extract<"tagType", keyof T2>, KE> | Exclude<Extract<"tagEffect", keyof T2>, KE> | Exclude<Extract<"remoteShowSuffix", keyof T2>, KE> | Exclude<Extract<"showArrow", keyof T2>, KE> | Exclude<Extract<"appendTo", keyof T2>, KE> : Extract<"required", keyof T2> | Extract<"id", keyof T2> | Extract<"effect", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"popperStyle", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"fallbackPlacements", keyof T2> | Extract<"offset", keyof T2> | Extract<"placement", keyof T2> | Extract<"popperOptions", keyof T2> | Extract<"size", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"labelTipProps", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"clearable", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"name", keyof T2> | Extract<"props", keyof T2> | Extract<"slots", keyof T2> | Extract<"loading", keyof T2> | Extract<"options", keyof T2> | Extract<"selectSlots", keyof T2> | Extract<"selectRef", keyof T2> | Extract<"optionsUrl", keyof T2> | Extract<"stringify", keyof T2> | Extract<"optionChildrenProp", keyof T2> | Extract<"emptyValues", keyof T2> | Extract<"valueOnClear", keyof T2> | Extract<"automaticDropdown", keyof T2> | Extract<"filterable", keyof T2> | Extract<"allowCreate", keyof T2> | Extract<"remote", keyof T2> | Extract<"debounce", keyof T2> | Extract<"loadingText", keyof T2> | Extract<"noMatchText", keyof T2> | Extract<"noDataText", keyof T2> | Extract<"remoteMethod", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"multiple", keyof T2> | Extract<"multipleLimit", keyof T2> | Extract<"defaultFirstOption", keyof T2> | Extract<"reserveKeyword", keyof T2> | Extract<"valueKey", keyof T2> | Extract<"collapseTags", keyof T2> | Extract<"collapseTagsTooltip", keyof T2> | Extract<"tagTooltip", keyof T2> | Extract<"maxCollapseTags", keyof T2> | Extract<"teleported", keyof T2> | Extract<"persistent", keyof T2> | Extract<"fitInputWidth", keyof T2> | Extract<"tagType", keyof T2> | Extract<"tagEffect", keyof T2> | Extract<"remoteShowSuffix", keyof T2> | Extract<"showArrow", keyof T2> | Extract<"appendTo", keyof T2>]: { [k in Extract<"required", keyof T2> | Extract<"id", keyof T2> | Extract<"effect", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"popperStyle", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"fallbackPlacements", keyof T2> | Extract<"offset", keyof T2> | Extract<"placement", keyof T2> | Extract<"popperOptions", keyof T2> | Extract<"size", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"labelTipProps", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"clearable", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"name", keyof T2> | Extract<"props", keyof T2> | Extract<"slots", keyof T2> | Extract<"loading", keyof T2> | Extract<"options", keyof T2> | Extract<"selectSlots", keyof T2> | Extract<"selectRef", keyof T2> | Extract<"optionsUrl", keyof T2> | Extract<"stringify", keyof T2> | Extract<"optionChildrenProp", keyof T2> | Extract<"emptyValues", keyof T2> | Extract<"valueOnClear", keyof T2> | Extract<"automaticDropdown", keyof T2> | Extract<"filterable", keyof T2> | Extract<"allowCreate", keyof T2> | Extract<"remote", keyof T2> | Extract<"debounce", keyof T2> | Extract<"loadingText", keyof T2> | Extract<"noMatchText", keyof T2> | Extract<"noDataText", keyof T2> | Extract<"remoteMethod", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"multiple", keyof T2> | Extract<"multipleLimit", keyof T2> | Extract<"defaultFirstOption", keyof T2> | Extract<"reserveKeyword", keyof T2> | Extract<"valueKey", keyof T2> | Extract<"collapseTags", keyof T2> | Extract<"collapseTagsTooltip", keyof T2> | Extract<"tagTooltip", keyof T2> | Extract<"maxCollapseTags", keyof T2> | Extract<"teleported", keyof T2> | Extract<"persistent", keyof T2> | Extract<"fitInputWidth", keyof T2> | Extract<"tagType", keyof T2> | Extract<"tagEffect", keyof T2> | Extract<"remoteShowSuffix", keyof T2> | Extract<"showArrow", keyof T2> | Extract<"appendTo", keyof T2>]: T2[k]; }[P]; }>;
|
|
220
|
+
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"required", keyof T2> | Extract<"id", keyof T2> | Extract<"effect", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"popperStyle", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"fallbackPlacements", keyof T2> | Extract<"offset", keyof T2> | Extract<"placement", keyof T2> | Extract<"popperOptions", keyof T2> | Extract<"size", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"labelTipProps", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"clearable", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"name", keyof T2> | Extract<"props", keyof T2> | Extract<"slots", keyof T2> | Extract<"loading", keyof T2> | Extract<"options", keyof T2> | Extract<"selectSlots", keyof T2> | Extract<"selectRef", keyof T2> | Extract<"optionsUrl", keyof T2> | Extract<"stringify", keyof T2> | Extract<"optionChildrenProp", keyof T2> | Extract<"closeOnClickOutside", keyof T2> | Extract<"emptyValues", keyof T2> | Extract<"valueOnClear", keyof T2> | Extract<"automaticDropdown", keyof T2> | Extract<"filterable", keyof T2> | Extract<"allowCreate", keyof T2> | Extract<"remote", keyof T2> | Extract<"debounce", keyof T2> | Extract<"loadingText", keyof T2> | Extract<"noMatchText", keyof T2> | Extract<"noDataText", keyof T2> | Extract<"remoteMethod", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"multiple", keyof T2> | Extract<"multipleLimit", keyof T2> | Extract<"defaultFirstOption", keyof T2> | Extract<"reserveKeyword", keyof T2> | Extract<"valueKey", keyof T2> | Extract<"collapseTags", keyof T2> | Extract<"collapseTagsTooltip", keyof T2> | Extract<"tagTooltip", keyof T2> | Extract<"maxCollapseTags", keyof T2> | Extract<"teleported", keyof T2> | Extract<"persistent", keyof T2> | Extract<"fitInputWidth", keyof T2> | Extract<"tagType", keyof T2> | Extract<"tagEffect", keyof T2> | Extract<"remoteShowSuffix", keyof T2> | Extract<"showArrow", keyof T2> | Extract<"appendTo", keyof T2>)[]>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"required", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"effect", keyof T2>, KE> | Exclude<Extract<"popperClass", keyof T2>, KE> | Exclude<Extract<"popperStyle", keyof T2>, KE> | Exclude<Extract<"ariaLabel", keyof T2>, KE> | Exclude<Extract<"fallbackPlacements", keyof T2>, KE> | Exclude<Extract<"offset", keyof T2>, KE> | Exclude<Extract<"placement", keyof T2>, KE> | Exclude<Extract<"popperOptions", keyof T2>, KE> | Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"labelPosition", keyof T2>, KE> | Exclude<Extract<"formItemSize", keyof T2>, KE> | Exclude<Extract<"formItemSlots", keyof T2>, KE> | Exclude<Extract<"elRef", keyof T2>, KE> | Exclude<Extract<"inline", keyof T2>, KE> | Exclude<Extract<"readonly", keyof T2>, KE> | Exclude<Extract<"formItemTip", keyof T2>, KE> | Exclude<Extract<"formItemTipClass", keyof T2>, KE> | Exclude<Extract<"labelTip", keyof T2>, KE> | Exclude<Extract<"information", keyof T2>, KE> | Exclude<Extract<"prop", keyof T2>, KE> | Exclude<Extract<"defaultModelValue", keyof T2>, KE> | Exclude<Extract<"labelTipProps", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"rules", keyof T2>, KE> | Exclude<Extract<"error", keyof T2>, KE> | Exclude<Extract<"validateStatus", keyof T2>, KE> | Exclude<Extract<"for", keyof T2>, KE> | Exclude<Extract<"inlineMessage", keyof T2>, KE> | Exclude<Extract<"showMessage", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"autocomplete", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"clearable", keyof T2>, KE> | Exclude<Extract<"clearIcon", keyof T2>, KE> | Exclude<Extract<"suffixIcon", keyof T2>, KE> | Exclude<Extract<"tabindex", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"props", keyof T2>, KE> | Exclude<Extract<"slots", keyof T2>, KE> | Exclude<Extract<"loading", keyof T2>, KE> | Exclude<Extract<"options", keyof T2>, KE> | Exclude<Extract<"selectSlots", keyof T2>, KE> | Exclude<Extract<"selectRef", keyof T2>, KE> | Exclude<Extract<"optionsUrl", keyof T2>, KE> | Exclude<Extract<"stringify", keyof T2>, KE> | Exclude<Extract<"optionChildrenProp", keyof T2>, KE> | Exclude<Extract<"closeOnClickOutside", keyof T2>, KE> | Exclude<Extract<"emptyValues", keyof T2>, KE> | Exclude<Extract<"valueOnClear", keyof T2>, KE> | Exclude<Extract<"automaticDropdown", keyof T2>, KE> | Exclude<Extract<"filterable", keyof T2>, KE> | Exclude<Extract<"allowCreate", keyof T2>, KE> | Exclude<Extract<"remote", keyof T2>, KE> | Exclude<Extract<"debounce", keyof T2>, KE> | Exclude<Extract<"loadingText", keyof T2>, KE> | Exclude<Extract<"noMatchText", keyof T2>, KE> | Exclude<Extract<"noDataText", keyof T2>, KE> | Exclude<Extract<"remoteMethod", keyof T2>, KE> | Exclude<Extract<"filterMethod", keyof T2>, KE> | Exclude<Extract<"multiple", keyof T2>, KE> | Exclude<Extract<"multipleLimit", keyof T2>, KE> | Exclude<Extract<"defaultFirstOption", keyof T2>, KE> | Exclude<Extract<"reserveKeyword", keyof T2>, KE> | Exclude<Extract<"valueKey", keyof T2>, KE> | Exclude<Extract<"collapseTags", keyof T2>, KE> | Exclude<Extract<"collapseTagsTooltip", keyof T2>, KE> | Exclude<Extract<"tagTooltip", keyof T2>, KE> | Exclude<Extract<"maxCollapseTags", keyof T2>, KE> | Exclude<Extract<"teleported", keyof T2>, KE> | Exclude<Extract<"persistent", keyof T2>, KE> | Exclude<Extract<"fitInputWidth", keyof T2>, KE> | Exclude<Extract<"tagType", keyof T2>, KE> | Exclude<Extract<"tagEffect", keyof T2>, KE> | Exclude<Extract<"remoteShowSuffix", keyof T2>, KE> | Exclude<Extract<"showArrow", keyof T2>, KE> | Exclude<Extract<"appendTo", keyof T2>, KE> : Extract<"required", keyof T2> | Extract<"id", keyof T2> | Extract<"effect", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"popperStyle", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"fallbackPlacements", keyof T2> | Extract<"offset", keyof T2> | Extract<"placement", keyof T2> | Extract<"popperOptions", keyof T2> | Extract<"size", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"labelTipProps", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"clearable", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"name", keyof T2> | Extract<"props", keyof T2> | Extract<"slots", keyof T2> | Extract<"loading", keyof T2> | Extract<"options", keyof T2> | Extract<"selectSlots", keyof T2> | Extract<"selectRef", keyof T2> | Extract<"optionsUrl", keyof T2> | Extract<"stringify", keyof T2> | Extract<"optionChildrenProp", keyof T2> | Extract<"closeOnClickOutside", keyof T2> | Extract<"emptyValues", keyof T2> | Extract<"valueOnClear", keyof T2> | Extract<"automaticDropdown", keyof T2> | Extract<"filterable", keyof T2> | Extract<"allowCreate", keyof T2> | Extract<"remote", keyof T2> | Extract<"debounce", keyof T2> | Extract<"loadingText", keyof T2> | Extract<"noMatchText", keyof T2> | Extract<"noDataText", keyof T2> | Extract<"remoteMethod", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"multiple", keyof T2> | Extract<"multipleLimit", keyof T2> | Extract<"defaultFirstOption", keyof T2> | Extract<"reserveKeyword", keyof T2> | Extract<"valueKey", keyof T2> | Extract<"collapseTags", keyof T2> | Extract<"collapseTagsTooltip", keyof T2> | Extract<"tagTooltip", keyof T2> | Extract<"maxCollapseTags", keyof T2> | Extract<"teleported", keyof T2> | Extract<"persistent", keyof T2> | Extract<"fitInputWidth", keyof T2> | Extract<"tagType", keyof T2> | Extract<"tagEffect", keyof T2> | Extract<"remoteShowSuffix", keyof T2> | Extract<"showArrow", keyof T2> | Extract<"appendTo", keyof T2>]: { [k in Extract<"required", keyof T2> | Extract<"id", keyof T2> | Extract<"effect", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"popperStyle", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"fallbackPlacements", keyof T2> | Extract<"offset", keyof T2> | Extract<"placement", keyof T2> | Extract<"popperOptions", keyof T2> | Extract<"size", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"labelTipProps", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"clearable", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"name", keyof T2> | Extract<"props", keyof T2> | Extract<"slots", keyof T2> | Extract<"loading", keyof T2> | Extract<"options", keyof T2> | Extract<"selectSlots", keyof T2> | Extract<"selectRef", keyof T2> | Extract<"optionsUrl", keyof T2> | Extract<"stringify", keyof T2> | Extract<"optionChildrenProp", keyof T2> | Extract<"closeOnClickOutside", keyof T2> | Extract<"emptyValues", keyof T2> | Extract<"valueOnClear", keyof T2> | Extract<"automaticDropdown", keyof T2> | Extract<"filterable", keyof T2> | Extract<"allowCreate", keyof T2> | Extract<"remote", keyof T2> | Extract<"debounce", keyof T2> | Extract<"loadingText", keyof T2> | Extract<"noMatchText", keyof T2> | Extract<"noDataText", keyof T2> | Extract<"remoteMethod", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"multiple", keyof T2> | Extract<"multipleLimit", keyof T2> | Extract<"defaultFirstOption", keyof T2> | Extract<"reserveKeyword", keyof T2> | Extract<"valueKey", keyof T2> | Extract<"collapseTags", keyof T2> | Extract<"collapseTagsTooltip", keyof T2> | Extract<"tagTooltip", keyof T2> | Extract<"maxCollapseTags", keyof T2> | Extract<"teleported", keyof T2> | Extract<"persistent", keyof T2> | Extract<"fitInputWidth", keyof T2> | Extract<"tagType", keyof T2> | Extract<"tagEffect", keyof T2> | Extract<"remoteShowSuffix", keyof T2> | Extract<"showArrow", keyof T2> | Extract<"appendTo", keyof T2>]: T2[k]; }[P]; }>;
|
|
214
221
|
export declare const emits: {
|
|
215
222
|
'update:modelValue': null;
|
|
216
223
|
change: (val: import("element-plus").SelectProps["modelValue"] | any) => boolean;
|
|
@@ -104,6 +104,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
104
104
|
type: StringConstructor;
|
|
105
105
|
default: string;
|
|
106
106
|
};
|
|
107
|
+
closeOnClickOutside: {
|
|
108
|
+
type: BooleanConstructor;
|
|
109
|
+
default: boolean;
|
|
110
|
+
};
|
|
107
111
|
ariaLabel: StringConstructor;
|
|
108
112
|
emptyValues: ArrayConstructor;
|
|
109
113
|
valueOnClear: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | (((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null)) | null)[], unknown, unknown, undefined, boolean>;
|
|
@@ -381,6 +385,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
381
385
|
type: StringConstructor;
|
|
382
386
|
default: string;
|
|
383
387
|
};
|
|
388
|
+
closeOnClickOutside: {
|
|
389
|
+
type: BooleanConstructor;
|
|
390
|
+
default: boolean;
|
|
391
|
+
};
|
|
384
392
|
ariaLabel: StringConstructor;
|
|
385
393
|
emptyValues: ArrayConstructor;
|
|
386
394
|
valueOnClear: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | (((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null)) | null)[], unknown, unknown, undefined, boolean>;
|
|
@@ -661,6 +669,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
661
669
|
optionsUrl: string;
|
|
662
670
|
stringify: boolean;
|
|
663
671
|
optionChildrenProp: string;
|
|
672
|
+
closeOnClickOutside: boolean;
|
|
664
673
|
valueOnClear: import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | ((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | null)[], unknown, unknown>;
|
|
665
674
|
automaticDropdown: boolean;
|
|
666
675
|
filterable: boolean;
|
|
@@ -1372,6 +1372,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
1372
1372
|
type: StringConstructor;
|
|
1373
1373
|
default: string;
|
|
1374
1374
|
};
|
|
1375
|
+
closeOnClickOutside: {
|
|
1376
|
+
type: BooleanConstructor;
|
|
1377
|
+
default: boolean;
|
|
1378
|
+
};
|
|
1375
1379
|
ariaLabel: StringConstructor;
|
|
1376
1380
|
emptyValues: ArrayConstructor;
|
|
1377
1381
|
valueOnClear: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | (((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null)) | null)[], unknown, unknown, undefined, boolean>;
|
|
@@ -1649,6 +1653,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
1649
1653
|
type: StringConstructor;
|
|
1650
1654
|
default: string;
|
|
1651
1655
|
};
|
|
1656
|
+
closeOnClickOutside: {
|
|
1657
|
+
type: BooleanConstructor;
|
|
1658
|
+
default: boolean;
|
|
1659
|
+
};
|
|
1652
1660
|
ariaLabel: StringConstructor;
|
|
1653
1661
|
emptyValues: ArrayConstructor;
|
|
1654
1662
|
valueOnClear: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | (((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null)) | null)[], unknown, unknown, undefined, boolean>;
|
|
@@ -1929,6 +1937,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
1929
1937
|
optionsUrl: string;
|
|
1930
1938
|
stringify: boolean;
|
|
1931
1939
|
optionChildrenProp: string;
|
|
1940
|
+
closeOnClickOutside: boolean;
|
|
1932
1941
|
valueOnClear: import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | ((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | null)[], unknown, unknown>;
|
|
1933
1942
|
automaticDropdown: boolean;
|
|
1934
1943
|
filterable: boolean;
|