@web-utils/component 5.0.0-beta01 → 5.0.0-beta02
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 +19 -19
- package/chat/index.mjs +7 -7
- package/chunks/{EditableTree.C_IJBL5b.mjs → EditableTree.D0ByhRTi.mjs} +132 -132
- package/chunks/{ElementBaseInfo.DyuFR6fE.mjs → ElementBaseInfo.B3pY8TkD.mjs} +2 -2
- package/chunks/ElementDialog.DNsDHdQS.mjs +251 -0
- package/chunks/{ElementForm.ButuYDPA.mjs → ElementForm.D_lXbe--.mjs} +23 -23
- package/chunks/{ElementListeners.Dg3e_dmp.mjs → ElementListeners.Cufwd4bp.mjs} +19 -19
- package/chunks/{ElementMultiInstance.Dmi79FqA.mjs → ElementMultiInstance.BhY8NY2z.mjs} +1 -1
- package/chunks/{ElementOtherConfig.C2AddGTp.mjs → ElementOtherConfig.DX1ZJ9w2.mjs} +1 -1
- package/chunks/{ElementProperties.CfV8UF7L.mjs → ElementProperties.BRafADXp.mjs} +7 -7
- package/chunks/{ElementTaskConfig.Bn7ycGGn.mjs → ElementTaskConfig.B6pqRir_.mjs} +4 -4
- package/chunks/{FlowCondition.C6PdqOAW.mjs → FlowCondition.Dvwji23j.mjs} +1 -1
- package/chunks/{FlowDesigner.uJYFfKpR.mjs → FlowDesigner.LL-vXDIE.mjs} +12 -13
- package/chunks/{FormBlock.BEENc22F.mjs → FormBlock.Co7l6USP.mjs} +8 -8
- package/chunks/{FormCascader.CaM-oEhv.mjs → FormCascader.DMY3uNc8.mjs} +352 -351
- package/chunks/{FormInputTime.Bg3UIP8H.mjs → FormInputTime.BC4FfWwY.mjs} +186 -185
- package/chunks/{FormItem.H9OOvNzT.mjs → FormItem.BSXI2cZU.mjs} +12 -13
- package/chunks/{FormItemGroup.D9eRy-cZ.mjs → FormItemGroup.D2Htta7J.mjs} +11 -9
- package/chunks/{FormSelect.CanodoAI.mjs → FormSelect.CY0K-izg.mjs} +369 -368
- package/chunks/{FormSwitch.DTqdaFjv.mjs → FormSwitch.DLqFXaFF.mjs} +34 -33
- package/chunks/{FormTemp.DiI5EfgK.mjs → FormTemp.PJFfNRls.mjs} +2 -2
- package/chunks/{FyCurd.DMj1dMK9.mjs → FyCurd.me083T8V.mjs} +10 -10
- package/chunks/{FyForm.vgR8ujEF.mjs → FyForm.vVp8aVtj.mjs} +17 -15
- package/chunks/{FyFormDesign.DEWT6LsX.mjs → FyFormDesign.BCxVyiWY.mjs} +87 -87
- package/chunks/{FyUpload.B2QKfTxF.mjs → FyUpload.CA7Gfa6Q.mjs} +2 -2
- package/chunks/ImagePreview.ByEWJYdu.mjs +639 -0
- package/chunks/{Keyboard.ItiRy7Gb.mjs → Keyboard.4hi7CjGc.mjs} +2 -2
- package/chunks/{MonacoEditor.Bd5Kui-Y.mjs → MonacoEditor.B7BUQwb7.mjs} +65 -64
- package/chunks/{PageableTable.Bujb0NUx.mjs → PageableTable.Ba3XSbZ5.mjs} +83 -81
- package/chunks/{SignalAndMessage.CYVzlFuL.mjs → SignalAndMessage.DYhKWs3X.mjs} +7 -7
- package/chunks/{TableColumn.DJYkznbJ.mjs → TableColumn.72HOXQkb.mjs} +34 -28
- package/chunks/{TableView.DyIdIxAg.mjs → TableView.BxfsOAxU.mjs} +8 -8
- package/chunks/{UserTaskListeners.Bp-2qkHs.mjs → UserTaskListeners.CkeyTpnn.mjs} +16 -16
- package/chunks/{VueCron.GfjodnyM.mjs → VueCron.DEvY5-i7.mjs} +196 -139
- package/chunks/{VueTreeSelect.9Ywl-I8e.mjs → VueTreeSelect.C6Ycu28Z.mjs} +38 -37
- package/chunks/{checkbox.emIuFmnt.mjs → checkbox.C_9WZ8gc.mjs} +2 -2
- package/chunks/{confirmable-mixin.BBil7dto.mjs → confirmable-mixin.zegaXQTl.mjs} +398 -282
- package/chunks/{dictionary.DxZxP0ej.mjs → dictionary.CNNpjPL2.mjs} +1 -1
- package/chunks/{event.eJ-c1Z3a.mjs → event.Dv4XTu8B.mjs} +2 -2
- package/chunks/{focus-trap.DT4GnqQI.mjs → focus-trap.FbvlqAGe.mjs} +2 -2
- package/chunks/{form-input.D25eDRMq.mjs → form-input.BUGZmAI1.mjs} +2 -2
- package/chunks/{form-item.CgmUuw_n.mjs → form-item.Ca8U2bIR.mjs} +58 -60
- package/chunks/icon.CxCY22-F.mjs +26 -0
- package/chunks/{icon.CbS8-322.mjs → icon.ym7735_x.mjs} +28 -36
- package/chunks/{init.DwpukyOB.mjs → init.6jGmuY99.mjs} +3 -3
- package/chunks/input.C2GWsuXE.mjs +547 -0
- package/chunks/{message.BCmee5N0.mjs → message.C4NdvfbE.mjs} +40 -40
- package/chunks/{radio.BotKXqJr.mjs → radio.CeLeSOEo.mjs} +3 -4
- package/chunks/{tag.DPi-PLbb.mjs → tag.ZhEIVRpP.mjs} +18 -18
- package/chunks/{tooltip.D50x7Rva.mjs → tooltip.DNiltmX1.mjs} +362 -349
- package/chunks/{use-size.DxrwTUwf.mjs → typescript.CLl-2siQ.mjs} +2 -2
- package/chunks/use-empty-values.D8KYIiKR.mjs +81 -0
- package/chunks/use-form-item.BlWa7ZKe.mjs +56 -0
- package/chunks/{use-global-config.C9hs-O_x.mjs → use-global-config.DRovgom9.mjs} +14 -13
- package/chunks/{use-empty-values.Dy_r78F6.mjs → use-locale.Be9HCpTQ.mjs} +12 -87
- package/chunks/{validator.C4-z_t9p.mjs → validator.DuBSEj8O.mjs} +1 -1
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/data-box/style.css +1 -1
- package/data-card/style.css +1 -1
- package/data-display/style.css +1 -1
- package/data-icons/style.css +1 -1
- package/data-imgtext/style.css +1 -1
- package/data-operatext/style.css +1 -1
- package/data-panel/style.css +1 -1
- package/data-pay/style.css +1 -1
- package/data-price/style.css +1 -1
- package/data-progress/style.css +1 -1
- package/data-rotate/style.css +1 -1
- package/data-table-picker/index.mjs +3 -3
- package/data-tabs/style.css +1 -1
- package/dialog-form/index.mjs +7 -3
- package/dynamic-table/index.mjs +1 -1
- package/editable-tree/index.mjs +1 -1
- package/element-dialog/index.mjs +1 -1
- package/flex-column/index.mjs +11 -9
- package/flex-item/index.mjs +22 -16
- package/flex-row/index.mjs +11 -10
- 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 +3 -3
- package/form-checkbox-group/index.mjs +5 -5
- package/form-date-picker/index.mjs +3 -3
- package/form-holder/index.mjs +2 -5
- package/form-input/index.mjs +3 -3
- package/form-input-cron-expression/index.mjs +3 -3
- package/form-input-email/index.mjs +9 -8
- package/form-input-id-card/index.mjs +9 -8
- package/form-input-phone-number/index.mjs +10 -9
- 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 +5 -5
- 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 +3 -3
- package/form-tree-select/index.mjs +3 -3
- package/form-tree-select-multiple/index.mjs +3 -3
- package/form-view/index.mjs +13 -8
- package/fy-array/index.mjs +1 -1
- package/fy-cascader/index.mjs +1 -1
- package/fy-checkbox/index.mjs +1 -1
- package/fy-curd/index.mjs +1 -1
- package/fy-date/index.mjs +1 -1
- package/fy-dynamic/index.mjs +5 -5
- package/fy-form/index.mjs +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 +2 -2
- package/fy-input-icon/index.mjs +1 -1
- 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 +2 -2
- package/fy-radio/index.mjs +1 -1
- package/fy-rate/index.mjs +1 -1
- package/fy-select/index.mjs +3 -3
- package/fy-slider/index.mjs +1 -1
- package/fy-switch/index.mjs +1 -1
- 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/helper-function.d.ts +3 -2
- package/helper-function.mjs +16 -9
- package/image-cropper/index.mjs +6 -6
- package/image-preview/index.mjs +2 -187
- package/index.mjs +91 -91
- package/input-number-range/index.mjs +2 -2
- package/keyboard/index.mjs +1 -1
- package/license/index.mjs +1 -1
- package/login/index.mjs +3 -3
- package/monaco-editor/index.mjs +1 -1
- package/notice/index.mjs +1 -1
- package/package.json +5 -5
- package/pageable-table/index.mjs +1 -1
- package/pageable-view/index.mjs +1 -1
- package/photo-swipe/index.mjs +1 -1
- package/picker-table-view/index.mjs +4 -4
- package/present-view/index.mjs +18 -13
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +1 -1
- package/search/index.mjs +1 -1
- package/split-pane/index.mjs +1 -1
- package/stateful/index.mjs +18 -17
- package/static-pageable-table/index.mjs +1 -1
- package/sub-table/index.mjs +3 -3
- package/sub-table-plus/index.mjs +4 -4
- 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 +2 -2
- package/toolbar/index.mjs +1 -1
- package/toolbar-button/index.mjs +1 -4
- package/vue-cron/index.mjs +1 -1
- package/vue-qr-code/index.mjs +7 -6
- package/vue-tree-select/index.mjs +1 -1
- package/watermark/index.mjs +13 -13
- package/web-types.json +48 -14
- package/x-input-tag/index.mjs +3 -3
- package/chunks/ElementDialog.C0IjriTW.mjs +0 -681
- package/chunks/input.PejnqwSH.mjs +0 -547
- package/chunks/overlay.DubSnqma.mjs +0 -122
- package/chunks/teleport._VGEzK4d.mjs +0 -22
- package/chunks/typescript.DiWBU4nj.mjs +0 -4
- package/chunks/use-form-item.wsRjehHp.mjs +0 -47
- package/chunks/use-id.CFO5NeoV.mjs +0 -15
- /package/chunks/{FyUEditor.D_rEYfll.mjs → FyUEditor.BymtA5SJ.mjs} +0 -0
- /package/chunks/{RecordVideo.B35_dLty.mjs → RecordVideo.VRFTaHSp.mjs} +0 -0
- /package/chunks/{SplitPane.Dw96M0Yf.mjs → SplitPane.Bwe5Rc0J.mjs} +0 -0
- /package/chunks/{Toolbar.DHuXJAoG.mjs → Toolbar.BVziVmyT.mjs} +0 -0
- /package/chunks/{core.DJv6Qrae.mjs → core.DXaMPWGV.mjs} +0 -0
- /package/chunks/{dataformat.Bfr4nOcA.mjs → dataformat.CteBVoOe.mjs} +0 -0
- /package/chunks/{dic.DgDfnovD.mjs → dic.C0abEij9.mjs} +0 -0
- /package/chunks/{dictionary.5eKjWeAp.mjs → dictionary.BRhZD-WH.mjs} +0 -0
- /package/chunks/{form-pick.Axem0gOO.mjs → form-pick.DT5kumy4.mjs} +0 -0
- /package/chunks/{form-validate.B1KPCHqN.mjs → form-validate.CUvMwtPN.mjs} +0 -0
- /package/chunks/{packages.BGjydzjm.mjs → packages.BLDb9e6G.mjs} +0 -0
- /package/chunks/{permission.DgEVNWlh.mjs → permission.C-IUDxQQ.mjs} +0 -0
- /package/chunks/{photo-swipe.BB0SJZg9.mjs → photo-swipe.BxnG4lip.mjs} +0 -0
- /package/chunks/{scroll.CzORc5Zk.mjs → scroll.DWjS-gnW.mjs} +0 -0
- /package/chunks/{slot.C6Ozd2e7.mjs → slot.DT5QwXL-.mjs} +0 -0
- /package/chunks/{sub-table-plus-props.B_lLth3j.mjs → sub-table-plus-props.CRX7ERxJ.mjs} +0 -0
- /package/chunks/{tab-mixin.u0EZpx3j.mjs → tab-mixin.7zuMMM1E.mjs} +0 -0
- /package/chunks/{util.B3sjVZoZ.mjs → util.Ce4MHRmD.mjs} +0 -0
- /package/chunks/{utilSelf.ZED4DmCU.mjs → utilSelf.BttmSVX6.mjs} +0 -0
- /package/chunks/{utils.Cs2fYBrT.mjs → utils.BGJfM4oG.mjs} +0 -0
- /package/chunks/{utils.DsGhtCIO.mjs → utils.CSPl1l4f.mjs} +0 -0
- /package/chunks/{vnode.D_SioRnx.mjs → vnode.C3PXzhmg.mjs} +0 -0
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
import { _ as e, d as t, h as n, m as r, o as i, p as a, r as o, t as s } from "./install.yLcn5MLL.mjs";
|
|
2
2
|
import { t as c } from "./_plugin-vue_export-helper.7vrlOII_.mjs";
|
|
3
|
-
import { c as l,
|
|
4
|
-
import { r as
|
|
5
|
-
import {
|
|
6
|
-
import { B as
|
|
7
|
-
import { n as
|
|
8
|
-
import { n as
|
|
9
|
-
import { n as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { n as
|
|
13
|
-
import { n as
|
|
14
|
-
import { t as
|
|
15
|
-
import {
|
|
16
|
-
import { r as
|
|
17
|
-
import {
|
|
18
|
-
import { n as
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { t as Me } from "./form-
|
|
22
|
-
import { t as
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
3
|
+
import { c as l, l as u, n as d, r as f } from "./use-empty-values.D8KYIiKR.mjs";
|
|
4
|
+
import { r as p, t as m } from "./event.B4iwtUNO.mjs";
|
|
5
|
+
import { i as h } from "./typescript.CLl-2siQ.mjs";
|
|
6
|
+
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.BmlGmjpO.mjs";
|
|
7
|
+
import { n as ce, r as le, t as ue } from "./tooltip.DNiltmX1.mjs";
|
|
8
|
+
import { n as de } from "./use-locale.Be9HCpTQ.mjs";
|
|
9
|
+
import { n as x } from "./focus-trap.FbvlqAGe.mjs";
|
|
10
|
+
import { n as fe } from "./scroll.DWjS-gnW.mjs";
|
|
11
|
+
import { i as pe, n as me, r as he, s as ge, t as _e } from "./use-form-item.BlWa7ZKe.mjs";
|
|
12
|
+
import { n as ve } from "./vnode.C3PXzhmg.mjs";
|
|
13
|
+
import { n as ye, t as be } from "./use-composition.mUaomyno.mjs";
|
|
14
|
+
import { t as xe } from "./use-aria.BW7nWOl1.mjs";
|
|
15
|
+
import { l as Se, n as Ce, t as S } from "./icon.ym7735_x.mjs";
|
|
16
|
+
import { i as C, r as we } from "./icon.CxCY22-F.mjs";
|
|
17
|
+
import { r as w } from "./form-item.Ca8U2bIR.mjs";
|
|
18
|
+
import { n as Te, t as Ee } from "./scrollbar.CAmrlKi9.mjs";
|
|
19
|
+
import { n as T, r as De, t as Oe } from "./tag.ZhEIVRpP.mjs";
|
|
20
|
+
import { d as ke, n as Ae, u as je } from "./util.Ce4MHRmD.mjs";
|
|
21
|
+
import { t as Me } from "./form-input.BUGZmAI1.mjs";
|
|
22
|
+
import { t as Ne } from "./form-pick.DT5kumy4.mjs";
|
|
23
|
+
import { t as Pe } from "./dictionary.BRhZD-WH.mjs";
|
|
24
|
+
import { Fragment as E, computed as D, createBlock as O, createCommentVNode as k, createElementBlock as A, createElementVNode as j, createTextVNode as Fe, createVNode as M, defineComponent as N, 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
|
+
import { isNumber as Qe, isPlainObject as $e, isString as et } from "@web-utils/core";
|
|
26
|
+
import { clamp as tt, findLastIndex as nt, get as X, isEqual as Z, isNil as rt } from "lodash-unified";
|
|
26
27
|
//#region node_modules/.pnpm/element-plus@2.13.6_typescr_b7ae825491da06c0282fd613061a7e37/node_modules/element-plus/es/hooks/use-calc-input-width/index.mjs
|
|
27
|
-
function
|
|
28
|
-
let e =
|
|
28
|
+
function it() {
|
|
29
|
+
let e = We(), t = B(0), n = D(() => ({ minWidth: `${Math.max(t.value, 11)}px` }));
|
|
29
30
|
return _(e, () => {
|
|
30
31
|
var n;
|
|
31
32
|
t.value = ((n = e.value) == null ? void 0 : n.getBoundingClientRect().width) ?? 0;
|
|
@@ -37,28 +38,28 @@ function rt() {
|
|
|
37
38
|
}
|
|
38
39
|
//#endregion
|
|
39
40
|
//#region node_modules/.pnpm/element-plus@2.13.6_typescr_b7ae825491da06c0282fd613061a7e37/node_modules/element-plus/es/components/select/src/token.mjs
|
|
40
|
-
var
|
|
41
|
+
var at = Symbol("ElSelectGroup"), Q = Symbol("ElSelect"), ot = {
|
|
41
42
|
label: "label",
|
|
42
43
|
value: "value",
|
|
43
44
|
disabled: "disabled",
|
|
44
45
|
options: "options"
|
|
45
46
|
};
|
|
46
47
|
function st(e) {
|
|
47
|
-
let t =
|
|
48
|
+
let t = B({
|
|
48
49
|
...ot,
|
|
49
50
|
...e.props
|
|
50
51
|
}), n = { ...e.props };
|
|
51
|
-
return
|
|
52
|
-
|
|
52
|
+
return K(() => e.props, (e) => {
|
|
53
|
+
Z(e, n) || (t.value = {
|
|
53
54
|
...ot,
|
|
54
55
|
...e
|
|
55
56
|
}, n = { ...e });
|
|
56
57
|
}, { deep: !0 }), {
|
|
57
58
|
aliasProps: t,
|
|
58
|
-
getLabel: (e) =>
|
|
59
|
-
getValue: (e) =>
|
|
60
|
-
getDisabled: (e) =>
|
|
61
|
-
getOptions: (e) =>
|
|
59
|
+
getLabel: (e) => X(e, t.value.label),
|
|
60
|
+
getValue: (e) => X(e, t.value.value),
|
|
61
|
+
getDisabled: (e) => X(e, t.value.disabled),
|
|
62
|
+
getOptions: (e) => X(e, t.value.options)
|
|
62
63
|
};
|
|
63
64
|
}
|
|
64
65
|
//#endregion
|
|
@@ -81,7 +82,7 @@ var ct = v({
|
|
|
81
82
|
default: "off"
|
|
82
83
|
},
|
|
83
84
|
automaticDropdown: Boolean,
|
|
84
|
-
size:
|
|
85
|
+
size: h,
|
|
85
86
|
effect: {
|
|
86
87
|
type: g(String),
|
|
87
88
|
default: "light"
|
|
@@ -138,26 +139,26 @@ var ct = v({
|
|
|
138
139
|
type: Number,
|
|
139
140
|
default: 1
|
|
140
141
|
},
|
|
141
|
-
teleported:
|
|
142
|
+
teleported: ce.teleported,
|
|
142
143
|
persistent: {
|
|
143
144
|
type: Boolean,
|
|
144
145
|
default: !0
|
|
145
146
|
},
|
|
146
147
|
clearIcon: {
|
|
147
|
-
type:
|
|
148
|
+
type: C,
|
|
148
149
|
default: Se
|
|
149
150
|
},
|
|
150
151
|
fitInputWidth: Boolean,
|
|
151
152
|
suffixIcon: {
|
|
152
|
-
type:
|
|
153
|
-
default:
|
|
153
|
+
type: C,
|
|
154
|
+
default: Ce
|
|
154
155
|
},
|
|
155
156
|
tagType: {
|
|
156
|
-
...
|
|
157
|
+
...T.type,
|
|
157
158
|
default: "info"
|
|
158
159
|
},
|
|
159
160
|
tagEffect: {
|
|
160
|
-
...
|
|
161
|
+
...T.effect,
|
|
161
162
|
default: "light"
|
|
162
163
|
},
|
|
163
164
|
validateEvent: {
|
|
@@ -175,7 +176,7 @@ var ct = v({
|
|
|
175
176
|
},
|
|
176
177
|
placement: {
|
|
177
178
|
type: g(String),
|
|
178
|
-
values:
|
|
179
|
+
values: le,
|
|
179
180
|
default: "bottom-start"
|
|
180
181
|
},
|
|
181
182
|
fallbackPlacements: {
|
|
@@ -191,16 +192,16 @@ var ct = v({
|
|
|
191
192
|
type: [String, Number],
|
|
192
193
|
default: 0
|
|
193
194
|
},
|
|
194
|
-
appendTo:
|
|
195
|
+
appendTo: ce.appendTo,
|
|
195
196
|
options: { type: g(Array) },
|
|
196
197
|
props: {
|
|
197
198
|
type: g(Object),
|
|
198
199
|
default: () => ot
|
|
199
200
|
},
|
|
200
201
|
...f,
|
|
201
|
-
...
|
|
202
|
+
...xe(["ariaLabel"])
|
|
202
203
|
});
|
|
203
|
-
|
|
204
|
+
Te.scroll;
|
|
204
205
|
//#endregion
|
|
205
206
|
//#region node_modules/.pnpm/element-plus@2.13.6_typescr_b7ae825491da06c0282fd613061a7e37/node_modules/element-plus/es/components/select/src/option.mjs
|
|
206
207
|
var lt = "ElOption", ut = v({
|
|
@@ -220,28 +221,28 @@ var lt = "ElOption", ut = v({
|
|
|
220
221
|
//#endregion
|
|
221
222
|
//#region node_modules/.pnpm/element-plus@2.13.6_typescr_b7ae825491da06c0282fd613061a7e37/node_modules/element-plus/es/components/select/src/useOption.mjs
|
|
222
223
|
function dt(e, t) {
|
|
223
|
-
let n =
|
|
224
|
-
n ||
|
|
225
|
-
let i =
|
|
224
|
+
let n = Ie(Q);
|
|
225
|
+
n || se(lt, "usage: <el-select><el-option /></el-select/>");
|
|
226
|
+
let i = Ie(at, { disabled: !1 }), a = D(() => d(w(n.props.modelValue), e.value)), o = D(() => {
|
|
226
227
|
if (n.props.multiple) {
|
|
227
|
-
let e =
|
|
228
|
+
let e = w(n.props.modelValue ?? []);
|
|
228
229
|
return !a.value && e.length >= n.props.multipleLimit && n.props.multipleLimit > 0;
|
|
229
230
|
} else return !1;
|
|
230
|
-
}), s =
|
|
231
|
+
}), s = D(() => e.label ?? (r(e.value) ? "" : e.value)), c = D(() => e.value || e.label || ""), l = D(() => e.disabled || t.groupDisabled || o.value), u = P(), d = (t = [], i) => {
|
|
231
232
|
if (r(e.value)) {
|
|
232
233
|
let e = n.props.valueKey;
|
|
233
|
-
return t && t.some((t) =>
|
|
234
|
+
return t && t.some((t) => qe(X(t, e)) === X(i, e));
|
|
234
235
|
} else return t && t.includes(i);
|
|
235
236
|
};
|
|
236
|
-
return
|
|
237
|
+
return K(() => s.value, () => {
|
|
237
238
|
!e.created && !n.props.remote && n.setSelected();
|
|
238
|
-
}),
|
|
239
|
+
}), K(() => e.value, (t, i) => {
|
|
239
240
|
let { remote: a, valueKey: o } = n.props;
|
|
240
|
-
if ((a ? t !== i : !
|
|
241
|
+
if ((a ? t !== i : !Z(t, i)) && (n.onOptionDestroy(i, u.proxy), n.onOptionCreate(u.proxy)), !e.created && !a) {
|
|
241
242
|
if (o && r(t) && r(i) && t[o] === i[o]) return;
|
|
242
243
|
n.setSelected();
|
|
243
244
|
}
|
|
244
|
-
}),
|
|
245
|
+
}), K(() => i.disabled, () => {
|
|
245
246
|
t.groupDisabled = i.disabled;
|
|
246
247
|
}, { immediate: !0 }), {
|
|
247
248
|
select: n,
|
|
@@ -259,25 +260,25 @@ function dt(e, t) {
|
|
|
259
260
|
}
|
|
260
261
|
//#endregion
|
|
261
262
|
//#region node_modules/.pnpm/element-plus@2.13.6_typescr_b7ae825491da06c0282fd613061a7e37/node_modules/element-plus/es/components/select/src/option.vue_vue_type_script_lang.mjs
|
|
262
|
-
var ft =
|
|
263
|
+
var ft = N({
|
|
263
264
|
name: lt,
|
|
264
265
|
componentName: lt,
|
|
265
266
|
props: ut,
|
|
266
267
|
setup(e) {
|
|
267
|
-
let t = i("select"), n = ge(), r =
|
|
268
|
+
let t = i("select"), n = ge(), r = D(() => [
|
|
268
269
|
t.be("dropdown", "item"),
|
|
269
|
-
t.is("disabled",
|
|
270
|
-
t.is("selected",
|
|
271
|
-
t.is("hovering",
|
|
272
|
-
]), a =
|
|
270
|
+
t.is("disabled", Je(c)),
|
|
271
|
+
t.is("selected", Je(s)),
|
|
272
|
+
t.is("hovering", Je(p))
|
|
273
|
+
]), a = Ve({
|
|
273
274
|
index: -1,
|
|
274
275
|
groupDisabled: !1,
|
|
275
276
|
visible: !0,
|
|
276
277
|
hover: !1
|
|
277
|
-
}), { currentLabel: o, itemSelected: s, isDisabled: c, select: l, hoverItem: u, updateOption: d } = dt(e, a), { visible: f, hover: p } =
|
|
278
|
-
l.onOptionCreate(m),
|
|
278
|
+
}), { currentLabel: o, itemSelected: s, isDisabled: c, select: l, hoverItem: u, updateOption: d } = dt(e, a), { visible: f, hover: p } = G(a), m = P().proxy;
|
|
279
|
+
l.onOptionCreate(m), R(() => {
|
|
279
280
|
let e = m.value;
|
|
280
|
-
|
|
281
|
+
F(() => {
|
|
281
282
|
let { selected: t } = l.states, n = t.some((e) => e.value === m.value);
|
|
282
283
|
l.states.cachedOptions.get(e) === m && !n && l.states.cachedOptions.delete(e);
|
|
283
284
|
}), l.onOptionDestroy(e, m);
|
|
@@ -307,17 +308,17 @@ var ft = Pe({
|
|
|
307
308
|
"aria-selected"
|
|
308
309
|
];
|
|
309
310
|
function mt(e, t, n, r, i, a) {
|
|
310
|
-
return
|
|
311
|
+
return J((z(), A("li", {
|
|
311
312
|
id: e.id,
|
|
312
|
-
class:
|
|
313
|
+
class: I(e.containerKls),
|
|
313
314
|
role: "option",
|
|
314
315
|
"aria-disabled": e.isDisabled || void 0,
|
|
315
316
|
"aria-selected": e.itemSelected,
|
|
316
317
|
onMousemove: t[0] || (t[0] = (...t) => e.hoverItem && e.hoverItem(...t)),
|
|
317
|
-
onClick: t[1] || (t[1] =
|
|
318
|
-
}, [
|
|
318
|
+
onClick: t[1] || (t[1] = Y((...t) => e.selectOptionClick && e.selectOptionClick(...t), ["stop"]))
|
|
319
|
+
}, [H(e.$slots, "default", {}, () => [j("span", null, W(e.currentLabel), 1)])], 42, pt)), [[Xe, e.visible]]);
|
|
319
320
|
}
|
|
320
|
-
var $ = /* @__PURE__ */ x(ft, [["render", mt]]), ht =
|
|
321
|
+
var $ = /* @__PURE__ */ x(ft, [["render", mt]]), ht = N({
|
|
321
322
|
name: "ElOptionGroup",
|
|
322
323
|
componentName: "ElOptionGroup",
|
|
323
324
|
props: {
|
|
@@ -325,21 +326,21 @@ var $ = /* @__PURE__ */ x(ft, [["render", mt]]), ht = Pe({
|
|
|
325
326
|
disabled: Boolean
|
|
326
327
|
},
|
|
327
328
|
setup(e) {
|
|
328
|
-
let n = i("select"), r =
|
|
329
|
-
|
|
330
|
-
let s =
|
|
329
|
+
let n = i("select"), r = B(), a = P(), o = B([]);
|
|
330
|
+
Be(at, Ve({ ...G(e) }));
|
|
331
|
+
let s = D(() => o.value.some((e) => e.visible === !0)), c = (e) => {
|
|
331
332
|
var t;
|
|
332
333
|
return e.type.name === "ElOption" && !!((t = e.component) != null && t.proxy);
|
|
333
334
|
}, l = (e) => {
|
|
334
|
-
let n =
|
|
335
|
+
let n = w(e), r = [];
|
|
335
336
|
return n.forEach((e) => {
|
|
336
337
|
var n;
|
|
337
|
-
|
|
338
|
+
Le(e) && (c(e) ? r.push(e.component.proxy) : t(e.children) && e.children.length ? r.push(...l(e.children)) : (n = e.component) != null && n.subTree && r.push(...l(e.component.subTree)));
|
|
338
339
|
}), r;
|
|
339
340
|
}, u = () => {
|
|
340
341
|
o.value = l(a.subTree);
|
|
341
342
|
};
|
|
342
|
-
return
|
|
343
|
+
return ze(() => {
|
|
343
344
|
u();
|
|
344
345
|
}), b(r, u, {
|
|
345
346
|
attributes: !0,
|
|
@@ -355,22 +356,22 @@ var $ = /* @__PURE__ */ x(ft, [["render", mt]]), ht = Pe({
|
|
|
355
356
|
//#endregion
|
|
356
357
|
//#region node_modules/.pnpm/element-plus@2.13.6_typescr_b7ae825491da06c0282fd613061a7e37/node_modules/element-plus/es/components/select/src/option-group.mjs
|
|
357
358
|
function gt(e, t, n, r, i, a) {
|
|
358
|
-
return
|
|
359
|
+
return J((z(), A("ul", {
|
|
359
360
|
ref: "groupRef",
|
|
360
|
-
class:
|
|
361
|
-
}, [
|
|
361
|
+
class: I(e.ns.be("group", "wrap"))
|
|
362
|
+
}, [j("li", { class: I(e.ns.be("group", "title")) }, W(e.label), 3), j("li", null, [j("ul", { class: I(e.ns.b("group")) }, [H(e.$slots, "default")], 2)])], 2)), [[Xe, e.visible]]);
|
|
362
363
|
}
|
|
363
|
-
var _t = /* @__PURE__ */ x(ht, [["render", gt]]), vt =
|
|
364
|
+
var _t = /* @__PURE__ */ x(ht, [["render", gt]]), vt = N({
|
|
364
365
|
name: "ElSelectDropdown",
|
|
365
366
|
componentName: "ElSelectDropdown",
|
|
366
367
|
setup() {
|
|
367
|
-
let e =
|
|
368
|
+
let e = Ie(Q), t = i("select"), n = D(() => e.props.popperClass), r = D(() => e.props.multiple), a = D(() => e.props.fitInputWidth), o = B("");
|
|
368
369
|
function s() {
|
|
369
370
|
var t;
|
|
370
371
|
let n = (t = e.selectRef) == null ? void 0 : t.offsetWidth;
|
|
371
372
|
n ? o.value = `${n - 2}px` : o.value = "";
|
|
372
373
|
}
|
|
373
|
-
return
|
|
374
|
+
return ze(() => {
|
|
374
375
|
s(), _(e.selectRef, s);
|
|
375
376
|
}), {
|
|
376
377
|
ns: t,
|
|
@@ -384,27 +385,27 @@ var _t = /* @__PURE__ */ x(ht, [["render", gt]]), vt = Pe({
|
|
|
384
385
|
//#endregion
|
|
385
386
|
//#region node_modules/.pnpm/element-plus@2.13.6_typescr_b7ae825491da06c0282fd613061a7e37/node_modules/element-plus/es/components/select/src/select-dropdown.mjs
|
|
386
387
|
function yt(e, t, n, r, i, a) {
|
|
387
|
-
return
|
|
388
|
-
class:
|
|
388
|
+
return z(), A("div", {
|
|
389
|
+
class: I([
|
|
389
390
|
e.ns.b("dropdown"),
|
|
390
391
|
e.ns.is("multiple", e.isMultiple),
|
|
391
392
|
e.popperClass
|
|
392
393
|
]),
|
|
393
|
-
style:
|
|
394
|
+
style: L({ [e.isFitInputWidth ? "width" : "minWidth"]: e.minWidth })
|
|
394
395
|
}, [
|
|
395
|
-
e.$slots.header ? (
|
|
396
|
+
e.$slots.header ? (z(), A("div", {
|
|
396
397
|
key: 0,
|
|
397
|
-
class:
|
|
398
|
-
}, [
|
|
399
|
-
|
|
400
|
-
e.$slots.footer ? (
|
|
398
|
+
class: I(e.ns.be("dropdown", "header"))
|
|
399
|
+
}, [H(e.$slots, "header")], 2)) : k("v-if", !0),
|
|
400
|
+
H(e.$slots, "default"),
|
|
401
|
+
e.$slots.footer ? (z(), A("div", {
|
|
401
402
|
key: 1,
|
|
402
|
-
class:
|
|
403
|
-
}, [
|
|
403
|
+
class: I(e.ns.be("dropdown", "footer"))
|
|
404
|
+
}, [H(e.$slots, "footer")], 2)) : k("v-if", !0)
|
|
404
405
|
], 6);
|
|
405
406
|
}
|
|
406
407
|
var bt = /* @__PURE__ */ x(vt, [["render", yt]]), xt = (e, o) => {
|
|
407
|
-
let { t: s } =
|
|
408
|
+
let { t: s } = de(), c = Ye(), f = ge(), h = i("select"), g = i("input"), v = Ve({
|
|
408
409
|
inputValue: "",
|
|
409
410
|
options: /* @__PURE__ */ new Map(),
|
|
410
411
|
cachedOptions: /* @__PURE__ */ new Map(),
|
|
@@ -418,87 +419,87 @@ var bt = /* @__PURE__ */ x(vt, [["render", yt]]), xt = (e, o) => {
|
|
|
418
419
|
inputHovering: !1,
|
|
419
420
|
menuVisibleOnFocus: !1,
|
|
420
421
|
isBeforeHide: !1
|
|
421
|
-
}),
|
|
422
|
-
disabled:
|
|
422
|
+
}), se = B(), y = B(), b = B(), ce = B(), le = B(), ue = B(), x = B(), ve = B(), xe = B(), Se = B(), Ce = B(), S = B(!1), C = B(), Te = B(!1), { form: Ee, formItem: T } = _e(), { inputId: De } = me(e, { formItemContext: T }), { valueOnClear: Oe, isEmptyValue: ke } = d(e), { isComposing: Ae, handleCompositionStart: je, handleCompositionUpdate: Me, handleCompositionEnd: Ne } = be({ afterComposition: (e) => $e(e) }), Pe = he(), { wrapperRef: E, isFocused: O, handleBlur: k } = ye(le, {
|
|
423
|
+
disabled: Pe,
|
|
423
424
|
afterFocus() {
|
|
424
|
-
e.automaticDropdown && !
|
|
425
|
+
e.automaticDropdown && !S.value && (S.value = !0, v.menuVisibleOnFocus = !0);
|
|
425
426
|
},
|
|
426
427
|
beforeBlur(e) {
|
|
427
428
|
var t, n;
|
|
428
|
-
return ((t = b.value) == null ? void 0 : t.isFocusInsideContent(e)) || ((n =
|
|
429
|
+
return ((t = b.value) == null ? void 0 : t.isFocusInsideContent(e)) || ((n = ce.value) == null ? void 0 : n.isFocusInsideContent(e));
|
|
429
430
|
},
|
|
430
431
|
afterBlur() {
|
|
431
432
|
var t;
|
|
432
|
-
|
|
433
|
+
S.value = !1, v.menuVisibleOnFocus = !1, e.validateEvent && (T == null || (t = T.validate) == null || t.call(T, "blur").catch((e) => ie(e)));
|
|
433
434
|
}
|
|
434
|
-
}),
|
|
435
|
+
}), A = D(() => t(e.modelValue) ? e.modelValue.length > 0 : !ke(e.modelValue)), j = D(() => (Ee == null ? void 0 : Ee.statusIcon) ?? !1), Fe = D(() => e.clearable && !Pe.value && A.value && (O.value || v.inputHovering)), M = D(() => e.remote && e.filterable && !e.remoteShowSuffix ? "" : e.suffixIcon), N = D(() => h.is("reverse", !!(M.value && S.value))), P = D(() => (T == null ? void 0 : T.validateState) || ""), Ie = D(() => P.value && we[P.value]), Le = D(() => e.remote ? e.debounce : 0), Re = D(() => e.remote && !v.inputValue && v.options.size === 0), I = D(() => 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 = D(() => R.value.filter((e) => e.visible).length), R = D(() => {
|
|
435
436
|
let e = Array.from(v.options.values()), t = [];
|
|
436
437
|
return v.optionValues.forEach((n) => {
|
|
437
438
|
let r = e.findIndex((e) => e.value === n);
|
|
438
439
|
r > -1 && t.push(e[r]);
|
|
439
440
|
}), t.length >= e.length ? t : e;
|
|
440
|
-
}),
|
|
441
|
-
let t =
|
|
441
|
+
}), z = D(() => Array.from(v.cachedOptions.values())), Be = D(() => {
|
|
442
|
+
let t = R.value.filter((e) => !e.created).some((e) => e.currentLabel === v.inputValue);
|
|
442
443
|
return e.filterable && e.allowCreate && v.inputValue !== "" && !t;
|
|
443
|
-
}),
|
|
444
|
-
e.filterable && a(e.filterMethod) || e.filterable && e.remote && a(e.remoteMethod) ||
|
|
444
|
+
}), V = () => {
|
|
445
|
+
e.filterable && a(e.filterMethod) || e.filterable && e.remote && a(e.remoteMethod) || R.value.forEach((e) => {
|
|
445
446
|
var t;
|
|
446
447
|
(t = e.updateOption) == null || t.call(e, v.inputValue);
|
|
447
448
|
});
|
|
448
|
-
},
|
|
449
|
+
}, H = pe(), U = D(() => ["small"].includes(H.value) ? "small" : "default"), He = D({
|
|
449
450
|
get() {
|
|
450
|
-
return
|
|
451
|
+
return S.value && (e.loading || !Re.value || e.remote && !!c.empty) && (!Te.value || !re(v.previousQuery) || v.options.size > 0);
|
|
451
452
|
},
|
|
452
453
|
set(e) {
|
|
453
|
-
|
|
454
|
+
S.value = e;
|
|
454
455
|
}
|
|
455
|
-
}),
|
|
456
|
-
if (e.multiple && !
|
|
456
|
+
}), Ue = D(() => {
|
|
457
|
+
if (e.multiple && !ee(e.modelValue)) return w(e.modelValue).length === 0 && !v.inputValue;
|
|
457
458
|
let n = t(e.modelValue) ? e.modelValue[0] : e.modelValue;
|
|
458
|
-
return e.filterable ||
|
|
459
|
-
}),
|
|
459
|
+
return e.filterable || ee(n) ? !v.inputValue : !0;
|
|
460
|
+
}), We = D(() => {
|
|
460
461
|
let t = e.placeholder ?? s("el.select.placeholder");
|
|
461
|
-
return e.multiple || !
|
|
462
|
-
}),
|
|
463
|
-
|
|
464
|
-
e.multiple && e.filterable && !e.reserveKeyword && (v.inputValue = "",
|
|
462
|
+
return e.multiple || !A.value ? t : v.selectedLabel;
|
|
463
|
+
}), W = D(() => te ? null : "mouseenter");
|
|
464
|
+
K(() => e.modelValue, (t, n) => {
|
|
465
|
+
e.multiple && e.filterable && !e.reserveKeyword && (v.inputValue = "", Ge("")), qe(), !Z(t, n) && e.validateEvent && (T == null || T.validate("change").catch((e) => ie(e)));
|
|
465
466
|
}, {
|
|
466
467
|
flush: "post",
|
|
467
468
|
deep: !0
|
|
468
|
-
}),
|
|
469
|
-
e ?
|
|
470
|
-
}),
|
|
471
|
-
|
|
472
|
-
}, { flush: "post" }),
|
|
473
|
-
|
|
474
|
-
e.hover =
|
|
469
|
+
}), K(() => S.value, (e) => {
|
|
470
|
+
e ? Ge(v.inputValue) : (v.inputValue = "", v.previousQuery = null, v.isBeforeHide = !0, v.menuVisibleOnFocus = !1);
|
|
471
|
+
}), K(() => v.options.entries(), () => {
|
|
472
|
+
oe && (qe(), e.defaultFirstOption && (e.filterable || e.remote) && L.value && Ke());
|
|
473
|
+
}, { flush: "post" }), K([() => v.hoveringIndex, R], ([e]) => {
|
|
474
|
+
ae(e) && e > -1 ? C.value = R.value[e] || {} : C.value = {}, R.value.forEach((e) => {
|
|
475
|
+
e.hover = C.value === e;
|
|
475
476
|
});
|
|
476
|
-
}),
|
|
477
|
-
v.isBeforeHide ||
|
|
477
|
+
}), Ze(() => {
|
|
478
|
+
v.isBeforeHide || V();
|
|
478
479
|
});
|
|
479
|
-
let
|
|
480
|
-
v.previousQuery === t ||
|
|
481
|
-
},
|
|
482
|
-
let e =
|
|
483
|
-
v.hoveringIndex = lt(
|
|
484
|
-
},
|
|
480
|
+
let Ge = (t) => {
|
|
481
|
+
v.previousQuery === t || Ae.value || (v.previousQuery = t, e.filterable && a(e.filterMethod) ? e.filterMethod(t) : e.filterable && e.remote && a(e.remoteMethod) && e.remoteMethod(t), e.defaultFirstOption && (e.filterable || e.remote) && L.value ? F(Ke) : F(Je));
|
|
482
|
+
}, Ke = () => {
|
|
483
|
+
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 = lt(R.value.map((e) => e.value), t || n);
|
|
485
|
+
}, qe = () => {
|
|
485
486
|
if (e.multiple) v.selectedLabel = "";
|
|
486
487
|
else {
|
|
487
|
-
let n =
|
|
488
|
+
let n = G(t(e.modelValue) ? e.modelValue[0] : e.modelValue);
|
|
488
489
|
v.selectedLabel = n.currentLabel, v.selected = [n];
|
|
489
490
|
return;
|
|
490
491
|
}
|
|
491
492
|
let n = [];
|
|
492
|
-
|
|
493
|
-
n.push(
|
|
493
|
+
ee(e.modelValue) || w(e.modelValue).forEach((e) => {
|
|
494
|
+
n.push(G(e));
|
|
494
495
|
}), v.selected = n;
|
|
495
|
-
},
|
|
496
|
+
}, G = (t) => {
|
|
496
497
|
let r, i = n(t);
|
|
497
498
|
for (let n = v.cachedOptions.size - 1; n >= 0; n--) {
|
|
498
|
-
let a =
|
|
499
|
-
if (i ?
|
|
499
|
+
let a = z.value[n];
|
|
500
|
+
if (i ? X(a.value, e.valueKey) === X(t, e.valueKey) : a.value === t) {
|
|
500
501
|
r = {
|
|
501
|
-
index:
|
|
502
|
+
index: R.value.filter((e) => !e.created).indexOf(a),
|
|
502
503
|
value: t,
|
|
503
504
|
currentLabel: a.currentLabel,
|
|
504
505
|
get isDisabled() {
|
|
@@ -513,127 +514,127 @@ var bt = /* @__PURE__ */ x(vt, [["render", yt]]), xt = (e, o) => {
|
|
|
513
514
|
value: t,
|
|
514
515
|
currentLabel: i ? t.label : t ?? ""
|
|
515
516
|
};
|
|
516
|
-
},
|
|
517
|
+
}, Je = () => {
|
|
517
518
|
let e = v.selected.length;
|
|
518
519
|
if (e > 0) {
|
|
519
520
|
let t = v.selected[e - 1];
|
|
520
|
-
v.hoveringIndex =
|
|
521
|
+
v.hoveringIndex = R.value.findIndex((e) => xt(t) === xt(e));
|
|
521
522
|
} else v.hoveringIndex = -1;
|
|
522
|
-
},
|
|
523
|
+
}, Xe = () => {
|
|
523
524
|
v.selectionWidth = Number.parseFloat(window.getComputedStyle(y.value).width);
|
|
524
|
-
},
|
|
525
|
+
}, q = () => {
|
|
525
526
|
v.collapseItemWidth = Se.value.getBoundingClientRect().width;
|
|
526
|
-
},
|
|
527
|
+
}, J = () => {
|
|
527
528
|
var e, t;
|
|
528
529
|
(e = b.value) == null || (t = e.updatePopper) == null || t.call(e);
|
|
529
|
-
},
|
|
530
|
+
}, Y = () => {
|
|
530
531
|
var e, t;
|
|
531
|
-
(e =
|
|
532
|
-
},
|
|
533
|
-
v.inputValue.length > 0 && !
|
|
534
|
-
},
|
|
535
|
-
if (v.inputValue = t.target.value, e.remote)
|
|
536
|
-
else return
|
|
537
|
-
},
|
|
538
|
-
|
|
539
|
-
},
|
|
540
|
-
|
|
541
|
-
},
|
|
532
|
+
(e = ce.value) == null || (t = e.updatePopper) == null || t.call(e);
|
|
533
|
+
}, Qe = () => {
|
|
534
|
+
v.inputValue.length > 0 && !S.value && (S.value = !0), Ge(v.inputValue);
|
|
535
|
+
}, $e = (t) => {
|
|
536
|
+
if (v.inputValue = t.target.value, e.remote) Te.value = !0, et();
|
|
537
|
+
else return Qe();
|
|
538
|
+
}, et = ne(() => {
|
|
539
|
+
Qe(), Te.value = !1;
|
|
540
|
+
}, Le), it = (t) => {
|
|
541
|
+
Z(e.modelValue, t) || o(m, t);
|
|
542
|
+
}, at = (e) => nt(e, (e) => {
|
|
542
543
|
let t = v.cachedOptions.get(e);
|
|
543
544
|
return !(t != null && t.disabled) && !(t != null && t.states.groupDisabled);
|
|
544
|
-
}),
|
|
545
|
+
}), Q = (t) => {
|
|
545
546
|
let n = l(t);
|
|
546
547
|
if (e.multiple && n !== u.delete && t.target.value.length <= 0) {
|
|
547
|
-
let t =
|
|
548
|
+
let t = w(e.modelValue).slice(), n = at(t);
|
|
548
549
|
if (n < 0) return;
|
|
549
550
|
let r = t[n];
|
|
550
|
-
t.splice(n, 1), o(
|
|
551
|
+
t.splice(n, 1), o(p, t), it(t), o("remove-tag", r);
|
|
551
552
|
}
|
|
552
553
|
}, ot = (t, n) => {
|
|
553
554
|
let r = v.selected.indexOf(n);
|
|
554
|
-
if (r > -1 && !
|
|
555
|
-
let t =
|
|
556
|
-
t.splice(r, 1), o(
|
|
555
|
+
if (r > -1 && !Pe.value) {
|
|
556
|
+
let t = w(e.modelValue).slice();
|
|
557
|
+
t.splice(r, 1), o(p, t), it(t), o("remove-tag", n.value);
|
|
557
558
|
}
|
|
558
559
|
t.stopPropagation(), $();
|
|
559
560
|
}, st = (t) => {
|
|
560
561
|
t.stopPropagation();
|
|
561
|
-
let n = e.multiple ? [] :
|
|
562
|
+
let n = e.multiple ? [] : Oe.value;
|
|
562
563
|
if (e.multiple) for (let e of v.selected) e.isDisabled && n.push(e.value);
|
|
563
|
-
o(
|
|
564
|
+
o(p, n), it(n), v.hoveringIndex = -1, S.value = !1, o("clear"), $();
|
|
564
565
|
}, ct = (t) => {
|
|
565
566
|
if (e.multiple) {
|
|
566
|
-
let n =
|
|
567
|
-
r > -1 ? n.splice(r, 1) : (e.multipleLimit <= 0 || n.length < e.multipleLimit) && n.push(t.value), o(
|
|
568
|
-
} else !
|
|
569
|
-
$(), !
|
|
567
|
+
let n = w(e.modelValue ?? []).slice(), r = lt(n, t);
|
|
568
|
+
r > -1 ? n.splice(r, 1) : (e.multipleLimit <= 0 || n.length < e.multipleLimit) && n.push(t.value), o(p, n), it(n), t.created && Ge(""), e.filterable && (t.created || !e.reserveKeyword) && (v.inputValue = "");
|
|
569
|
+
} else !Z(e.modelValue, t.value) && o("update:modelValue", t.value), it(t.value), S.value = !1;
|
|
570
|
+
$(), !S.value && F(() => {
|
|
570
571
|
ut(t);
|
|
571
572
|
});
|
|
572
|
-
}, lt = (t, n) =>
|
|
573
|
+
}, lt = (t, n) => ee(n) ? -1 : r(n.value) ? t.findIndex((t) => Z(X(t, e.valueKey), xt(n))) : t.indexOf(n.value), ut = (e) => {
|
|
573
574
|
var n;
|
|
574
575
|
let r = t(e) ? e[e.length - 1] : e, i = null;
|
|
575
|
-
if (!
|
|
576
|
-
let e =
|
|
576
|
+
if (!rt(r == null ? void 0 : r.value)) {
|
|
577
|
+
let e = R.value.filter((e) => e.value === r.value);
|
|
577
578
|
e.length > 0 && (i = e[0].$el);
|
|
578
579
|
}
|
|
579
580
|
if (b.value && i) {
|
|
580
581
|
var a, o;
|
|
581
|
-
let e = (a = b.value) == null || (a = a.popperRef) == null || (a = a.contentRef) == null || (o = a.querySelector) == null ? void 0 : o.call(a, `.${
|
|
582
|
-
e &&
|
|
582
|
+
let e = (a = b.value) == null || (a = a.popperRef) == null || (a = a.contentRef) == null || (o = a.querySelector) == null ? void 0 : o.call(a, `.${h.be("dropdown", "wrap")}`);
|
|
583
|
+
e && fe(e, i);
|
|
583
584
|
}
|
|
584
585
|
(n = Ce.value) == null || n.handleScroll();
|
|
585
586
|
}, dt = (e) => {
|
|
586
587
|
v.options.set(e.value, e), v.cachedOptions.set(e.value, e);
|
|
587
588
|
}, ft = (e, t) => {
|
|
588
589
|
v.options.get(e) === t && v.options.delete(e);
|
|
589
|
-
}, pt =
|
|
590
|
+
}, pt = D(() => {
|
|
590
591
|
var e;
|
|
591
592
|
return (e = b.value) == null || (e = e.popperRef) == null ? void 0 : e.contentRef;
|
|
592
593
|
}), mt = () => {
|
|
593
|
-
v.isBeforeHide = !1,
|
|
594
|
+
v.isBeforeHide = !1, F(() => {
|
|
594
595
|
var e;
|
|
595
596
|
(e = Ce.value) == null || e.update(), ut(v.selected);
|
|
596
597
|
});
|
|
597
598
|
}, $ = () => {
|
|
598
599
|
var e;
|
|
599
|
-
(e =
|
|
600
|
+
(e = le.value) == null || e.focus();
|
|
600
601
|
}, ht = () => {
|
|
601
602
|
var e;
|
|
602
|
-
if (
|
|
603
|
-
|
|
603
|
+
if (S.value) {
|
|
604
|
+
S.value = !1, F(() => {
|
|
604
605
|
var e;
|
|
605
|
-
return (e =
|
|
606
|
+
return (e = le.value) == null ? void 0 : e.blur();
|
|
606
607
|
});
|
|
607
608
|
return;
|
|
608
609
|
}
|
|
609
|
-
(e =
|
|
610
|
+
(e = le.value) == null || e.blur();
|
|
610
611
|
}, gt = (e) => {
|
|
611
612
|
st(e);
|
|
612
613
|
}, _t = (e) => {
|
|
613
|
-
if (
|
|
614
|
+
if (S.value = !1, O.value) {
|
|
614
615
|
let t = new FocusEvent("blur", e);
|
|
615
|
-
|
|
616
|
+
F(() => k(t));
|
|
616
617
|
}
|
|
617
618
|
}, vt = () => {
|
|
618
|
-
v.inputValue.length > 0 ? v.inputValue = "" :
|
|
619
|
+
v.inputValue.length > 0 ? v.inputValue = "" : S.value = !1;
|
|
619
620
|
}, yt = (t) => {
|
|
620
621
|
var n;
|
|
621
|
-
|
|
622
|
+
Pe.value || e.filterable && S.value && t && !((n = x.value) != null && n.contains(t.target)) || (te && (v.inputHovering = !0), v.menuVisibleOnFocus ? v.menuVisibleOnFocus = !1 : S.value = !S.value);
|
|
622
623
|
}, bt = () => {
|
|
623
|
-
if (!
|
|
624
|
+
if (!S.value) yt();
|
|
624
625
|
else {
|
|
625
|
-
let e =
|
|
626
|
+
let e = R.value[v.hoveringIndex];
|
|
626
627
|
e && !e.isDisabled && ct(e);
|
|
627
628
|
}
|
|
628
|
-
}, xt = (t) => r(t.value) ?
|
|
629
|
-
if (!
|
|
630
|
-
|
|
629
|
+
}, xt = (t) => r(t.value) ? X(t.value, e.valueKey) : t.value, St = D(() => R.value.filter((e) => e.visible).every((e) => e.isDisabled)), Ct = D(() => e.multiple ? e.collapseTags ? v.selected.slice(0, e.maxCollapseTags) : v.selected : []), wt = D(() => e.multiple && e.collapseTags ? v.selected.slice(e.maxCollapseTags) : []), Tt = (e) => {
|
|
630
|
+
if (!S.value) {
|
|
631
|
+
S.value = !0;
|
|
631
632
|
return;
|
|
632
633
|
}
|
|
633
|
-
if (!(v.options.size === 0 ||
|
|
634
|
+
if (!(v.options.size === 0 || L.value === 0 || Ae.value) && !St.value) {
|
|
634
635
|
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));
|
|
635
|
-
let t =
|
|
636
|
-
(t.isDisabled || !t.visible) && Tt(e),
|
|
636
|
+
let t = R.value[v.hoveringIndex];
|
|
637
|
+
(t.isDisabled || !t.visible) && Tt(e), F(() => ut(C.value));
|
|
637
638
|
}
|
|
638
639
|
}, Et = (e, t, n, r) => {
|
|
639
640
|
for (let i = t; i >= 0 && i < r; i += n) {
|
|
@@ -644,8 +645,8 @@ var bt = /* @__PURE__ */ x(vt, [["render", yt]]), xt = (e, o) => {
|
|
|
644
645
|
}, Dt = (e, t) => {
|
|
645
646
|
let n = v.options.size;
|
|
646
647
|
if (n === 0) return;
|
|
647
|
-
let r =
|
|
648
|
-
o != null && (v.hoveringIndex = o,
|
|
648
|
+
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(() => ut(C.value)));
|
|
649
650
|
}, Ot = (e) => {
|
|
650
651
|
let t = l(e), n = !0;
|
|
651
652
|
switch (t) {
|
|
@@ -657,28 +658,28 @@ var bt = /* @__PURE__ */ x(vt, [["render", yt]]), xt = (e, o) => {
|
|
|
657
658
|
break;
|
|
658
659
|
case u.enter:
|
|
659
660
|
case u.numpadEnter:
|
|
660
|
-
|
|
661
|
+
Ae.value || bt();
|
|
661
662
|
break;
|
|
662
663
|
case u.esc:
|
|
663
664
|
vt();
|
|
664
665
|
break;
|
|
665
666
|
case u.backspace:
|
|
666
|
-
n = !1,
|
|
667
|
+
n = !1, Q(e);
|
|
667
668
|
return;
|
|
668
669
|
case u.home:
|
|
669
|
-
if (!
|
|
670
|
+
if (!S.value) return;
|
|
670
671
|
Dt(0, "down");
|
|
671
672
|
break;
|
|
672
673
|
case u.end:
|
|
673
|
-
if (!
|
|
674
|
+
if (!S.value) return;
|
|
674
675
|
Dt(v.options.size - 1, "up");
|
|
675
676
|
break;
|
|
676
677
|
case u.pageUp:
|
|
677
|
-
if (!
|
|
678
|
+
if (!S.value) return;
|
|
678
679
|
Dt(v.hoveringIndex - 10, "up");
|
|
679
680
|
break;
|
|
680
681
|
case u.pageDown:
|
|
681
|
-
if (!
|
|
682
|
+
if (!S.value) return;
|
|
682
683
|
Dt(v.hoveringIndex + 10, "down");
|
|
683
684
|
break;
|
|
684
685
|
default:
|
|
@@ -690,58 +691,58 @@ var bt = /* @__PURE__ */ x(vt, [["render", yt]]), xt = (e, o) => {
|
|
|
690
691
|
if (!y.value) return 0;
|
|
691
692
|
let e = window.getComputedStyle(y.value);
|
|
692
693
|
return Number.parseFloat(e.gap || "6px");
|
|
693
|
-
}, At =
|
|
694
|
+
}, At = D(() => {
|
|
694
695
|
let t = kt(), n = e.filterable ? t + 11 : 0;
|
|
695
696
|
return { maxWidth: `${Se.value && e.maxCollapseTags === 1 ? v.selectionWidth - v.collapseItemWidth - t - n : v.selectionWidth - n}px` };
|
|
696
|
-
}), jt =
|
|
697
|
+
}), jt = D(() => ({ maxWidth: `${v.selectionWidth}px` })), Mt = (e) => {
|
|
697
698
|
o("popup-scroll", e);
|
|
698
699
|
};
|
|
699
|
-
_(y,
|
|
700
|
+
_(y, Xe), _(E, J), _(xe, Y), _(Se, q);
|
|
700
701
|
let Nt;
|
|
701
|
-
return
|
|
702
|
-
e ? Nt = _(
|
|
703
|
-
}),
|
|
704
|
-
|
|
702
|
+
return K(() => He.value, (e) => {
|
|
703
|
+
e ? Nt = _(ve, J).stop : (Nt == null || Nt(), Nt = void 0), o("visible-change", e);
|
|
704
|
+
}), ze(() => {
|
|
705
|
+
qe();
|
|
705
706
|
}), {
|
|
706
|
-
inputId:
|
|
707
|
+
inputId: De,
|
|
707
708
|
contentId: f,
|
|
708
|
-
nsSelect:
|
|
709
|
+
nsSelect: h,
|
|
709
710
|
nsInput: g,
|
|
710
711
|
states: v,
|
|
711
|
-
isFocused:
|
|
712
|
-
expanded:
|
|
713
|
-
optionsArray:
|
|
714
|
-
hoverOption:
|
|
715
|
-
selectSize:
|
|
716
|
-
filteredOptionsCount:
|
|
717
|
-
updateTooltip:
|
|
718
|
-
updateTagTooltip:
|
|
719
|
-
debouncedOnInputChange:
|
|
720
|
-
onInput:
|
|
721
|
-
deletePrevTag:
|
|
712
|
+
isFocused: O,
|
|
713
|
+
expanded: S,
|
|
714
|
+
optionsArray: R,
|
|
715
|
+
hoverOption: C,
|
|
716
|
+
selectSize: H,
|
|
717
|
+
filteredOptionsCount: L,
|
|
718
|
+
updateTooltip: J,
|
|
719
|
+
updateTagTooltip: Y,
|
|
720
|
+
debouncedOnInputChange: et,
|
|
721
|
+
onInput: $e,
|
|
722
|
+
deletePrevTag: Q,
|
|
722
723
|
deleteTag: ot,
|
|
723
724
|
deleteSelected: st,
|
|
724
725
|
handleOptionSelect: ct,
|
|
725
726
|
scrollToOption: ut,
|
|
726
|
-
hasModelValue:
|
|
727
|
-
shouldShowPlaceholder:
|
|
728
|
-
currentPlaceholder:
|
|
729
|
-
mouseEnterEventName:
|
|
730
|
-
needStatusIcon:
|
|
731
|
-
showClearBtn:
|
|
732
|
-
iconComponent:
|
|
733
|
-
iconReverse:
|
|
734
|
-
validateState:
|
|
735
|
-
validateIcon:
|
|
736
|
-
showNewOption:
|
|
737
|
-
updateOptions:
|
|
738
|
-
collapseTagSize:
|
|
739
|
-
setSelected:
|
|
740
|
-
selectDisabled:
|
|
741
|
-
emptyText:
|
|
742
|
-
handleCompositionStart:
|
|
743
|
-
handleCompositionUpdate:
|
|
744
|
-
handleCompositionEnd:
|
|
727
|
+
hasModelValue: A,
|
|
728
|
+
shouldShowPlaceholder: Ue,
|
|
729
|
+
currentPlaceholder: We,
|
|
730
|
+
mouseEnterEventName: W,
|
|
731
|
+
needStatusIcon: j,
|
|
732
|
+
showClearBtn: Fe,
|
|
733
|
+
iconComponent: M,
|
|
734
|
+
iconReverse: N,
|
|
735
|
+
validateState: P,
|
|
736
|
+
validateIcon: Ie,
|
|
737
|
+
showNewOption: Be,
|
|
738
|
+
updateOptions: V,
|
|
739
|
+
collapseTagSize: U,
|
|
740
|
+
setSelected: qe,
|
|
741
|
+
selectDisabled: Pe,
|
|
742
|
+
emptyText: I,
|
|
743
|
+
handleCompositionStart: je,
|
|
744
|
+
handleCompositionUpdate: Me,
|
|
745
|
+
handleCompositionEnd: Ne,
|
|
745
746
|
handleKeydown: Ot,
|
|
746
747
|
onOptionCreate: dt,
|
|
747
748
|
onOptionDestroy: ft,
|
|
@@ -755,31 +756,31 @@ var bt = /* @__PURE__ */ x(vt, [["render", yt]]), xt = (e, o) => {
|
|
|
755
756
|
selectOption: bt,
|
|
756
757
|
getValueKey: xt,
|
|
757
758
|
navigateOptions: Tt,
|
|
758
|
-
dropdownMenuVisible:
|
|
759
|
+
dropdownMenuVisible: He,
|
|
759
760
|
showTagList: Ct,
|
|
760
761
|
collapseTagList: wt,
|
|
761
762
|
popupScroll: Mt,
|
|
762
|
-
getOption:
|
|
763
|
+
getOption: G,
|
|
763
764
|
tagStyle: At,
|
|
764
765
|
collapseTagStyle: jt,
|
|
765
766
|
popperRef: pt,
|
|
766
|
-
inputRef:
|
|
767
|
+
inputRef: le,
|
|
767
768
|
tooltipRef: b,
|
|
768
|
-
tagTooltipRef:
|
|
769
|
+
tagTooltipRef: ce,
|
|
769
770
|
prefixRef: ue,
|
|
770
|
-
suffixRef:
|
|
771
|
-
selectRef:
|
|
772
|
-
wrapperRef:
|
|
771
|
+
suffixRef: x,
|
|
772
|
+
selectRef: se,
|
|
773
|
+
wrapperRef: E,
|
|
773
774
|
selectionRef: y,
|
|
774
775
|
scrollbarRef: Ce,
|
|
775
|
-
menuRef:
|
|
776
|
-
tagMenuRef:
|
|
776
|
+
menuRef: ve,
|
|
777
|
+
tagMenuRef: xe,
|
|
777
778
|
collapseItemRef: Se
|
|
778
779
|
};
|
|
779
|
-
}, St =
|
|
780
|
+
}, St = N({
|
|
780
781
|
name: "ElOptions",
|
|
781
782
|
setup(n, { slots: r }) {
|
|
782
|
-
let i =
|
|
783
|
+
let i = Ie(Q), o = [];
|
|
783
784
|
return () => {
|
|
784
785
|
var n, s;
|
|
785
786
|
let c = (n = r.default) == null ? void 0 : n.call(r), l = [];
|
|
@@ -790,7 +791,7 @@ var bt = /* @__PURE__ */ x(vt, [["render", yt]]), xt = (e, o) => {
|
|
|
790
791
|
c === "ElOptionGroup" ? u(!e(n.children) && !t(n.children) && a((i = n.children) == null ? void 0 : i.default) ? (o = n.children) == null ? void 0 : o.default() : n.children) : c === "ElOption" ? l.push((s = n.props) == null ? void 0 : s.value) : t(n.children) && u(n.children);
|
|
791
792
|
});
|
|
792
793
|
}
|
|
793
|
-
return c.length && u((s = c[0]) == null ? void 0 : s.children),
|
|
794
|
+
return c.length && u((s = c[0]) == null ? void 0 : s.children), Z(l, o) || (o = l, i && (i.states.optionValues = l)), c;
|
|
794
795
|
};
|
|
795
796
|
}
|
|
796
797
|
}), Ct = "ElSelect", wt = /* @__PURE__ */ new WeakMap(), Tt = (e) => (...t) => {
|
|
@@ -810,7 +811,7 @@ var bt = /* @__PURE__ */ x(vt, [["render", yt]]), xt = (e, o) => {
|
|
|
810
811
|
handler: Tt(e),
|
|
811
812
|
count: 0
|
|
812
813
|
}, wt.set(e, t)), t;
|
|
813
|
-
}, Dt =
|
|
814
|
+
}, Dt = N({
|
|
814
815
|
name: Ct,
|
|
815
816
|
componentName: Ct,
|
|
816
817
|
components: {
|
|
@@ -818,16 +819,16 @@ var bt = /* @__PURE__ */ x(vt, [["render", yt]]), xt = (e, o) => {
|
|
|
818
819
|
ElOption: $,
|
|
819
820
|
ElOptions: St,
|
|
820
821
|
ElOptionGroup: _t,
|
|
821
|
-
ElTag:
|
|
822
|
-
ElScrollbar:
|
|
823
|
-
ElTooltip:
|
|
824
|
-
ElIcon:
|
|
822
|
+
ElTag: Oe,
|
|
823
|
+
ElScrollbar: Ee,
|
|
824
|
+
ElTooltip: ue,
|
|
825
|
+
ElIcon: S
|
|
825
826
|
},
|
|
826
|
-
directives: { ClickOutside:
|
|
827
|
+
directives: { ClickOutside: De },
|
|
827
828
|
props: ct,
|
|
828
829
|
emits: [
|
|
830
|
+
p,
|
|
829
831
|
m,
|
|
830
|
-
h,
|
|
831
832
|
"remove-tag",
|
|
832
833
|
"clear",
|
|
833
834
|
"visible-change",
|
|
@@ -836,20 +837,20 @@ var bt = /* @__PURE__ */ x(vt, [["render", yt]]), xt = (e, o) => {
|
|
|
836
837
|
"popup-scroll"
|
|
837
838
|
],
|
|
838
839
|
setup(e, { emit: n, slots: i }) {
|
|
839
|
-
let a =
|
|
840
|
+
let a = P(), o = Et(a.appContext);
|
|
840
841
|
o.count += 1, a.appContext.config.warnHandler = o.handler;
|
|
841
|
-
let s =
|
|
842
|
+
let s = D(() => {
|
|
842
843
|
let { modelValue: n, multiple: r } = e, i = r ? [] : void 0;
|
|
843
844
|
return t(n) ? r ? n : i : r ? i : n;
|
|
844
|
-
}), c =
|
|
845
|
-
...
|
|
845
|
+
}), c = Ve({
|
|
846
|
+
...G(e),
|
|
846
847
|
modelValue: s
|
|
847
|
-
}), l = xt(c, n), { calculatorRef: u, inputStyle: d } =
|
|
848
|
+
}), l = xt(c, n), { calculatorRef: u, inputStyle: d } = it(), { getLabel: f, getValue: p, getOptions: m, getDisabled: h } = st(e), ee = (e) => ({
|
|
848
849
|
label: f(e),
|
|
849
850
|
value: p(e),
|
|
850
851
|
disabled: h(e)
|
|
851
852
|
}), te = (e) => e.reduce((e, t) => (e.push(t), t.children && t.children.length > 0 && e.push(...te(t.children)), e), []), ne = (e) => {
|
|
852
|
-
|
|
853
|
+
ve(e || []).forEach((e) => {
|
|
853
854
|
if (r(e) && (e.type.name === "ElOption" || e.type.name === "ElTree")) {
|
|
854
855
|
var t;
|
|
855
856
|
let n = e.type.name;
|
|
@@ -863,13 +864,13 @@ var bt = /* @__PURE__ */ x(vt, [["render", yt]]), xt = (e, o) => {
|
|
|
863
864
|
}
|
|
864
865
|
});
|
|
865
866
|
};
|
|
866
|
-
|
|
867
|
+
K(() => {
|
|
867
868
|
var t;
|
|
868
869
|
return [e.persistent || l.expanded.value || !i.default || (t = i.default) == null ? void 0 : t.call(i), s.value];
|
|
869
870
|
}, () => {
|
|
870
871
|
var t;
|
|
871
872
|
e.persistent || l.expanded.value || i.default && (l.states.options.clear(), ne((t = i.default) == null ? void 0 : t.call(i)));
|
|
872
|
-
}, { immediate: !0 }),
|
|
873
|
+
}, { immediate: !0 }), Be(Q, Ve({
|
|
873
874
|
props: c,
|
|
874
875
|
states: l.states,
|
|
875
876
|
selectRef: l.selectRef,
|
|
@@ -879,8 +880,8 @@ var bt = /* @__PURE__ */ x(vt, [["render", yt]]), xt = (e, o) => {
|
|
|
879
880
|
onOptionCreate: l.onOptionCreate,
|
|
880
881
|
onOptionDestroy: l.onOptionDestroy
|
|
881
882
|
}));
|
|
882
|
-
let re =
|
|
883
|
-
return
|
|
883
|
+
let re = D(() => e.multiple ? l.states.selected.map((e) => e.currentLabel) : l.states.selectedLabel);
|
|
884
|
+
return R(() => {
|
|
884
885
|
let e = wt.get(a.appContext);
|
|
885
886
|
e && (--e.count, e.count <= 0 && (a.appContext.config.warnHandler = e.originalWarnHandler, wt.delete(a.appContext)));
|
|
886
887
|
}), {
|
|
@@ -910,11 +911,11 @@ var bt = /* @__PURE__ */ x(vt, [["render", yt]]), xt = (e, o) => {
|
|
|
910
911
|
"aria-label"
|
|
911
912
|
], kt = ["textContent"], At = { key: 1 };
|
|
912
913
|
function jt(e, t, n, r, i, a) {
|
|
913
|
-
let o =
|
|
914
|
-
return
|
|
914
|
+
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(), A("div", Re({
|
|
915
916
|
ref: "selectRef",
|
|
916
917
|
class: [e.nsSelect.b(), e.nsSelect.m(e.selectSize)]
|
|
917
|
-
}, { [
|
|
918
|
+
}, { [Ge(e.mouseEnterEventName)]: t[11] || (t[11] = (t) => e.states.inputHovering = !0) }, { onMouseleave: t[12] || (t[12] = (t) => e.states.inputHovering = !1) }), [M(s, {
|
|
918
919
|
ref: "tooltipRef",
|
|
919
920
|
visible: e.dropdownMenuVisible,
|
|
920
921
|
placement: e.placement,
|
|
@@ -936,52 +937,52 @@ function jt(e, t, n, r, i, a) {
|
|
|
936
937
|
onBeforeShow: e.handleMenuEnter,
|
|
937
938
|
onHide: t[10] || (t[10] = (t) => e.states.isBeforeHide = !1)
|
|
938
939
|
}, {
|
|
939
|
-
default:
|
|
940
|
+
default: q(() => {
|
|
940
941
|
var n;
|
|
941
|
-
return [
|
|
942
|
+
return [j("div", {
|
|
942
943
|
ref: "wrapperRef",
|
|
943
|
-
class:
|
|
944
|
+
class: I([
|
|
944
945
|
e.nsSelect.e("wrapper"),
|
|
945
946
|
e.nsSelect.is("focused", e.isFocused),
|
|
946
947
|
e.nsSelect.is("hovering", e.states.inputHovering),
|
|
947
948
|
e.nsSelect.is("filterable", e.filterable),
|
|
948
949
|
e.nsSelect.is("disabled", e.selectDisabled)
|
|
949
950
|
]),
|
|
950
|
-
onClick: t[7] || (t[7] =
|
|
951
|
+
onClick: t[7] || (t[7] = Y((...t) => e.toggleMenu && e.toggleMenu(...t), ["prevent"]))
|
|
951
952
|
}, [
|
|
952
|
-
e.$slots.prefix ? (
|
|
953
|
+
e.$slots.prefix ? (z(), A("div", {
|
|
953
954
|
key: 0,
|
|
954
955
|
ref: "prefixRef",
|
|
955
|
-
class:
|
|
956
|
-
}, [
|
|
957
|
-
|
|
956
|
+
class: I(e.nsSelect.e("prefix"))
|
|
957
|
+
}, [H(e.$slots, "prefix")], 2)) : k("v-if", !0),
|
|
958
|
+
j("div", {
|
|
958
959
|
ref: "selectionRef",
|
|
959
|
-
class:
|
|
960
|
+
class: I([e.nsSelect.e("selection"), e.nsSelect.is("near", e.multiple && !e.$slots.prefix && !!e.states.selected.length)])
|
|
960
961
|
}, [
|
|
961
|
-
e.multiple ?
|
|
962
|
+
e.multiple ? H(e.$slots, "tag", {
|
|
962
963
|
key: 0,
|
|
963
964
|
data: e.states.selected,
|
|
964
965
|
deleteTag: e.deleteTag,
|
|
965
966
|
selectDisabled: e.selectDisabled
|
|
966
967
|
}, () => {
|
|
967
968
|
var t, n, r, i, a, c, l, u, d, f, p, m, h;
|
|
968
|
-
return [(
|
|
969
|
+
return [(z(!0), A(E, null, V(e.showTagList, (t) => (z(), A("div", {
|
|
969
970
|
key: e.getValueKey(t),
|
|
970
|
-
class:
|
|
971
|
-
}, [
|
|
971
|
+
class: I(e.nsSelect.e("selected-item"))
|
|
972
|
+
}, [M(o, {
|
|
972
973
|
closable: !e.selectDisabled && !t.isDisabled,
|
|
973
974
|
size: e.collapseTagSize,
|
|
974
975
|
type: e.tagType,
|
|
975
976
|
effect: e.tagEffect,
|
|
976
977
|
"disable-transitions": "",
|
|
977
|
-
style:
|
|
978
|
+
style: L(e.tagStyle),
|
|
978
979
|
onClose: (n) => e.deleteTag(n, t)
|
|
979
980
|
}, {
|
|
980
|
-
default:
|
|
981
|
+
default: q(() => [j("span", { class: I(e.nsSelect.e("tags-text")) }, [H(e.$slots, "label", {
|
|
981
982
|
index: t.index,
|
|
982
983
|
label: t.currentLabel,
|
|
983
984
|
value: t.value
|
|
984
|
-
}, () => [
|
|
985
|
+
}, () => [Fe(W(t.currentLabel), 1)])], 2)]),
|
|
985
986
|
_: 2
|
|
986
987
|
}, 1032, [
|
|
987
988
|
"closable",
|
|
@@ -990,7 +991,7 @@ function jt(e, t, n, r, i, a) {
|
|
|
990
991
|
"effect",
|
|
991
992
|
"style",
|
|
992
993
|
"onClose"
|
|
993
|
-
])], 2))), 128)), e.collapseTags && e.states.selected.length > e.maxCollapseTags ? (
|
|
994
|
+
])], 2))), 128)), e.collapseTags && e.states.selected.length > e.maxCollapseTags ? (z(), O(s, {
|
|
994
995
|
key: 0,
|
|
995
996
|
ref: "tagTooltipRef",
|
|
996
997
|
disabled: e.dropdownMenuVisible || !e.collapseTagsTooltip,
|
|
@@ -1013,18 +1014,18 @@ function jt(e, t, n, r, i, a) {
|
|
|
1013
1014
|
"auto-close": (m = e.tagTooltip) == null ? void 0 : m.autoClose,
|
|
1014
1015
|
offset: (h = e.tagTooltip) == null ? void 0 : h.offset
|
|
1015
1016
|
}, {
|
|
1016
|
-
default:
|
|
1017
|
+
default: q(() => [j("div", {
|
|
1017
1018
|
ref: "collapseItemRef",
|
|
1018
|
-
class:
|
|
1019
|
-
}, [
|
|
1019
|
+
class: I(e.nsSelect.e("selected-item"))
|
|
1020
|
+
}, [M(o, {
|
|
1020
1021
|
closable: !1,
|
|
1021
1022
|
size: e.collapseTagSize,
|
|
1022
1023
|
type: e.tagType,
|
|
1023
1024
|
effect: e.tagEffect,
|
|
1024
1025
|
"disable-transitions": "",
|
|
1025
|
-
style:
|
|
1026
|
+
style: L(e.collapseTagStyle)
|
|
1026
1027
|
}, {
|
|
1027
|
-
default:
|
|
1028
|
+
default: q(() => [j("span", { class: I(e.nsSelect.e("tags-text")) }, " + " + W(e.states.selected.length - e.maxCollapseTags), 3)]),
|
|
1028
1029
|
_: 1
|
|
1029
1030
|
}, 8, [
|
|
1030
1031
|
"size",
|
|
@@ -1032,13 +1033,13 @@ function jt(e, t, n, r, i, a) {
|
|
|
1032
1033
|
"effect",
|
|
1033
1034
|
"style"
|
|
1034
1035
|
])], 2)]),
|
|
1035
|
-
content:
|
|
1036
|
+
content: q(() => [j("div", {
|
|
1036
1037
|
ref: "tagMenuRef",
|
|
1037
|
-
class:
|
|
1038
|
-
}, [(
|
|
1038
|
+
class: I(e.nsSelect.e("selection"))
|
|
1039
|
+
}, [(z(!0), A(E, null, V(e.collapseTagList, (t) => (z(), A("div", {
|
|
1039
1040
|
key: e.getValueKey(t),
|
|
1040
|
-
class:
|
|
1041
|
-
}, [
|
|
1041
|
+
class: I(e.nsSelect.e("selected-item"))
|
|
1042
|
+
}, [M(o, {
|
|
1042
1043
|
class: "in-tooltip",
|
|
1043
1044
|
closable: !e.selectDisabled && !t.isDisabled,
|
|
1044
1045
|
size: e.collapseTagSize,
|
|
@@ -1047,11 +1048,11 @@ function jt(e, t, n, r, i, a) {
|
|
|
1047
1048
|
"disable-transitions": "",
|
|
1048
1049
|
onClose: (n) => e.deleteTag(n, t)
|
|
1049
1050
|
}, {
|
|
1050
|
-
default:
|
|
1051
|
+
default: q(() => [j("span", { class: I(e.nsSelect.e("tags-text")) }, [H(e.$slots, "label", {
|
|
1051
1052
|
index: t.index,
|
|
1052
1053
|
label: t.currentLabel,
|
|
1053
1054
|
value: t.value
|
|
1054
|
-
}, () => [
|
|
1055
|
+
}, () => [Fe(W(t.currentLabel), 1)])], 2)]),
|
|
1055
1056
|
_: 2
|
|
1056
1057
|
}, 1032, [
|
|
1057
1058
|
"closable",
|
|
@@ -1076,22 +1077,22 @@ function jt(e, t, n, r, i, a) {
|
|
|
1076
1077
|
"hide-after",
|
|
1077
1078
|
"auto-close",
|
|
1078
1079
|
"offset"
|
|
1079
|
-
])) :
|
|
1080
|
-
}) :
|
|
1081
|
-
|
|
1080
|
+
])) : k("v-if", !0)];
|
|
1081
|
+
}) : k("v-if", !0),
|
|
1082
|
+
j("div", { class: I([
|
|
1082
1083
|
e.nsSelect.e("selected-item"),
|
|
1083
1084
|
e.nsSelect.e("input-wrapper"),
|
|
1084
1085
|
e.nsSelect.is("hidden", !e.filterable || e.selectDisabled || !e.states.inputValue && !e.isFocused)
|
|
1085
|
-
]) }, [
|
|
1086
|
+
]) }, [j("input", {
|
|
1086
1087
|
id: e.inputId,
|
|
1087
1088
|
ref: "inputRef",
|
|
1088
1089
|
value: e.states.inputValue,
|
|
1089
1090
|
type: "text",
|
|
1090
1091
|
name: e.name,
|
|
1091
|
-
class:
|
|
1092
|
+
class: I([e.nsSelect.e("input"), e.nsSelect.is(e.selectSize)]),
|
|
1092
1093
|
disabled: e.selectDisabled,
|
|
1093
1094
|
autocomplete: e.autocomplete,
|
|
1094
|
-
style:
|
|
1095
|
+
style: L(e.inputStyle),
|
|
1095
1096
|
tabindex: e.tabindex,
|
|
1096
1097
|
role: "combobox",
|
|
1097
1098
|
readonly: !e.filterable,
|
|
@@ -1107,104 +1108,104 @@ function jt(e, t, n, r, i, a) {
|
|
|
1107
1108
|
onCompositionupdate: t[2] || (t[2] = (...t) => e.handleCompositionUpdate && e.handleCompositionUpdate(...t)),
|
|
1108
1109
|
onCompositionend: t[3] || (t[3] = (...t) => e.handleCompositionEnd && e.handleCompositionEnd(...t)),
|
|
1109
1110
|
onInput: t[4] || (t[4] = (...t) => e.onInput && e.onInput(...t)),
|
|
1110
|
-
onChange: t[5] || (t[5] =
|
|
1111
|
-
onClick: t[6] || (t[6] =
|
|
1112
|
-
}, null, 46, Ot), e.filterable ? (
|
|
1111
|
+
onChange: t[5] || (t[5] = Y(() => {}, ["stop"])),
|
|
1112
|
+
onClick: t[6] || (t[6] = Y((...t) => e.toggleMenu && e.toggleMenu(...t), ["stop"]))
|
|
1113
|
+
}, null, 46, Ot), e.filterable ? (z(), A("span", {
|
|
1113
1114
|
key: 0,
|
|
1114
1115
|
ref: "calculatorRef",
|
|
1115
1116
|
"aria-hidden": "true",
|
|
1116
|
-
class:
|
|
1117
|
-
textContent:
|
|
1118
|
-
}, null, 10, kt)) :
|
|
1119
|
-
e.shouldShowPlaceholder ? (
|
|
1117
|
+
class: I(e.nsSelect.e("input-calculator")),
|
|
1118
|
+
textContent: W(e.states.inputValue)
|
|
1119
|
+
}, null, 10, kt)) : k("v-if", !0)], 2),
|
|
1120
|
+
e.shouldShowPlaceholder ? (z(), A("div", {
|
|
1120
1121
|
key: 1,
|
|
1121
|
-
class:
|
|
1122
|
+
class: I([
|
|
1122
1123
|
e.nsSelect.e("selected-item"),
|
|
1123
1124
|
e.nsSelect.e("placeholder"),
|
|
1124
1125
|
e.nsSelect.is("transparent", !e.hasModelValue || e.expanded && !e.states.inputValue)
|
|
1125
1126
|
])
|
|
1126
|
-
}, [e.hasModelValue ?
|
|
1127
|
+
}, [e.hasModelValue ? H(e.$slots, "label", {
|
|
1127
1128
|
key: 0,
|
|
1128
1129
|
index: e.getOption(e.modelValue).index,
|
|
1129
1130
|
label: e.currentPlaceholder,
|
|
1130
1131
|
value: e.modelValue
|
|
1131
|
-
}, () => [
|
|
1132
|
+
}, () => [j("span", null, W(e.currentPlaceholder), 1)]) : (z(), A("span", At, W(e.currentPlaceholder), 1))], 2)) : k("v-if", !0)
|
|
1132
1133
|
], 2),
|
|
1133
|
-
|
|
1134
|
+
j("div", {
|
|
1134
1135
|
ref: "suffixRef",
|
|
1135
|
-
class:
|
|
1136
|
+
class: I(e.nsSelect.e("suffix"))
|
|
1136
1137
|
}, [
|
|
1137
|
-
e.iconComponent && !e.showClearBtn ? (
|
|
1138
|
+
e.iconComponent && !e.showClearBtn ? (z(), O(c, {
|
|
1138
1139
|
key: 0,
|
|
1139
|
-
class:
|
|
1140
|
+
class: I([
|
|
1140
1141
|
e.nsSelect.e("caret"),
|
|
1141
1142
|
e.nsSelect.e("icon"),
|
|
1142
1143
|
e.iconReverse
|
|
1143
1144
|
])
|
|
1144
1145
|
}, {
|
|
1145
|
-
default:
|
|
1146
|
+
default: q(() => [(z(), O(Ue(e.iconComponent)))]),
|
|
1146
1147
|
_: 1
|
|
1147
|
-
}, 8, ["class"])) :
|
|
1148
|
-
e.showClearBtn && e.clearIcon ? (
|
|
1148
|
+
}, 8, ["class"])) : k("v-if", !0),
|
|
1149
|
+
e.showClearBtn && e.clearIcon ? (z(), O(c, {
|
|
1149
1150
|
key: 1,
|
|
1150
|
-
class:
|
|
1151
|
+
class: I([
|
|
1151
1152
|
e.nsSelect.e("caret"),
|
|
1152
1153
|
e.nsSelect.e("icon"),
|
|
1153
1154
|
e.nsSelect.e("clear")
|
|
1154
1155
|
]),
|
|
1155
1156
|
onClick: e.handleClearClick
|
|
1156
1157
|
}, {
|
|
1157
|
-
default:
|
|
1158
|
+
default: q(() => [(z(), O(Ue(e.clearIcon)))]),
|
|
1158
1159
|
_: 1
|
|
1159
|
-
}, 8, ["class", "onClick"])) :
|
|
1160
|
-
e.validateState && e.validateIcon && e.needStatusIcon ? (
|
|
1160
|
+
}, 8, ["class", "onClick"])) : k("v-if", !0),
|
|
1161
|
+
e.validateState && e.validateIcon && e.needStatusIcon ? (z(), O(c, {
|
|
1161
1162
|
key: 2,
|
|
1162
|
-
class:
|
|
1163
|
+
class: I([
|
|
1163
1164
|
e.nsInput.e("icon"),
|
|
1164
1165
|
e.nsInput.e("validateIcon"),
|
|
1165
1166
|
e.nsInput.is("loading", e.validateState === "validating")
|
|
1166
1167
|
])
|
|
1167
1168
|
}, {
|
|
1168
|
-
default:
|
|
1169
|
+
default: q(() => [(z(), O(Ue(e.validateIcon)))]),
|
|
1169
1170
|
_: 1
|
|
1170
|
-
}, 8, ["class"])) :
|
|
1171
|
+
}, 8, ["class"])) : k("v-if", !0)
|
|
1171
1172
|
], 2)
|
|
1172
1173
|
], 2)];
|
|
1173
1174
|
}),
|
|
1174
|
-
content:
|
|
1175
|
-
default:
|
|
1176
|
-
e.$slots.header ? (
|
|
1175
|
+
content: q(() => [M(p, { ref: "menuRef" }, {
|
|
1176
|
+
default: q(() => [
|
|
1177
|
+
e.$slots.header ? (z(), A("div", {
|
|
1177
1178
|
key: 0,
|
|
1178
|
-
class:
|
|
1179
|
-
onClick: t[8] || (t[8] =
|
|
1180
|
-
}, [
|
|
1181
|
-
|
|
1179
|
+
class: I(e.nsSelect.be("dropdown", "header")),
|
|
1180
|
+
onClick: t[8] || (t[8] = Y(() => {}, ["stop"]))
|
|
1181
|
+
}, [H(e.$slots, "header")], 2)) : k("v-if", !0),
|
|
1182
|
+
J(M(f, {
|
|
1182
1183
|
id: e.contentId,
|
|
1183
1184
|
ref: "scrollbarRef",
|
|
1184
1185
|
tag: "ul",
|
|
1185
1186
|
"wrap-class": e.nsSelect.be("dropdown", "wrap"),
|
|
1186
1187
|
"view-class": e.nsSelect.be("dropdown", "list"),
|
|
1187
|
-
class:
|
|
1188
|
+
class: I([e.nsSelect.is("empty", e.filteredOptionsCount === 0)]),
|
|
1188
1189
|
role: "listbox",
|
|
1189
1190
|
"aria-label": e.ariaLabel,
|
|
1190
1191
|
"aria-orientation": "vertical",
|
|
1191
1192
|
onScroll: e.popupScroll
|
|
1192
1193
|
}, {
|
|
1193
|
-
default:
|
|
1194
|
+
default: q(() => [e.showNewOption ? (z(), O(l, {
|
|
1194
1195
|
key: 0,
|
|
1195
1196
|
value: e.states.inputValue,
|
|
1196
1197
|
created: !0
|
|
1197
|
-
}, null, 8, ["value"])) :
|
|
1198
|
-
default:
|
|
1198
|
+
}, null, 8, ["value"])) : k("v-if", !0), M(d, null, {
|
|
1199
|
+
default: q(() => [H(e.$slots, "default", {}, () => [(z(!0), A(E, null, V(e.options, (t, n) => {
|
|
1199
1200
|
var r;
|
|
1200
|
-
return
|
|
1201
|
+
return z(), A(E, { key: n }, [(r = e.getOptions(t)) != null && r.length ? (z(), O(u, {
|
|
1201
1202
|
key: 0,
|
|
1202
1203
|
label: e.getLabel(t),
|
|
1203
1204
|
disabled: e.getDisabled(t)
|
|
1204
1205
|
}, {
|
|
1205
|
-
default:
|
|
1206
|
+
default: q(() => [(z(!0), A(E, null, V(e.getOptions(t), (t) => (z(), O(l, Re({ key: e.getValue(t) }, { ref_for: !0 }, e.getOptionProps(t)), null, 16))), 128))]),
|
|
1206
1207
|
_: 2
|
|
1207
|
-
}, 1032, ["label", "disabled"])) : (
|
|
1208
|
+
}, 1032, ["label", "disabled"])) : (z(), O(l, Re({
|
|
1208
1209
|
key: 1,
|
|
1209
1210
|
ref_for: !0
|
|
1210
1211
|
}, e.getOptionProps(t)), null, 16))], 64);
|
|
@@ -1219,19 +1220,19 @@ function jt(e, t, n, r, i, a) {
|
|
|
1219
1220
|
"class",
|
|
1220
1221
|
"aria-label",
|
|
1221
1222
|
"onScroll"
|
|
1222
|
-
]), [[
|
|
1223
|
-
e.$slots.loading && e.loading ? (
|
|
1223
|
+
]), [[Xe, e.states.options.size > 0 && !e.loading]]),
|
|
1224
|
+
e.$slots.loading && e.loading ? (z(), A("div", {
|
|
1224
1225
|
key: 1,
|
|
1225
|
-
class:
|
|
1226
|
-
}, [
|
|
1226
|
+
class: I(e.nsSelect.be("dropdown", "loading"))
|
|
1227
|
+
}, [H(e.$slots, "loading")], 2)) : e.loading || e.filteredOptionsCount === 0 ? (z(), A("div", {
|
|
1227
1228
|
key: 2,
|
|
1228
|
-
class:
|
|
1229
|
-
}, [
|
|
1230
|
-
e.$slots.footer ? (
|
|
1229
|
+
class: I(e.nsSelect.be("dropdown", "empty"))
|
|
1230
|
+
}, [H(e.$slots, "empty", {}, () => [j("span", null, W(e.emptyText), 1)])], 2)) : k("v-if", !0),
|
|
1231
|
+
e.$slots.footer ? (z(), A("div", {
|
|
1231
1232
|
key: 3,
|
|
1232
|
-
class:
|
|
1233
|
-
onClick: t[9] || (t[9] =
|
|
1234
|
-
}, [
|
|
1233
|
+
class: I(e.nsSelect.be("dropdown", "footer")),
|
|
1234
|
+
onClick: t[9] || (t[9] = Y(() => {}, ["stop"]))
|
|
1235
|
+
}, [H(e.$slots, "footer")], 2)) : k("v-if", !0)
|
|
1235
1236
|
]),
|
|
1236
1237
|
_: 3
|
|
1237
1238
|
}, 512)]),
|
|
@@ -1266,16 +1267,16 @@ var Mt = s(/* @__PURE__ */ x(Dt, [["render", jt]]), {
|
|
|
1266
1267
|
o($), o(_t);
|
|
1267
1268
|
//#endregion
|
|
1268
1269
|
//#region src/components/form/FormSelect.vue
|
|
1269
|
-
var Nt =
|
|
1270
|
+
var Nt = je(Mt).filter((e) => ![
|
|
1270
1271
|
"value",
|
|
1271
1272
|
"placeholder",
|
|
1272
1273
|
"disabled"
|
|
1273
1274
|
].includes(e)), Pt = {
|
|
1274
1275
|
name: "FormSelect",
|
|
1275
1276
|
mixins: [
|
|
1276
|
-
je,
|
|
1277
1277
|
Me,
|
|
1278
|
-
|
|
1278
|
+
Ne,
|
|
1279
|
+
Pe
|
|
1279
1280
|
],
|
|
1280
1281
|
props: {
|
|
1281
1282
|
options: {
|
|
@@ -1332,8 +1333,8 @@ var Nt = Ae(Mt).filter((e) => ![
|
|
|
1332
1333
|
return "请选择";
|
|
1333
1334
|
},
|
|
1334
1335
|
inputProps() {
|
|
1335
|
-
return
|
|
1336
|
-
...
|
|
1336
|
+
return Ae({
|
|
1337
|
+
...ke(this.$attrs),
|
|
1337
1338
|
...this.$props
|
|
1338
1339
|
}, Nt);
|
|
1339
1340
|
},
|
|
@@ -1364,7 +1365,7 @@ var Nt = Ae(Mt).filter((e) => ![
|
|
|
1364
1365
|
}));
|
|
1365
1366
|
if (this.year) {
|
|
1366
1367
|
let e = (/* @__PURE__ */ new Date()).getFullYear(), t = [], n = 10;
|
|
1367
|
-
|
|
1368
|
+
Qe(this.year) && (n = this.year);
|
|
1368
1369
|
for (let r = -n; r <= n; r++) {
|
|
1369
1370
|
let n = e + r;
|
|
1370
1371
|
t.push({
|
|
@@ -1395,10 +1396,10 @@ var Nt = Ae(Mt).filter((e) => ![
|
|
|
1395
1396
|
var t;
|
|
1396
1397
|
this.loading = !0;
|
|
1397
1398
|
let n = await this.remoteMethod(e, this.prop);
|
|
1398
|
-
((t = n.data.data) == null ? void 0 : t.length) >= 0 ?
|
|
1399
|
+
((t = n.data.data) == null ? void 0 : t.length) >= 0 ? et(n.data.data[0]) ? this.remoteOptions = n.data.data.map((e) => ({
|
|
1399
1400
|
[this.props.value]: e,
|
|
1400
1401
|
[this.props.label]: e
|
|
1401
|
-
})) :
|
|
1402
|
+
})) : $e(n.data.data[0]) && (this.remoteOptions = n.data.data) : this.remoteOptions = [];
|
|
1402
1403
|
} catch {}
|
|
1403
1404
|
this.loading = !1;
|
|
1404
1405
|
},
|
|
@@ -1417,12 +1418,12 @@ var Nt = Ae(Mt).filter((e) => ![
|
|
|
1417
1418
|
class: "el-form-item__error"
|
|
1418
1419
|
};
|
|
1419
1420
|
function Lt(e, t, n, r, i, a) {
|
|
1420
|
-
let o =
|
|
1421
|
-
return
|
|
1421
|
+
let o = U("ElOption"), s = U("ElSelect"), c = U("FormItem");
|
|
1422
|
+
return z(), O(c, Re(e.formItemProps, {
|
|
1422
1423
|
rules: e.computeRules,
|
|
1423
1424
|
disabled: e.inputDisabled
|
|
1424
1425
|
}), {
|
|
1425
|
-
default:
|
|
1426
|
+
default: q(() => [M(s, Re({
|
|
1426
1427
|
value: i.innerValue,
|
|
1427
1428
|
filterable: n.filterable || !!n.year,
|
|
1428
1429
|
placeholder: e.inputDisabled ? "--" : e.computePlaceholder,
|
|
@@ -1436,11 +1437,11 @@ function Lt(e, t, n, r, i, a) {
|
|
|
1436
1437
|
"remote-method": a.fetchOptions,
|
|
1437
1438
|
clearable: "",
|
|
1438
1439
|
onClear: a.reloadOptions
|
|
1439
|
-
},
|
|
1440
|
-
default:
|
|
1440
|
+
}, Ke(e.listeners), { onInput: a.emitInput }), {
|
|
1441
|
+
default: q(() => [H(e.$slots, "default", {}, () => [(z(!0), A(E, null, V(a.innerOptions, (t) => H(e.$slots, "option", {
|
|
1441
1442
|
value: t[n.props.value],
|
|
1442
1443
|
label: t[n.props.label]
|
|
1443
|
-
}, () => [(
|
|
1444
|
+
}, () => [(z(), O(o, {
|
|
1444
1445
|
key: t[n.props.value],
|
|
1445
1446
|
value: t[n.props.value],
|
|
1446
1447
|
label: t[n.props.label]
|
|
@@ -1459,11 +1460,11 @@ function Lt(e, t, n, r, i, a) {
|
|
|
1459
1460
|
"remote-method",
|
|
1460
1461
|
"onClear",
|
|
1461
1462
|
"onInput"
|
|
1462
|
-
]), e.$slots.warn ? (
|
|
1463
|
-
error:
|
|
1464
|
-
label:
|
|
1465
|
-
below:
|
|
1466
|
-
tips:
|
|
1463
|
+
]), e.$slots.warn ? (z(), A("div", Ft, [H(e.$slots, "warn")])) : k("v-if", !0)]),
|
|
1464
|
+
error: q(({ error: t }) => [e.$slots.error && e.$slots.error(t) ? (z(), A("div", It, [H(e.$slots, "error", { error: t }, () => [Fe(W(t), 1)])])) : k("v-if", !0)]),
|
|
1465
|
+
label: q(() => [H(e.$slots, "label")]),
|
|
1466
|
+
below: q(() => [H(e.$slots, "below")]),
|
|
1467
|
+
tips: q(() => [H(e.$slots, "tips")]),
|
|
1467
1468
|
_: 3
|
|
1468
1469
|
}, 16, ["rules", "disabled"]);
|
|
1469
1470
|
}
|