@web-utils/component 5.0.0-beta02 → 5.0.0-beta03
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/awesome-button/index.mjs +24 -30
- package/{utils/style.css → base.css} +1 -1
- package/chat/index.mjs +3 -12
- package/chunks/{EditableTree.D0ByhRTi.mjs → EditableTree.CV8b95tW.mjs} +11 -20
- package/chunks/{ElementBaseInfo.B3pY8TkD.mjs → ElementBaseInfo.lW0iwU10.mjs} +2 -3
- package/chunks/ElementDialog.DWhAJsUn.mjs +520 -0
- package/chunks/{ElementForm.D_lXbe--.mjs → ElementForm.C7yebHWH.mjs} +12 -39
- package/chunks/{ElementListeners.Cufwd4bp.mjs → ElementListeners.B_SjC8dp.mjs} +10 -31
- package/chunks/{ElementMultiInstance.BhY8NY2z.mjs → ElementMultiInstance.Xw27Z5mm.mjs} +2 -3
- package/chunks/{ElementOtherConfig.DX1ZJ9w2.mjs → ElementOtherConfig.DnNmAhKn.mjs} +0 -1
- package/chunks/{ElementProperties.BRafADXp.mjs → ElementProperties.DKr9JE_O.mjs} +3 -12
- package/chunks/{ElementTaskConfig.B6pqRir_.mjs → ElementTaskConfig.CPjsXlpS.mjs} +6 -10
- package/chunks/{FlowCondition.Dvwji23j.mjs → FlowCondition.BA7GF34X.mjs} +4 -5
- package/chunks/{FlowDesigner.LL-vXDIE.mjs → FlowDesigner.DH1ypcUw.mjs} +15 -15
- package/chunks/{FormCascader.DMY3uNc8.mjs → FormCascader.BXL8lKww.mjs} +348 -346
- package/chunks/{FormInputTime.BC4FfWwY.mjs → FormInputTime.DzTPiDNh.mjs} +243 -242
- package/chunks/{FormItem.BSXI2cZU.mjs → FormItem.B8iPLduv.mjs} +1 -1
- package/chunks/{FormItemGroup.D2Htta7J.mjs → FormItemGroup.CCGqEapT.mjs} +27 -22
- package/chunks/{FormSelect.CY0K-izg.mjs → FormSelect.t0jbTL_K.mjs} +396 -394
- package/chunks/{FormSwitch.DLqFXaFF.mjs → FormSwitch.uoFQ-xp_.mjs} +26 -25
- package/chunks/{FormTemp.PJFfNRls.mjs → FormTemp.CeHtEZQe.mjs} +11 -6
- package/chunks/{FyCurd.me083T8V.mjs → FyCurd.DqJuCLNW.mjs} +22 -25
- package/chunks/{FyForm.vVp8aVtj.mjs → FyForm.CgyGhetD.mjs} +15 -13
- package/chunks/{FyFormDesign.BCxVyiWY.mjs → FyFormDesign.DIIK7mXK.mjs} +49 -128
- package/chunks/{FyUpload.CA7Gfa6Q.mjs → FyUpload.DoBEuYcC.mjs} +2 -2
- package/chunks/{ImagePreview.ByEWJYdu.mjs → ImagePreview.DDFrZgo5.mjs} +97 -87
- package/chunks/{PageableTable.Ba3XSbZ5.mjs → PageableTable.DR-REJN5.mjs} +5 -6
- package/chunks/{SignalAndMessage.DYhKWs3X.mjs → SignalAndMessage.CL2u19it.mjs} +1 -10
- package/chunks/{TableColumn.72HOXQkb.mjs → TableColumn.Cq9Bvevm.mjs} +2 -2
- package/chunks/{TableView.BxfsOAxU.mjs → TableView.DMWMaGLA.mjs} +26 -33
- package/chunks/ToolbarButton.AlTszc53.mjs +107 -0
- package/chunks/{UserTaskListeners.CkeyTpnn.mjs → UserTaskListeners.Qfm8hKWP.mjs} +9 -27
- package/chunks/{VueCron.DEvY5-i7.mjs → VueCron.BmPnLuu3.mjs} +3 -39
- package/chunks/{VueTreeSelect.C6Ycu28Z.mjs → VueTreeSelect.GHx4Z2lG.mjs} +10 -6
- package/chunks/button.gVyl7Y__.mjs +927 -0
- package/chunks/checkbox.AmhCpaBZ.mjs +438 -0
- package/chunks/chunk.A6TnG60p.mjs +13 -0
- package/chunks/confirmable-mixin.BZtxXY0h.mjs +273 -0
- package/chunks/constants.Dw7hXt67.mjs +4 -0
- package/chunks/{dictionary.CNNpjPL2.mjs → dictionary.BqVLM7Lf.mjs} +1 -1
- package/chunks/{event.Dv4XTu8B.mjs → event.CmOTnori.mjs} +4 -7
- package/chunks/event.ZRs4J5TN.mjs +4 -0
- package/chunks/{focus-trap.FbvlqAGe.mjs → focus-trap.CuUc8N2C.mjs} +27 -27
- package/chunks/{form-input.BUGZmAI1.mjs → form-input.DdSb45Tz.mjs} +3 -3
- package/chunks/{form-item.Ca8U2bIR.mjs → form-item.fYYCXvCs.mjs} +110 -106
- package/chunks/{icon.CxCY22-F.mjs → icon.AJYLfX1m.mjs} +7 -7
- package/chunks/{icon.ym7735_x.mjs → icon.niAg1zTC.mjs} +3 -3
- package/chunks/{init.6jGmuY99.mjs → init.CtUEiRbU.mjs} +5 -5
- package/chunks/input.B_wW4aF-.mjs +548 -0
- package/chunks/install.BJl2MN77.mjs +73 -0
- package/chunks/message-box.wGWcYSSd.mjs +463 -0
- package/chunks/{message.C4NdvfbE.mjs → message.DnTACuzV.mjs} +100 -99
- package/chunks/overlay.Rhu_rfhx.mjs +122 -0
- package/chunks/{radio.CeLeSOEo.mjs → radio.BMkZBhl5.mjs} +45 -44
- package/chunks/{scroll.DWjS-gnW.mjs → scroll.BJIpzi2Q.mjs} +2 -2
- package/chunks/{scrollbar.CAmrlKi9.mjs → scrollbar.CvxOszy3.mjs} +4 -4
- package/chunks/{style.BmlGmjpO.mjs → style.CraPDfJA.mjs} +3 -3
- package/chunks/{tag.ZhEIVRpP.mjs → tag.B6yUaGj-.mjs} +15 -15
- package/chunks/teleport.87mkIv8m.mjs +22 -0
- package/chunks/{tooltip.DNiltmX1.mjs → tooltip.Dzjs7LZ8.mjs} +397 -410
- package/chunks/typescript.D0a40c7B.mjs +4 -0
- package/chunks/{use-aria.BW7nWOl1.mjs → use-aria.B9uqqWAE.mjs} +2 -2
- package/chunks/{use-composition.mUaomyno.mjs → use-composition.BMPJBvYs.mjs} +4 -4
- package/chunks/{use-deprecated.BfDSbZS9.mjs → use-deprecated.vx6LTDA_.mjs} +2 -2
- package/chunks/{use-empty-values.D8KYIiKR.mjs → use-empty-values.CxYKjLV9.mjs} +3 -3
- package/chunks/use-form-item.DMDTkMq9.mjs +48 -0
- package/chunks/use-global-config.Dkt91Ob3.mjs +57 -0
- package/chunks/use-id.CyzdvfQn.mjs +15 -0
- package/chunks/{use-locale.Be9HCpTQ.mjs → use-locale.CBoQRFjH.mjs} +1 -1
- package/chunks/{typescript.CLl-2siQ.mjs → use-size.CoorvF12.mjs} +4 -4
- package/chunks/validator.Drv0r2Nb.mjs +5 -0
- package/chunks/{vnode.C3PXzhmg.mjs → vnode.raM3wMJz.mjs} +2 -2
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/context-menu/index.mjs +39 -38
- package/data-table-picker/index.mjs +2 -6
- package/dynamic-table/index.mjs +1 -2
- package/editable-tree/index.mjs +1 -1
- package/element-dialog/index.mjs +1 -1
- package/element-dialog/style.css +1 -1
- package/empty-view/index.mjs +18 -20
- package/error-view/index.mjs +17 -19
- package/flex-column/index.mjs +1 -1
- package/flex-item/index.mjs +1 -1
- package/flex-row/index.mjs +1 -1
- package/flow/index.mjs +1 -1
- package/flow-designer/index.mjs +1 -1
- package/form-block/index.mjs +1 -1
- package/form-cascader/index.mjs +1 -1
- package/form-checkbox/index.mjs +4 -4
- package/form-checkbox-group/index.mjs +6 -6
- package/form-date-picker/index.mjs +3 -3
- package/form-holder/index.mjs +1 -1
- package/form-input/index.mjs +4 -4
- package/form-input-cron-expression/index.mjs +4 -4
- package/form-input-email/index.mjs +5 -5
- package/form-input-id-card/index.mjs +4 -4
- package/form-input-phone-number/index.mjs +4 -4
- package/form-input-tag/index.mjs +2 -2
- package/form-input-time/index.mjs +1 -1
- package/form-item/index.mjs +1 -1
- package/form-item-group/index.mjs +1 -1
- package/form-radio-group/index.mjs +6 -6
- package/form-select/index.mjs +1 -1
- package/form-switch/index.mjs +1 -1
- package/form-table/index.mjs +2 -2
- package/form-table-plus/index.mjs +4 -4
- package/form-textarea/index.mjs +4 -4
- package/form-tree-select/index.mjs +3 -3
- package/form-tree-select-multiple/index.mjs +3 -3
- package/fy-array/index.mjs +1 -1
- package/fy-cascader/index.mjs +1 -1
- package/fy-checkbox/index.mjs +1 -1
- package/fy-code/index.mjs +2 -2
- package/fy-curd/index.mjs +1 -1
- package/fy-date/index.mjs +1 -1
- package/fy-dynamic/index.mjs +3 -7
- package/fy-form/index.mjs +1 -1
- package/fy-form/style.css +1 -1
- package/fy-form-design/index.mjs +1 -1
- package/fy-form-design/style.css +1 -1
- package/fy-input/index.mjs +1 -1
- package/fy-input-color/index.mjs +1 -2
- package/fy-input-icon/index.mjs +37 -32
- package/fy-input-map/index.mjs +1 -1
- package/fy-input-number/index.mjs +1 -1
- package/fy-input-table/index.mjs +1 -1
- package/fy-input-tree/index.mjs +3 -3
- package/fy-input-tree/style.css +1 -1
- package/fy-radio/index.mjs +2 -2
- package/fy-rate/index.mjs +2 -2
- package/fy-select/index.mjs +5 -5
- package/fy-slider/index.mjs +1 -1
- package/fy-switch/index.mjs +2 -2
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +1 -1
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +1 -1
- package/guide-steps/index.mjs +1 -1
- package/helper-function.d.ts +3 -4
- package/helper-function.mjs +31 -22
- package/iframe-window/index.mjs +30 -29
- package/image-cropper/index.mjs +144 -163
- package/image-cropper/style.css +1 -1
- package/image-preview/index.mjs +1 -1
- package/index.d.ts +1 -2
- package/index.mjs +91 -92
- package/input-number-range/index.mjs +0 -2
- package/keyboard/index.mjs +1 -1
- package/monaco-editor/index.mjs +1 -1
- package/nav-bar/index.mjs +1 -1
- package/notice/index.mjs +1 -4
- package/package.json +11 -13
- package/pageable-table/index.mjs +1 -1
- package/pageable-view/index.mjs +2 -2
- package/photo-swipe/index.mjs +1 -1
- package/picker-table-view/index.mjs +4 -8
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +1 -1
- package/search/index.mjs +2 -2
- package/split-pane/index.mjs +1 -1
- package/static-pageable-table/index.mjs +1 -4
- package/sub-table/index.mjs +2 -5
- package/sub-table-plus/index.mjs +3 -6
- package/tab/index.mjs +1 -1
- package/tab-item/index.mjs +1 -1
- package/table-column/index.mjs +1 -1
- package/table-view/index.mjs +1 -1
- package/tag-render/index.mjs +28 -24
- package/toolbar/index.mjs +1 -1
- package/toolbar-button/index.mjs +2 -143
- package/vue-cron/index.mjs +1 -1
- package/vue-tags-input/index.mjs +1 -1
- package/vue-tree-select/index.mjs +1 -1
- package/watermark/index.mjs +1 -1
- package/web-types.json +250 -382
- package/x-input-tag/index.mjs +0 -3
- package/chunks/ElementDialog.DNsDHdQS.mjs +0 -251
- package/chunks/checkbox.C_9WZ8gc.mjs +0 -437
- package/chunks/confirmable-mixin.zegaXQTl.mjs +0 -1762
- package/chunks/event.B4iwtUNO.mjs +0 -4
- package/chunks/input.C2GWsuXE.mjs +0 -547
- package/chunks/install.yLcn5MLL.mjs +0 -84
- package/chunks/use-form-item.BlWa7ZKe.mjs +0 -56
- package/chunks/use-global-config.DRovgom9.mjs +0 -57
- package/chunks/validator.DuBSEj8O.mjs +0 -5
- package/login/index.mjs +0 -252
- package/login/style.css +0 -1
- /package/chunks/{FormBlock.Co7l6USP.mjs → FormBlock.D6kZl7sm.mjs} +0 -0
- /package/chunks/{FyUEditor.BymtA5SJ.mjs → FyUEditor.uvZS8UgS.mjs} +0 -0
- /package/chunks/{Keyboard.4hi7CjGc.mjs → Keyboard.DBspwbYo.mjs} +0 -0
- /package/chunks/{MonacoEditor.B7BUQwb7.mjs → MonacoEditor.Bq9d6JSz.mjs} +0 -0
- /package/chunks/{RecordVideo.VRFTaHSp.mjs → RecordVideo.CKTY-gk9.mjs} +0 -0
- /package/chunks/{SplitPane.Bwe5Rc0J.mjs → SplitPane.DNNid7WB.mjs} +0 -0
- /package/chunks/{Toolbar.BVziVmyT.mjs → Toolbar.DytZ6fO0.mjs} +0 -0
- /package/chunks/{core.DXaMPWGV.mjs → core.Blrh_Fjl.mjs} +0 -0
- /package/chunks/{dataformat.CteBVoOe.mjs → dataformat.F7GtAoiN.mjs} +0 -0
- /package/chunks/{dic.C0abEij9.mjs → dic.NZCGhtA7.mjs} +0 -0
- /package/chunks/{dictionary.BRhZD-WH.mjs → dictionary.DXYdZefs.mjs} +0 -0
- /package/chunks/{form-pick.DT5kumy4.mjs → form-pick.BEC7lrNH.mjs} +0 -0
- /package/chunks/{form-validate.CUvMwtPN.mjs → form-validate.JFOV_f-C.mjs} +0 -0
- /package/chunks/{packages.BLDb9e6G.mjs → packages.CONbEH13.mjs} +0 -0
- /package/chunks/{permission.C-IUDxQQ.mjs → permission.8WDtOmzA.mjs} +0 -0
- /package/chunks/{photo-swipe.BxnG4lip.mjs → photo-swipe.BvBJGc5x.mjs} +0 -0
- /package/chunks/{slot.DT5QwXL-.mjs → slot.CZCo32Cw.mjs} +0 -0
- /package/chunks/{sub-table-plus-props.CRX7ERxJ.mjs → sub-table-plus-props.DvS8aKT4.mjs} +0 -0
- /package/chunks/{tab-mixin.7zuMMM1E.mjs → tab-mixin.C9DSz8xu.mjs} +0 -0
- /package/chunks/{util.Ce4MHRmD.mjs → util.fjuzrmWz.mjs} +0 -0
- /package/chunks/{utilSelf.BttmSVX6.mjs → utilSelf.Bv7FtUNb.mjs} +0 -0
- /package/chunks/{utils.BGJfM4oG.mjs → utils.C37EhJ-u.mjs} +0 -0
- /package/chunks/{utils.CSPl1l4f.mjs → utils.C8RvIGLM.mjs} +0 -0
|
@@ -1,32 +1,34 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { t as
|
|
3
|
-
import { c as
|
|
4
|
-
import { r as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { n as
|
|
9
|
-
import { n as x } from "./focus-trap.
|
|
10
|
-
import { n as
|
|
11
|
-
import {
|
|
12
|
-
import { n as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { t as
|
|
22
|
-
import {
|
|
23
|
-
import { t as
|
|
24
|
-
import {
|
|
1
|
+
import "./chunk.A6TnG60p.mjs";
|
|
2
|
+
import { t as e } from "./_plugin-vue_export-helper.7vrlOII_.mjs";
|
|
3
|
+
import { c as t, l as n, n as r, r as i } from "./use-empty-values.CxYKjLV9.mjs";
|
|
4
|
+
import { r as a, t as o } from "./event.ZRs4J5TN.mjs";
|
|
5
|
+
import { r as s } from "./use-size.CoorvF12.mjs";
|
|
6
|
+
import { _ as c, d as l, h as u, m as d, o as f, p, r as m, t as h } from "./install.BJl2MN77.mjs";
|
|
7
|
+
import { B as ee, C as te, E as ne, L as re, M as g, O as ie, R as ae, S as oe, b as _, j as v, k as se, o as y, y as b } from "./style.CraPDfJA.mjs";
|
|
8
|
+
import { n as ce } from "./use-locale.CBoQRFjH.mjs";
|
|
9
|
+
import { n as x } from "./focus-trap.CuUc8N2C.mjs";
|
|
10
|
+
import { n as le } from "./scroll.BJIpzi2Q.mjs";
|
|
11
|
+
import { n as S, r as ue, t as de } from "./tooltip.Dzjs7LZ8.mjs";
|
|
12
|
+
import { i as fe, n as pe, r as me, t as he } from "./use-form-item.DMDTkMq9.mjs";
|
|
13
|
+
import { t as ge } from "./use-id.CyzdvfQn.mjs";
|
|
14
|
+
import { n as _e } from "./vnode.raM3wMJz.mjs";
|
|
15
|
+
import { n as ve, t as ye } from "./use-composition.BMPJBvYs.mjs";
|
|
16
|
+
import { t as be } from "./use-aria.B9uqqWAE.mjs";
|
|
17
|
+
import { l as xe, n as Se, t as C } from "./icon.niAg1zTC.mjs";
|
|
18
|
+
import { a as w, i as Ce } from "./icon.AJYLfX1m.mjs";
|
|
19
|
+
import { r as T } from "./form-item.fYYCXvCs.mjs";
|
|
20
|
+
import { n as we, t as Te } from "./scrollbar.CvxOszy3.mjs";
|
|
21
|
+
import { n as E, r as Ee, t as De } from "./tag.B6yUaGj-.mjs";
|
|
22
|
+
import { d as Oe, n as ke, u as Ae } from "./util.fjuzrmWz.mjs";
|
|
23
|
+
import { t as je } from "./form-input.DdSb45Tz.mjs";
|
|
24
|
+
import { t as Me } from "./form-pick.BEC7lrNH.mjs";
|
|
25
|
+
import { t as Ne } from "./dictionary.DXYdZefs.mjs";
|
|
26
|
+
import { Fragment as D, computed as O, createBlock as k, createCommentVNode as A, createElementBlock as j, createElementVNode as M, createTextVNode as Pe, createVNode as N, defineComponent as Fe, getCurrentInstance as P, inject as Ie, isVNode as Le, mergeProps as Re, nextTick as F, normalizeClass as I, normalizeStyle as L, onBeforeUnmount as R, onMounted as ze, openBlock as z, provide as Be, reactive as Ve, ref as B, renderList as V, renderSlot as H, resolveComponent as U, resolveDirective as He, resolveDynamicComponent as Ue, shallowRef as We, toDisplayString as W, toHandlerKey as Ge, toHandlers as Ke, toRaw as qe, toRefs as G, unref as Je, useSlots as Ye, vShow as Xe, watch as K, watchEffect as Ze, withCtx as q, withDirectives as J, withModifiers as Y } from "vue";
|
|
25
27
|
import { isNumber as Qe, isPlainObject as $e, isString as et } from "@web-utils/core";
|
|
26
28
|
import { clamp as tt, findLastIndex as nt, get as X, isEqual as Z, isNil as rt } from "lodash-unified";
|
|
27
|
-
//#region node_modules/.pnpm/element-plus@2.13.
|
|
29
|
+
//#region node_modules/.pnpm/element-plus@2.13.6_typescr_b86181ecd25892dfea09546870d44c51/node_modules/element-plus/es/hooks/use-calc-input-width/index.mjs
|
|
28
30
|
function it() {
|
|
29
|
-
let e = We(), t = B(0), n =
|
|
31
|
+
let e = We(), t = B(0), n = O(() => ({ minWidth: `${Math.max(t.value, 11)}px` }));
|
|
30
32
|
return _(e, () => {
|
|
31
33
|
var n;
|
|
32
34
|
t.value = ((n = e.value) == null ? void 0 : n.getBoundingClientRect().width) ?? 0;
|
|
@@ -37,21 +39,21 @@ function it() {
|
|
|
37
39
|
};
|
|
38
40
|
}
|
|
39
41
|
//#endregion
|
|
40
|
-
//#region node_modules/.pnpm/element-plus@2.13.
|
|
41
|
-
var at = Symbol("ElSelectGroup"),
|
|
42
|
+
//#region node_modules/.pnpm/element-plus@2.13.6_typescr_b86181ecd25892dfea09546870d44c51/node_modules/element-plus/es/components/select/src/token.mjs
|
|
43
|
+
var at = Symbol("ElSelectGroup"), ot = Symbol("ElSelect"), st = {
|
|
42
44
|
label: "label",
|
|
43
45
|
value: "value",
|
|
44
46
|
disabled: "disabled",
|
|
45
47
|
options: "options"
|
|
46
48
|
};
|
|
47
|
-
function
|
|
49
|
+
function ct(e) {
|
|
48
50
|
let t = B({
|
|
49
|
-
...
|
|
51
|
+
...st,
|
|
50
52
|
...e.props
|
|
51
53
|
}), n = { ...e.props };
|
|
52
54
|
return K(() => e.props, (e) => {
|
|
53
55
|
Z(e, n) || (t.value = {
|
|
54
|
-
...
|
|
56
|
+
...st,
|
|
55
57
|
...e
|
|
56
58
|
}, n = { ...e });
|
|
57
59
|
}, { deep: !0 }), {
|
|
@@ -63,8 +65,8 @@ function st(e) {
|
|
|
63
65
|
};
|
|
64
66
|
}
|
|
65
67
|
//#endregion
|
|
66
|
-
//#region node_modules/.pnpm/element-plus@2.13.
|
|
67
|
-
var
|
|
68
|
+
//#region node_modules/.pnpm/element-plus@2.13.6_typescr_b86181ecd25892dfea09546870d44c51/node_modules/element-plus/es/components/select/src/select.mjs
|
|
69
|
+
var lt = v({
|
|
68
70
|
name: String,
|
|
69
71
|
id: String,
|
|
70
72
|
modelValue: {
|
|
@@ -82,7 +84,7 @@ var ct = v({
|
|
|
82
84
|
default: "off"
|
|
83
85
|
},
|
|
84
86
|
automaticDropdown: Boolean,
|
|
85
|
-
size:
|
|
87
|
+
size: s,
|
|
86
88
|
effect: {
|
|
87
89
|
type: g(String),
|
|
88
90
|
default: "light"
|
|
@@ -139,26 +141,26 @@ var ct = v({
|
|
|
139
141
|
type: Number,
|
|
140
142
|
default: 1
|
|
141
143
|
},
|
|
142
|
-
teleported:
|
|
144
|
+
teleported: S.teleported,
|
|
143
145
|
persistent: {
|
|
144
146
|
type: Boolean,
|
|
145
147
|
default: !0
|
|
146
148
|
},
|
|
147
149
|
clearIcon: {
|
|
148
|
-
type:
|
|
149
|
-
default:
|
|
150
|
+
type: w,
|
|
151
|
+
default: xe
|
|
150
152
|
},
|
|
151
153
|
fitInputWidth: Boolean,
|
|
152
154
|
suffixIcon: {
|
|
153
|
-
type:
|
|
154
|
-
default:
|
|
155
|
+
type: w,
|
|
156
|
+
default: Se
|
|
155
157
|
},
|
|
156
158
|
tagType: {
|
|
157
|
-
...
|
|
159
|
+
...E.type,
|
|
158
160
|
default: "info"
|
|
159
161
|
},
|
|
160
162
|
tagEffect: {
|
|
161
|
-
...
|
|
163
|
+
...E.effect,
|
|
162
164
|
default: "light"
|
|
163
165
|
},
|
|
164
166
|
validateEvent: {
|
|
@@ -176,7 +178,7 @@ var ct = v({
|
|
|
176
178
|
},
|
|
177
179
|
placement: {
|
|
178
180
|
type: g(String),
|
|
179
|
-
values:
|
|
181
|
+
values: ue,
|
|
180
182
|
default: "bottom-start"
|
|
181
183
|
},
|
|
182
184
|
fallbackPlacements: {
|
|
@@ -192,19 +194,19 @@ var ct = v({
|
|
|
192
194
|
type: [String, Number],
|
|
193
195
|
default: 0
|
|
194
196
|
},
|
|
195
|
-
appendTo:
|
|
197
|
+
appendTo: S.appendTo,
|
|
196
198
|
options: { type: g(Array) },
|
|
197
199
|
props: {
|
|
198
200
|
type: g(Object),
|
|
199
|
-
default: () =>
|
|
201
|
+
default: () => st
|
|
200
202
|
},
|
|
201
|
-
...
|
|
202
|
-
...
|
|
203
|
+
...i,
|
|
204
|
+
...be(["ariaLabel"])
|
|
203
205
|
});
|
|
204
|
-
|
|
206
|
+
we.scroll;
|
|
205
207
|
//#endregion
|
|
206
|
-
//#region node_modules/.pnpm/element-plus@2.13.
|
|
207
|
-
var
|
|
208
|
+
//#region node_modules/.pnpm/element-plus@2.13.6_typescr_b86181ecd25892dfea09546870d44c51/node_modules/element-plus/es/components/select/src/option.mjs
|
|
209
|
+
var ut = "ElOption", Q = v({
|
|
208
210
|
value: {
|
|
209
211
|
type: [
|
|
210
212
|
String,
|
|
@@ -219,86 +221,86 @@ var lt = "ElOption", ut = v({
|
|
|
219
221
|
disabled: Boolean
|
|
220
222
|
});
|
|
221
223
|
//#endregion
|
|
222
|
-
//#region node_modules/.pnpm/element-plus@2.13.
|
|
224
|
+
//#region node_modules/.pnpm/element-plus@2.13.6_typescr_b86181ecd25892dfea09546870d44c51/node_modules/element-plus/es/components/select/src/useOption.mjs
|
|
223
225
|
function dt(e, t) {
|
|
224
|
-
let n = Ie(
|
|
225
|
-
n || se(
|
|
226
|
-
let
|
|
226
|
+
let n = Ie(ot);
|
|
227
|
+
n || se(ut, "usage: <el-select><el-option /></el-select/>");
|
|
228
|
+
let r = Ie(at, { disabled: !1 }), i = O(() => u(T(n.props.modelValue), e.value)), a = O(() => {
|
|
227
229
|
if (n.props.multiple) {
|
|
228
|
-
let e =
|
|
229
|
-
return !
|
|
230
|
+
let e = T(n.props.modelValue ?? []);
|
|
231
|
+
return !i.value && e.length >= n.props.multipleLimit && n.props.multipleLimit > 0;
|
|
230
232
|
} else return !1;
|
|
231
|
-
}),
|
|
232
|
-
if (
|
|
233
|
+
}), o = O(() => e.label ?? (d(e.value) ? "" : e.value)), s = O(() => e.value || e.label || ""), c = O(() => e.disabled || t.groupDisabled || a.value), l = P(), u = (t = [], r) => {
|
|
234
|
+
if (d(e.value)) {
|
|
233
235
|
let e = n.props.valueKey;
|
|
234
|
-
return t && t.some((t) => qe(X(t, e)) === X(
|
|
235
|
-
} else return t && t.includes(
|
|
236
|
+
return t && t.some((t) => qe(X(t, e)) === X(r, e));
|
|
237
|
+
} else return t && t.includes(r);
|
|
236
238
|
};
|
|
237
|
-
return K(() =>
|
|
239
|
+
return K(() => o.value, () => {
|
|
238
240
|
!e.created && !n.props.remote && n.setSelected();
|
|
239
|
-
}), K(() => e.value, (t,
|
|
240
|
-
let { remote:
|
|
241
|
-
if ((
|
|
242
|
-
if (
|
|
241
|
+
}), K(() => e.value, (t, r) => {
|
|
242
|
+
let { remote: i, valueKey: a } = n.props;
|
|
243
|
+
if ((i ? t !== r : !Z(t, r)) && (n.onOptionDestroy(r, l.proxy), n.onOptionCreate(l.proxy)), !e.created && !i) {
|
|
244
|
+
if (a && d(t) && d(r) && t[a] === r[a]) return;
|
|
243
245
|
n.setSelected();
|
|
244
246
|
}
|
|
245
|
-
}), K(() =>
|
|
246
|
-
t.groupDisabled =
|
|
247
|
+
}), K(() => r.disabled, () => {
|
|
248
|
+
t.groupDisabled = r.disabled;
|
|
247
249
|
}, { immediate: !0 }), {
|
|
248
250
|
select: n,
|
|
249
|
-
currentLabel:
|
|
250
|
-
currentValue:
|
|
251
|
-
itemSelected:
|
|
252
|
-
isDisabled:
|
|
251
|
+
currentLabel: o,
|
|
252
|
+
currentValue: s,
|
|
253
|
+
itemSelected: i,
|
|
254
|
+
isDisabled: c,
|
|
253
255
|
hoverItem: () => {
|
|
254
|
-
|
|
256
|
+
c.value || (n.states.hoveringIndex = n.optionsArray.indexOf(l.proxy));
|
|
255
257
|
},
|
|
256
258
|
updateOption: (n) => {
|
|
257
|
-
t.visible = new RegExp(y(n), "i").test(String(
|
|
259
|
+
t.visible = new RegExp(y(n), "i").test(String(o.value)) || e.created;
|
|
258
260
|
}
|
|
259
261
|
};
|
|
260
262
|
}
|
|
261
263
|
//#endregion
|
|
262
|
-
//#region node_modules/.pnpm/element-plus@2.13.
|
|
263
|
-
var ft =
|
|
264
|
-
name:
|
|
265
|
-
componentName:
|
|
266
|
-
props:
|
|
264
|
+
//#region node_modules/.pnpm/element-plus@2.13.6_typescr_b86181ecd25892dfea09546870d44c51/node_modules/element-plus/es/components/select/src/option.vue_vue_type_script_lang.mjs
|
|
265
|
+
var ft = Fe({
|
|
266
|
+
name: ut,
|
|
267
|
+
componentName: ut,
|
|
268
|
+
props: Q,
|
|
267
269
|
setup(e) {
|
|
268
|
-
let t =
|
|
270
|
+
let t = f("select"), n = ge(), r = O(() => [
|
|
269
271
|
t.be("dropdown", "item"),
|
|
270
|
-
t.is("disabled", Je(
|
|
271
|
-
t.is("selected", Je(
|
|
272
|
+
t.is("disabled", Je(s)),
|
|
273
|
+
t.is("selected", Je(o)),
|
|
272
274
|
t.is("hovering", Je(p))
|
|
273
|
-
]),
|
|
275
|
+
]), i = Ve({
|
|
274
276
|
index: -1,
|
|
275
277
|
groupDisabled: !1,
|
|
276
278
|
visible: !0,
|
|
277
279
|
hover: !1
|
|
278
|
-
}), { currentLabel:
|
|
279
|
-
|
|
280
|
+
}), { currentLabel: a, itemSelected: o, isDisabled: s, select: c, hoverItem: l, updateOption: u } = dt(e, i), { visible: d, hover: p } = G(i), m = P().proxy;
|
|
281
|
+
c.onOptionCreate(m), R(() => {
|
|
280
282
|
let e = m.value;
|
|
281
283
|
F(() => {
|
|
282
|
-
let { selected: t } =
|
|
283
|
-
|
|
284
|
-
}),
|
|
284
|
+
let { selected: t } = c.states, n = t.some((e) => e.value === m.value);
|
|
285
|
+
c.states.cachedOptions.get(e) === m && !n && c.states.cachedOptions.delete(e);
|
|
286
|
+
}), c.onOptionDestroy(e, m);
|
|
285
287
|
});
|
|
286
288
|
function h() {
|
|
287
|
-
|
|
289
|
+
s.value || c.handleOptionSelect(m);
|
|
288
290
|
}
|
|
289
291
|
return {
|
|
290
292
|
ns: t,
|
|
291
293
|
id: n,
|
|
292
294
|
containerKls: r,
|
|
293
|
-
currentLabel:
|
|
294
|
-
itemSelected:
|
|
295
|
-
isDisabled:
|
|
296
|
-
select:
|
|
297
|
-
visible:
|
|
295
|
+
currentLabel: a,
|
|
296
|
+
itemSelected: o,
|
|
297
|
+
isDisabled: s,
|
|
298
|
+
select: c,
|
|
299
|
+
visible: d,
|
|
298
300
|
hover: p,
|
|
299
|
-
states:
|
|
300
|
-
hoverItem:
|
|
301
|
-
updateOption:
|
|
301
|
+
states: i,
|
|
302
|
+
hoverItem: l,
|
|
303
|
+
updateOption: u,
|
|
302
304
|
selectOptionClick: h
|
|
303
305
|
};
|
|
304
306
|
}
|
|
@@ -308,7 +310,7 @@ var ft = N({
|
|
|
308
310
|
"aria-selected"
|
|
309
311
|
];
|
|
310
312
|
function mt(e, t, n, r, i, a) {
|
|
311
|
-
return J((z(),
|
|
313
|
+
return J((z(), j("li", {
|
|
312
314
|
id: e.id,
|
|
313
315
|
class: I(e.containerKls),
|
|
314
316
|
role: "option",
|
|
@@ -316,9 +318,9 @@ function mt(e, t, n, r, i, a) {
|
|
|
316
318
|
"aria-selected": e.itemSelected,
|
|
317
319
|
onMousemove: t[0] || (t[0] = (...t) => e.hoverItem && e.hoverItem(...t)),
|
|
318
320
|
onClick: t[1] || (t[1] = Y((...t) => e.selectOptionClick && e.selectOptionClick(...t), ["stop"]))
|
|
319
|
-
}, [H(e.$slots, "default", {}, () => [
|
|
321
|
+
}, [H(e.$slots, "default", {}, () => [M("span", null, W(e.currentLabel), 1)])], 42, pt)), [[Xe, e.visible]]);
|
|
320
322
|
}
|
|
321
|
-
var $ = /* @__PURE__ */ x(ft, [["render", mt]]), ht =
|
|
323
|
+
var $ = /* @__PURE__ */ x(ft, [["render", mt]]), ht = Fe({
|
|
322
324
|
name: "ElOptionGroup",
|
|
323
325
|
componentName: "ElOptionGroup",
|
|
324
326
|
props: {
|
|
@@ -326,66 +328,66 @@ var $ = /* @__PURE__ */ x(ft, [["render", mt]]), ht = N({
|
|
|
326
328
|
disabled: Boolean
|
|
327
329
|
},
|
|
328
330
|
setup(e) {
|
|
329
|
-
let
|
|
331
|
+
let t = f("select"), n = B(), r = P(), i = B([]);
|
|
330
332
|
Be(at, Ve({ ...G(e) }));
|
|
331
|
-
let
|
|
333
|
+
let a = O(() => i.value.some((e) => e.visible === !0)), o = (e) => {
|
|
332
334
|
var t;
|
|
333
335
|
return e.type.name === "ElOption" && !!((t = e.component) != null && t.proxy);
|
|
334
|
-
},
|
|
335
|
-
let
|
|
336
|
-
return
|
|
337
|
-
var
|
|
338
|
-
Le(e) && (
|
|
339
|
-
}),
|
|
340
|
-
},
|
|
341
|
-
|
|
336
|
+
}, s = (e) => {
|
|
337
|
+
let t = T(e), n = [];
|
|
338
|
+
return t.forEach((e) => {
|
|
339
|
+
var t;
|
|
340
|
+
Le(e) && (o(e) ? n.push(e.component.proxy) : l(e.children) && e.children.length ? n.push(...s(e.children)) : (t = e.component) != null && t.subTree && n.push(...s(e.component.subTree)));
|
|
341
|
+
}), n;
|
|
342
|
+
}, c = () => {
|
|
343
|
+
i.value = s(r.subTree);
|
|
342
344
|
};
|
|
343
345
|
return ze(() => {
|
|
344
|
-
|
|
345
|
-
}), b(
|
|
346
|
+
c();
|
|
347
|
+
}), b(n, c, {
|
|
346
348
|
attributes: !0,
|
|
347
349
|
subtree: !0,
|
|
348
350
|
childList: !0
|
|
349
351
|
}), {
|
|
350
|
-
groupRef:
|
|
351
|
-
visible:
|
|
352
|
-
ns:
|
|
352
|
+
groupRef: n,
|
|
353
|
+
visible: a,
|
|
354
|
+
ns: t
|
|
353
355
|
};
|
|
354
356
|
}
|
|
355
357
|
});
|
|
356
358
|
//#endregion
|
|
357
|
-
//#region node_modules/.pnpm/element-plus@2.13.
|
|
359
|
+
//#region node_modules/.pnpm/element-plus@2.13.6_typescr_b86181ecd25892dfea09546870d44c51/node_modules/element-plus/es/components/select/src/option-group.mjs
|
|
358
360
|
function gt(e, t, n, r, i, a) {
|
|
359
|
-
return J((z(),
|
|
361
|
+
return J((z(), j("ul", {
|
|
360
362
|
ref: "groupRef",
|
|
361
363
|
class: I(e.ns.be("group", "wrap"))
|
|
362
|
-
}, [
|
|
364
|
+
}, [M("li", { class: I(e.ns.be("group", "title")) }, W(e.label), 3), M("li", null, [M("ul", { class: I(e.ns.b("group")) }, [H(e.$slots, "default")], 2)])], 2)), [[Xe, e.visible]]);
|
|
363
365
|
}
|
|
364
|
-
var _t = /* @__PURE__ */ x(ht, [["render", gt]]), vt =
|
|
366
|
+
var _t = /* @__PURE__ */ x(ht, [["render", gt]]), vt = Fe({
|
|
365
367
|
name: "ElSelectDropdown",
|
|
366
368
|
componentName: "ElSelectDropdown",
|
|
367
369
|
setup() {
|
|
368
|
-
let e = Ie(
|
|
369
|
-
function
|
|
370
|
+
let e = Ie(ot), t = f("select"), n = O(() => e.props.popperClass), r = O(() => e.props.multiple), i = O(() => e.props.fitInputWidth), a = B("");
|
|
371
|
+
function o() {
|
|
370
372
|
var t;
|
|
371
373
|
let n = (t = e.selectRef) == null ? void 0 : t.offsetWidth;
|
|
372
|
-
n ?
|
|
374
|
+
n ? a.value = `${n - 2}px` : a.value = "";
|
|
373
375
|
}
|
|
374
376
|
return ze(() => {
|
|
375
|
-
|
|
377
|
+
o(), _(e.selectRef, o);
|
|
376
378
|
}), {
|
|
377
379
|
ns: t,
|
|
378
|
-
minWidth:
|
|
380
|
+
minWidth: a,
|
|
379
381
|
popperClass: n,
|
|
380
382
|
isMultiple: r,
|
|
381
|
-
isFitInputWidth:
|
|
383
|
+
isFitInputWidth: i
|
|
382
384
|
};
|
|
383
385
|
}
|
|
384
386
|
});
|
|
385
387
|
//#endregion
|
|
386
|
-
//#region node_modules/.pnpm/element-plus@2.13.
|
|
388
|
+
//#region node_modules/.pnpm/element-plus@2.13.6_typescr_b86181ecd25892dfea09546870d44c51/node_modules/element-plus/es/components/select/src/select-dropdown.mjs
|
|
387
389
|
function yt(e, t, n, r, i, a) {
|
|
388
|
-
return z(),
|
|
390
|
+
return z(), j("div", {
|
|
389
391
|
class: I([
|
|
390
392
|
e.ns.b("dropdown"),
|
|
391
393
|
e.ns.is("multiple", e.isMultiple),
|
|
@@ -393,19 +395,19 @@ function yt(e, t, n, r, i, a) {
|
|
|
393
395
|
]),
|
|
394
396
|
style: L({ [e.isFitInputWidth ? "width" : "minWidth"]: e.minWidth })
|
|
395
397
|
}, [
|
|
396
|
-
e.$slots.header ? (z(),
|
|
398
|
+
e.$slots.header ? (z(), j("div", {
|
|
397
399
|
key: 0,
|
|
398
400
|
class: I(e.ns.be("dropdown", "header"))
|
|
399
|
-
}, [H(e.$slots, "header")], 2)) :
|
|
401
|
+
}, [H(e.$slots, "header")], 2)) : A("v-if", !0),
|
|
400
402
|
H(e.$slots, "default"),
|
|
401
|
-
e.$slots.footer ? (z(),
|
|
403
|
+
e.$slots.footer ? (z(), j("div", {
|
|
402
404
|
key: 1,
|
|
403
405
|
class: I(e.ns.be("dropdown", "footer"))
|
|
404
|
-
}, [H(e.$slots, "footer")], 2)) :
|
|
406
|
+
}, [H(e.$slots, "footer")], 2)) : A("v-if", !0)
|
|
405
407
|
], 6);
|
|
406
408
|
}
|
|
407
|
-
var bt = /* @__PURE__ */ x(vt, [["render", yt]]), xt = (e,
|
|
408
|
-
let { t: s } =
|
|
409
|
+
var bt = /* @__PURE__ */ x(vt, [["render", yt]]), xt = (e, i) => {
|
|
410
|
+
let { t: s } = ce(), c = Ye(), m = ge(), h = f("select"), g = f("input"), v = Ve({
|
|
409
411
|
inputValue: "",
|
|
410
412
|
options: /* @__PURE__ */ new Map(),
|
|
411
413
|
cachedOptions: /* @__PURE__ */ new Map(),
|
|
@@ -419,86 +421,86 @@ var bt = /* @__PURE__ */ x(vt, [["render", yt]]), xt = (e, o) => {
|
|
|
419
421
|
inputHovering: !1,
|
|
420
422
|
menuVisibleOnFocus: !1,
|
|
421
423
|
isBeforeHide: !1
|
|
422
|
-
}), se = B(), y = B(), b = B(),
|
|
423
|
-
disabled:
|
|
424
|
+
}), se = B(), y = B(), b = B(), x = B(), S = B(), ue = B(), de = B(), _e = B(), be = B(), xe = B(), Se = B(), C = B(!1), w = B(), we = B(!1), { form: Te, formItem: E } = he(), { inputId: Ee } = pe(e, { formItemContext: E }), { valueOnClear: De, isEmptyValue: Oe } = r(e), { isComposing: ke, handleCompositionStart: Ae, handleCompositionUpdate: je, handleCompositionEnd: Me } = ye({ afterComposition: (e) => $e(e) }), Ne = me(), { wrapperRef: D, isFocused: k, handleBlur: A } = ve(S, {
|
|
425
|
+
disabled: Ne,
|
|
424
426
|
afterFocus() {
|
|
425
|
-
e.automaticDropdown && !
|
|
427
|
+
e.automaticDropdown && !C.value && (C.value = !0, v.menuVisibleOnFocus = !0);
|
|
426
428
|
},
|
|
427
429
|
beforeBlur(e) {
|
|
428
430
|
var t, n;
|
|
429
|
-
return ((t = b.value) == null ? void 0 : t.isFocusInsideContent(e)) || ((n =
|
|
431
|
+
return ((t = b.value) == null ? void 0 : t.isFocusInsideContent(e)) || ((n = x.value) == null ? void 0 : n.isFocusInsideContent(e));
|
|
430
432
|
},
|
|
431
433
|
afterBlur() {
|
|
432
434
|
var t;
|
|
433
|
-
|
|
435
|
+
C.value = !1, v.menuVisibleOnFocus = !1, e.validateEvent && (E == null || (t = E.validate) == null || t.call(E, "blur").catch((e) => ie(e)));
|
|
434
436
|
}
|
|
435
|
-
}),
|
|
437
|
+
}), j = O(() => l(e.modelValue) ? e.modelValue.length > 0 : !Oe(e.modelValue)), M = O(() => (Te == null ? void 0 : Te.statusIcon) ?? !1), Pe = O(() => e.clearable && !Ne.value && j.value && (k.value || v.inputHovering)), N = O(() => e.remote && e.filterable && !e.remoteShowSuffix ? "" : e.suffixIcon), Fe = O(() => h.is("reverse", !!(N.value && C.value))), P = O(() => (E == null ? void 0 : E.validateState) || ""), Ie = O(() => P.value && Ce[P.value]), Le = O(() => e.remote ? e.debounce : 0), Re = O(() => e.remote && !v.inputValue && v.options.size === 0), I = O(() => e.loading ? e.loadingText || s("el.select.loading") : e.filterable && v.inputValue && v.options.size > 0 && L.value === 0 ? e.noMatchText || s("el.select.noMatch") : v.options.size === 0 ? e.noDataText || s("el.select.noData") : null), L = O(() => R.value.filter((e) => e.visible).length), R = O(() => {
|
|
436
438
|
let e = Array.from(v.options.values()), t = [];
|
|
437
439
|
return v.optionValues.forEach((n) => {
|
|
438
440
|
let r = e.findIndex((e) => e.value === n);
|
|
439
441
|
r > -1 && t.push(e[r]);
|
|
440
442
|
}), t.length >= e.length ? t : e;
|
|
441
|
-
}), z =
|
|
443
|
+
}), z = O(() => Array.from(v.cachedOptions.values())), Be = O(() => {
|
|
442
444
|
let t = R.value.filter((e) => !e.created).some((e) => e.currentLabel === v.inputValue);
|
|
443
445
|
return e.filterable && e.allowCreate && v.inputValue !== "" && !t;
|
|
444
446
|
}), V = () => {
|
|
445
|
-
e.filterable &&
|
|
447
|
+
e.filterable && p(e.filterMethod) || e.filterable && e.remote && p(e.remoteMethod) || R.value.forEach((e) => {
|
|
446
448
|
var t;
|
|
447
449
|
(t = e.updateOption) == null || t.call(e, v.inputValue);
|
|
448
450
|
});
|
|
449
|
-
}, H =
|
|
451
|
+
}, H = fe(), U = O(() => ["small"].includes(H.value) ? "small" : "default"), He = O({
|
|
450
452
|
get() {
|
|
451
|
-
return
|
|
453
|
+
return C.value && (e.loading || !Re.value || e.remote && !!c.empty) && (!we.value || !re(v.previousQuery) || v.options.size > 0);
|
|
452
454
|
},
|
|
453
455
|
set(e) {
|
|
454
|
-
|
|
456
|
+
C.value = e;
|
|
455
457
|
}
|
|
456
|
-
}), Ue =
|
|
457
|
-
if (e.multiple && !ee(e.modelValue)) return
|
|
458
|
-
let
|
|
459
|
-
return e.filterable || ee(
|
|
460
|
-
}), We =
|
|
458
|
+
}), Ue = O(() => {
|
|
459
|
+
if (e.multiple && !ee(e.modelValue)) return T(e.modelValue).length === 0 && !v.inputValue;
|
|
460
|
+
let t = l(e.modelValue) ? e.modelValue[0] : e.modelValue;
|
|
461
|
+
return e.filterable || ee(t) ? !v.inputValue : !0;
|
|
462
|
+
}), We = O(() => {
|
|
461
463
|
let t = e.placeholder ?? s("el.select.placeholder");
|
|
462
|
-
return e.multiple || !
|
|
463
|
-
}), W =
|
|
464
|
+
return e.multiple || !j.value ? t : v.selectedLabel;
|
|
465
|
+
}), W = O(() => te ? null : "mouseenter");
|
|
464
466
|
K(() => e.modelValue, (t, n) => {
|
|
465
|
-
e.multiple && e.filterable && !e.reserveKeyword && (v.inputValue = "", Ge("")), qe(), !Z(t, n) && e.validateEvent && (
|
|
467
|
+
e.multiple && e.filterable && !e.reserveKeyword && (v.inputValue = "", Ge("")), qe(), !Z(t, n) && e.validateEvent && (E == null || E.validate("change").catch((e) => ie(e)));
|
|
466
468
|
}, {
|
|
467
469
|
flush: "post",
|
|
468
470
|
deep: !0
|
|
469
|
-
}), K(() =>
|
|
471
|
+
}), K(() => C.value, (e) => {
|
|
470
472
|
e ? Ge(v.inputValue) : (v.inputValue = "", v.previousQuery = null, v.isBeforeHide = !0, v.menuVisibleOnFocus = !1);
|
|
471
473
|
}), K(() => v.options.entries(), () => {
|
|
472
474
|
oe && (qe(), e.defaultFirstOption && (e.filterable || e.remote) && L.value && Ke());
|
|
473
475
|
}, { flush: "post" }), K([() => v.hoveringIndex, R], ([e]) => {
|
|
474
|
-
ae(e) && e > -1 ?
|
|
475
|
-
e.hover =
|
|
476
|
+
ae(e) && e > -1 ? w.value = R.value[e] || {} : w.value = {}, R.value.forEach((e) => {
|
|
477
|
+
e.hover = w.value === e;
|
|
476
478
|
});
|
|
477
479
|
}), Ze(() => {
|
|
478
480
|
v.isBeforeHide || V();
|
|
479
481
|
});
|
|
480
482
|
let Ge = (t) => {
|
|
481
|
-
v.previousQuery === t ||
|
|
483
|
+
v.previousQuery === t || ke.value || (v.previousQuery = t, e.filterable && p(e.filterMethod) ? e.filterMethod(t) : e.filterable && e.remote && p(e.remoteMethod) && e.remoteMethod(t), e.defaultFirstOption && (e.filterable || e.remote) && L.value ? F(Ke) : F(Je));
|
|
482
484
|
}, Ke = () => {
|
|
483
485
|
let e = R.value.filter((e) => e.visible && !e.disabled && !e.states.groupDisabled), t = e.find((e) => e.created), n = e[0];
|
|
484
|
-
v.hoveringIndex =
|
|
486
|
+
v.hoveringIndex = ut(R.value.map((e) => e.value), t || n);
|
|
485
487
|
}, qe = () => {
|
|
486
488
|
if (e.multiple) v.selectedLabel = "";
|
|
487
489
|
else {
|
|
488
|
-
let
|
|
489
|
-
v.selectedLabel =
|
|
490
|
+
let t = G(l(e.modelValue) ? e.modelValue[0] : e.modelValue);
|
|
491
|
+
v.selectedLabel = t.currentLabel, v.selected = [t];
|
|
490
492
|
return;
|
|
491
493
|
}
|
|
492
|
-
let
|
|
493
|
-
ee(e.modelValue) ||
|
|
494
|
-
|
|
495
|
-
}), v.selected =
|
|
494
|
+
let t = [];
|
|
495
|
+
ee(e.modelValue) || T(e.modelValue).forEach((e) => {
|
|
496
|
+
t.push(G(e));
|
|
497
|
+
}), v.selected = t;
|
|
496
498
|
}, G = (t) => {
|
|
497
|
-
let
|
|
498
|
-
for (let
|
|
499
|
-
let a = z.value[
|
|
500
|
-
if (
|
|
501
|
-
|
|
499
|
+
let n, r = u(t);
|
|
500
|
+
for (let i = v.cachedOptions.size - 1; i >= 0; i--) {
|
|
501
|
+
let a = z.value[i];
|
|
502
|
+
if (r ? X(a.value, e.valueKey) === X(t, e.valueKey) : a.value === t) {
|
|
503
|
+
n = {
|
|
502
504
|
index: R.value.filter((e) => !e.created).indexOf(a),
|
|
503
505
|
value: t,
|
|
504
506
|
currentLabel: a.currentLabel,
|
|
@@ -509,10 +511,10 @@ var bt = /* @__PURE__ */ x(vt, [["render", yt]]), xt = (e, o) => {
|
|
|
509
511
|
break;
|
|
510
512
|
}
|
|
511
513
|
}
|
|
512
|
-
return
|
|
514
|
+
return n || {
|
|
513
515
|
index: -1,
|
|
514
516
|
value: t,
|
|
515
|
-
currentLabel:
|
|
517
|
+
currentLabel: r ? t.label : t ?? ""
|
|
516
518
|
};
|
|
517
519
|
}, Je = () => {
|
|
518
520
|
let e = v.selected.length;
|
|
@@ -523,118 +525,118 @@ var bt = /* @__PURE__ */ x(vt, [["render", yt]]), xt = (e, o) => {
|
|
|
523
525
|
}, Xe = () => {
|
|
524
526
|
v.selectionWidth = Number.parseFloat(window.getComputedStyle(y.value).width);
|
|
525
527
|
}, q = () => {
|
|
526
|
-
v.collapseItemWidth =
|
|
528
|
+
v.collapseItemWidth = xe.value.getBoundingClientRect().width;
|
|
527
529
|
}, J = () => {
|
|
528
530
|
var e, t;
|
|
529
531
|
(e = b.value) == null || (t = e.updatePopper) == null || t.call(e);
|
|
530
532
|
}, Y = () => {
|
|
531
533
|
var e, t;
|
|
532
|
-
(e =
|
|
534
|
+
(e = x.value) == null || (t = e.updatePopper) == null || t.call(e);
|
|
533
535
|
}, Qe = () => {
|
|
534
|
-
v.inputValue.length > 0 && !
|
|
536
|
+
v.inputValue.length > 0 && !C.value && (C.value = !0), Ge(v.inputValue);
|
|
535
537
|
}, $e = (t) => {
|
|
536
|
-
if (v.inputValue = t.target.value, e.remote)
|
|
538
|
+
if (v.inputValue = t.target.value, e.remote) we.value = !0, et();
|
|
537
539
|
else return Qe();
|
|
538
540
|
}, et = ne(() => {
|
|
539
|
-
Qe(),
|
|
541
|
+
Qe(), we.value = !1;
|
|
540
542
|
}, Le), it = (t) => {
|
|
541
|
-
Z(e.modelValue, t) || o
|
|
543
|
+
Z(e.modelValue, t) || i(o, t);
|
|
542
544
|
}, at = (e) => nt(e, (e) => {
|
|
543
545
|
let t = v.cachedOptions.get(e);
|
|
544
546
|
return !(t != null && t.disabled) && !(t != null && t.states.groupDisabled);
|
|
545
|
-
}),
|
|
546
|
-
let
|
|
547
|
-
if (e.multiple &&
|
|
548
|
-
let t =
|
|
547
|
+
}), ot = (r) => {
|
|
548
|
+
let o = t(r);
|
|
549
|
+
if (e.multiple && o !== n.delete && r.target.value.length <= 0) {
|
|
550
|
+
let t = T(e.modelValue).slice(), n = at(t);
|
|
549
551
|
if (n < 0) return;
|
|
550
552
|
let r = t[n];
|
|
551
|
-
t.splice(n, 1),
|
|
553
|
+
t.splice(n, 1), i(a, t), it(t), i("remove-tag", r);
|
|
552
554
|
}
|
|
553
|
-
},
|
|
555
|
+
}, st = (t, n) => {
|
|
554
556
|
let r = v.selected.indexOf(n);
|
|
555
|
-
if (r > -1 && !
|
|
556
|
-
let t =
|
|
557
|
-
t.splice(r, 1),
|
|
557
|
+
if (r > -1 && !Ne.value) {
|
|
558
|
+
let t = T(e.modelValue).slice();
|
|
559
|
+
t.splice(r, 1), i(a, t), it(t), i("remove-tag", n.value);
|
|
558
560
|
}
|
|
559
561
|
t.stopPropagation(), $();
|
|
560
|
-
},
|
|
562
|
+
}, ct = (t) => {
|
|
561
563
|
t.stopPropagation();
|
|
562
|
-
let n = e.multiple ? [] :
|
|
564
|
+
let n = e.multiple ? [] : De.value;
|
|
563
565
|
if (e.multiple) for (let e of v.selected) e.isDisabled && n.push(e.value);
|
|
564
|
-
|
|
565
|
-
},
|
|
566
|
+
i(a, n), it(n), v.hoveringIndex = -1, C.value = !1, i("clear"), $();
|
|
567
|
+
}, lt = (t) => {
|
|
566
568
|
if (e.multiple) {
|
|
567
|
-
let n =
|
|
568
|
-
r > -1 ? n.splice(r, 1) : (e.multipleLimit <= 0 || n.length < e.multipleLimit) && n.push(t.value),
|
|
569
|
-
} else !Z(e.modelValue, t.value) &&
|
|
570
|
-
$(), !
|
|
571
|
-
|
|
569
|
+
let n = T(e.modelValue ?? []).slice(), r = ut(n, t);
|
|
570
|
+
r > -1 ? n.splice(r, 1) : (e.multipleLimit <= 0 || n.length < e.multipleLimit) && n.push(t.value), i(a, n), it(n), t.created && Ge(""), e.filterable && (t.created || !e.reserveKeyword) && (v.inputValue = "");
|
|
571
|
+
} else !Z(e.modelValue, t.value) && i("update:modelValue", t.value), it(t.value), C.value = !1;
|
|
572
|
+
$(), !C.value && F(() => {
|
|
573
|
+
Q(t);
|
|
572
574
|
});
|
|
573
|
-
},
|
|
574
|
-
var
|
|
575
|
-
let
|
|
576
|
-
if (!rt(
|
|
577
|
-
let e = R.value.filter((e) => e.value ===
|
|
578
|
-
e.length > 0 && (
|
|
575
|
+
}, ut = (t, n) => ee(n) ? -1 : d(n.value) ? t.findIndex((t) => Z(X(t, e.valueKey), xt(n))) : t.indexOf(n.value), Q = (e) => {
|
|
576
|
+
var t;
|
|
577
|
+
let n = l(e) ? e[e.length - 1] : e, r = null;
|
|
578
|
+
if (!rt(n == null ? void 0 : n.value)) {
|
|
579
|
+
let e = R.value.filter((e) => e.value === n.value);
|
|
580
|
+
e.length > 0 && (r = e[0].$el);
|
|
579
581
|
}
|
|
580
|
-
if (b.value &&
|
|
581
|
-
var
|
|
582
|
-
let e = (
|
|
583
|
-
e &&
|
|
582
|
+
if (b.value && r) {
|
|
583
|
+
var i, a;
|
|
584
|
+
let e = (i = b.value) == null || (i = i.popperRef) == null || (i = i.contentRef) == null || (a = i.querySelector) == null ? void 0 : a.call(i, `.${h.be("dropdown", "wrap")}`);
|
|
585
|
+
e && le(e, r);
|
|
584
586
|
}
|
|
585
|
-
(
|
|
587
|
+
(t = Se.value) == null || t.handleScroll();
|
|
586
588
|
}, dt = (e) => {
|
|
587
589
|
v.options.set(e.value, e), v.cachedOptions.set(e.value, e);
|
|
588
590
|
}, ft = (e, t) => {
|
|
589
591
|
v.options.get(e) === t && v.options.delete(e);
|
|
590
|
-
}, pt =
|
|
592
|
+
}, pt = O(() => {
|
|
591
593
|
var e;
|
|
592
594
|
return (e = b.value) == null || (e = e.popperRef) == null ? void 0 : e.contentRef;
|
|
593
595
|
}), mt = () => {
|
|
594
596
|
v.isBeforeHide = !1, F(() => {
|
|
595
597
|
var e;
|
|
596
|
-
(e =
|
|
598
|
+
(e = Se.value) == null || e.update(), Q(v.selected);
|
|
597
599
|
});
|
|
598
600
|
}, $ = () => {
|
|
599
601
|
var e;
|
|
600
|
-
(e =
|
|
602
|
+
(e = S.value) == null || e.focus();
|
|
601
603
|
}, ht = () => {
|
|
602
604
|
var e;
|
|
603
|
-
if (
|
|
604
|
-
|
|
605
|
+
if (C.value) {
|
|
606
|
+
C.value = !1, F(() => {
|
|
605
607
|
var e;
|
|
606
|
-
return (e =
|
|
608
|
+
return (e = S.value) == null ? void 0 : e.blur();
|
|
607
609
|
});
|
|
608
610
|
return;
|
|
609
611
|
}
|
|
610
|
-
(e =
|
|
612
|
+
(e = S.value) == null || e.blur();
|
|
611
613
|
}, gt = (e) => {
|
|
612
|
-
|
|
614
|
+
ct(e);
|
|
613
615
|
}, _t = (e) => {
|
|
614
|
-
if (
|
|
616
|
+
if (C.value = !1, k.value) {
|
|
615
617
|
let t = new FocusEvent("blur", e);
|
|
616
|
-
F(() =>
|
|
618
|
+
F(() => A(t));
|
|
617
619
|
}
|
|
618
620
|
}, vt = () => {
|
|
619
|
-
v.inputValue.length > 0 ? v.inputValue = "" :
|
|
621
|
+
v.inputValue.length > 0 ? v.inputValue = "" : C.value = !1;
|
|
620
622
|
}, yt = (t) => {
|
|
621
623
|
var n;
|
|
622
|
-
|
|
624
|
+
Ne.value || e.filterable && C.value && t && !((n = de.value) != null && n.contains(t.target)) || (te && (v.inputHovering = !0), v.menuVisibleOnFocus ? v.menuVisibleOnFocus = !1 : C.value = !C.value);
|
|
623
625
|
}, bt = () => {
|
|
624
|
-
if (!
|
|
626
|
+
if (!C.value) yt();
|
|
625
627
|
else {
|
|
626
628
|
let e = R.value[v.hoveringIndex];
|
|
627
|
-
e && !e.isDisabled &&
|
|
629
|
+
e && !e.isDisabled && lt(e);
|
|
628
630
|
}
|
|
629
|
-
}, xt = (t) =>
|
|
630
|
-
if (!
|
|
631
|
-
|
|
631
|
+
}, xt = (t) => d(t.value) ? X(t.value, e.valueKey) : t.value, St = O(() => R.value.filter((e) => e.visible).every((e) => e.isDisabled)), Ct = O(() => e.multiple ? e.collapseTags ? v.selected.slice(0, e.maxCollapseTags) : v.selected : []), wt = O(() => e.multiple && e.collapseTags ? v.selected.slice(e.maxCollapseTags) : []), Tt = (e) => {
|
|
632
|
+
if (!C.value) {
|
|
633
|
+
C.value = !0;
|
|
632
634
|
return;
|
|
633
635
|
}
|
|
634
|
-
if (!(v.options.size === 0 || L.value === 0 ||
|
|
636
|
+
if (!(v.options.size === 0 || L.value === 0 || ke.value) && !St.value) {
|
|
635
637
|
e === "next" ? (v.hoveringIndex++, v.hoveringIndex === v.options.size && (v.hoveringIndex = 0)) : e === "prev" && (v.hoveringIndex--, v.hoveringIndex < 0 && (v.hoveringIndex = v.options.size - 1));
|
|
636
638
|
let t = R.value[v.hoveringIndex];
|
|
637
|
-
(t.isDisabled || !t.visible) && Tt(e), F(() =>
|
|
639
|
+
(t.isDisabled || !t.visible) && Tt(e), F(() => Q(w.value));
|
|
638
640
|
}
|
|
639
641
|
}, Et = (e, t, n, r) => {
|
|
640
642
|
for (let i = t; i >= 0 && i < r; i += n) {
|
|
@@ -646,103 +648,103 @@ var bt = /* @__PURE__ */ x(vt, [["render", yt]]), xt = (e, o) => {
|
|
|
646
648
|
let n = v.options.size;
|
|
647
649
|
if (n === 0) return;
|
|
648
650
|
let r = tt(e, 0, n - 1), i = R.value, a = t === "up" ? -1 : 1, o = Et(i, r, a, n) ?? Et(i, r - a, -a, n);
|
|
649
|
-
o != null && (v.hoveringIndex = o, F(() =>
|
|
651
|
+
o != null && (v.hoveringIndex = o, F(() => Q(w.value)));
|
|
650
652
|
}, Ot = (e) => {
|
|
651
|
-
let
|
|
652
|
-
switch (
|
|
653
|
-
case
|
|
653
|
+
let r = t(e), i = !0;
|
|
654
|
+
switch (r) {
|
|
655
|
+
case n.up:
|
|
654
656
|
Tt("prev");
|
|
655
657
|
break;
|
|
656
|
-
case
|
|
658
|
+
case n.down:
|
|
657
659
|
Tt("next");
|
|
658
660
|
break;
|
|
659
|
-
case
|
|
660
|
-
case
|
|
661
|
-
|
|
661
|
+
case n.enter:
|
|
662
|
+
case n.numpadEnter:
|
|
663
|
+
ke.value || bt();
|
|
662
664
|
break;
|
|
663
|
-
case
|
|
665
|
+
case n.esc:
|
|
664
666
|
vt();
|
|
665
667
|
break;
|
|
666
|
-
case
|
|
667
|
-
|
|
668
|
+
case n.backspace:
|
|
669
|
+
i = !1, ot(e);
|
|
668
670
|
return;
|
|
669
|
-
case
|
|
670
|
-
if (!
|
|
671
|
+
case n.home:
|
|
672
|
+
if (!C.value) return;
|
|
671
673
|
Dt(0, "down");
|
|
672
674
|
break;
|
|
673
|
-
case
|
|
674
|
-
if (!
|
|
675
|
+
case n.end:
|
|
676
|
+
if (!C.value) return;
|
|
675
677
|
Dt(v.options.size - 1, "up");
|
|
676
678
|
break;
|
|
677
|
-
case
|
|
678
|
-
if (!
|
|
679
|
+
case n.pageUp:
|
|
680
|
+
if (!C.value) return;
|
|
679
681
|
Dt(v.hoveringIndex - 10, "up");
|
|
680
682
|
break;
|
|
681
|
-
case
|
|
682
|
-
if (!
|
|
683
|
+
case n.pageDown:
|
|
684
|
+
if (!C.value) return;
|
|
683
685
|
Dt(v.hoveringIndex + 10, "down");
|
|
684
686
|
break;
|
|
685
687
|
default:
|
|
686
|
-
|
|
688
|
+
i = !1;
|
|
687
689
|
break;
|
|
688
690
|
}
|
|
689
|
-
|
|
691
|
+
i && (e.preventDefault(), e.stopPropagation());
|
|
690
692
|
}, kt = () => {
|
|
691
693
|
if (!y.value) return 0;
|
|
692
694
|
let e = window.getComputedStyle(y.value);
|
|
693
695
|
return Number.parseFloat(e.gap || "6px");
|
|
694
|
-
}, At =
|
|
696
|
+
}, At = O(() => {
|
|
695
697
|
let t = kt(), n = e.filterable ? t + 11 : 0;
|
|
696
|
-
return { maxWidth: `${
|
|
697
|
-
}), jt =
|
|
698
|
-
|
|
698
|
+
return { maxWidth: `${xe.value && e.maxCollapseTags === 1 ? v.selectionWidth - v.collapseItemWidth - t - n : v.selectionWidth - n}px` };
|
|
699
|
+
}), jt = O(() => ({ maxWidth: `${v.selectionWidth}px` })), Mt = (e) => {
|
|
700
|
+
i("popup-scroll", e);
|
|
699
701
|
};
|
|
700
|
-
_(y, Xe), _(
|
|
702
|
+
_(y, Xe), _(D, J), _(be, Y), _(xe, q);
|
|
701
703
|
let Nt;
|
|
702
704
|
return K(() => He.value, (e) => {
|
|
703
|
-
e ? Nt = _(
|
|
705
|
+
e ? Nt = _(_e, J).stop : (Nt == null || Nt(), Nt = void 0), i("visible-change", e);
|
|
704
706
|
}), ze(() => {
|
|
705
707
|
qe();
|
|
706
708
|
}), {
|
|
707
|
-
inputId:
|
|
708
|
-
contentId:
|
|
709
|
+
inputId: Ee,
|
|
710
|
+
contentId: m,
|
|
709
711
|
nsSelect: h,
|
|
710
712
|
nsInput: g,
|
|
711
713
|
states: v,
|
|
712
|
-
isFocused:
|
|
713
|
-
expanded:
|
|
714
|
+
isFocused: k,
|
|
715
|
+
expanded: C,
|
|
714
716
|
optionsArray: R,
|
|
715
|
-
hoverOption:
|
|
717
|
+
hoverOption: w,
|
|
716
718
|
selectSize: H,
|
|
717
719
|
filteredOptionsCount: L,
|
|
718
720
|
updateTooltip: J,
|
|
719
721
|
updateTagTooltip: Y,
|
|
720
722
|
debouncedOnInputChange: et,
|
|
721
723
|
onInput: $e,
|
|
722
|
-
deletePrevTag:
|
|
723
|
-
deleteTag:
|
|
724
|
-
deleteSelected:
|
|
725
|
-
handleOptionSelect:
|
|
726
|
-
scrollToOption:
|
|
727
|
-
hasModelValue:
|
|
724
|
+
deletePrevTag: ot,
|
|
725
|
+
deleteTag: st,
|
|
726
|
+
deleteSelected: ct,
|
|
727
|
+
handleOptionSelect: lt,
|
|
728
|
+
scrollToOption: Q,
|
|
729
|
+
hasModelValue: j,
|
|
728
730
|
shouldShowPlaceholder: Ue,
|
|
729
731
|
currentPlaceholder: We,
|
|
730
732
|
mouseEnterEventName: W,
|
|
731
|
-
needStatusIcon:
|
|
732
|
-
showClearBtn:
|
|
733
|
-
iconComponent:
|
|
734
|
-
iconReverse:
|
|
733
|
+
needStatusIcon: M,
|
|
734
|
+
showClearBtn: Pe,
|
|
735
|
+
iconComponent: N,
|
|
736
|
+
iconReverse: Fe,
|
|
735
737
|
validateState: P,
|
|
736
738
|
validateIcon: Ie,
|
|
737
739
|
showNewOption: Be,
|
|
738
740
|
updateOptions: V,
|
|
739
741
|
collapseTagSize: U,
|
|
740
742
|
setSelected: qe,
|
|
741
|
-
selectDisabled:
|
|
743
|
+
selectDisabled: Ne,
|
|
742
744
|
emptyText: I,
|
|
743
|
-
handleCompositionStart:
|
|
744
|
-
handleCompositionUpdate:
|
|
745
|
-
handleCompositionEnd:
|
|
745
|
+
handleCompositionStart: Ae,
|
|
746
|
+
handleCompositionUpdate: je,
|
|
747
|
+
handleCompositionEnd: Me,
|
|
746
748
|
handleKeydown: Ot,
|
|
747
749
|
onOptionCreate: dt,
|
|
748
750
|
onOptionDestroy: ft,
|
|
@@ -764,34 +766,34 @@ var bt = /* @__PURE__ */ x(vt, [["render", yt]]), xt = (e, o) => {
|
|
|
764
766
|
tagStyle: At,
|
|
765
767
|
collapseTagStyle: jt,
|
|
766
768
|
popperRef: pt,
|
|
767
|
-
inputRef:
|
|
769
|
+
inputRef: S,
|
|
768
770
|
tooltipRef: b,
|
|
769
|
-
tagTooltipRef:
|
|
771
|
+
tagTooltipRef: x,
|
|
770
772
|
prefixRef: ue,
|
|
771
|
-
suffixRef:
|
|
773
|
+
suffixRef: de,
|
|
772
774
|
selectRef: se,
|
|
773
|
-
wrapperRef:
|
|
775
|
+
wrapperRef: D,
|
|
774
776
|
selectionRef: y,
|
|
775
|
-
scrollbarRef:
|
|
776
|
-
menuRef:
|
|
777
|
-
tagMenuRef:
|
|
778
|
-
collapseItemRef:
|
|
777
|
+
scrollbarRef: Se,
|
|
778
|
+
menuRef: _e,
|
|
779
|
+
tagMenuRef: be,
|
|
780
|
+
collapseItemRef: xe
|
|
779
781
|
};
|
|
780
|
-
}, St =
|
|
782
|
+
}, St = Fe({
|
|
781
783
|
name: "ElOptions",
|
|
782
|
-
setup(
|
|
783
|
-
let
|
|
784
|
+
setup(e, { slots: t }) {
|
|
785
|
+
let n = Ie(ot), r = [];
|
|
784
786
|
return () => {
|
|
785
|
-
var
|
|
786
|
-
let
|
|
787
|
-
function
|
|
788
|
-
|
|
789
|
-
var
|
|
790
|
-
let
|
|
791
|
-
|
|
787
|
+
var e, i;
|
|
788
|
+
let a = (e = t.default) == null ? void 0 : e.call(t), o = [];
|
|
789
|
+
function s(e) {
|
|
790
|
+
l(e) && e.forEach((e) => {
|
|
791
|
+
var t, n, r, i;
|
|
792
|
+
let a = (t = (e == null ? void 0 : e.type) || {}) == null ? void 0 : t.name;
|
|
793
|
+
a === "ElOptionGroup" ? s(!c(e.children) && !l(e.children) && p((n = e.children) == null ? void 0 : n.default) ? (r = e.children) == null ? void 0 : r.default() : e.children) : a === "ElOption" ? o.push((i = e.props) == null ? void 0 : i.value) : l(e.children) && s(e.children);
|
|
792
794
|
});
|
|
793
795
|
}
|
|
794
|
-
return
|
|
796
|
+
return a.length && s((i = a[0]) == null ? void 0 : i.children), Z(o, r) || (r = o, n && (n.states.optionValues = o)), a;
|
|
795
797
|
};
|
|
796
798
|
}
|
|
797
799
|
}), Ct = "ElSelect", wt = /* @__PURE__ */ new WeakMap(), Tt = (e) => (...t) => {
|
|
@@ -811,7 +813,7 @@ var bt = /* @__PURE__ */ x(vt, [["render", yt]]), xt = (e, o) => {
|
|
|
811
813
|
handler: Tt(e),
|
|
812
814
|
count: 0
|
|
813
815
|
}, wt.set(e, t)), t;
|
|
814
|
-
}, Dt =
|
|
816
|
+
}, Dt = Fe({
|
|
815
817
|
name: Ct,
|
|
816
818
|
componentName: Ct,
|
|
817
819
|
components: {
|
|
@@ -819,16 +821,16 @@ var bt = /* @__PURE__ */ x(vt, [["render", yt]]), xt = (e, o) => {
|
|
|
819
821
|
ElOption: $,
|
|
820
822
|
ElOptions: St,
|
|
821
823
|
ElOptionGroup: _t,
|
|
822
|
-
ElTag:
|
|
823
|
-
ElScrollbar:
|
|
824
|
-
ElTooltip:
|
|
825
|
-
ElIcon:
|
|
824
|
+
ElTag: De,
|
|
825
|
+
ElScrollbar: Te,
|
|
826
|
+
ElTooltip: de,
|
|
827
|
+
ElIcon: C
|
|
826
828
|
},
|
|
827
|
-
directives: { ClickOutside:
|
|
828
|
-
props:
|
|
829
|
+
directives: { ClickOutside: Ee },
|
|
830
|
+
props: lt,
|
|
829
831
|
emits: [
|
|
830
|
-
|
|
831
|
-
|
|
832
|
+
a,
|
|
833
|
+
o,
|
|
832
834
|
"remove-tag",
|
|
833
835
|
"clear",
|
|
834
836
|
"visible-change",
|
|
@@ -836,60 +838,60 @@ var bt = /* @__PURE__ */ x(vt, [["render", yt]]), xt = (e, o) => {
|
|
|
836
838
|
"blur",
|
|
837
839
|
"popup-scroll"
|
|
838
840
|
],
|
|
839
|
-
setup(e, { emit:
|
|
840
|
-
let
|
|
841
|
-
|
|
842
|
-
let
|
|
843
|
-
let { modelValue:
|
|
844
|
-
return t
|
|
845
|
-
}),
|
|
841
|
+
setup(e, { emit: t, slots: n }) {
|
|
842
|
+
let r = P(), i = Et(r.appContext);
|
|
843
|
+
i.count += 1, r.appContext.config.warnHandler = i.handler;
|
|
844
|
+
let a = O(() => {
|
|
845
|
+
let { modelValue: t, multiple: n } = e, r = n ? [] : void 0;
|
|
846
|
+
return l(t) ? n ? t : r : n ? r : t;
|
|
847
|
+
}), o = Ve({
|
|
846
848
|
...G(e),
|
|
847
|
-
modelValue:
|
|
848
|
-
}),
|
|
849
|
+
modelValue: a
|
|
850
|
+
}), s = xt(o, t), { calculatorRef: c, inputStyle: u } = it(), { getLabel: f, getValue: p, getOptions: m, getDisabled: h } = ct(e), ee = (e) => ({
|
|
849
851
|
label: f(e),
|
|
850
852
|
value: p(e),
|
|
851
853
|
disabled: h(e)
|
|
852
854
|
}), te = (e) => e.reduce((e, t) => (e.push(t), t.children && t.children.length > 0 && e.push(...te(t.children)), e), []), ne = (e) => {
|
|
853
|
-
|
|
854
|
-
if (
|
|
855
|
+
_e(e || []).forEach((e) => {
|
|
856
|
+
if (d(e) && (e.type.name === "ElOption" || e.type.name === "ElTree")) {
|
|
855
857
|
var t;
|
|
856
858
|
let n = e.type.name;
|
|
857
859
|
if (n === "ElTree") te(((t = e.props) == null ? void 0 : t.data) || []).forEach((e) => {
|
|
858
|
-
e.currentLabel = e.label ?? (
|
|
860
|
+
e.currentLabel = e.label ?? (d(e.value) ? "" : e.value), s.onOptionCreate(e);
|
|
859
861
|
});
|
|
860
862
|
else if (n === "ElOption") {
|
|
861
863
|
let t = { ...e.props };
|
|
862
|
-
t.currentLabel = t.label ?? (
|
|
864
|
+
t.currentLabel = t.label ?? (d(t.value) ? "" : t.value), s.onOptionCreate(t);
|
|
863
865
|
}
|
|
864
866
|
}
|
|
865
867
|
});
|
|
866
868
|
};
|
|
867
869
|
K(() => {
|
|
868
870
|
var t;
|
|
869
|
-
return [e.persistent ||
|
|
871
|
+
return [e.persistent || s.expanded.value || !n.default || (t = n.default) == null ? void 0 : t.call(n), a.value];
|
|
870
872
|
}, () => {
|
|
871
873
|
var t;
|
|
872
|
-
e.persistent ||
|
|
873
|
-
}, { immediate: !0 }), Be(
|
|
874
|
-
props:
|
|
875
|
-
states:
|
|
876
|
-
selectRef:
|
|
877
|
-
optionsArray:
|
|
878
|
-
setSelected:
|
|
879
|
-
handleOptionSelect:
|
|
880
|
-
onOptionCreate:
|
|
881
|
-
onOptionDestroy:
|
|
874
|
+
e.persistent || s.expanded.value || n.default && (s.states.options.clear(), ne((t = n.default) == null ? void 0 : t.call(n)));
|
|
875
|
+
}, { immediate: !0 }), Be(ot, Ve({
|
|
876
|
+
props: o,
|
|
877
|
+
states: s.states,
|
|
878
|
+
selectRef: s.selectRef,
|
|
879
|
+
optionsArray: s.optionsArray,
|
|
880
|
+
setSelected: s.setSelected,
|
|
881
|
+
handleOptionSelect: s.handleOptionSelect,
|
|
882
|
+
onOptionCreate: s.onOptionCreate,
|
|
883
|
+
onOptionDestroy: s.onOptionDestroy
|
|
882
884
|
}));
|
|
883
|
-
let re =
|
|
885
|
+
let re = O(() => e.multiple ? s.states.selected.map((e) => e.currentLabel) : s.states.selectedLabel);
|
|
884
886
|
return R(() => {
|
|
885
|
-
let e = wt.get(
|
|
886
|
-
e && (--e.count, e.count <= 0 && (
|
|
887
|
+
let e = wt.get(r.appContext);
|
|
888
|
+
e && (--e.count, e.count <= 0 && (r.appContext.config.warnHandler = e.originalWarnHandler, wt.delete(r.appContext)));
|
|
887
889
|
}), {
|
|
888
|
-
...
|
|
889
|
-
modelValue:
|
|
890
|
+
...s,
|
|
891
|
+
modelValue: a,
|
|
890
892
|
selectedLabel: re,
|
|
891
|
-
calculatorRef:
|
|
892
|
-
inputStyle:
|
|
893
|
+
calculatorRef: c,
|
|
894
|
+
inputStyle: u,
|
|
893
895
|
getLabel: f,
|
|
894
896
|
getValue: p,
|
|
895
897
|
getOptions: m,
|
|
@@ -912,10 +914,10 @@ var bt = /* @__PURE__ */ x(vt, [["render", yt]]), xt = (e, o) => {
|
|
|
912
914
|
], kt = ["textContent"], At = { key: 1 };
|
|
913
915
|
function jt(e, t, n, r, i, a) {
|
|
914
916
|
let o = U("el-tag"), s = U("el-tooltip"), c = U("el-icon"), l = U("el-option"), u = U("el-option-group"), d = U("el-options"), f = U("el-scrollbar"), p = U("el-select-menu"), m = He("click-outside");
|
|
915
|
-
return J((z(),
|
|
917
|
+
return J((z(), j("div", Re({
|
|
916
918
|
ref: "selectRef",
|
|
917
919
|
class: [e.nsSelect.b(), e.nsSelect.m(e.selectSize)]
|
|
918
|
-
}, { [Ge(e.mouseEnterEventName)]: t[11] || (t[11] = (t) => e.states.inputHovering = !0) }, { onMouseleave: t[12] || (t[12] = (t) => e.states.inputHovering = !1) }), [
|
|
920
|
+
}, { [Ge(e.mouseEnterEventName)]: t[11] || (t[11] = (t) => e.states.inputHovering = !0) }, { onMouseleave: t[12] || (t[12] = (t) => e.states.inputHovering = !1) }), [N(s, {
|
|
919
921
|
ref: "tooltipRef",
|
|
920
922
|
visible: e.dropdownMenuVisible,
|
|
921
923
|
placement: e.placement,
|
|
@@ -939,7 +941,7 @@ function jt(e, t, n, r, i, a) {
|
|
|
939
941
|
}, {
|
|
940
942
|
default: q(() => {
|
|
941
943
|
var n;
|
|
942
|
-
return [
|
|
944
|
+
return [M("div", {
|
|
943
945
|
ref: "wrapperRef",
|
|
944
946
|
class: I([
|
|
945
947
|
e.nsSelect.e("wrapper"),
|
|
@@ -950,12 +952,12 @@ function jt(e, t, n, r, i, a) {
|
|
|
950
952
|
]),
|
|
951
953
|
onClick: t[7] || (t[7] = Y((...t) => e.toggleMenu && e.toggleMenu(...t), ["prevent"]))
|
|
952
954
|
}, [
|
|
953
|
-
e.$slots.prefix ? (z(),
|
|
955
|
+
e.$slots.prefix ? (z(), j("div", {
|
|
954
956
|
key: 0,
|
|
955
957
|
ref: "prefixRef",
|
|
956
958
|
class: I(e.nsSelect.e("prefix"))
|
|
957
|
-
}, [H(e.$slots, "prefix")], 2)) :
|
|
958
|
-
|
|
959
|
+
}, [H(e.$slots, "prefix")], 2)) : A("v-if", !0),
|
|
960
|
+
M("div", {
|
|
959
961
|
ref: "selectionRef",
|
|
960
962
|
class: I([e.nsSelect.e("selection"), e.nsSelect.is("near", e.multiple && !e.$slots.prefix && !!e.states.selected.length)])
|
|
961
963
|
}, [
|
|
@@ -966,10 +968,10 @@ function jt(e, t, n, r, i, a) {
|
|
|
966
968
|
selectDisabled: e.selectDisabled
|
|
967
969
|
}, () => {
|
|
968
970
|
var t, n, r, i, a, c, l, u, d, f, p, m, h;
|
|
969
|
-
return [(z(!0),
|
|
971
|
+
return [(z(!0), j(D, null, V(e.showTagList, (t) => (z(), j("div", {
|
|
970
972
|
key: e.getValueKey(t),
|
|
971
973
|
class: I(e.nsSelect.e("selected-item"))
|
|
972
|
-
}, [
|
|
974
|
+
}, [N(o, {
|
|
973
975
|
closable: !e.selectDisabled && !t.isDisabled,
|
|
974
976
|
size: e.collapseTagSize,
|
|
975
977
|
type: e.tagType,
|
|
@@ -978,11 +980,11 @@ function jt(e, t, n, r, i, a) {
|
|
|
978
980
|
style: L(e.tagStyle),
|
|
979
981
|
onClose: (n) => e.deleteTag(n, t)
|
|
980
982
|
}, {
|
|
981
|
-
default: q(() => [
|
|
983
|
+
default: q(() => [M("span", { class: I(e.nsSelect.e("tags-text")) }, [H(e.$slots, "label", {
|
|
982
984
|
index: t.index,
|
|
983
985
|
label: t.currentLabel,
|
|
984
986
|
value: t.value
|
|
985
|
-
}, () => [
|
|
987
|
+
}, () => [Pe(W(t.currentLabel), 1)])], 2)]),
|
|
986
988
|
_: 2
|
|
987
989
|
}, 1032, [
|
|
988
990
|
"closable",
|
|
@@ -991,7 +993,7 @@ function jt(e, t, n, r, i, a) {
|
|
|
991
993
|
"effect",
|
|
992
994
|
"style",
|
|
993
995
|
"onClose"
|
|
994
|
-
])], 2))), 128)), e.collapseTags && e.states.selected.length > e.maxCollapseTags ? (z(),
|
|
996
|
+
])], 2))), 128)), e.collapseTags && e.states.selected.length > e.maxCollapseTags ? (z(), k(s, {
|
|
995
997
|
key: 0,
|
|
996
998
|
ref: "tagTooltipRef",
|
|
997
999
|
disabled: e.dropdownMenuVisible || !e.collapseTagsTooltip,
|
|
@@ -1014,10 +1016,10 @@ function jt(e, t, n, r, i, a) {
|
|
|
1014
1016
|
"auto-close": (m = e.tagTooltip) == null ? void 0 : m.autoClose,
|
|
1015
1017
|
offset: (h = e.tagTooltip) == null ? void 0 : h.offset
|
|
1016
1018
|
}, {
|
|
1017
|
-
default: q(() => [
|
|
1019
|
+
default: q(() => [M("div", {
|
|
1018
1020
|
ref: "collapseItemRef",
|
|
1019
1021
|
class: I(e.nsSelect.e("selected-item"))
|
|
1020
|
-
}, [
|
|
1022
|
+
}, [N(o, {
|
|
1021
1023
|
closable: !1,
|
|
1022
1024
|
size: e.collapseTagSize,
|
|
1023
1025
|
type: e.tagType,
|
|
@@ -1025,7 +1027,7 @@ function jt(e, t, n, r, i, a) {
|
|
|
1025
1027
|
"disable-transitions": "",
|
|
1026
1028
|
style: L(e.collapseTagStyle)
|
|
1027
1029
|
}, {
|
|
1028
|
-
default: q(() => [
|
|
1030
|
+
default: q(() => [M("span", { class: I(e.nsSelect.e("tags-text")) }, " + " + W(e.states.selected.length - e.maxCollapseTags), 3)]),
|
|
1029
1031
|
_: 1
|
|
1030
1032
|
}, 8, [
|
|
1031
1033
|
"size",
|
|
@@ -1033,13 +1035,13 @@ function jt(e, t, n, r, i, a) {
|
|
|
1033
1035
|
"effect",
|
|
1034
1036
|
"style"
|
|
1035
1037
|
])], 2)]),
|
|
1036
|
-
content: q(() => [
|
|
1038
|
+
content: q(() => [M("div", {
|
|
1037
1039
|
ref: "tagMenuRef",
|
|
1038
1040
|
class: I(e.nsSelect.e("selection"))
|
|
1039
|
-
}, [(z(!0),
|
|
1041
|
+
}, [(z(!0), j(D, null, V(e.collapseTagList, (t) => (z(), j("div", {
|
|
1040
1042
|
key: e.getValueKey(t),
|
|
1041
1043
|
class: I(e.nsSelect.e("selected-item"))
|
|
1042
|
-
}, [
|
|
1044
|
+
}, [N(o, {
|
|
1043
1045
|
class: "in-tooltip",
|
|
1044
1046
|
closable: !e.selectDisabled && !t.isDisabled,
|
|
1045
1047
|
size: e.collapseTagSize,
|
|
@@ -1048,11 +1050,11 @@ function jt(e, t, n, r, i, a) {
|
|
|
1048
1050
|
"disable-transitions": "",
|
|
1049
1051
|
onClose: (n) => e.deleteTag(n, t)
|
|
1050
1052
|
}, {
|
|
1051
|
-
default: q(() => [
|
|
1053
|
+
default: q(() => [M("span", { class: I(e.nsSelect.e("tags-text")) }, [H(e.$slots, "label", {
|
|
1052
1054
|
index: t.index,
|
|
1053
1055
|
label: t.currentLabel,
|
|
1054
1056
|
value: t.value
|
|
1055
|
-
}, () => [
|
|
1057
|
+
}, () => [Pe(W(t.currentLabel), 1)])], 2)]),
|
|
1056
1058
|
_: 2
|
|
1057
1059
|
}, 1032, [
|
|
1058
1060
|
"closable",
|
|
@@ -1077,13 +1079,13 @@ function jt(e, t, n, r, i, a) {
|
|
|
1077
1079
|
"hide-after",
|
|
1078
1080
|
"auto-close",
|
|
1079
1081
|
"offset"
|
|
1080
|
-
])) :
|
|
1081
|
-
}) :
|
|
1082
|
-
|
|
1082
|
+
])) : A("v-if", !0)];
|
|
1083
|
+
}) : A("v-if", !0),
|
|
1084
|
+
M("div", { class: I([
|
|
1083
1085
|
e.nsSelect.e("selected-item"),
|
|
1084
1086
|
e.nsSelect.e("input-wrapper"),
|
|
1085
1087
|
e.nsSelect.is("hidden", !e.filterable || e.selectDisabled || !e.states.inputValue && !e.isFocused)
|
|
1086
|
-
]) }, [
|
|
1088
|
+
]) }, [M("input", {
|
|
1087
1089
|
id: e.inputId,
|
|
1088
1090
|
ref: "inputRef",
|
|
1089
1091
|
value: e.states.inputValue,
|
|
@@ -1110,14 +1112,14 @@ function jt(e, t, n, r, i, a) {
|
|
|
1110
1112
|
onInput: t[4] || (t[4] = (...t) => e.onInput && e.onInput(...t)),
|
|
1111
1113
|
onChange: t[5] || (t[5] = Y(() => {}, ["stop"])),
|
|
1112
1114
|
onClick: t[6] || (t[6] = Y((...t) => e.toggleMenu && e.toggleMenu(...t), ["stop"]))
|
|
1113
|
-
}, null, 46, Ot), e.filterable ? (z(),
|
|
1115
|
+
}, null, 46, Ot), e.filterable ? (z(), j("span", {
|
|
1114
1116
|
key: 0,
|
|
1115
1117
|
ref: "calculatorRef",
|
|
1116
1118
|
"aria-hidden": "true",
|
|
1117
1119
|
class: I(e.nsSelect.e("input-calculator")),
|
|
1118
1120
|
textContent: W(e.states.inputValue)
|
|
1119
|
-
}, null, 10, kt)) :
|
|
1120
|
-
e.shouldShowPlaceholder ? (z(),
|
|
1121
|
+
}, null, 10, kt)) : A("v-if", !0)], 2),
|
|
1122
|
+
e.shouldShowPlaceholder ? (z(), j("div", {
|
|
1121
1123
|
key: 1,
|
|
1122
1124
|
class: I([
|
|
1123
1125
|
e.nsSelect.e("selected-item"),
|
|
@@ -1129,13 +1131,13 @@ function jt(e, t, n, r, i, a) {
|
|
|
1129
1131
|
index: e.getOption(e.modelValue).index,
|
|
1130
1132
|
label: e.currentPlaceholder,
|
|
1131
1133
|
value: e.modelValue
|
|
1132
|
-
}, () => [
|
|
1134
|
+
}, () => [M("span", null, W(e.currentPlaceholder), 1)]) : (z(), j("span", At, W(e.currentPlaceholder), 1))], 2)) : A("v-if", !0)
|
|
1133
1135
|
], 2),
|
|
1134
|
-
|
|
1136
|
+
M("div", {
|
|
1135
1137
|
ref: "suffixRef",
|
|
1136
1138
|
class: I(e.nsSelect.e("suffix"))
|
|
1137
1139
|
}, [
|
|
1138
|
-
e.iconComponent && !e.showClearBtn ? (z(),
|
|
1140
|
+
e.iconComponent && !e.showClearBtn ? (z(), k(c, {
|
|
1139
1141
|
key: 0,
|
|
1140
1142
|
class: I([
|
|
1141
1143
|
e.nsSelect.e("caret"),
|
|
@@ -1143,10 +1145,10 @@ function jt(e, t, n, r, i, a) {
|
|
|
1143
1145
|
e.iconReverse
|
|
1144
1146
|
])
|
|
1145
1147
|
}, {
|
|
1146
|
-
default: q(() => [(z(),
|
|
1148
|
+
default: q(() => [(z(), k(Ue(e.iconComponent)))]),
|
|
1147
1149
|
_: 1
|
|
1148
|
-
}, 8, ["class"])) :
|
|
1149
|
-
e.showClearBtn && e.clearIcon ? (z(),
|
|
1150
|
+
}, 8, ["class"])) : A("v-if", !0),
|
|
1151
|
+
e.showClearBtn && e.clearIcon ? (z(), k(c, {
|
|
1150
1152
|
key: 1,
|
|
1151
1153
|
class: I([
|
|
1152
1154
|
e.nsSelect.e("caret"),
|
|
@@ -1155,10 +1157,10 @@ function jt(e, t, n, r, i, a) {
|
|
|
1155
1157
|
]),
|
|
1156
1158
|
onClick: e.handleClearClick
|
|
1157
1159
|
}, {
|
|
1158
|
-
default: q(() => [(z(),
|
|
1160
|
+
default: q(() => [(z(), k(Ue(e.clearIcon)))]),
|
|
1159
1161
|
_: 1
|
|
1160
|
-
}, 8, ["class", "onClick"])) :
|
|
1161
|
-
e.validateState && e.validateIcon && e.needStatusIcon ? (z(),
|
|
1162
|
+
}, 8, ["class", "onClick"])) : A("v-if", !0),
|
|
1163
|
+
e.validateState && e.validateIcon && e.needStatusIcon ? (z(), k(c, {
|
|
1162
1164
|
key: 2,
|
|
1163
1165
|
class: I([
|
|
1164
1166
|
e.nsInput.e("icon"),
|
|
@@ -1166,20 +1168,20 @@ function jt(e, t, n, r, i, a) {
|
|
|
1166
1168
|
e.nsInput.is("loading", e.validateState === "validating")
|
|
1167
1169
|
])
|
|
1168
1170
|
}, {
|
|
1169
|
-
default: q(() => [(z(),
|
|
1171
|
+
default: q(() => [(z(), k(Ue(e.validateIcon)))]),
|
|
1170
1172
|
_: 1
|
|
1171
|
-
}, 8, ["class"])) :
|
|
1173
|
+
}, 8, ["class"])) : A("v-if", !0)
|
|
1172
1174
|
], 2)
|
|
1173
1175
|
], 2)];
|
|
1174
1176
|
}),
|
|
1175
|
-
content: q(() => [
|
|
1177
|
+
content: q(() => [N(p, { ref: "menuRef" }, {
|
|
1176
1178
|
default: q(() => [
|
|
1177
|
-
e.$slots.header ? (z(),
|
|
1179
|
+
e.$slots.header ? (z(), j("div", {
|
|
1178
1180
|
key: 0,
|
|
1179
1181
|
class: I(e.nsSelect.be("dropdown", "header")),
|
|
1180
1182
|
onClick: t[8] || (t[8] = Y(() => {}, ["stop"]))
|
|
1181
|
-
}, [H(e.$slots, "header")], 2)) :
|
|
1182
|
-
J(
|
|
1183
|
+
}, [H(e.$slots, "header")], 2)) : A("v-if", !0),
|
|
1184
|
+
J(N(f, {
|
|
1183
1185
|
id: e.contentId,
|
|
1184
1186
|
ref: "scrollbarRef",
|
|
1185
1187
|
tag: "ul",
|
|
@@ -1191,21 +1193,21 @@ function jt(e, t, n, r, i, a) {
|
|
|
1191
1193
|
"aria-orientation": "vertical",
|
|
1192
1194
|
onScroll: e.popupScroll
|
|
1193
1195
|
}, {
|
|
1194
|
-
default: q(() => [e.showNewOption ? (z(),
|
|
1196
|
+
default: q(() => [e.showNewOption ? (z(), k(l, {
|
|
1195
1197
|
key: 0,
|
|
1196
1198
|
value: e.states.inputValue,
|
|
1197
1199
|
created: !0
|
|
1198
|
-
}, null, 8, ["value"])) :
|
|
1199
|
-
default: q(() => [H(e.$slots, "default", {}, () => [(z(!0),
|
|
1200
|
+
}, null, 8, ["value"])) : A("v-if", !0), N(d, null, {
|
|
1201
|
+
default: q(() => [H(e.$slots, "default", {}, () => [(z(!0), j(D, null, V(e.options, (t, n) => {
|
|
1200
1202
|
var r;
|
|
1201
|
-
return z(),
|
|
1203
|
+
return z(), j(D, { key: n }, [(r = e.getOptions(t)) != null && r.length ? (z(), k(u, {
|
|
1202
1204
|
key: 0,
|
|
1203
1205
|
label: e.getLabel(t),
|
|
1204
1206
|
disabled: e.getDisabled(t)
|
|
1205
1207
|
}, {
|
|
1206
|
-
default: q(() => [(z(!0),
|
|
1208
|
+
default: q(() => [(z(!0), j(D, null, V(e.getOptions(t), (t) => (z(), k(l, Re({ key: e.getValue(t) }, { ref_for: !0 }, e.getOptionProps(t)), null, 16))), 128))]),
|
|
1207
1209
|
_: 2
|
|
1208
|
-
}, 1032, ["label", "disabled"])) : (z(),
|
|
1210
|
+
}, 1032, ["label", "disabled"])) : (z(), k(l, Re({
|
|
1209
1211
|
key: 1,
|
|
1210
1212
|
ref_for: !0
|
|
1211
1213
|
}, e.getOptionProps(t)), null, 16))], 64);
|
|
@@ -1221,18 +1223,18 @@ function jt(e, t, n, r, i, a) {
|
|
|
1221
1223
|
"aria-label",
|
|
1222
1224
|
"onScroll"
|
|
1223
1225
|
]), [[Xe, e.states.options.size > 0 && !e.loading]]),
|
|
1224
|
-
e.$slots.loading && e.loading ? (z(),
|
|
1226
|
+
e.$slots.loading && e.loading ? (z(), j("div", {
|
|
1225
1227
|
key: 1,
|
|
1226
1228
|
class: I(e.nsSelect.be("dropdown", "loading"))
|
|
1227
|
-
}, [H(e.$slots, "loading")], 2)) : e.loading || e.filteredOptionsCount === 0 ? (z(),
|
|
1229
|
+
}, [H(e.$slots, "loading")], 2)) : e.loading || e.filteredOptionsCount === 0 ? (z(), j("div", {
|
|
1228
1230
|
key: 2,
|
|
1229
1231
|
class: I(e.nsSelect.be("dropdown", "empty"))
|
|
1230
|
-
}, [H(e.$slots, "empty", {}, () => [
|
|
1231
|
-
e.$slots.footer ? (z(),
|
|
1232
|
+
}, [H(e.$slots, "empty", {}, () => [M("span", null, W(e.emptyText), 1)])], 2)) : A("v-if", !0),
|
|
1233
|
+
e.$slots.footer ? (z(), j("div", {
|
|
1232
1234
|
key: 3,
|
|
1233
1235
|
class: I(e.nsSelect.be("dropdown", "footer")),
|
|
1234
1236
|
onClick: t[9] || (t[9] = Y(() => {}, ["stop"]))
|
|
1235
|
-
}, [H(e.$slots, "footer")], 2)) :
|
|
1237
|
+
}, [H(e.$slots, "footer")], 2)) : A("v-if", !0)
|
|
1236
1238
|
]),
|
|
1237
1239
|
_: 3
|
|
1238
1240
|
}, 512)]),
|
|
@@ -1259,24 +1261,24 @@ function jt(e, t, n, r, i, a) {
|
|
|
1259
1261
|
]]);
|
|
1260
1262
|
}
|
|
1261
1263
|
//#endregion
|
|
1262
|
-
//#region node_modules/.pnpm/element-plus@2.13.
|
|
1263
|
-
var Mt =
|
|
1264
|
+
//#region node_modules/.pnpm/element-plus@2.13.6_typescr_b86181ecd25892dfea09546870d44c51/node_modules/element-plus/es/components/select/index.mjs
|
|
1265
|
+
var Mt = h(/* @__PURE__ */ x(Dt, [["render", jt]]), {
|
|
1264
1266
|
Option: $,
|
|
1265
1267
|
OptionGroup: _t
|
|
1266
1268
|
});
|
|
1267
|
-
|
|
1269
|
+
m($), m(_t);
|
|
1268
1270
|
//#endregion
|
|
1269
1271
|
//#region src/components/form/FormSelect.vue
|
|
1270
|
-
var Nt =
|
|
1272
|
+
var Nt = Ae(Mt).filter((e) => ![
|
|
1271
1273
|
"value",
|
|
1272
1274
|
"placeholder",
|
|
1273
1275
|
"disabled"
|
|
1274
1276
|
].includes(e)), Pt = {
|
|
1275
1277
|
name: "FormSelect",
|
|
1276
1278
|
mixins: [
|
|
1279
|
+
je,
|
|
1277
1280
|
Me,
|
|
1278
|
-
Ne
|
|
1279
|
-
Pe
|
|
1281
|
+
Ne
|
|
1280
1282
|
],
|
|
1281
1283
|
props: {
|
|
1282
1284
|
options: {
|
|
@@ -1333,8 +1335,8 @@ var Nt = je(Mt).filter((e) => ![
|
|
|
1333
1335
|
return "请选择";
|
|
1334
1336
|
},
|
|
1335
1337
|
inputProps() {
|
|
1336
|
-
return
|
|
1337
|
-
...
|
|
1338
|
+
return ke({
|
|
1339
|
+
...Oe(this.$attrs),
|
|
1338
1340
|
...this.$props
|
|
1339
1341
|
}, Nt);
|
|
1340
1342
|
},
|
|
@@ -1419,11 +1421,11 @@ var Nt = je(Mt).filter((e) => ![
|
|
|
1419
1421
|
};
|
|
1420
1422
|
function Lt(e, t, n, r, i, a) {
|
|
1421
1423
|
let o = U("ElOption"), s = U("ElSelect"), c = U("FormItem");
|
|
1422
|
-
return z(),
|
|
1424
|
+
return z(), k(c, Re(e.formItemProps, {
|
|
1423
1425
|
rules: e.computeRules,
|
|
1424
1426
|
disabled: e.inputDisabled
|
|
1425
1427
|
}), {
|
|
1426
|
-
default: q(() => [
|
|
1428
|
+
default: q(() => [N(s, Re({
|
|
1427
1429
|
value: i.innerValue,
|
|
1428
1430
|
filterable: n.filterable || !!n.year,
|
|
1429
1431
|
placeholder: e.inputDisabled ? "--" : e.computePlaceholder,
|
|
@@ -1438,10 +1440,10 @@ function Lt(e, t, n, r, i, a) {
|
|
|
1438
1440
|
clearable: "",
|
|
1439
1441
|
onClear: a.reloadOptions
|
|
1440
1442
|
}, Ke(e.listeners), { onInput: a.emitInput }), {
|
|
1441
|
-
default: q(() => [H(e.$slots, "default", {}, () => [(z(!0),
|
|
1443
|
+
default: q(() => [H(e.$slots, "default", {}, () => [(z(!0), j(D, null, V(a.innerOptions, (t) => H(e.$slots, "option", {
|
|
1442
1444
|
value: t[n.props.value],
|
|
1443
1445
|
label: t[n.props.label]
|
|
1444
|
-
}, () => [(z(),
|
|
1446
|
+
}, () => [(z(), k(o, {
|
|
1445
1447
|
key: t[n.props.value],
|
|
1446
1448
|
value: t[n.props.value],
|
|
1447
1449
|
label: t[n.props.label]
|
|
@@ -1460,14 +1462,14 @@ function Lt(e, t, n, r, i, a) {
|
|
|
1460
1462
|
"remote-method",
|
|
1461
1463
|
"onClear",
|
|
1462
1464
|
"onInput"
|
|
1463
|
-
]), e.$slots.warn ? (z(),
|
|
1464
|
-
error: q(({ error: t }) => [e.$slots.error && e.$slots.error(t) ? (z(),
|
|
1465
|
+
]), e.$slots.warn ? (z(), j("div", Ft, [H(e.$slots, "warn")])) : A("v-if", !0)]),
|
|
1466
|
+
error: q(({ error: t }) => [e.$slots.error && e.$slots.error(t) ? (z(), j("div", It, [H(e.$slots, "error", { error: t }, () => [Pe(W(t), 1)])])) : A("v-if", !0)]),
|
|
1465
1467
|
label: q(() => [H(e.$slots, "label")]),
|
|
1466
1468
|
below: q(() => [H(e.$slots, "below")]),
|
|
1467
1469
|
tips: q(() => [H(e.$slots, "tips")]),
|
|
1468
1470
|
_: 3
|
|
1469
1471
|
}, 16, ["rules", "disabled"]);
|
|
1470
1472
|
}
|
|
1471
|
-
var Rt = /* @__PURE__ */
|
|
1473
|
+
var Rt = /* @__PURE__ */ e(Pt, [["render", Lt]]);
|
|
1472
1474
|
//#endregion
|
|
1473
1475
|
export { Rt as t };
|