@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,29 +1,30 @@
|
|
|
1
1
|
import { d as e, g as t, o as n, p as r, s as i, t as a } from "./install.yLcn5MLL.mjs";
|
|
2
2
|
import { t as o } from "./_plugin-vue_export-helper.7vrlOII_.mjs";
|
|
3
|
-
import { c as s,
|
|
4
|
-
import { r as
|
|
5
|
-
import {
|
|
6
|
-
import { B as
|
|
7
|
-
import { t as
|
|
8
|
-
import {
|
|
9
|
-
import { n as
|
|
10
|
-
import {
|
|
11
|
-
import { t as fe } from "./use-
|
|
3
|
+
import { c as s, l as c, n as l, r as u } from "./use-empty-values.D8KYIiKR.mjs";
|
|
4
|
+
import { r as d, t as f } from "./event.B4iwtUNO.mjs";
|
|
5
|
+
import { i as p } from "./typescript.CLl-2siQ.mjs";
|
|
6
|
+
import { B as m, E as h, F as g, L as _, M as v, O as y, S as ee, _ as b, b as x, d as te, j as S, p as ne, u as re, z as ie } from "./style.BmlGmjpO.mjs";
|
|
7
|
+
import { n as C, r as w, t as ae } from "./tooltip.DNiltmX1.mjs";
|
|
8
|
+
import { t as oe } from "./input.C2GWsuXE.mjs";
|
|
9
|
+
import { n as se } from "./use-locale.Be9HCpTQ.mjs";
|
|
10
|
+
import { n as ce } from "./scroll.DWjS-gnW.mjs";
|
|
11
|
+
import { i as le, r as ue, s as de, t as fe } from "./use-form-item.BlWa7ZKe.mjs";
|
|
12
12
|
import { n as T, t as pe } from "./use-composition.mUaomyno.mjs";
|
|
13
|
-
import {
|
|
14
|
-
import { i as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { t as
|
|
22
|
-
import { t as
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import { cloneDeep as
|
|
13
|
+
import { h as E, i as D, l as me, n as he, s as ge, t as O } from "./icon.ym7735_x.mjs";
|
|
14
|
+
import { i as k } from "./icon.CxCY22-F.mjs";
|
|
15
|
+
import { i as _e, n as A } from "./form-item.Ca8U2bIR.mjs";
|
|
16
|
+
import { t as ve } from "./scrollbar.CAmrlKi9.mjs";
|
|
17
|
+
import { n as ye, r as be, t as xe } from "./tag.ZhEIVRpP.mjs";
|
|
18
|
+
import { t as j } from "./checkbox.C_9WZ8gc.mjs";
|
|
19
|
+
import { t as Se } from "./radio.CeLeSOEo.mjs";
|
|
20
|
+
import { d as M, n as Ce, u as N } from "./util.Ce4MHRmD.mjs";
|
|
21
|
+
import { t as P } from "./form-input.BUGZmAI1.mjs";
|
|
22
|
+
import { t as we } from "./form-pick.DT5kumy4.mjs";
|
|
23
|
+
import { t as Te } from "./dictionary.BRhZD-WH.mjs";
|
|
24
|
+
import { Comment as Ee, Fragment as F, computed as I, createBlock as L, createCommentVNode as R, createElementBlock as z, createElementVNode as B, createSlots as De, createTextVNode as Oe, createVNode as V, defineComponent as H, getCurrentInstance as ke, inject as U, mergeProps as Ae, nextTick as je, normalizeClass as W, normalizeStyle as Me, onBeforeUpdate as G, onMounted as Ne, openBlock as K, provide as Pe, reactive as Fe, ref as q, renderList as Ie, renderSlot as J, resolveComponent as Le, resolveDynamicComponent as Re, toDisplayString as Y, toHandlers as ze, unref as X, useAttrs as Be, useSlots as Ve, vModelText as He, vShow as Ue, watch as Z, withCtx as Q, withDirectives as We, withKeys as Ge, withModifiers as Ke } from "vue";
|
|
25
|
+
import { findTreeChildren as qe, isArray as Je, isString as Ye, setParent as Xe } from "@web-utils/core";
|
|
26
|
+
import { cloneDeep as Ze } from "@web-utils/integrations/lodash";
|
|
27
|
+
import { cloneDeep as Qe, flattenDeep as $e, isEqual as et } from "lodash-unified";
|
|
27
28
|
//#region node_modules/.pnpm/element-plus@2.13.6_typescr_b7ae825491da06c0282fd613061a7e37/node_modules/element-plus/es/components/cascader-panel/src/config.mjs
|
|
28
29
|
var tt = S({
|
|
29
30
|
modelValue: { type: v([
|
|
@@ -64,34 +65,34 @@ var tt = S({
|
|
|
64
65
|
},
|
|
65
66
|
renderLabel: { type: Function }
|
|
66
67
|
}), it = (e) => !0, $ = {
|
|
68
|
+
[d]: it,
|
|
67
69
|
[f]: it,
|
|
68
|
-
[p]: it,
|
|
69
70
|
close: () => !0,
|
|
70
71
|
"expand-change": (e) => e
|
|
71
|
-
}, at = (e) =>
|
|
72
|
+
}, at = (e) => I(() => ({
|
|
72
73
|
...nt,
|
|
73
74
|
...e.props
|
|
74
75
|
})), ot = Symbol();
|
|
75
76
|
//#endregion
|
|
76
77
|
//#region node_modules/.pnpm/element-plus@2.13.6_typescr_b7ae825491da06c0282fd613061a7e37/node_modules/element-plus/es/components/cascader-panel/src/node-content.mjs
|
|
77
78
|
function st(t) {
|
|
78
|
-
return !!(e(t) ? t.every(({ type: e }) => e ===
|
|
79
|
+
return !!(e(t) ? t.every(({ type: e }) => e === Ee) : (t == null ? void 0 : t.type) === Ee);
|
|
79
80
|
}
|
|
80
|
-
var ct = /* @__PURE__ */
|
|
81
|
+
var ct = /* @__PURE__ */ H({
|
|
81
82
|
name: "NodeContent",
|
|
82
83
|
props: { node: {
|
|
83
84
|
type: Object,
|
|
84
85
|
required: !0
|
|
85
86
|
} },
|
|
86
87
|
setup(e) {
|
|
87
|
-
let t = n("cascader-node"), { renderLabelFn: r } =
|
|
88
|
+
let t = n("cascader-node"), { renderLabelFn: r } = U(ot), { node: i } = e, { data: a, label: o } = i, s = () => {
|
|
88
89
|
let e = r == null ? void 0 : r({
|
|
89
90
|
node: i,
|
|
90
91
|
data: a
|
|
91
92
|
});
|
|
92
93
|
return st(e) ? o : e ?? o;
|
|
93
94
|
};
|
|
94
|
-
return () =>
|
|
95
|
+
return () => V("span", { class: t.e("label") }, [s()]);
|
|
95
96
|
}
|
|
96
97
|
}), lt = [
|
|
97
98
|
"id",
|
|
@@ -99,7 +100,7 @@ var ct = /* @__PURE__ */ B({
|
|
|
99
100
|
"aria-owns",
|
|
100
101
|
"aria-expanded",
|
|
101
102
|
"tabindex"
|
|
102
|
-
], ut = /* @__PURE__ */
|
|
103
|
+
], ut = /* @__PURE__ */ H({
|
|
103
104
|
name: "ElCascaderNode",
|
|
104
105
|
__name: "node",
|
|
105
106
|
props: {
|
|
@@ -111,105 +112,105 @@ var ct = /* @__PURE__ */ B({
|
|
|
111
112
|
},
|
|
112
113
|
emits: ["expand"],
|
|
113
114
|
setup(e, { emit: t }) {
|
|
114
|
-
let r = e, i = t, a =
|
|
115
|
+
let r = e, i = t, a = U(ot), o = n("cascader-node"), s = I(() => a.isHoverMenu), c = I(() => a.config.multiple), l = I(() => a.config.checkStrictly), u = I(() => a.config.showPrefix), d = I(() => {
|
|
115
116
|
var e;
|
|
116
117
|
return (e = a.checkedNodes[0]) == null ? void 0 : e.uid;
|
|
117
|
-
}), f =
|
|
118
|
+
}), f = I(() => r.node.isDisabled), p = I(() => r.node.isLeaf), m = I(() => l.value && !p.value || !f.value), h = I(() => _(a.expandingNode)), g = I(() => l.value && a.checkedNodes.some(_)), _ = (e) => {
|
|
118
119
|
var t;
|
|
119
120
|
let { level: n, uid: i } = r.node;
|
|
120
121
|
return (e == null || (t = e.pathNodes[n - 1]) == null ? void 0 : t.uid) === i;
|
|
121
|
-
},
|
|
122
|
+
}, v = () => {
|
|
122
123
|
h.value || a.expandNode(r.node);
|
|
123
|
-
},
|
|
124
|
+
}, y = (e) => {
|
|
124
125
|
let { node: t } = r;
|
|
125
126
|
e !== t.checked && a.handleCheckChange(t, e);
|
|
126
|
-
},
|
|
127
|
+
}, ee = () => {
|
|
127
128
|
a.lazyLoad(r.node, () => {
|
|
128
|
-
p.value ||
|
|
129
|
+
p.value || v();
|
|
129
130
|
});
|
|
130
|
-
},
|
|
131
|
-
s.value && (
|
|
132
|
-
}, b = () => {
|
|
133
|
-
let { node: e } = r;
|
|
134
|
-
!m.value || e.loading || (e.loaded ? _() : y());
|
|
131
|
+
}, b = (e) => {
|
|
132
|
+
s.value && (x(), !p.value && i("expand", e));
|
|
135
133
|
}, x = () => {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
134
|
+
let { node: e } = r;
|
|
135
|
+
!m.value || e.loading || (e.loaded ? v() : ee());
|
|
136
|
+
}, te = () => {
|
|
137
|
+
p.value && !f.value && !l.value && !c.value ? ne(!0) : (a.config.checkOnClickNode && (c.value || l.value) || p.value && a.config.checkOnClickLeaf) && !f.value ? S(!r.node.checked) : s.value || x();
|
|
139
138
|
}, S = (e) => {
|
|
140
|
-
|
|
139
|
+
l.value ? (y(e), r.node.loaded && v()) : ne(e);
|
|
140
|
+
}, ne = (e) => {
|
|
141
|
+
r.node.loaded ? (y(e), !l.value && v()) : ee();
|
|
141
142
|
};
|
|
142
|
-
return (t, n) => (
|
|
143
|
+
return (t, n) => (K(), z("li", {
|
|
143
144
|
id: `${e.menuId}-${e.node.uid}`,
|
|
144
145
|
role: "menuitem",
|
|
145
146
|
"aria-haspopup": !p.value,
|
|
146
147
|
"aria-owns": p.value ? void 0 : e.menuId,
|
|
147
148
|
"aria-expanded": h.value,
|
|
148
149
|
tabindex: m.value ? -1 : void 0,
|
|
149
|
-
class:
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
150
|
+
class: W([
|
|
151
|
+
X(o).b(),
|
|
152
|
+
X(o).is("selectable", l.value),
|
|
153
|
+
X(o).is("active", e.node.checked),
|
|
154
|
+
X(o).is("disabled", !m.value),
|
|
154
155
|
h.value && "in-active-path",
|
|
155
|
-
|
|
156
|
+
g.value && "in-checked-path"
|
|
156
157
|
]),
|
|
157
|
-
onMouseenter:
|
|
158
|
-
onFocus:
|
|
159
|
-
onClick:
|
|
158
|
+
onMouseenter: b,
|
|
159
|
+
onFocus: b,
|
|
160
|
+
onClick: te
|
|
160
161
|
}, [
|
|
161
|
-
|
|
162
|
-
c.value && u.value ? (
|
|
162
|
+
R(" prefix "),
|
|
163
|
+
c.value && u.value ? (K(), L(X(j), {
|
|
163
164
|
key: 0,
|
|
164
165
|
"model-value": e.node.checked,
|
|
165
166
|
indeterminate: e.node.indeterminate,
|
|
166
167
|
disabled: f.value,
|
|
167
|
-
onClick: n[0] || (n[0] =
|
|
168
|
-
"onUpdate:modelValue":
|
|
168
|
+
onClick: n[0] || (n[0] = Ke(() => {}, ["stop"])),
|
|
169
|
+
"onUpdate:modelValue": S
|
|
169
170
|
}, null, 8, [
|
|
170
171
|
"model-value",
|
|
171
172
|
"indeterminate",
|
|
172
173
|
"disabled"
|
|
173
|
-
])) : l.value && u.value ? (
|
|
174
|
+
])) : l.value && u.value ? (K(), L(X(Se), {
|
|
174
175
|
key: 1,
|
|
175
176
|
"model-value": d.value,
|
|
176
177
|
label: e.node.uid,
|
|
177
178
|
disabled: f.value,
|
|
178
|
-
"onUpdate:modelValue":
|
|
179
|
-
onClick: n[1] || (n[1] =
|
|
179
|
+
"onUpdate:modelValue": S,
|
|
180
|
+
onClick: n[1] || (n[1] = Ke(() => {}, ["stop"]))
|
|
180
181
|
}, {
|
|
181
|
-
default:
|
|
182
|
+
default: Q(() => [R("\n Add an empty element to avoid render label,\n do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485\n "), n[2] || (n[2] = B("span", null, null, -1))]),
|
|
182
183
|
_: 1
|
|
183
184
|
}, 8, [
|
|
184
185
|
"model-value",
|
|
185
186
|
"label",
|
|
186
187
|
"disabled"
|
|
187
|
-
])) : p.value && e.node.checked ? (
|
|
188
|
+
])) : p.value && e.node.checked ? (K(), L(X(O), {
|
|
188
189
|
key: 2,
|
|
189
|
-
class:
|
|
190
|
+
class: W(X(o).e("prefix"))
|
|
190
191
|
}, {
|
|
191
|
-
default:
|
|
192
|
+
default: Q(() => [V(X(ge))]),
|
|
192
193
|
_: 1
|
|
193
|
-
}, 8, ["class"])) :
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
p.value ?
|
|
194
|
+
}, 8, ["class"])) : R("v-if", !0),
|
|
195
|
+
R(" content "),
|
|
196
|
+
V(X(ct), { node: e.node }, null, 8, ["node"]),
|
|
197
|
+
R(" postfix "),
|
|
198
|
+
p.value ? R("v-if", !0) : (K(), z(F, { key: 3 }, [e.node.loading ? (K(), L(X(O), {
|
|
198
199
|
key: 0,
|
|
199
|
-
class:
|
|
200
|
+
class: W([X(o).is("loading"), X(o).e("postfix")])
|
|
200
201
|
}, {
|
|
201
|
-
default:
|
|
202
|
+
default: Q(() => [V(X(E))]),
|
|
202
203
|
_: 1
|
|
203
|
-
}, 8, ["class"])) : (
|
|
204
|
+
}, 8, ["class"])) : (K(), L(X(O), {
|
|
204
205
|
key: 1,
|
|
205
|
-
class:
|
|
206
|
+
class: W(["arrow-right", X(o).e("postfix")])
|
|
206
207
|
}, {
|
|
207
|
-
default:
|
|
208
|
+
default: Q(() => [V(X(D))]),
|
|
208
209
|
_: 1
|
|
209
210
|
}, 8, ["class"]))], 64))
|
|
210
211
|
], 42, lt));
|
|
211
212
|
}
|
|
212
|
-
}), dt = /* @__PURE__ */
|
|
213
|
+
}), dt = /* @__PURE__ */ H({
|
|
213
214
|
name: "ElCascaderMenu",
|
|
214
215
|
__name: "menu",
|
|
215
216
|
props: {
|
|
@@ -223,9 +224,9 @@ var ct = /* @__PURE__ */ B({
|
|
|
223
224
|
}
|
|
224
225
|
},
|
|
225
226
|
setup(e) {
|
|
226
|
-
let t = e, r =
|
|
227
|
+
let t = e, r = ke(), i = n("cascader-menu"), { t: a } = se(), o = de(), s, c, l = U(ot), u = q(), d = I(() => !t.nodes.length), f = I(() => !l.initialLoaded), p = I(() => `${o.value}-${t.index}`), m = (e) => {
|
|
227
228
|
s = e.target;
|
|
228
|
-
},
|
|
229
|
+
}, h = (e) => {
|
|
229
230
|
if (!(!l.isHoverMenu || !s || !u.value)) if (s.contains(e.target)) {
|
|
230
231
|
var t;
|
|
231
232
|
g();
|
|
@@ -240,43 +241,43 @@ var ct = /* @__PURE__ */ B({
|
|
|
240
241
|
}, _ = () => {
|
|
241
242
|
u.value && (u.value.innerHTML = "", g());
|
|
242
243
|
};
|
|
243
|
-
return (t, n) => (
|
|
244
|
-
key:
|
|
244
|
+
return (t, n) => (K(), L(X(ve), {
|
|
245
|
+
key: p.value,
|
|
245
246
|
tag: "ul",
|
|
246
247
|
role: "menu",
|
|
247
|
-
class:
|
|
248
|
-
"wrap-class":
|
|
249
|
-
"view-class": [
|
|
250
|
-
onMousemove:
|
|
248
|
+
class: W(X(i).b()),
|
|
249
|
+
"wrap-class": X(i).e("wrap"),
|
|
250
|
+
"view-class": [X(i).e("list"), X(i).is("empty", d.value)],
|
|
251
|
+
onMousemove: h,
|
|
251
252
|
onMouseleave: _
|
|
252
253
|
}, {
|
|
253
|
-
default:
|
|
254
|
+
default: Q(() => {
|
|
254
255
|
var n;
|
|
255
256
|
return [
|
|
256
|
-
(
|
|
257
|
+
(K(!0), z(F, null, Ie(e.nodes, (e) => (K(), L(ut, {
|
|
257
258
|
key: e.uid,
|
|
258
259
|
node: e,
|
|
259
|
-
"menu-id":
|
|
260
|
-
onExpand:
|
|
260
|
+
"menu-id": p.value,
|
|
261
|
+
onExpand: m
|
|
261
262
|
}, null, 8, ["node", "menu-id"]))), 128)),
|
|
262
|
-
|
|
263
|
+
f.value ? (K(), z("div", {
|
|
263
264
|
key: 0,
|
|
264
|
-
class:
|
|
265
|
-
}, [
|
|
265
|
+
class: W(X(i).e("empty-text"))
|
|
266
|
+
}, [V(X(O), {
|
|
266
267
|
size: "14",
|
|
267
|
-
class:
|
|
268
|
+
class: W(X(i).is("loading"))
|
|
268
269
|
}, {
|
|
269
|
-
default:
|
|
270
|
+
default: Q(() => [V(X(E))]),
|
|
270
271
|
_: 1
|
|
271
|
-
}, 8, ["class"]),
|
|
272
|
+
}, 8, ["class"]), Oe(" " + Y(X(a)("el.cascader.loading")), 1)], 2)) : d.value ? (K(), z("div", {
|
|
272
273
|
key: 1,
|
|
273
|
-
class:
|
|
274
|
-
}, [
|
|
274
|
+
class: W(X(i).e("empty-text"))
|
|
275
|
+
}, [J(t.$slots, "empty", {}, () => [Oe(Y(X(a)("el.cascader.noData")), 1)])], 2)) : (n = X(l)) != null && n.isHoverMenu ? (K(), z(F, { key: 2 }, [R(" eslint-disable vue/html-self-closing "), (K(), z("svg", {
|
|
275
276
|
ref_key: "hoverZone",
|
|
276
277
|
ref: u,
|
|
277
|
-
class:
|
|
278
|
-
}, null, 2))], 2112)) :
|
|
279
|
-
|
|
278
|
+
class: W(X(i).e("hover-zone"))
|
|
279
|
+
}, null, 2))], 2112)) : R("v-if", !0),
|
|
280
|
+
R(" eslint-enable vue/html-self-closing ")
|
|
280
281
|
];
|
|
281
282
|
}),
|
|
282
283
|
_: 3
|
|
@@ -302,7 +303,7 @@ var ct = /* @__PURE__ */ B({
|
|
|
302
303
|
}
|
|
303
304
|
get isLeaf() {
|
|
304
305
|
let { data: t, config: n, childrenData: i, loaded: a } = this, { lazy: o, leaf: s } = n, c = r(s) ? s(t, this) : t[s];
|
|
305
|
-
return
|
|
306
|
+
return m(c) ? o && !a ? !1 : !(e(i) && i.length) : !!c;
|
|
306
307
|
}
|
|
307
308
|
get valueByOption() {
|
|
308
309
|
return this.config.emitPath ? this.pathValues : this.value;
|
|
@@ -371,10 +372,10 @@ var ct = /* @__PURE__ */ B({
|
|
|
371
372
|
});
|
|
372
373
|
}
|
|
373
374
|
getNodeByValue(e, t = !1) {
|
|
374
|
-
return
|
|
375
|
+
return ie(e) ? null : this.getFlattedNodes(t).find((t) => et(t.value, e) || et(t.pathValues, e)) || null;
|
|
375
376
|
}
|
|
376
377
|
getSameNode(e) {
|
|
377
|
-
return e && this.getFlattedNodes(!1).find(({ value: t, level: n }) =>
|
|
378
|
+
return e && this.getFlattedNodes(!1).find(({ value: t, level: n }) => et(e.value, t) && e.level === n) || null;
|
|
378
379
|
}
|
|
379
380
|
}, _t = (e) => {
|
|
380
381
|
if (!e) return 0;
|
|
@@ -383,62 +384,62 @@ var ct = /* @__PURE__ */ B({
|
|
|
383
384
|
}, vt = (e) => {
|
|
384
385
|
if (!e) return;
|
|
385
386
|
let t = e.querySelector("input");
|
|
386
|
-
t ? t.click() :
|
|
387
|
+
t ? t.click() : ne(e) && e.click();
|
|
387
388
|
}, yt = (e, t) => {
|
|
388
389
|
let n = t.slice(0), r = n.map((e) => e.uid), i = e.reduce((e, t) => {
|
|
389
390
|
let i = r.indexOf(t.uid);
|
|
390
391
|
return i > -1 && (e.push(t), n.splice(i, 1), r.splice(i, 1)), e;
|
|
391
392
|
}, []);
|
|
392
393
|
return i.push(...n), i;
|
|
393
|
-
}, bt = a(/* @__PURE__ */
|
|
394
|
+
}, bt = a(/* @__PURE__ */ H({
|
|
394
395
|
name: "ElCascaderPanel",
|
|
395
396
|
__name: "index",
|
|
396
397
|
props: rt,
|
|
397
398
|
emits: $,
|
|
398
399
|
setup(e, { expose: t, emit: r }) {
|
|
399
|
-
let i = e, a = r, o = !1, l = n("cascader"), u = at(i),
|
|
400
|
+
let i = e, a = r, o = !1, l = n("cascader"), u = at(i), p = Ve(), m, h = q(!0), g = q(!1), v = q([]), y = q(), b = q([]), x = q(), S = q([]), ne = I(() => u.value.expandTrigger === "hover"), ie = I(() => i.renderLabel || p.default), C = () => {
|
|
400
401
|
let { options: e } = i, t = u.value;
|
|
401
|
-
o = !1, m = new gt(e, t),
|
|
402
|
-
e && (m = new gt(e, t),
|
|
402
|
+
o = !1, m = new gt(e, t), b.value = [m.getNodes()], t.lazy && _(i.options) ? (h.value = !1, w(void 0, (e) => {
|
|
403
|
+
e && (m = new gt(e, t), b.value = [m.getNodes()]), h.value = !0, T(!1, !0);
|
|
403
404
|
})) : T(!1, !0);
|
|
404
|
-
},
|
|
405
|
+
}, w = (e, t) => {
|
|
405
406
|
let n = u.value;
|
|
406
407
|
e = e || new mt({}, n, void 0, !0), e.loading = !0, n.lazyLoad(e, (n) => {
|
|
407
408
|
let r = e, i = r.root ? null : r;
|
|
408
|
-
r.loading = !1, r.loaded = !0, r.childrenData = r.childrenData || [], n && (m == null || m.appendNodes(n, i)), n && (t == null || t(n)), e.level === 0 && (
|
|
409
|
+
r.loading = !1, r.loaded = !0, r.childrenData = r.childrenData || [], n && (m == null || m.appendNodes(n, i)), n && (t == null || t(n)), e.level === 0 && (g.value = !0);
|
|
409
410
|
}, () => {
|
|
410
411
|
e.loading = !1, e.loaded = !1, e.level === 0 && (h.value = !0);
|
|
411
412
|
});
|
|
412
|
-
},
|
|
413
|
+
}, ae = (e, t) => {
|
|
413
414
|
var n;
|
|
414
|
-
let { level: r } = e, i =
|
|
415
|
-
e.isLeaf ? o = e.pathNodes[r - 2] : (o = e, i.push(e.children)), ((n =
|
|
416
|
-
},
|
|
417
|
-
let { checkStrictly: r, multiple: i } = u.value, s =
|
|
418
|
-
o = !0, !i && (s == null || s.doCheck(!1)), e.doCheck(t), fe(), n && !i && !r && a("close"), !n && !i &&
|
|
419
|
-
},
|
|
420
|
-
e && (e = e.parent,
|
|
415
|
+
let { level: r } = e, i = b.value.slice(0, r), o;
|
|
416
|
+
e.isLeaf ? o = e.pathNodes[r - 2] : (o = e, i.push(e.children)), ((n = x.value) == null ? void 0 : n.uid) !== (o == null ? void 0 : o.uid) && (x.value = e, b.value = i, !t && a("expand-change", (e == null ? void 0 : e.pathValues) || []));
|
|
417
|
+
}, oe = (e, t, n = !0) => {
|
|
418
|
+
let { checkStrictly: r, multiple: i } = u.value, s = S.value[0];
|
|
419
|
+
o = !0, !i && (s == null || s.doCheck(!1)), e.doCheck(t), fe(), n && !i && !r && a("close"), !n && !i && se(e);
|
|
420
|
+
}, se = (e) => {
|
|
421
|
+
e && (e = e.parent, se(e), e && ae(e));
|
|
421
422
|
}, le = (e) => m == null ? void 0 : m.getFlattedNodes(e), ue = (e) => {
|
|
422
423
|
var t;
|
|
423
424
|
return (t = le(e)) == null ? void 0 : t.filter(({ checked: e }) => e !== !1);
|
|
424
425
|
}, de = () => {
|
|
425
|
-
|
|
426
|
+
S.value.forEach((e) => e.doCheck(!1)), fe(), b.value = b.value.slice(0, 1), x.value = void 0, a("expand-change", []);
|
|
426
427
|
}, fe = () => {
|
|
427
|
-
let { checkStrictly: e, multiple: t } = u.value, n =
|
|
428
|
-
|
|
428
|
+
let { checkStrictly: e, multiple: t } = u.value, n = S.value, r = yt(n, ue(!e)), i = r.map((e) => e.valueByOption);
|
|
429
|
+
S.value = r, y.value = t ? i : i[0] ?? null;
|
|
429
430
|
}, T = (e = !1, t = !1) => {
|
|
430
431
|
let { modelValue: n } = i, { lazy: r, multiple: a, checkStrictly: s } = u.value, c = !s;
|
|
431
|
-
if (!(!h.value || o || !t &&
|
|
432
|
-
let e =
|
|
432
|
+
if (!(!h.value || o || !t && et(n, y.value))) if (r && !e) {
|
|
433
|
+
let e = _e($e(A(n))).map((e) => m == null ? void 0 : m.getNodeByValue(e)).filter((e) => !!e && !e.loaded && !e.loading);
|
|
433
434
|
e.length ? e.forEach((e) => {
|
|
434
|
-
|
|
435
|
+
w(e, () => T(!1, t));
|
|
435
436
|
}) : T(!0, t);
|
|
436
|
-
} else pe(
|
|
437
|
+
} else pe(_e((a ? A(n) : [n]).map((e) => m == null ? void 0 : m.getNodeByValue(e, c))), t), y.value = Qe(n ?? void 0);
|
|
437
438
|
}, pe = (e, t = !0) => {
|
|
438
|
-
let { checkStrictly: n } = u.value, r =
|
|
439
|
-
o ? o.pathNodes.forEach((e) =>
|
|
439
|
+
let { checkStrictly: n } = u.value, r = S.value, i = e.filter((e) => !!e && (n || e.isLeaf)), a = m == null ? void 0 : m.getSameNode(x.value), o = t && a || i[0];
|
|
440
|
+
o ? o.pathNodes.forEach((e) => ae(e, !0)) : x.value = void 0, r.forEach((e) => e.doCheck(!1)), Fe(i).forEach((e) => e.doCheck(!0)), S.value = i, je(E);
|
|
440
441
|
}, E = () => {
|
|
441
|
-
|
|
442
|
+
ee && v.value.forEach((e) => {
|
|
442
443
|
let t = e == null ? void 0 : e.$el;
|
|
443
444
|
if (t) {
|
|
444
445
|
let e = t.querySelector(`.${l.namespace.value}-scrollbar__wrap`), n = t.querySelector(`.${l.b("node")}.in-active-path`);
|
|
@@ -446,23 +447,23 @@ var ct = /* @__PURE__ */ B({
|
|
|
446
447
|
let e = t.querySelectorAll(`.${l.b("node")}.${l.is("active")}`);
|
|
447
448
|
n = e[e.length - 1];
|
|
448
449
|
}
|
|
449
|
-
|
|
450
|
+
ce(e, n);
|
|
450
451
|
}
|
|
451
452
|
});
|
|
452
|
-
},
|
|
453
|
+
}, D = (e) => {
|
|
453
454
|
let t = e.target, n = s(e);
|
|
454
455
|
switch (n) {
|
|
455
456
|
case c.up:
|
|
456
457
|
case c.down:
|
|
457
|
-
e.preventDefault(),
|
|
458
|
+
e.preventDefault(), re(te(t, n === c.up ? -1 : 1, `.${l.b("node")}[tabindex="-1"]`));
|
|
458
459
|
break;
|
|
459
460
|
case c.left:
|
|
460
461
|
var r;
|
|
461
|
-
e.preventDefault(),
|
|
462
|
+
e.preventDefault(), re((r = v.value[_t(t) - 1]) == null ? void 0 : r.$el.querySelector(`.${l.b("node")}[aria-expanded="true"]`));
|
|
462
463
|
break;
|
|
463
464
|
case c.right:
|
|
464
465
|
var i;
|
|
465
|
-
e.preventDefault(),
|
|
466
|
+
e.preventDefault(), re((i = v.value[_t(t) + 1]) == null ? void 0 : i.$el.querySelector(`.${l.b("node")}[tabindex="-1"]`));
|
|
466
467
|
break;
|
|
467
468
|
case c.enter:
|
|
468
469
|
case c.numpadEnter:
|
|
@@ -470,53 +471,53 @@ var ct = /* @__PURE__ */ B({
|
|
|
470
471
|
break;
|
|
471
472
|
}
|
|
472
473
|
};
|
|
473
|
-
return
|
|
474
|
+
return Pe(ot, Fe({
|
|
474
475
|
config: u,
|
|
475
|
-
expandingNode:
|
|
476
|
-
checkedNodes:
|
|
477
|
-
isHoverMenu:
|
|
476
|
+
expandingNode: x,
|
|
477
|
+
checkedNodes: S,
|
|
478
|
+
isHoverMenu: ne,
|
|
478
479
|
initialLoaded: h,
|
|
479
|
-
renderLabelFn:
|
|
480
|
-
lazyLoad:
|
|
481
|
-
expandNode:
|
|
482
|
-
handleCheckChange:
|
|
483
|
-
})),
|
|
484
|
-
|
|
485
|
-
}, { immediate: !0 }),
|
|
480
|
+
renderLabelFn: ie,
|
|
481
|
+
lazyLoad: w,
|
|
482
|
+
expandNode: ae,
|
|
483
|
+
handleCheckChange: oe
|
|
484
|
+
})), Z(u, (e, t) => {
|
|
485
|
+
et(e, t) || C();
|
|
486
|
+
}, { immediate: !0 }), Z(() => i.options, C, { deep: !0 }), Z(() => i.modelValue, () => {
|
|
486
487
|
o = !1, T();
|
|
487
|
-
}, { deep: !0 }),
|
|
488
|
-
|
|
489
|
-
}),
|
|
490
|
-
menuList:
|
|
491
|
-
menus:
|
|
492
|
-
checkedNodes:
|
|
493
|
-
handleKeyDown:
|
|
494
|
-
handleCheckChange:
|
|
488
|
+
}, { deep: !0 }), Z(() => y.value, (e) => {
|
|
489
|
+
et(e, i.modelValue) || (a(d, e), a(f, e));
|
|
490
|
+
}), G(() => v.value = []), Ne(() => !_(i.modelValue) && T()), t({
|
|
491
|
+
menuList: v,
|
|
492
|
+
menus: b,
|
|
493
|
+
checkedNodes: S,
|
|
494
|
+
handleKeyDown: D,
|
|
495
|
+
handleCheckChange: oe,
|
|
495
496
|
getFlattedNodes: le,
|
|
496
497
|
getCheckedNodes: ue,
|
|
497
498
|
clearCheckedNodes: de,
|
|
498
499
|
calculateCheckedValue: fe,
|
|
499
500
|
scrollToExpandingNode: E,
|
|
500
501
|
loadLazyRootNodes: () => {
|
|
501
|
-
|
|
502
|
+
g.value || C();
|
|
502
503
|
}
|
|
503
|
-
}), (t, n) => (
|
|
504
|
-
class:
|
|
505
|
-
onKeydown:
|
|
506
|
-
}, [(
|
|
504
|
+
}), (t, n) => (K(), z("div", {
|
|
505
|
+
class: W([X(l).b("panel"), X(l).is("bordered", e.border)]),
|
|
506
|
+
onKeydown: D
|
|
507
|
+
}, [(K(!0), z(F, null, Ie(b.value, (e, n) => (K(), L(dt, {
|
|
507
508
|
key: n,
|
|
508
509
|
ref_for: !0,
|
|
509
|
-
ref: (e) =>
|
|
510
|
+
ref: (e) => v.value[n] = e,
|
|
510
511
|
index: n,
|
|
511
512
|
nodes: [...e]
|
|
512
513
|
}, {
|
|
513
|
-
empty:
|
|
514
|
+
empty: Q(() => [J(t.$slots, "empty")]),
|
|
514
515
|
_: 3
|
|
515
516
|
}, 8, ["index", "nodes"]))), 128))], 34));
|
|
516
517
|
}
|
|
517
518
|
})), xt = S({
|
|
518
519
|
...tt,
|
|
519
|
-
size:
|
|
520
|
+
size: p,
|
|
520
521
|
placeholder: String,
|
|
521
522
|
disabled: {
|
|
522
523
|
type: Boolean,
|
|
@@ -524,8 +525,8 @@ var ct = /* @__PURE__ */ B({
|
|
|
524
525
|
},
|
|
525
526
|
clearable: Boolean,
|
|
526
527
|
clearIcon: {
|
|
527
|
-
type:
|
|
528
|
-
default:
|
|
528
|
+
type: k,
|
|
529
|
+
default: me
|
|
529
530
|
},
|
|
530
531
|
filterable: Boolean,
|
|
531
532
|
filterMethod: {
|
|
@@ -557,7 +558,7 @@ var ct = /* @__PURE__ */ B({
|
|
|
557
558
|
},
|
|
558
559
|
placement: {
|
|
559
560
|
type: v(String),
|
|
560
|
-
values:
|
|
561
|
+
values: w,
|
|
561
562
|
default: "bottom-start"
|
|
562
563
|
},
|
|
563
564
|
fallbackPlacements: {
|
|
@@ -571,19 +572,19 @@ var ct = /* @__PURE__ */ B({
|
|
|
571
572
|
"left"
|
|
572
573
|
]
|
|
573
574
|
},
|
|
574
|
-
popperClass:
|
|
575
|
-
popperStyle:
|
|
576
|
-
teleported:
|
|
575
|
+
popperClass: C.popperClass,
|
|
576
|
+
popperStyle: C.popperStyle,
|
|
577
|
+
teleported: C.teleported,
|
|
577
578
|
effect: {
|
|
578
579
|
type: v(String),
|
|
579
580
|
default: "light"
|
|
580
581
|
},
|
|
581
582
|
tagType: {
|
|
582
|
-
...
|
|
583
|
+
...ye.type,
|
|
583
584
|
default: "info"
|
|
584
585
|
},
|
|
585
586
|
tagEffect: {
|
|
586
|
-
...
|
|
587
|
+
...ye.effect,
|
|
587
588
|
default: "light"
|
|
588
589
|
},
|
|
589
590
|
validateEvent: {
|
|
@@ -606,15 +607,15 @@ var ct = /* @__PURE__ */ B({
|
|
|
606
607
|
},
|
|
607
608
|
...u
|
|
608
609
|
}), St = (e) => !0, Ct = {
|
|
610
|
+
[d]: St,
|
|
609
611
|
[f]: St,
|
|
610
|
-
[p]: St,
|
|
611
612
|
focus: (e) => e instanceof FocusEvent,
|
|
612
613
|
blur: (e) => e instanceof FocusEvent,
|
|
613
614
|
clear: () => !0,
|
|
614
615
|
visibleChange: (e) => g(e),
|
|
615
616
|
expandChange: (e) => !!e,
|
|
616
617
|
removeTag: (e) => !!e
|
|
617
|
-
}, wt = ["placeholder"], Tt = ["onClick"], Et =
|
|
618
|
+
}, wt = ["placeholder"], Tt = ["onClick"], Et = N(a(/* @__PURE__ */ H({
|
|
618
619
|
name: "ElCascader",
|
|
619
620
|
__name: "cascader",
|
|
620
621
|
props: xt,
|
|
@@ -634,63 +635,63 @@ var ct = /* @__PURE__ */ B({
|
|
|
634
635
|
].includes(n) || t.arrow && (t.arrow.x = 35);
|
|
635
636
|
},
|
|
636
637
|
requires: ["arrow"]
|
|
637
|
-
}] }, o = e, u = i,
|
|
638
|
+
}] }, o = e, u = i, p = Be(), m = Ve(), g = 0, _ = 0, v = n("cascader"), S = n("input"), ne = {
|
|
638
639
|
small: 7,
|
|
639
640
|
default: 11,
|
|
640
641
|
large: 15
|
|
641
|
-
}, { t:
|
|
642
|
+
}, { t: ie } = se(), { formItem: C } = fe(), w = ue(), { valueOnClear: ce } = l(o), { isComposing: de, handleComposition: E } = pe({ afterComposition(e) {
|
|
642
643
|
var t;
|
|
643
644
|
Et((t = e.target) == null ? void 0 : t.value);
|
|
644
|
-
} }),
|
|
645
|
+
} }), D = q(), me = q(), k = q(), _e = q(), A = q(), ye = q(), j = q(!1), Se = q(!1), M = q(!1), Ce = q(""), N = q(""), P = q([]), we = q([]), Te = I(() => o.props.multiple ? o.collapseTags ? P.value.slice(0, o.maxCollapseTags) : P.value : []), Ee = I(() => o.props.multiple && o.collapseTags ? P.value.slice(o.maxCollapseTags) : []), Oe = I(() => p.style), H = I(() => o.placeholder ?? ie("el.cascader.placeholder")), ke = I(() => N.value || P.value.length > 0 || de.value ? "" : H.value), U = le(), Ae = I(() => U.value === "small" ? "small" : "default"), G = I(() => !!o.props.multiple), Pe = I(() => !o.filterable || G.value), Fe = I(() => G.value ? N.value : Ce.value), Le = I(() => {
|
|
645
646
|
var e;
|
|
646
|
-
return ((e =
|
|
647
|
-
}), { wrapperRef:
|
|
647
|
+
return ((e = A.value) == null ? void 0 : e.checkedNodes) || [];
|
|
648
|
+
}), { wrapperRef: ze, isFocused: qe, handleBlur: Je } = T(k, {
|
|
648
649
|
disabled: w,
|
|
649
650
|
beforeBlur(e) {
|
|
650
651
|
var t, n;
|
|
651
|
-
return ((t =
|
|
652
|
+
return ((t = D.value) == null ? void 0 : t.isFocusInsideContent(e)) || ((n = me.value) == null ? void 0 : n.isFocusInsideContent(e));
|
|
652
653
|
},
|
|
653
654
|
afterBlur() {
|
|
654
655
|
var e;
|
|
655
656
|
o.validateEvent && (C == null || (e = C.validate) == null || e.call(C, "blur").catch((e) => y(e)));
|
|
656
657
|
}
|
|
657
|
-
}),
|
|
658
|
-
let { showAllLevels: e, separator: t } = o, n =
|
|
659
|
-
return n.length ?
|
|
660
|
-
}),
|
|
658
|
+
}), Ye = I(() => !o.clearable || w.value || M.value || !Se.value && !qe.value ? !1 : !!Le.value.length), Xe = I(() => {
|
|
659
|
+
let { showAllLevels: e, separator: t } = o, n = Le.value;
|
|
660
|
+
return n.length ? G.value ? "" : n[0].calcText(e, t) : "";
|
|
661
|
+
}), Ze = I(() => (C == null ? void 0 : C.validateState) || ""), $e = I({
|
|
661
662
|
get() {
|
|
662
|
-
return
|
|
663
|
+
return Qe(o.modelValue);
|
|
663
664
|
},
|
|
664
665
|
set(e) {
|
|
665
|
-
let t = e ??
|
|
666
|
-
u(
|
|
666
|
+
let t = e ?? ce.value;
|
|
667
|
+
u(d, t), u(f, t), o.validateEvent && (C == null || C.validate("change").catch((e) => y(e)));
|
|
667
668
|
}
|
|
668
|
-
}),
|
|
669
|
+
}), et = I(() => [
|
|
669
670
|
v.b(),
|
|
670
|
-
v.m(
|
|
671
|
+
v.m(U.value),
|
|
671
672
|
v.is("disabled", w.value),
|
|
672
|
-
|
|
673
|
-
]), tt =
|
|
673
|
+
p.class
|
|
674
|
+
]), tt = I(() => [
|
|
674
675
|
S.e("icon"),
|
|
675
676
|
"icon-arrow-down",
|
|
676
|
-
v.is("reverse",
|
|
677
|
-
]), nt =
|
|
677
|
+
v.is("reverse", j.value)
|
|
678
|
+
]), nt = I(() => v.is("focus", qe.value)), rt = I(() => {
|
|
678
679
|
var e;
|
|
679
|
-
return (e =
|
|
680
|
+
return (e = D.value) == null || (e = e.popperRef) == null ? void 0 : e.contentRef;
|
|
680
681
|
}), it = (e) => {
|
|
681
|
-
|
|
682
|
+
qe.value && Je(new FocusEvent("blur", e)), $(!1);
|
|
682
683
|
}, $ = (e) => {
|
|
683
|
-
if (!w.value && (e = e ?? !
|
|
684
|
+
if (!w.value && (e = e ?? !j.value, e !== j.value)) {
|
|
684
685
|
var t;
|
|
685
|
-
|
|
686
|
+
j.value = e, (t = k.value) == null || (t = t.input) == null || t.setAttribute("aria-expanded", `${e}`), e ? (at(), A.value && je(A.value.scrollToExpandingNode)) : o.filterable && vt(), u("visibleChange", e);
|
|
686
687
|
}
|
|
687
688
|
}, at = () => {
|
|
688
|
-
|
|
689
|
+
je(() => {
|
|
689
690
|
var e;
|
|
690
|
-
(e =
|
|
691
|
+
(e = D.value) == null || e.updatePopper();
|
|
691
692
|
});
|
|
692
693
|
}, ot = () => {
|
|
693
|
-
|
|
694
|
+
M.value = !1;
|
|
694
695
|
}, st = (e) => {
|
|
695
696
|
let { showAllLevels: t, separator: n } = o;
|
|
696
697
|
return {
|
|
@@ -703,10 +704,10 @@ var ct = /* @__PURE__ */ B({
|
|
|
703
704
|
}, ct = (e) => {
|
|
704
705
|
var t;
|
|
705
706
|
let n = e.node;
|
|
706
|
-
n.doCheck(!1), (t =
|
|
707
|
+
n.doCheck(!1), (t = A.value) == null || t.calculateCheckedValue(), u("removeTag", n.valueByOption);
|
|
707
708
|
}, lt = () => {
|
|
708
709
|
switch (o.showCheckedStrategy) {
|
|
709
|
-
case "child": return
|
|
710
|
+
case "child": return Le.value;
|
|
710
711
|
case "parent": {
|
|
711
712
|
let e = mt(!1), t = e.map((e) => e.value);
|
|
712
713
|
return e.filter((e) => !e.parent || !t.includes(e.parent.value));
|
|
@@ -714,53 +715,53 @@ var ct = /* @__PURE__ */ B({
|
|
|
714
715
|
default: return [];
|
|
715
716
|
}
|
|
716
717
|
}, ut = () => {
|
|
717
|
-
if (!
|
|
718
|
+
if (!G.value) return;
|
|
718
719
|
let e = lt(), t = [];
|
|
719
|
-
e.forEach((e) => t.push(st(e))),
|
|
720
|
+
e.forEach((e) => t.push(st(e))), P.value = t;
|
|
720
721
|
}, dt = () => {
|
|
721
722
|
var e;
|
|
722
|
-
let { filterMethod: t, showAllLevels: n, separator: r } = o, i = (e =
|
|
723
|
-
|
|
723
|
+
let { filterMethod: t, showAllLevels: n, separator: r } = o, i = (e = A.value) == null || (e = e.getFlattedNodes(!o.props.checkStrictly)) == null ? void 0 : e.filter((e) => e.isDisabled ? !1 : (e.calcText(n, r), t(e, Fe.value)));
|
|
724
|
+
G.value && P.value.forEach((e) => {
|
|
724
725
|
e.hitState = !1;
|
|
725
|
-
}),
|
|
726
|
+
}), M.value = !0, we.value = i, at();
|
|
726
727
|
}, ft = () => {
|
|
727
728
|
var e;
|
|
728
729
|
let t;
|
|
729
|
-
t =
|
|
730
|
+
t = M.value && ye.value ? ye.value.$el.querySelector(`.${v.e("suggestion-item")}`) : (e = A.value) == null ? void 0 : e.$el.querySelector(`.${v.b("node")}[tabindex="-1"]`), t && (t.focus(), !M.value && t.click());
|
|
730
731
|
}, pt = () => {
|
|
731
732
|
var e, t;
|
|
732
|
-
let n = (e =
|
|
733
|
-
if (!(!
|
|
733
|
+
let n = (e = k.value) == null ? void 0 : e.input, r = _e.value, i = (t = ye.value) == null ? void 0 : t.$el;
|
|
734
|
+
if (!(!ee || !n)) {
|
|
734
735
|
if (i) {
|
|
735
736
|
let e = i.querySelector(`.${v.e("suggestion-list")}`);
|
|
736
737
|
e.style.minWidth = `${n.offsetWidth}px`;
|
|
737
738
|
}
|
|
738
739
|
if (r) {
|
|
739
|
-
let { offsetHeight: e } = r, t =
|
|
740
|
-
if (n.style.height = t,
|
|
740
|
+
let { offsetHeight: e } = r, t = P.value.length > 0 ? `${Math.max(e, g) - 2}px` : `${g}px`;
|
|
741
|
+
if (n.style.height = t, m.prefix) {
|
|
741
742
|
var a;
|
|
742
|
-
let e = (a =
|
|
743
|
-
e && (t = e.offsetWidth, t > 0 && (t +=
|
|
743
|
+
let e = (a = k.value) == null ? void 0 : a.$el.querySelector(`.${S.e("prefix")}`), t = 0;
|
|
744
|
+
e && (t = e.offsetWidth, t > 0 && (t += ne[U.value || "default"])), r.style.left = `${t}px`;
|
|
744
745
|
} else r.style.left = "0";
|
|
745
746
|
at();
|
|
746
747
|
}
|
|
747
748
|
}
|
|
748
749
|
}, mt = (e) => {
|
|
749
750
|
var t;
|
|
750
|
-
return (t =
|
|
751
|
+
return (t = A.value) == null ? void 0 : t.getCheckedNodes(e);
|
|
751
752
|
}, ht = (e) => {
|
|
752
753
|
at(), u("expandChange", e);
|
|
753
754
|
}, gt = (e) => {
|
|
754
|
-
if (!
|
|
755
|
+
if (!de.value) switch (s(e)) {
|
|
755
756
|
case c.enter:
|
|
756
757
|
case c.numpadEnter:
|
|
757
758
|
$();
|
|
758
759
|
break;
|
|
759
760
|
case c.down:
|
|
760
|
-
$(!0),
|
|
761
|
+
$(!0), je(ft), e.preventDefault();
|
|
761
762
|
break;
|
|
762
763
|
case c.esc:
|
|
763
|
-
|
|
764
|
+
j.value === !0 && (e.preventDefault(), e.stopPropagation(), $(!1));
|
|
764
765
|
break;
|
|
765
766
|
case c.tab:
|
|
766
767
|
$(!1);
|
|
@@ -768,24 +769,24 @@ var ct = /* @__PURE__ */ B({
|
|
|
768
769
|
}
|
|
769
770
|
}, _t = () => {
|
|
770
771
|
var e;
|
|
771
|
-
(e =
|
|
772
|
+
(e = A.value) == null || e.clearCheckedNodes(), !j.value && o.filterable && vt(), $(!1), u("clear");
|
|
772
773
|
}, vt = () => {
|
|
773
|
-
let { value: e } =
|
|
774
|
-
|
|
774
|
+
let { value: e } = Xe;
|
|
775
|
+
Ce.value = e, N.value = e;
|
|
775
776
|
}, yt = (e) => {
|
|
776
777
|
var t;
|
|
777
778
|
let { checked: n } = e;
|
|
778
|
-
if (
|
|
779
|
+
if (G.value) (t = A.value) == null || t.handleCheckChange(e, !n, !1);
|
|
779
780
|
else {
|
|
780
781
|
var r;
|
|
781
|
-
!n && ((r =
|
|
782
|
+
!n && ((r = A.value) == null || r.handleCheckChange(e, !0, !1)), $(!1);
|
|
782
783
|
}
|
|
783
784
|
}, xt = (e) => {
|
|
784
785
|
let t = e.target, n = s(e);
|
|
785
786
|
switch (n) {
|
|
786
787
|
case c.up:
|
|
787
788
|
case c.down:
|
|
788
|
-
e.preventDefault(),
|
|
789
|
+
e.preventDefault(), re(te(t, n === c.up ? -1 : 1, `.${v.e("suggestion-item")}[tabindex="-1"]`));
|
|
789
790
|
break;
|
|
790
791
|
case c.enter:
|
|
791
792
|
case c.numpadEnter:
|
|
@@ -793,110 +794,110 @@ var ct = /* @__PURE__ */ B({
|
|
|
793
794
|
break;
|
|
794
795
|
}
|
|
795
796
|
}, St = () => {
|
|
796
|
-
let e =
|
|
797
|
-
_ =
|
|
798
|
-
}, Ct =
|
|
799
|
-
let { value: e } =
|
|
797
|
+
let e = P.value[P.value.length - 1];
|
|
798
|
+
_ = N.value ? 0 : _ + 1, !(!e || !_ || o.collapseTags && P.value.length > 1) && (e.hitState ? ct(e) : e.hitState = !0);
|
|
799
|
+
}, Ct = h(() => {
|
|
800
|
+
let { value: e } = Fe;
|
|
800
801
|
if (!e) return;
|
|
801
802
|
let n = o.beforeFilter(e);
|
|
802
803
|
t(n) ? n.then(dt).catch(() => {}) : n === !1 ? ot() : dt();
|
|
803
|
-
},
|
|
804
|
-
!
|
|
804
|
+
}, I(() => o.debounce)), Et = (e, t) => {
|
|
805
|
+
!j.value && $(!0), !(t != null && t.isComposing) && (e ? Ct() : ot());
|
|
805
806
|
}, Dt = (e) => Number.parseFloat(b(S.cssVarName("input-height"), e).value) - 2;
|
|
806
|
-
return
|
|
807
|
-
|
|
807
|
+
return Z(M, at), Z([
|
|
808
|
+
Le,
|
|
808
809
|
w,
|
|
809
810
|
() => o.collapseTags,
|
|
810
811
|
() => o.maxCollapseTags
|
|
811
|
-
], ut),
|
|
812
|
-
|
|
813
|
-
}),
|
|
814
|
-
await
|
|
815
|
-
let e =
|
|
812
|
+
], ut), Z(P, () => {
|
|
813
|
+
je(() => pt());
|
|
814
|
+
}), Z(U, async () => {
|
|
815
|
+
await je();
|
|
816
|
+
let e = k.value.input;
|
|
816
817
|
g = Dt(e) || g, pt();
|
|
817
|
-
}),
|
|
818
|
+
}), Z(Xe, vt, { immediate: !0 }), Z(() => j.value, (e) => {
|
|
818
819
|
var t;
|
|
819
|
-
e && o.props.lazy && o.props.lazyLoad && ((t =
|
|
820
|
-
}),
|
|
821
|
-
let e =
|
|
820
|
+
e && o.props.lazy && o.props.lazyLoad && ((t = A.value) == null || t.loadLazyRootNodes());
|
|
821
|
+
}), Ne(() => {
|
|
822
|
+
let e = k.value.input, t = Dt(e);
|
|
822
823
|
g = e.offsetHeight || t, x(e, pt);
|
|
823
824
|
}), r({
|
|
824
825
|
getCheckedNodes: mt,
|
|
825
|
-
cascaderPanelRef:
|
|
826
|
+
cascaderPanelRef: A,
|
|
826
827
|
togglePopperVisible: $,
|
|
827
828
|
contentRef: rt,
|
|
828
|
-
presentText:
|
|
829
|
+
presentText: Xe,
|
|
829
830
|
focus: () => {
|
|
830
831
|
var e;
|
|
831
|
-
(e =
|
|
832
|
+
(e = k.value) == null || e.focus();
|
|
832
833
|
},
|
|
833
834
|
blur: () => {
|
|
834
835
|
var e;
|
|
835
|
-
(e =
|
|
836
|
+
(e = k.value) == null || e.blur();
|
|
836
837
|
}
|
|
837
|
-
}), (t, n) => (
|
|
838
|
+
}), (t, n) => (K(), L(X(ae), {
|
|
838
839
|
ref_key: "tooltipRef",
|
|
839
|
-
ref:
|
|
840
|
-
visible:
|
|
840
|
+
ref: D,
|
|
841
|
+
visible: j.value,
|
|
841
842
|
teleported: e.teleported,
|
|
842
|
-
"popper-class": [
|
|
843
|
+
"popper-class": [X(v).e("dropdown"), e.popperClass],
|
|
843
844
|
"popper-style": e.popperStyle,
|
|
844
845
|
"popper-options": a,
|
|
845
846
|
"fallback-placements": e.fallbackPlacements,
|
|
846
847
|
"stop-popper-mouse-event": !1,
|
|
847
848
|
"gpu-acceleration": !1,
|
|
848
849
|
placement: e.placement,
|
|
849
|
-
transition: `${
|
|
850
|
+
transition: `${X(v).namespace.value}-zoom-in-top`,
|
|
850
851
|
effect: e.effect,
|
|
851
852
|
pure: "",
|
|
852
853
|
persistent: e.persistent,
|
|
853
854
|
onHide: ot
|
|
854
855
|
}, {
|
|
855
|
-
default:
|
|
856
|
+
default: Q(() => [We((K(), z("div", {
|
|
856
857
|
ref_key: "wrapperRef",
|
|
857
|
-
ref:
|
|
858
|
-
class:
|
|
859
|
-
style:
|
|
860
|
-
onClick: n[8] || (n[8] = () => $(
|
|
858
|
+
ref: ze,
|
|
859
|
+
class: W(et.value),
|
|
860
|
+
style: Me(Oe.value),
|
|
861
|
+
onClick: n[8] || (n[8] = () => $(Pe.value ? void 0 : !0)),
|
|
861
862
|
onKeydown: gt,
|
|
862
|
-
onMouseenter: n[9] || (n[9] = (e) =>
|
|
863
|
-
onMouseleave: n[10] || (n[10] = (e) =>
|
|
864
|
-
}, [
|
|
863
|
+
onMouseenter: n[9] || (n[9] = (e) => Se.value = !0),
|
|
864
|
+
onMouseleave: n[10] || (n[10] = (e) => Se.value = !1)
|
|
865
|
+
}, [V(X(oe), {
|
|
865
866
|
ref_key: "inputRef",
|
|
866
|
-
ref:
|
|
867
|
-
modelValue:
|
|
868
|
-
"onUpdate:modelValue": n[1] || (n[1] = (e) =>
|
|
869
|
-
placeholder:
|
|
870
|
-
readonly:
|
|
871
|
-
disabled:
|
|
867
|
+
ref: k,
|
|
868
|
+
modelValue: Ce.value,
|
|
869
|
+
"onUpdate:modelValue": n[1] || (n[1] = (e) => Ce.value = e),
|
|
870
|
+
placeholder: ke.value,
|
|
871
|
+
readonly: Pe.value,
|
|
872
|
+
disabled: X(w),
|
|
872
873
|
"validate-event": !1,
|
|
873
|
-
size:
|
|
874
|
-
class:
|
|
875
|
-
tabindex:
|
|
876
|
-
onCompositionstart:
|
|
877
|
-
onCompositionupdate:
|
|
878
|
-
onCompositionend:
|
|
874
|
+
size: X(U),
|
|
875
|
+
class: W(nt.value),
|
|
876
|
+
tabindex: G.value && e.filterable && !X(w) ? -1 : void 0,
|
|
877
|
+
onCompositionstart: X(E),
|
|
878
|
+
onCompositionupdate: X(E),
|
|
879
|
+
onCompositionend: X(E),
|
|
879
880
|
onInput: Et
|
|
880
|
-
},
|
|
881
|
-
suffix:
|
|
881
|
+
}, De({
|
|
882
|
+
suffix: Q(() => [Ye.value ? (K(), L(X(O), {
|
|
882
883
|
key: "clear",
|
|
883
|
-
class:
|
|
884
|
-
onClick:
|
|
884
|
+
class: W([X(S).e("icon"), "icon-circle-close"]),
|
|
885
|
+
onClick: Ke(_t, ["stop"])
|
|
885
886
|
}, {
|
|
886
|
-
default:
|
|
887
|
+
default: Q(() => [(K(), L(Re(e.clearIcon)))]),
|
|
887
888
|
_: 1
|
|
888
|
-
}, 8, ["class"])) : (
|
|
889
|
+
}, 8, ["class"])) : (K(), L(X(O), {
|
|
889
890
|
key: "arrow-down",
|
|
890
|
-
class:
|
|
891
|
-
onClick: n[0] || (n[0] =
|
|
891
|
+
class: W(tt.value),
|
|
892
|
+
onClick: n[0] || (n[0] = Ke((e) => $(), ["stop"]))
|
|
892
893
|
}, {
|
|
893
|
-
default:
|
|
894
|
+
default: Q(() => [V(X(he))]),
|
|
894
895
|
_: 1
|
|
895
896
|
}, 8, ["class"]))]),
|
|
896
897
|
_: 2
|
|
897
898
|
}, [t.$slots.prefix ? {
|
|
898
899
|
name: "prefix",
|
|
899
|
-
fn:
|
|
900
|
+
fn: Q(() => [J(t.$slots, "prefix")]),
|
|
900
901
|
key: "0"
|
|
901
902
|
} : void 0]), 1032, [
|
|
902
903
|
"modelValue",
|
|
@@ -909,26 +910,26 @@ var ct = /* @__PURE__ */ B({
|
|
|
909
910
|
"onCompositionstart",
|
|
910
911
|
"onCompositionupdate",
|
|
911
912
|
"onCompositionend"
|
|
912
|
-
]),
|
|
913
|
+
]), G.value ? (K(), z("div", {
|
|
913
914
|
key: 0,
|
|
914
915
|
ref_key: "tagWrapper",
|
|
915
|
-
ref:
|
|
916
|
-
class:
|
|
916
|
+
ref: _e,
|
|
917
|
+
class: W([X(v).e("tags"), X(v).is("validate", !!Ze.value)])
|
|
917
918
|
}, [
|
|
918
|
-
|
|
919
|
-
data:
|
|
919
|
+
J(t.$slots, "tag", {
|
|
920
|
+
data: P.value,
|
|
920
921
|
deleteTag: ct
|
|
921
|
-
}, () => [(
|
|
922
|
+
}, () => [(K(!0), z(F, null, Ie(Te.value, (t) => (K(), L(X(xe), {
|
|
922
923
|
key: t.key,
|
|
923
924
|
type: e.tagType,
|
|
924
|
-
size:
|
|
925
|
+
size: Ae.value,
|
|
925
926
|
effect: e.tagEffect,
|
|
926
927
|
hit: t.hitState,
|
|
927
928
|
closable: t.closable,
|
|
928
929
|
"disable-transitions": "",
|
|
929
930
|
onClose: (e) => ct(t)
|
|
930
931
|
}, {
|
|
931
|
-
default:
|
|
932
|
+
default: Q(() => [B("span", null, Y(t.text), 1)]),
|
|
932
933
|
_: 2
|
|
933
934
|
}, 1032, [
|
|
934
935
|
"type",
|
|
@@ -938,11 +939,11 @@ var ct = /* @__PURE__ */ B({
|
|
|
938
939
|
"closable",
|
|
939
940
|
"onClose"
|
|
940
941
|
]))), 128))]),
|
|
941
|
-
e.collapseTags &&
|
|
942
|
+
e.collapseTags && P.value.length > e.maxCollapseTags ? (K(), L(X(ae), {
|
|
942
943
|
key: 0,
|
|
943
944
|
ref_key: "tagTooltipRef",
|
|
944
|
-
ref:
|
|
945
|
-
disabled:
|
|
945
|
+
ref: me,
|
|
946
|
+
disabled: j.value || !e.collapseTagsTooltip,
|
|
946
947
|
"fallback-placements": [
|
|
947
948
|
"bottom",
|
|
948
949
|
"top",
|
|
@@ -955,36 +956,36 @@ var ct = /* @__PURE__ */ B({
|
|
|
955
956
|
effect: e.effect,
|
|
956
957
|
persistent: e.persistent
|
|
957
958
|
}, {
|
|
958
|
-
default:
|
|
959
|
+
default: Q(() => [V(X(xe), {
|
|
959
960
|
closable: !1,
|
|
960
|
-
size:
|
|
961
|
+
size: Ae.value,
|
|
961
962
|
type: e.tagType,
|
|
962
963
|
effect: e.tagEffect,
|
|
963
964
|
"disable-transitions": ""
|
|
964
965
|
}, {
|
|
965
|
-
default:
|
|
966
|
+
default: Q(() => [B("span", { class: W(X(v).e("tags-text")) }, " + " + Y(P.value.length - e.maxCollapseTags), 3)]),
|
|
966
967
|
_: 1
|
|
967
968
|
}, 8, [
|
|
968
969
|
"size",
|
|
969
970
|
"type",
|
|
970
971
|
"effect"
|
|
971
972
|
])]),
|
|
972
|
-
content:
|
|
973
|
-
default:
|
|
973
|
+
content: Q(() => [V(X(ve), { "max-height": e.maxCollapseTagsTooltipHeight }, {
|
|
974
|
+
default: Q(() => [B("div", { class: W(X(v).e("collapse-tags")) }, [(K(!0), z(F, null, Ie(Ee.value, (t, n) => (K(), z("div", {
|
|
974
975
|
key: n,
|
|
975
|
-
class:
|
|
976
|
-
}, [(
|
|
976
|
+
class: W(X(v).e("collapse-tag"))
|
|
977
|
+
}, [(K(), L(X(xe), {
|
|
977
978
|
key: t.key,
|
|
978
979
|
class: "in-tooltip",
|
|
979
980
|
type: e.tagType,
|
|
980
|
-
size:
|
|
981
|
+
size: Ae.value,
|
|
981
982
|
effect: e.tagEffect,
|
|
982
983
|
hit: t.hitState,
|
|
983
984
|
closable: t.closable,
|
|
984
985
|
"disable-transitions": "",
|
|
985
986
|
onClose: (e) => ct(t)
|
|
986
987
|
}, {
|
|
987
|
-
default:
|
|
988
|
+
default: Q(() => [B("span", null, Y(t.text), 1)]),
|
|
988
989
|
_: 2
|
|
989
990
|
}, 1032, [
|
|
990
991
|
"type",
|
|
@@ -1003,36 +1004,36 @@ var ct = /* @__PURE__ */ B({
|
|
|
1003
1004
|
"popper-style",
|
|
1004
1005
|
"effect",
|
|
1005
1006
|
"persistent"
|
|
1006
|
-
])) :
|
|
1007
|
-
e.filterable && !
|
|
1007
|
+
])) : R("v-if", !0),
|
|
1008
|
+
e.filterable && !X(w) ? We((K(), z("input", {
|
|
1008
1009
|
key: 1,
|
|
1009
|
-
"onUpdate:modelValue": n[2] || (n[2] = (e) =>
|
|
1010
|
+
"onUpdate:modelValue": n[2] || (n[2] = (e) => N.value = e),
|
|
1010
1011
|
type: "text",
|
|
1011
|
-
class:
|
|
1012
|
-
placeholder:
|
|
1013
|
-
onInput: n[3] || (n[3] = (e) => Et(
|
|
1014
|
-
onClick: n[4] || (n[4] =
|
|
1015
|
-
onKeydown:
|
|
1016
|
-
onCompositionstart: n[5] || (n[5] = (...e) =>
|
|
1017
|
-
onCompositionupdate: n[6] || (n[6] = (...e) =>
|
|
1018
|
-
onCompositionend: n[7] || (n[7] = (...e) =>
|
|
1019
|
-
}, null, 42, wt)), [[
|
|
1020
|
-
], 2)) :
|
|
1021
|
-
|
|
1012
|
+
class: W(X(v).e("search-input")),
|
|
1013
|
+
placeholder: Xe.value ? "" : H.value,
|
|
1014
|
+
onInput: n[3] || (n[3] = (e) => Et(N.value, e)),
|
|
1015
|
+
onClick: n[4] || (n[4] = Ke((e) => $(!0), ["stop"])),
|
|
1016
|
+
onKeydown: Ge(St, ["delete"]),
|
|
1017
|
+
onCompositionstart: n[5] || (n[5] = (...e) => X(E) && X(E)(...e)),
|
|
1018
|
+
onCompositionupdate: n[6] || (n[6] = (...e) => X(E) && X(E)(...e)),
|
|
1019
|
+
onCompositionend: n[7] || (n[7] = (...e) => X(E) && X(E)(...e))
|
|
1020
|
+
}, null, 42, wt)), [[He, N.value]]) : R("v-if", !0)
|
|
1021
|
+
], 2)) : R("v-if", !0)], 38)), [[
|
|
1022
|
+
X(be),
|
|
1022
1023
|
it,
|
|
1023
1024
|
rt.value
|
|
1024
1025
|
]])]),
|
|
1025
|
-
content:
|
|
1026
|
-
t.$slots.header ? (
|
|
1026
|
+
content: Q(() => [
|
|
1027
|
+
t.$slots.header ? (K(), z("div", {
|
|
1027
1028
|
key: 0,
|
|
1028
|
-
class:
|
|
1029
|
-
onClick: n[11] || (n[11] =
|
|
1030
|
-
}, [
|
|
1031
|
-
|
|
1029
|
+
class: W(X(v).e("header")),
|
|
1030
|
+
onClick: n[11] || (n[11] = Ke(() => {}, ["stop"]))
|
|
1031
|
+
}, [J(t.$slots, "header")], 2)) : R("v-if", !0),
|
|
1032
|
+
We(V(X(bt), {
|
|
1032
1033
|
ref_key: "cascaderPanelRef",
|
|
1033
|
-
ref:
|
|
1034
|
-
modelValue:
|
|
1035
|
-
"onUpdate:modelValue": n[12] || (n[12] = (e) =>
|
|
1034
|
+
ref: A,
|
|
1035
|
+
modelValue: $e.value,
|
|
1036
|
+
"onUpdate:modelValue": n[12] || (n[12] = (e) => $e.value = e),
|
|
1036
1037
|
options: e.options,
|
|
1037
1038
|
props: o.props,
|
|
1038
1039
|
border: !1,
|
|
@@ -1040,39 +1041,39 @@ var ct = /* @__PURE__ */ B({
|
|
|
1040
1041
|
onExpandChange: ht,
|
|
1041
1042
|
onClose: n[13] || (n[13] = (e) => t.$nextTick(() => $(!1)))
|
|
1042
1043
|
}, {
|
|
1043
|
-
empty:
|
|
1044
|
+
empty: Q(() => [J(t.$slots, "empty")]),
|
|
1044
1045
|
_: 3
|
|
1045
1046
|
}, 8, [
|
|
1046
1047
|
"modelValue",
|
|
1047
1048
|
"options",
|
|
1048
1049
|
"props",
|
|
1049
1050
|
"render-label"
|
|
1050
|
-
]), [[
|
|
1051
|
-
e.filterable ?
|
|
1051
|
+
]), [[Ue, !M.value]]),
|
|
1052
|
+
e.filterable ? We((K(), L(X(ve), {
|
|
1052
1053
|
key: 1,
|
|
1053
1054
|
ref_key: "suggestionPanel",
|
|
1054
|
-
ref:
|
|
1055
|
+
ref: ye,
|
|
1055
1056
|
tag: "ul",
|
|
1056
|
-
class:
|
|
1057
|
-
"view-class":
|
|
1057
|
+
class: W(X(v).e("suggestion-panel")),
|
|
1058
|
+
"view-class": X(v).e("suggestion-list"),
|
|
1058
1059
|
onKeydown: xt
|
|
1059
1060
|
}, {
|
|
1060
|
-
default:
|
|
1061
|
+
default: Q(() => [we.value.length ? (K(!0), z(F, { key: 0 }, Ie(we.value, (e) => (K(), z("li", {
|
|
1061
1062
|
key: e.uid,
|
|
1062
|
-
class:
|
|
1063
|
+
class: W([X(v).e("suggestion-item"), X(v).is("checked", e.checked)]),
|
|
1063
1064
|
tabindex: -1,
|
|
1064
1065
|
onClick: (t) => yt(e)
|
|
1065
|
-
}, [
|
|
1066
|
-
default:
|
|
1066
|
+
}, [J(t.$slots, "suggestion-item", { item: e }, () => [B("span", null, Y(e.text), 1), e.checked ? (K(), L(X(O), { key: 0 }, {
|
|
1067
|
+
default: Q(() => [V(X(ge))]),
|
|
1067
1068
|
_: 1
|
|
1068
|
-
})) :
|
|
1069
|
+
})) : R("v-if", !0)])], 10, Tt))), 128)) : J(t.$slots, "empty", { key: 1 }, () => [B("li", { class: W(X(v).e("empty-text")) }, Y(X(ie)("el.cascader.noMatch")), 3)])]),
|
|
1069
1070
|
_: 3
|
|
1070
|
-
}, 8, ["class", "view-class"])), [[
|
|
1071
|
-
t.$slots.footer ? (
|
|
1071
|
+
}, 8, ["class", "view-class"])), [[Ue, M.value]]) : R("v-if", !0),
|
|
1072
|
+
t.$slots.footer ? (K(), z("div", {
|
|
1072
1073
|
key: 2,
|
|
1073
|
-
class:
|
|
1074
|
-
onClick: n[14] || (n[14] =
|
|
1075
|
-
}, [
|
|
1074
|
+
class: W(X(v).e("footer")),
|
|
1075
|
+
onClick: n[14] || (n[14] = Ke(() => {}, ["stop"]))
|
|
1076
|
+
}, [J(t.$slots, "footer")], 2)) : R("v-if", !0)
|
|
1076
1077
|
]),
|
|
1077
1078
|
_: 3
|
|
1078
1079
|
}, 8, [
|
|
@@ -1098,9 +1099,9 @@ var ct = /* @__PURE__ */ B({
|
|
|
1098
1099
|
].includes(e)), Dt = {
|
|
1099
1100
|
name: "FormCascader",
|
|
1100
1101
|
mixins: [
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1102
|
+
P,
|
|
1103
|
+
we,
|
|
1104
|
+
Te
|
|
1104
1105
|
],
|
|
1105
1106
|
props: {
|
|
1106
1107
|
value: [
|
|
@@ -1150,15 +1151,15 @@ var ct = /* @__PURE__ */ B({
|
|
|
1150
1151
|
},
|
|
1151
1152
|
computed: {
|
|
1152
1153
|
inputProps() {
|
|
1153
|
-
return
|
|
1154
|
-
...
|
|
1154
|
+
return Ce({
|
|
1155
|
+
...M(this.$attrs),
|
|
1155
1156
|
...this.$props
|
|
1156
1157
|
}, Et);
|
|
1157
1158
|
},
|
|
1158
1159
|
inputVal() {
|
|
1159
|
-
if (this.join) return
|
|
1160
|
+
if (this.join) return Je(this.value) ? this.value : Ye(this.value) ? this.value.split(this.separator) : [];
|
|
1160
1161
|
if (this.last) {
|
|
1161
|
-
let [e] =
|
|
1162
|
+
let [e] = qe(this.innerOptions, (e) => e[this.valueKey] === this.value), t = [];
|
|
1162
1163
|
for (; e;) t.push(e[this.valueKey]), e = e.parent;
|
|
1163
1164
|
return t.reverse();
|
|
1164
1165
|
}
|
|
@@ -1167,13 +1168,13 @@ var ct = /* @__PURE__ */ B({
|
|
|
1167
1168
|
innerOptions() {
|
|
1168
1169
|
if (this.dictType) return this.dictItems;
|
|
1169
1170
|
if (this.options) {
|
|
1170
|
-
let e =
|
|
1171
|
-
return this.last &&
|
|
1171
|
+
let e = Ze(this.options);
|
|
1172
|
+
return this.last && Xe(e), e;
|
|
1172
1173
|
} else return [];
|
|
1173
1174
|
}
|
|
1174
1175
|
},
|
|
1175
1176
|
methods: { emitInput(e) {
|
|
1176
|
-
if (this.join &&
|
|
1177
|
+
if (this.join && Je(e)) this.$emit("input", e.join(this.separator));
|
|
1177
1178
|
else {
|
|
1178
1179
|
let t = this.last ? e[e.length - 1] : e;
|
|
1179
1180
|
this.$emit("input", t);
|
|
@@ -1181,12 +1182,12 @@ var ct = /* @__PURE__ */ B({
|
|
|
1181
1182
|
} }
|
|
1182
1183
|
};
|
|
1183
1184
|
function Ot(e, t, n, r, i, a) {
|
|
1184
|
-
let o =
|
|
1185
|
-
return
|
|
1185
|
+
let o = Le("ElCascader"), s = Le("FormItem");
|
|
1186
|
+
return K(), L(s, Ae(e.formItemProps, {
|
|
1186
1187
|
rules: e.computeRules,
|
|
1187
1188
|
disabled: e.inputDisabled
|
|
1188
1189
|
}), {
|
|
1189
|
-
default:
|
|
1190
|
+
default: Q(() => [J(e.$slots, "default", {}, () => [V(o, Ae({
|
|
1190
1191
|
clearable: "",
|
|
1191
1192
|
style: { width: "100%" },
|
|
1192
1193
|
class: { "is-readonly": e.readonly },
|
|
@@ -1204,7 +1205,7 @@ function Ot(e, t, n, r, i, a) {
|
|
|
1204
1205
|
},
|
|
1205
1206
|
disabled: e.inputDisabled,
|
|
1206
1207
|
placeholder: e.computePlaceholder
|
|
1207
|
-
}, a.inputProps,
|
|
1208
|
+
}, a.inputProps, ze(e.listeners), { onInput: a.emitInput }), null, 16, [
|
|
1208
1209
|
"class",
|
|
1209
1210
|
"value",
|
|
1210
1211
|
"show-all-levels",
|
|
@@ -1216,8 +1217,8 @@ function Ot(e, t, n, r, i, a) {
|
|
|
1216
1217
|
"placeholder",
|
|
1217
1218
|
"onInput"
|
|
1218
1219
|
])])]),
|
|
1219
|
-
error:
|
|
1220
|
-
label:
|
|
1220
|
+
error: Q(({ error: t }) => [J(e.$slots, "error", { error: t })]),
|
|
1221
|
+
label: Q(() => [J(e.$slots, "label")]),
|
|
1221
1222
|
_: 3
|
|
1222
1223
|
}, 16, ["rules", "disabled"]);
|
|
1223
1224
|
}
|