jmash-core 0.0.8 → 0.0.9
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/dist/{401-D1navTeN.mjs → 401-C_jDuubo.mjs} +3 -3
- package/dist/{BarChart--O8TFL11.mjs → BarChart-BiYcyOIt.mjs} +3 -3
- package/dist/{FileSaver.min-CFSHg9zJ.mjs → FileSaver.min-CpTDBPJB.mjs} +4 -4
- package/dist/{PieChart-BsEXTafD.mjs → PieChart-DvQrr19I.mjs} +1 -1
- package/dist/{PieChart.vue_vue_type_script_setup_true_lang-BoPZVlEy.mjs → PieChart.vue_vue_type_script_setup_true_lang-DcF0vyqZ.mjs} +2 -2
- package/dist/{RadarChart-B-25o1xQ.mjs → RadarChart-DadH3Bsc.mjs} +1 -1
- package/dist/{RadarChart.vue_vue_type_script_setup_true_lang-Dk53W_7d.mjs → RadarChart.vue_vue_type_script_setup_true_lang-mZYAljbA.mjs} +2 -2
- package/dist/anquanrizhi-BMAtNRi-.mjs +4 -0
- package/dist/api-DA2t0sYn.mjs +4 -0
- package/dist/bumenguanli-_DtFk-Tc.mjs +4 -0
- package/dist/caozuoguanliyuan-YxDi1qyM.mjs +4 -0
- package/dist/captcha-G9RskXh1.mjs +4 -0
- package/dist/{caret-bottom-DnFVxAos.mjs → caret-bottom-ByzDT72p.mjs} +1 -1
- package/dist/cascader-CysbB3DR.mjs +4 -0
- package/dist/client-CmoE5d0v.mjs +4 -0
- package/dist/close-DwiHyvYJ.mjs +4 -0
- package/dist/close_all-ri0Fg4Yg.mjs +4 -0
- package/dist/close_left-DLmFYlJS.mjs +4 -0
- package/dist/close_other-B705ZMV6.mjs +4 -0
- package/dist/close_right-BUdNHbs5.mjs +4 -0
- package/dist/{debounce-YcFmMYKS.mjs → debounce-D-IJxfPF.mjs} +24 -24
- package/dist/dict-C2cGjFov.mjs +4 -0
- package/dist/document-Bf2gTChB.mjs +4 -0
- package/dist/download-cG3k-vnb.mjs +4 -0
- package/dist/drag-CwjZNuUJ.mjs +4 -0
- package/dist/{dropdown2-C14KfhQM.mjs → dropdown2-Cnd0SGXe.mjs} +2 -2
- package/dist/{edit-DpmMYYl6.mjs → edit-BEZbUD7x.mjs} +43 -43
- package/dist/{edit-CRxj4EY1.mjs → edit-BNIu335Q.mjs} +1 -1
- package/dist/{edit-CNBEQPXE.mjs → edit-BZ3xqmLv.mjs} +70 -71
- package/dist/edit-CIq1RPVx.mjs +4 -0
- package/dist/{edit-Bi-somHb.mjs → edit-CTPp57mz.mjs} +1 -1
- package/dist/{edit-BrhHNCNl.mjs → edit-Cb6DydNq.mjs} +1 -1
- package/dist/{edit-Cn3dM7k5.mjs → edit-Cbvy2Sfv.mjs} +1 -1
- package/dist/edit-D9vdHRed.mjs +4 -0
- package/dist/edit-NenpQsL5.mjs +4 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-B87Ti-_7.mjs +626 -0
- package/dist/{edit.vue_vue_type_script_setup_true_lang-Buq1ql0E.mjs → edit.vue_vue_type_script_setup_true_lang-CZoUg9gj.mjs} +14 -14
- package/dist/{edit.vue_vue_type_script_setup_true_lang-8pvOxMW7.mjs → edit.vue_vue_type_script_setup_true_lang-D8zavJFz.mjs} +10 -10
- package/dist/{edit.vue_vue_type_script_setup_true_lang-De3m51Sn.mjs → edit.vue_vue_type_script_setup_true_lang-Dzw7eFuh.mjs} +17 -17
- package/dist/{edit.vue_vue_type_script_setup_true_lang-CVrHkM_q.mjs → edit.vue_vue_type_script_setup_true_lang-mbsAcwCr.mjs} +26 -26
- package/dist/{edit.vue_vue_type_script_setup_true_lang-B90c-BBg.mjs → edit.vue_vue_type_script_setup_true_lang-p1_8U_WZ.mjs} +14 -14
- package/dist/{el-card-D0KW8m51.mjs → el-card-CNibUy3q.mjs} +1 -1
- package/dist/{el-checkbox-BKQlv24T.mjs → el-checkbox-Bb05WXyt.mjs} +130 -131
- package/dist/{el-col-CshwMyIb.mjs → el-col-faEvjKbh.mjs} +16 -16
- package/dist/{el-date-picker-L919iy84.mjs → el-date-picker-CmipR6MW.mjs} +466 -466
- package/dist/{el-dialog-DnjLYfXR.mjs → el-dialog-ttaEYSPa.mjs} +68 -68
- package/dist/{el-dropdown-item-awCBld5w.mjs → el-dropdown-item-BDZy-ttj.mjs} +53 -54
- package/dist/el-form-item-l0sNRNKZ.mjs +1 -0
- package/dist/{el-popover-Bgt26ytG.mjs → el-popover-CRZimqDD.mjs} +13 -13
- package/dist/{el-popper-C4ObtCw4.mjs → el-popper-D2LHTqDy.mjs} +142 -142
- package/dist/{el-progress-Du5X0h6t.mjs → el-progress-COmCqT1a.mjs} +21 -22
- package/dist/{el-radio-DMm6yz9z.mjs → el-radio-BKt8lW7J.mjs} +40 -40
- package/dist/{el-scrollbar-DNrfQkzc.mjs → el-scrollbar-CcOhSvuU.mjs} +76 -77
- package/dist/{el-select-CvXSBkeW.mjs → el-select-BLskFr20.mjs} +98 -98
- package/dist/{el-switch-CTHtmrXm.mjs → el-switch-BL2KLnPo.mjs} +29 -29
- package/dist/{el-table-DBe6lMX0.mjs → el-table-AWydVCJY.mjs} +195 -196
- package/dist/{el-tree-select-D4-wTWIf.mjs → el-tree-select-Czi47mIj.mjs} +32 -32
- package/dist/email-B2AUCEGq.mjs +4 -0
- package/dist/exit-fullscreen-BJ7HY1Sq.mjs +4 -0
- package/dist/eye-DeDz_5CQ.mjs +4 -0
- package/dist/eye-open-Cm0N1Rcz.mjs +4 -0
- package/dist/fullscreen-BFXljl9l.mjs +4 -0
- package/dist/gangweiguanli-bkwyhEXB.mjs +4 -0
- package/dist/github-CL2t8fd5.mjs +4 -0
- package/dist/homepage-IeZtzO8Q.mjs +4 -0
- package/dist/icon-DwZ6Hkfk.mjs +4 -0
- package/dist/{importUpload.vue_vue_type_script_setup_true_lang-B3MGPw_2.mjs → importUpload.vue_vue_type_script_setup_true_lang-uF63aa0G.mjs} +13 -13
- package/dist/{index-C2REEPMM.mjs → index-5-dP9leL.mjs} +1 -1
- package/dist/{index-3qIRz0lG.mjs → index-BAy-MZyA.mjs} +73 -74
- package/dist/{index-PBq39c_Y.mjs → index-BEjEqYND.mjs} +22 -22
- package/dist/{index-BccYTnUE.mjs → index-BbdkfW1u.mjs} +1 -1
- package/dist/{index-B5gZoPzf.mjs → index-CC1cqzhH.mjs} +34 -34
- package/dist/{index-B-d0sG_m.mjs → index-ChvYPMES.mjs} +18 -18
- package/dist/{index-B3Yexifn.mjs → index-CugZa1Ys.mjs} +10 -10
- package/dist/{index-DNsvQhEF.mjs → index-CzGRc0hK.mjs} +61 -63
- package/dist/{index-BkQGtIM0.mjs → index-D4nHCHVJ.mjs} +1 -1
- package/dist/{index-C_rrQCFw.mjs → index-Dd6PCsAJ.mjs} +27 -27
- package/dist/{index-DyAyeZcb.mjs → index-DqGCMao5.mjs} +5 -5
- package/dist/{index-rOm9tk5c.mjs → index-DrDJJbqj.mjs} +79 -81
- package/dist/{index-529I9E4k.mjs → index-HyB-t-wB.mjs} +101 -101
- package/dist/{index-CFY0L-EF.mjs → index-KWJbe1VG.mjs} +55 -55
- package/dist/{index-DBkD-FDF.mjs → index-LhUQe1Xu.mjs} +95 -96
- package/dist/{index-D_7EobKs.mjs → index-PuLggzCy.mjs} +10466 -8773
- package/dist/{index-JhnBAnIL.mjs → index-TIICDILF.mjs} +1 -1
- package/dist/{index-C_tL22hb.mjs → index-VAf5EsQ5.mjs} +32 -32
- package/dist/{index-BuvRskP0.mjs → index-X9SBRcLU.mjs} +41 -41
- package/dist/{index-BZjZrmGu.mjs → index-uMGobxHH.mjs} +33 -33
- package/dist/{index-BYabHywL.mjs → index-xo5uwQYL.mjs} +39 -39
- package/dist/index.mjs +31 -19
- package/dist/index.vue_vue_type_script_setup_true_lang-BCQXNjtA.mjs +57 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-CS7m36k5.mjs → index.vue_vue_type_script_setup_true_lang-BIbfa3W2.mjs} +20 -20
- package/dist/index.vue_vue_type_style_index_0_scope_true_lang-AvcZIlmm.mjs +119 -0
- package/dist/ip-DOLbS1rT.mjs +4 -0
- package/dist/jiemianxijietubiao-26-mnbzByc9.mjs +4 -0
- package/dist/language-C1tgLxuP.mjs +4 -0
- package/dist/link-Cjm7RVX7.mjs +4 -0
- package/dist/log-ZFSIG9ZQ.mjs +4 -0
- package/dist/menu-B7SOjMUJ.mjs +4 -0
- package/dist/message-Bws5C_1u.mjs +4 -0
- package/dist/mokuaiguanli-nzRpK-Pe.mjs +4 -0
- package/dist/money-DM0ZKWD3.mjs +4 -0
- package/dist/monitor-CxsUJkcx.mjs +4 -0
- package/dist/order-DZ28J7CD.mjs +4 -0
- package/dist/password-BbtiGVLy.mjs +4 -0
- package/dist/peoples-3fyh79uv.mjs +4 -0
- package/dist/phone-CdpLww4_.mjs +4 -0
- package/dist/{picture-DCK2sm2j.mjs → picture-BT7yeXEj.mjs} +2 -2
- package/dist/{profile-MjSEwXyJ.mjs → profile-fw7e0wjU.mjs} +38 -38
- package/dist/project-DgVsw9u_.mjs +4 -0
- package/dist/publish-BCri5HbT.mjs +4 -0
- package/dist/quanxianguanli-Cpcc8C4D.mjs +4 -0
- package/dist/redis-fjUUmFu3.mjs +4 -0
- package/dist/refresh-BWNjEt3t.mjs +4 -0
- package/dist/{refs-J3utyiz5.mjs → refs-B_ySplLd.mjs} +1 -1
- package/dist/role-BYKzPG5H.mjs +4 -0
- package/dist/security-BsMRfWoG.mjs +4 -0
- package/dist/shoujihao-BFt1tDJn.mjs +4 -0
- package/dist/shrink-kEdKK3G7.mjs +4 -0
- package/dist/size-jLonAeyJ.mjs +4 -0
- package/dist/style.css +1 -1
- package/dist/system-BlPhikZo.mjs +4 -0
- package/dist/table-CCqA2qBP.mjs +4 -0
- package/dist/todolist-Ul73X2IJ.mjs +4 -0
- package/dist/tree-DrEt7UUZ.mjs +4 -0
- package/dist/{types-u03-XGUh.mjs → types-fCJt2Tua.mjs} +12 -12
- package/dist/{updatePwd-DVMHZaH_.mjs → updatePwd-DgqhTWUV.mjs} +1 -1
- package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-C3ySntYh.mjs → updatePwd.vue_vue_type_script_setup_true_lang-B6YhGyCY.mjs} +19 -19
- package/dist/user-B9bSWq2E.mjs +4 -0
- package/dist/visit-w_hKTLb6.mjs +4 -0
- package/dist/xingming-DHM4olm-.mjs +4 -0
- package/dist/yonghuguanli-B3vRkdqw.mjs +4 -0
- package/dist/youxiang-D68Zx-02.mjs +4 -0
- package/dist//345/210/227/350/241/250-nphA7BPW.mjs +4 -0
- package/dist//345/233/272/345/256/232_/345/233/276/351/222/211-CXYo1gbQ.mjs +4 -0
- package/dist//346/250/241/345/235/227-D528qA63.mjs +4 -0
- package/dist//347/234/274/347/235/233-BaPHKGgj.mjs +4 -0
- package/dist//351/227/255/347/234/274/347/235/233-D6BjbTd5.mjs +4 -0
- package/dts/src/api/auth/index.d.ts +6 -6
- package/dts/src/api/file/index.d.ts +1 -1
- package/dts/src/api/system/dept/index.d.ts +13 -13
- package/dts/src/api/system/index.d.ts +1 -1
- package/dts/src/api/system/job/index.d.ts +6 -6
- package/dts/src/api/system/log/index.d.ts +4 -4
- package/dts/src/api/system/menu/index.d.ts +15 -15
- package/dts/src/api/system/module/index.d.ts +9 -9
- package/dts/src/api/system/operation/index.d.ts +8 -8
- package/dts/src/api/system/permission/index.d.ts +7 -7
- package/dts/src/api/system/role/index.d.ts +11 -11
- package/dts/src/api/system/user/index.d.ts +19 -19
- package/dts/src/api/system/userLog/index.d.ts +4 -4
- package/dts/src/components/DictRadio/index.vue.d.ts +1 -1
- package/dts/src/components/DictSelect/index.vue.d.ts +2 -2
- package/dts/src/components/Dictionary/index.vue.d.ts +1 -1
- package/dts/src/components/Pagination/index.vue.d.ts +3 -3
- package/dts/src/components/SvgIcon/index.vue.d.ts +1 -1
- package/dts/src/index.d.ts +7 -9
- package/dts/src/lang/index.d.ts +1 -1
- package/dts/src/router/index.d.ts +1 -2
- package/dts/src/views/dashboard/components/BarChart.vue.d.ts +1 -1
- package/dts/src/views/dashboard/components/FunnelChart.vue.d.ts +1 -1
- package/dts/src/views/dashboard/components/PieChart.vue.d.ts +1 -1
- package/dts/src/views/dashboard/components/RadarChart.vue.d.ts +1 -1
- package/dts/src/views/system/dept/edit.vue.d.ts +1 -0
- package/dts/src/views/system/job/edit.vue.d.ts +1 -0
- package/dts/src/views/system/menu/edit.vue.d.ts +1 -0
- package/dts/src/views/system/module/edit.vue.d.ts +1 -0
- package/dts/src/views/system/operation/edit.vue.d.ts +1 -0
- package/dts/src/views/system/permission/edit.vue.d.ts +1 -0
- package/dts/src/views/system/role/edit.vue.d.ts +1 -0
- package/dts/src/views/system/user/edit.vue.d.ts +1 -0
- package/package.json +1 -1
- package/dist/common-DuVBTwAv.mjs +0 -36
- package/dist/edit-DeLAIti_.mjs +0 -4
- package/dist/edit-YBi7ifGA.mjs +0 -4
- package/dist/edit.vue_vue_type_script_setup_true_lang-CBRI_ssD.mjs +0 -621
- package/dist/el-form-item-vFTHxYmj.mjs +0 -1489
- package/dist/index-B8FM-nwF.mjs +0 -13
- package/dist/index.vue_vue_type_script_setup_true_lang-Btv8D2QS.mjs +0 -58
- package/dist/useColumnToggleTable-ayAFGBOJ.mjs +0 -272
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { b as
|
|
3
|
-
import { c as
|
|
4
|
-
import { i as
|
|
5
|
-
const x = Symbol("dialogInjectionKey"), ee =
|
|
1
|
+
import { defineComponent as O, inject as j, computed as D, openBlock as T, createElementBlock as U, unref as e, normalizeClass as m, normalizeStyle as H, createElementVNode as M, renderSlot as E, toDisplayString as te, createVNode as N, withCtx as w, createBlock as _, resolveDynamicComponent as ae, createCommentVNode as q, getCurrentInstance as se, ref as k, watch as Z, nextTick as ne, onMounted as re, useSlots as ie, provide as de, Teleport as ue, Transition as ce, withDirectives as fe, mergeProps as ve, createSlots as ye, vShow as pe } from "vue";
|
|
2
|
+
import { b as X, i as me, a3 as ge, bG as be, bH as Ce, E as he, _ as Q, bI as we, d as G, aR as W, aS as Ee, a4 as ke, aY as J, bJ as De, bB as Ie, bK as Be, bL as Te, l as Y, Z as Se, aX as Ae, u as Fe, bM as $e, be as Le, bN as Pe, w as Re } from "./index-PuLggzCy.mjs";
|
|
3
|
+
import { c as Me } from "./refs-B_ySplLd.mjs";
|
|
4
|
+
import { i as Ne } from "./isUndefined-CUQZk6oB.mjs";
|
|
5
|
+
const x = Symbol("dialogInjectionKey"), ee = X({
|
|
6
6
|
center: Boolean,
|
|
7
7
|
alignCenter: Boolean,
|
|
8
8
|
closeIcon: {
|
|
@@ -23,72 +23,72 @@ const x = Symbol("dialogInjectionKey"), ee = Y({
|
|
|
23
23
|
type: String,
|
|
24
24
|
default: "2"
|
|
25
25
|
}
|
|
26
|
-
}),
|
|
26
|
+
}), Oe = {
|
|
27
27
|
close: () => !0
|
|
28
|
-
}, ze = ["aria-level"], Ve = ["aria-label"],
|
|
29
|
-
...
|
|
28
|
+
}, ze = ["aria-level"], Ve = ["aria-label"], Ke = ["id"], Ue = O({ name: "ElDialogContent" }), _e = /* @__PURE__ */ O({
|
|
29
|
+
...Ue,
|
|
30
30
|
props: ee,
|
|
31
|
-
emits:
|
|
31
|
+
emits: Oe,
|
|
32
32
|
setup(o) {
|
|
33
|
-
const s = o, { t: u } = ge(), { Close:
|
|
33
|
+
const s = o, { t: u } = ge(), { Close: F } = we, { dialogRef: n, headerRef: c, bodyId: I, ns: a, style: g } = j(x), { focusTrapRef: r } = j(be), f = D(() => [
|
|
34
34
|
a.b(),
|
|
35
35
|
a.is("fullscreen", s.fullscreen),
|
|
36
36
|
a.is("draggable", s.draggable),
|
|
37
37
|
a.is("align-center", s.alignCenter),
|
|
38
38
|
{ [a.m("center")]: s.center }
|
|
39
|
-
]), v =
|
|
40
|
-
return Ce(n, c, b, d), (t,
|
|
39
|
+
]), v = Me(r, n), b = D(() => s.draggable), d = D(() => s.overflow);
|
|
40
|
+
return Ce(n, c, b, d), (t, B) => (T(), U("div", {
|
|
41
41
|
ref: e(v),
|
|
42
42
|
class: m(e(f)),
|
|
43
|
-
style:
|
|
43
|
+
style: H(e(g)),
|
|
44
44
|
tabindex: "-1"
|
|
45
45
|
}, [
|
|
46
|
-
|
|
46
|
+
M("header", {
|
|
47
47
|
ref_key: "headerRef",
|
|
48
48
|
ref: c,
|
|
49
49
|
class: m([e(a).e("header"), { "show-close": t.showClose }])
|
|
50
50
|
}, [
|
|
51
51
|
E(t.$slots, "header", {}, () => [
|
|
52
|
-
|
|
52
|
+
M("span", {
|
|
53
53
|
role: "heading",
|
|
54
54
|
"aria-level": t.ariaLevel,
|
|
55
55
|
class: m(e(a).e("title"))
|
|
56
56
|
}, te(t.title), 11, ze)
|
|
57
57
|
]),
|
|
58
|
-
t.showClose ? (
|
|
58
|
+
t.showClose ? (T(), U("button", {
|
|
59
59
|
key: 0,
|
|
60
60
|
"aria-label": e(u)("el.dialog.close"),
|
|
61
61
|
class: m(e(a).e("headerbtn")),
|
|
62
62
|
type: "button",
|
|
63
|
-
onClick:
|
|
63
|
+
onClick: B[0] || (B[0] = ($) => t.$emit("close"))
|
|
64
64
|
}, [
|
|
65
|
-
|
|
65
|
+
N(e(he), {
|
|
66
66
|
class: m(e(a).e("close"))
|
|
67
67
|
}, {
|
|
68
68
|
default: w(() => [
|
|
69
|
-
(
|
|
69
|
+
(T(), _(ae(t.closeIcon || e(F))))
|
|
70
70
|
]),
|
|
71
71
|
_: 1
|
|
72
72
|
}, 8, ["class"])
|
|
73
|
-
], 10, Ve)) :
|
|
73
|
+
], 10, Ve)) : q("v-if", !0)
|
|
74
74
|
], 2),
|
|
75
|
-
|
|
75
|
+
M("div", {
|
|
76
76
|
id: e(I),
|
|
77
77
|
class: m(e(a).e("body"))
|
|
78
78
|
}, [
|
|
79
79
|
E(t.$slots, "default")
|
|
80
|
-
], 10,
|
|
81
|
-
t.$slots.footer ? (
|
|
80
|
+
], 10, Ke),
|
|
81
|
+
t.$slots.footer ? (T(), U("footer", {
|
|
82
82
|
key: 0,
|
|
83
83
|
class: m(e(a).e("footer"))
|
|
84
84
|
}, [
|
|
85
85
|
E(t.$slots, "footer")
|
|
86
|
-
], 2)) :
|
|
86
|
+
], 2)) : q("v-if", !0)
|
|
87
87
|
], 6));
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
|
-
var
|
|
91
|
-
const je =
|
|
90
|
+
var qe = /* @__PURE__ */ Q(_e, [["__file", "dialog-content.vue"]]);
|
|
91
|
+
const je = X({
|
|
92
92
|
...ee,
|
|
93
93
|
appendToBody: Boolean,
|
|
94
94
|
appendTo: {
|
|
@@ -156,8 +156,8 @@ const je = Y({
|
|
|
156
156
|
let I = "";
|
|
157
157
|
const a = J(), g = J(), r = k(!1), f = k(!1), v = k(!1), b = k((u = o.zIndex) != null ? u : c());
|
|
158
158
|
let d, t;
|
|
159
|
-
const
|
|
160
|
-
const i = {}, h = `--${
|
|
159
|
+
const B = De("namespace", Te), $ = D(() => {
|
|
160
|
+
const i = {}, h = `--${B.value}-dialog`;
|
|
161
161
|
return o.fullscreen || (o.top && (i[`${h}-margin-top`] = o.top), o.width && (i[`${h}-width`] = Ie(o.width))), i;
|
|
162
162
|
}), z = D(() => o.alignCenter ? { display: "flex" } : {});
|
|
163
163
|
function L() {
|
|
@@ -166,26 +166,26 @@ const je = Y({
|
|
|
166
166
|
function V() {
|
|
167
167
|
n("closed"), n(W, !1), o.destroyOnClose && (v.value = !1);
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function K() {
|
|
170
170
|
n("close");
|
|
171
171
|
}
|
|
172
172
|
function P() {
|
|
173
|
-
t == null || t(), d == null || d(), o.openDelay && o.openDelay > 0 ? { stop: d } =
|
|
173
|
+
t == null || t(), d == null || d(), o.openDelay && o.openDelay > 0 ? { stop: d } = Y(() => R(), o.openDelay) : R();
|
|
174
174
|
}
|
|
175
|
-
function
|
|
176
|
-
d == null || d(), t == null || t(), o.closeDelay && o.closeDelay > 0 ? { stop: t } =
|
|
175
|
+
function S() {
|
|
176
|
+
d == null || d(), t == null || t(), o.closeDelay && o.closeDelay > 0 ? { stop: t } = Y(() => l(), o.closeDelay) : l();
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function A() {
|
|
179
179
|
function i(h) {
|
|
180
180
|
h || (f.value = !0, r.value = !1);
|
|
181
181
|
}
|
|
182
|
-
o.beforeClose ? o.beforeClose(i) :
|
|
182
|
+
o.beforeClose ? o.beforeClose(i) : S();
|
|
183
183
|
}
|
|
184
184
|
function y() {
|
|
185
|
-
o.closeOnClickModal &&
|
|
185
|
+
o.closeOnClickModal && A();
|
|
186
186
|
}
|
|
187
187
|
function R() {
|
|
188
|
-
|
|
188
|
+
Se && (r.value = !0);
|
|
189
189
|
}
|
|
190
190
|
function l() {
|
|
191
191
|
r.value = !1;
|
|
@@ -200,14 +200,14 @@ const je = Y({
|
|
|
200
200
|
var h;
|
|
201
201
|
((h = i.detail) == null ? void 0 : h.focusReason) === "pointer" && i.preventDefault();
|
|
202
202
|
}
|
|
203
|
-
o.lockScroll &&
|
|
203
|
+
o.lockScroll && Be(r);
|
|
204
204
|
function le() {
|
|
205
|
-
o.closeOnPressEscape &&
|
|
205
|
+
o.closeOnPressEscape && A();
|
|
206
206
|
}
|
|
207
207
|
return Z(() => o.modelValue, (i) => {
|
|
208
|
-
i ? (f.value = !1, P(), v.value = !0, b.value =
|
|
208
|
+
i ? (f.value = !1, P(), v.value = !0, b.value = Ne(o.zIndex) ? c() : b.value++, ne(() => {
|
|
209
209
|
n("open"), s.value && (s.value.scrollTop = 0);
|
|
210
|
-
})) : r.value &&
|
|
210
|
+
})) : r.value && S();
|
|
211
211
|
}), Z(() => o.fullscreen, (i) => {
|
|
212
212
|
s.value && (i ? (I = s.value.style.transform, s.value.style.transform = "") : s.value.style.transform = I);
|
|
213
213
|
}), re(() => {
|
|
@@ -215,10 +215,10 @@ const je = Y({
|
|
|
215
215
|
}), {
|
|
216
216
|
afterEnter: L,
|
|
217
217
|
afterLeave: V,
|
|
218
|
-
beforeLeave:
|
|
219
|
-
handleClose:
|
|
218
|
+
beforeLeave: K,
|
|
219
|
+
handleClose: A,
|
|
220
220
|
onModalClick: y,
|
|
221
|
-
close:
|
|
221
|
+
close: S,
|
|
222
222
|
doClose: l,
|
|
223
223
|
onOpenAutoFocus: p,
|
|
224
224
|
onCloseAutoFocus: C,
|
|
@@ -233,23 +233,23 @@ const je = Y({
|
|
|
233
233
|
visible: r,
|
|
234
234
|
zIndex: b
|
|
235
235
|
};
|
|
236
|
-
}, Je = ["aria-label", "aria-labelledby", "aria-describedby"],
|
|
236
|
+
}, Je = ["aria-label", "aria-labelledby", "aria-describedby"], Ye = O({
|
|
237
237
|
name: "ElDialog",
|
|
238
238
|
inheritAttrs: !1
|
|
239
|
-
}),
|
|
240
|
-
...
|
|
239
|
+
}), He = /* @__PURE__ */ O({
|
|
240
|
+
...Ye,
|
|
241
241
|
props: je,
|
|
242
242
|
emits: Ze,
|
|
243
243
|
setup(o, { expose: s }) {
|
|
244
|
-
const u = o,
|
|
245
|
-
|
|
244
|
+
const u = o, F = ie();
|
|
245
|
+
Ae({
|
|
246
246
|
scope: "el-dialog",
|
|
247
247
|
from: "the title slot",
|
|
248
248
|
replacement: "the header slot",
|
|
249
249
|
version: "3.0.0",
|
|
250
250
|
ref: "https://element-plus.org/en-US/component/dialog.html#slots"
|
|
251
|
-
}, D(() => !!
|
|
252
|
-
const n =
|
|
251
|
+
}, D(() => !!F.title));
|
|
252
|
+
const n = Fe("dialog"), c = k(), I = k(), a = k(), {
|
|
253
253
|
visible: g,
|
|
254
254
|
titleId: r,
|
|
255
255
|
bodyId: f,
|
|
@@ -257,15 +257,15 @@ const je = Y({
|
|
|
257
257
|
overlayDialogStyle: b,
|
|
258
258
|
rendered: d,
|
|
259
259
|
zIndex: t,
|
|
260
|
-
afterEnter:
|
|
260
|
+
afterEnter: B,
|
|
261
261
|
afterLeave: $,
|
|
262
262
|
beforeLeave: z,
|
|
263
263
|
handleClose: L,
|
|
264
264
|
onModalClick: V,
|
|
265
|
-
onOpenAutoFocus:
|
|
265
|
+
onOpenAutoFocus: K,
|
|
266
266
|
onCloseAutoFocus: P,
|
|
267
|
-
onCloseRequested:
|
|
268
|
-
onFocusoutPrevented:
|
|
267
|
+
onCloseRequested: S,
|
|
268
|
+
onFocusoutPrevented: A
|
|
269
269
|
} = Ge(u, c);
|
|
270
270
|
de(x, {
|
|
271
271
|
dialogRef: c,
|
|
@@ -279,48 +279,48 @@ const je = Y({
|
|
|
279
279
|
return s({
|
|
280
280
|
visible: g,
|
|
281
281
|
dialogContentRef: a
|
|
282
|
-
}), (l, p) => (
|
|
282
|
+
}), (l, p) => (T(), _(ue, {
|
|
283
283
|
to: l.appendTo,
|
|
284
284
|
disabled: l.appendTo !== "body" ? !1 : !l.appendToBody
|
|
285
285
|
}, [
|
|
286
|
-
|
|
286
|
+
N(ce, {
|
|
287
287
|
name: "dialog-fade",
|
|
288
|
-
onAfterEnter: e(
|
|
288
|
+
onAfterEnter: e(B),
|
|
289
289
|
onAfterLeave: e($),
|
|
290
290
|
onBeforeLeave: e(z),
|
|
291
291
|
persisted: ""
|
|
292
292
|
}, {
|
|
293
293
|
default: w(() => [
|
|
294
|
-
fe(
|
|
294
|
+
fe(N(e($e), {
|
|
295
295
|
"custom-mask-event": "",
|
|
296
296
|
mask: l.modal,
|
|
297
297
|
"overlay-class": l.modalClass,
|
|
298
298
|
"z-index": e(t)
|
|
299
299
|
}, {
|
|
300
300
|
default: w(() => [
|
|
301
|
-
|
|
301
|
+
M("div", {
|
|
302
302
|
role: "dialog",
|
|
303
303
|
"aria-modal": "true",
|
|
304
304
|
"aria-label": l.title || void 0,
|
|
305
305
|
"aria-labelledby": l.title ? void 0 : e(r),
|
|
306
306
|
"aria-describedby": e(f),
|
|
307
307
|
class: m(`${e(n).namespace.value}-overlay-dialog`),
|
|
308
|
-
style:
|
|
308
|
+
style: H(e(b)),
|
|
309
309
|
onClick: p[0] || (p[0] = (...C) => e(y).onClick && e(y).onClick(...C)),
|
|
310
310
|
onMousedown: p[1] || (p[1] = (...C) => e(y).onMousedown && e(y).onMousedown(...C)),
|
|
311
311
|
onMouseup: p[2] || (p[2] = (...C) => e(y).onMouseup && e(y).onMouseup(...C))
|
|
312
312
|
}, [
|
|
313
|
-
|
|
313
|
+
N(e(Le), {
|
|
314
314
|
loop: "",
|
|
315
315
|
trapped: e(g),
|
|
316
316
|
"focus-start-el": "container",
|
|
317
|
-
onFocusAfterTrapped: e(
|
|
317
|
+
onFocusAfterTrapped: e(K),
|
|
318
318
|
onFocusAfterReleased: e(P),
|
|
319
|
-
onFocusoutPrevented: e(
|
|
320
|
-
onReleaseRequested: e(
|
|
319
|
+
onFocusoutPrevented: e(A),
|
|
320
|
+
onReleaseRequested: e(S)
|
|
321
321
|
}, {
|
|
322
322
|
default: w(() => [
|
|
323
|
-
e(d) ? (
|
|
323
|
+
e(d) ? (T(), _(qe, ve({
|
|
324
324
|
key: 0,
|
|
325
325
|
ref_key: "dialogContentRef",
|
|
326
326
|
ref: a
|
|
@@ -355,7 +355,7 @@ const je = Y({
|
|
|
355
355
|
E(l.$slots, "footer")
|
|
356
356
|
])
|
|
357
357
|
} : void 0
|
|
358
|
-
]), 1040, ["center", "align-center", "close-icon", "draggable", "overflow", "fullscreen", "show-close", "title", "aria-level", "onClose"])) :
|
|
358
|
+
]), 1040, ["center", "align-center", "close-icon", "draggable", "overflow", "fullscreen", "show-close", "title", "aria-level", "onClose"])) : q("v-if", !0)
|
|
359
359
|
]),
|
|
360
360
|
_: 3
|
|
361
361
|
}, 8, ["trapped", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusoutPrevented", "onReleaseRequested"])
|
|
@@ -371,8 +371,8 @@ const je = Y({
|
|
|
371
371
|
], 8, ["to", "disabled"]));
|
|
372
372
|
}
|
|
373
373
|
});
|
|
374
|
-
var
|
|
375
|
-
const oo = Re(
|
|
374
|
+
var Xe = /* @__PURE__ */ Q(He, [["__file", "dialog.vue"]]);
|
|
375
|
+
const oo = Re(Xe);
|
|
376
376
|
export {
|
|
377
377
|
oo as E
|
|
378
378
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { defineComponent as G, ref as $, inject as h, computed as C, provide as W, readonly as $e, toRef as
|
|
2
|
-
import { b as
|
|
3
|
-
import { c as P, E as
|
|
4
|
-
import { E as
|
|
5
|
-
import { c as
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
const to = Ke({
|
|
1
|
+
import { defineComponent as G, ref as $, inject as h, computed as C, provide as W, readonly as $e, toRef as V, unref as k, watch as ce, renderSlot as K, resolveComponent as b, openBlock as N, createBlock as U, withCtx as v, createVNode as R, normalizeProps as Te, guardReactiveProps as Fe, nextTick as Re, getCurrentInstance as pe, onBeforeUnmount as Se, createElementBlock as j, normalizeClass as X, createSlots as Oe, mergeProps as H, createCommentVNode as Z, Fragment as ke, createElementVNode as Pe, withModifiers as x, resolveDynamicComponent as De, normalizeStyle as Ne } from "vue";
|
|
2
|
+
import { b as Be, d as Q, c as E, ab as Ke, _ as A, aY as fe, V as ve, E as me, g as Le, u as ee, a3 as Me, bB as Ge, bR as Ae, aV as ze, bG as Ue, w as Ye, a as ge } from "./index-PuLggzCy.mjs";
|
|
3
|
+
import { c as P, E as Ve, O as He, w as ae } from "./el-popper-D2LHTqDy.mjs";
|
|
4
|
+
import { E as Je } from "./el-scrollbar-CcOhSvuU.mjs";
|
|
5
|
+
import { c as We, E as je, d as qe, a as be, C as Qe, b as Xe, e as Ze, f as xe, g as eo, F as oo, L as no } from "./dropdown2-Cnd0SGXe.mjs";
|
|
6
|
+
import { c as we } from "./refs-B_ySplLd.mjs";
|
|
7
|
+
const to = Be({
|
|
9
8
|
style: { type: Q([String, Array, Object]) },
|
|
10
9
|
currentTabId: {
|
|
11
10
|
type: Q(String)
|
|
@@ -28,7 +27,7 @@ const to = Ke({
|
|
|
28
27
|
ElCollectionItem: lo,
|
|
29
28
|
COLLECTION_INJECTION_KEY: oe,
|
|
30
29
|
COLLECTION_ITEM_INJECTION_KEY: so
|
|
31
|
-
} =
|
|
30
|
+
} = We("RovingFocusGroup"), ne = Symbol("elRovingFocusGroup"), Ie = Symbol("elRovingFocusGroupItem"), io = {
|
|
32
31
|
ArrowLeft: "prev",
|
|
33
32
|
ArrowUp: "prev",
|
|
34
33
|
ArrowRight: "next",
|
|
@@ -82,8 +81,8 @@ const to = Ke({
|
|
|
82
81
|
var f;
|
|
83
82
|
(f = e.onFocus) == null || f.call(e, i);
|
|
84
83
|
}, (i) => {
|
|
85
|
-
const f = !k(u), { target:
|
|
86
|
-
if (
|
|
84
|
+
const f = !k(u), { target: B, currentTarget: S } = i;
|
|
85
|
+
if (B === S && f && !k(c)) {
|
|
87
86
|
const L = new Event(ue, po);
|
|
88
87
|
if (S == null || S.dispatchEvent(L), !L.defaultPrevented) {
|
|
89
88
|
const I = l().filter((F) => F.focusable), y = I.find((F) => F.active), T = I.find((F) => F.id === k(t)), M = [y, T, ...I].filter(Boolean).map((F) => F.ref);
|
|
@@ -101,12 +100,12 @@ const to = Ke({
|
|
|
101
100
|
};
|
|
102
101
|
W(ne, {
|
|
103
102
|
currentTabbedId: $e(t),
|
|
104
|
-
loop:
|
|
103
|
+
loop: V(e, "loop"),
|
|
105
104
|
tabIndex: C(() => k(c) ? -1 : 0),
|
|
106
105
|
rovingFocusGroupRef: s,
|
|
107
106
|
rovingFocusGroupRootStyle: p,
|
|
108
|
-
orientation:
|
|
109
|
-
dir:
|
|
107
|
+
orientation: V(e, "orientation"),
|
|
108
|
+
dir: V(e, "dir"),
|
|
110
109
|
onItemFocus: m,
|
|
111
110
|
onItemShiftTab: g,
|
|
112
111
|
onBlur: n,
|
|
@@ -114,11 +113,11 @@ const to = Ke({
|
|
|
114
113
|
onMousedown: w
|
|
115
114
|
}), ce(() => e.currentTabId, (i) => {
|
|
116
115
|
t.value = i ?? null;
|
|
117
|
-
}),
|
|
116
|
+
}), Ke(s, ue, d);
|
|
118
117
|
}
|
|
119
118
|
});
|
|
120
119
|
function vo(e, o, a, t, c, u) {
|
|
121
|
-
return
|
|
120
|
+
return K(e.$slots, "default");
|
|
122
121
|
}
|
|
123
122
|
var mo = /* @__PURE__ */ A(fo, [["render", vo], ["__file", "roving-focus-group-impl.vue"]]);
|
|
124
123
|
const go = G({
|
|
@@ -134,7 +133,7 @@ function bo(e, o, a, t, c, u) {
|
|
|
134
133
|
default: v(() => [
|
|
135
134
|
R(s, Te(Fe(e.$attrs)), {
|
|
136
135
|
default: v(() => [
|
|
137
|
-
|
|
136
|
+
K(e.$slots, "default")
|
|
138
137
|
]),
|
|
139
138
|
_: 3
|
|
140
139
|
}, 16)
|
|
@@ -170,12 +169,12 @@ const Io = G({
|
|
|
170
169
|
}), w = P((n) => {
|
|
171
170
|
o("keydown", n);
|
|
172
171
|
}, (n) => {
|
|
173
|
-
const { key: d, shiftKey: i, target: f, currentTarget:
|
|
172
|
+
const { key: d, shiftKey: i, target: f, currentTarget: B } = n;
|
|
174
173
|
if (d === E.tab && i) {
|
|
175
174
|
u();
|
|
176
175
|
return;
|
|
177
176
|
}
|
|
178
|
-
if (f !==
|
|
177
|
+
if (f !== B)
|
|
179
178
|
return;
|
|
180
179
|
const S = uo(n);
|
|
181
180
|
if (S) {
|
|
@@ -189,7 +188,7 @@ const Io = G({
|
|
|
189
188
|
case "prev":
|
|
190
189
|
case "next": {
|
|
191
190
|
S === "prev" && I.reverse();
|
|
192
|
-
const y = I.indexOf(
|
|
191
|
+
const y = I.indexOf(B);
|
|
193
192
|
I = t.value ? co(I, y + 1) : I.slice(y + 1);
|
|
194
193
|
break;
|
|
195
194
|
}
|
|
@@ -221,7 +220,7 @@ function Eo(e, o, a, t, c, u) {
|
|
|
221
220
|
active: e.active
|
|
222
221
|
}, {
|
|
223
222
|
default: v(() => [
|
|
224
|
-
|
|
223
|
+
K(e.$slots, "default")
|
|
225
224
|
]),
|
|
226
225
|
_: 3
|
|
227
226
|
}, 8, ["id", "focusable", "active"]);
|
|
@@ -232,20 +231,20 @@ const q = Symbol("elDropdown"), { ButtonGroup: ho } = ve, Co = G({
|
|
|
232
231
|
components: {
|
|
233
232
|
ElButton: ve,
|
|
234
233
|
ElButtonGroup: ho,
|
|
235
|
-
ElScrollbar:
|
|
236
|
-
ElDropdownCollection:
|
|
237
|
-
ElTooltip:
|
|
234
|
+
ElScrollbar: Je,
|
|
235
|
+
ElDropdownCollection: je,
|
|
236
|
+
ElTooltip: Ve,
|
|
238
237
|
ElRovingFocusGroup: wo,
|
|
239
238
|
ElOnlyChild: He,
|
|
240
239
|
ElIcon: me,
|
|
241
240
|
ArrowDown: Le
|
|
242
241
|
},
|
|
243
|
-
props:
|
|
242
|
+
props: qe,
|
|
244
243
|
emits: ["visible-change", "click", "command"],
|
|
245
244
|
setup(e, { emit: o }) {
|
|
246
245
|
const a = pe(), t = ee("dropdown"), { t: c } = Me(), u = $(), s = $(), l = $(null), p = $(null), m = $(null), g = $(null), w = $(!1), _ = [E.enter, E.space, E.down], n = C(() => ({
|
|
247
246
|
maxHeight: Ge(e.maxHeight)
|
|
248
|
-
})), d = C(() => [t.m(y.value)]), i = C(() =>
|
|
247
|
+
})), d = C(() => [t.m(y.value)]), i = C(() => Ae(e.trigger)), f = fe().value, B = C(() => e.id || f);
|
|
249
248
|
ce([u, i], ([r, O], [z]) => {
|
|
250
249
|
var le, se, ie;
|
|
251
250
|
(le = z == null ? void 0 : z.$el) != null && le.removeEventListener && z.$el.removeEventListener("pointerenter", D), (se = r == null ? void 0 : r.$el) != null && se.removeEventListener && r.$el.removeEventListener("pointerenter", D), (ie = r == null ? void 0 : r.$el) != null && ie.addEventListener && O.includes("hover") && r.$el.addEventListener("pointerenter", D);
|
|
@@ -264,7 +263,7 @@ const q = Symbol("elDropdown"), { ButtonGroup: ho } = ve, Co = G({
|
|
|
264
263
|
var r;
|
|
265
264
|
(r = l.value) == null || r.onOpen();
|
|
266
265
|
}
|
|
267
|
-
const y =
|
|
266
|
+
const y = ze();
|
|
268
267
|
function T(...r) {
|
|
269
268
|
o("command", ...r);
|
|
270
269
|
}
|
|
@@ -296,7 +295,7 @@ const q = Symbol("elDropdown"), { ButtonGroup: ho } = ve, Co = G({
|
|
|
296
295
|
return W(q, {
|
|
297
296
|
contentRef: p,
|
|
298
297
|
role: C(() => e.role),
|
|
299
|
-
triggerId:
|
|
298
|
+
triggerId: B,
|
|
300
299
|
isUsingKeyboard: w,
|
|
301
300
|
onItemEnter: M,
|
|
302
301
|
onItemLeave: F
|
|
@@ -305,8 +304,8 @@ const q = Symbol("elDropdown"), { ButtonGroup: ho } = ve, Co = G({
|
|
|
305
304
|
dropdownSize: y,
|
|
306
305
|
handleClick: S,
|
|
307
306
|
commandHandler: T,
|
|
308
|
-
trigger:
|
|
309
|
-
hideOnClick:
|
|
307
|
+
trigger: V(e, "trigger"),
|
|
308
|
+
hideOnClick: V(e, "hideOnClick")
|
|
310
309
|
}), {
|
|
311
310
|
t: c,
|
|
312
311
|
ns: t,
|
|
@@ -314,7 +313,7 @@ const q = Symbol("elDropdown"), { ButtonGroup: ho } = ve, Co = G({
|
|
|
314
313
|
wrapStyle: n,
|
|
315
314
|
dropdownTriggerKls: d,
|
|
316
315
|
dropdownSize: y,
|
|
317
|
-
triggerId:
|
|
316
|
+
triggerId: B,
|
|
318
317
|
triggerKeys: _,
|
|
319
318
|
currentTabId: g,
|
|
320
319
|
handleCurrentTabIdChange: re,
|
|
@@ -392,7 +391,7 @@ function yo(e, o, a, t, c, u) {
|
|
|
392
391
|
default: v(() => [
|
|
393
392
|
R(l, null, {
|
|
394
393
|
default: v(() => [
|
|
395
|
-
|
|
394
|
+
K(e.$slots, "dropdown")
|
|
396
395
|
]),
|
|
397
396
|
_: 3
|
|
398
397
|
})
|
|
@@ -415,7 +414,7 @@ function yo(e, o, a, t, c, u) {
|
|
|
415
414
|
tabindex: e.tabindex
|
|
416
415
|
}, {
|
|
417
416
|
default: v(() => [
|
|
418
|
-
|
|
417
|
+
K(e.$slots, "default")
|
|
419
418
|
]),
|
|
420
419
|
_: 3
|
|
421
420
|
}, 8, ["id", "tabindex"])
|
|
@@ -424,7 +423,7 @@ function yo(e, o, a, t, c, u) {
|
|
|
424
423
|
]), 1032, ["role", "effect", "popper-options", "hide-after", "placement", "popper-class", "reference-element", "trigger", "trigger-keys", "trigger-target-el", "show-after", "virtual-ref", "virtual-triggering", "disabled", "transition", "teleported", "onBeforeShow", "onShow", "onBeforeHide"]),
|
|
425
424
|
e.splitButton ? (N(), U(i, { key: 0 }, {
|
|
426
425
|
default: v(() => [
|
|
427
|
-
R(_,
|
|
426
|
+
R(_, H({ ref: "referenceElementRef" }, e.buttonProps, {
|
|
428
427
|
size: e.dropdownSize,
|
|
429
428
|
type: e.type,
|
|
430
429
|
disabled: e.disabled,
|
|
@@ -432,11 +431,11 @@ function yo(e, o, a, t, c, u) {
|
|
|
432
431
|
onClick: e.handlerMainButtonClick
|
|
433
432
|
}), {
|
|
434
433
|
default: v(() => [
|
|
435
|
-
|
|
434
|
+
K(e.$slots, "default")
|
|
436
435
|
]),
|
|
437
436
|
_: 3
|
|
438
437
|
}, 16, ["size", "type", "disabled", "tabindex", "onClick"]),
|
|
439
|
-
R(_,
|
|
438
|
+
R(_, H({
|
|
440
439
|
id: e.triggerId,
|
|
441
440
|
ref: "triggeringElementRef"
|
|
442
441
|
}, e.buttonProps, {
|
|
@@ -474,7 +473,7 @@ const To = G({
|
|
|
474
473
|
props: be,
|
|
475
474
|
emits: ["pointermove", "pointerleave", "click", "clickimpl"],
|
|
476
475
|
setup(e, { emit: o }) {
|
|
477
|
-
const a = ee("dropdown"), { role: t } = h(q, void 0), { collectionItemRef: c } = h(
|
|
476
|
+
const a = ee("dropdown"), { role: t } = h(q, void 0), { collectionItemRef: c } = h(Qe, void 0), { collectionItemRef: u } = h(so, void 0), {
|
|
478
477
|
rovingFocusGroupItemRef: s,
|
|
479
478
|
tabIndex: l,
|
|
480
479
|
handleFocus: p,
|
|
@@ -489,7 +488,7 @@ const To = G({
|
|
|
489
488
|
ns: a,
|
|
490
489
|
itemRef: w,
|
|
491
490
|
dataset: {
|
|
492
|
-
[
|
|
491
|
+
[Xe]: ""
|
|
493
492
|
},
|
|
494
493
|
role: _,
|
|
495
494
|
tabIndex: l,
|
|
@@ -502,12 +501,12 @@ const To = G({
|
|
|
502
501
|
function Ro(e, o, a, t, c, u) {
|
|
503
502
|
const s = b("el-icon");
|
|
504
503
|
return N(), j(ke, null, [
|
|
505
|
-
e.divided ? (N(), j("li",
|
|
504
|
+
e.divided ? (N(), j("li", H({
|
|
506
505
|
key: 0,
|
|
507
506
|
role: "separator",
|
|
508
507
|
class: e.ns.bem("menu", "item", "divided")
|
|
509
508
|
}, e.$attrs), null, 16)) : Z("v-if", !0),
|
|
510
|
-
Pe("li",
|
|
509
|
+
Pe("li", H({ ref: e.itemRef }, { ...e.dataset, ...e.$attrs }, {
|
|
511
510
|
"aria-disabled": e.disabled,
|
|
512
511
|
class: [e.ns.be("menu", "item"), e.ns.is("disabled", e.disabled)],
|
|
513
512
|
tabindex: e.tabIndex,
|
|
@@ -525,7 +524,7 @@ function Ro(e, o, a, t, c, u) {
|
|
|
525
524
|
]),
|
|
526
525
|
_: 1
|
|
527
526
|
})) : Z("v-if", !0),
|
|
528
|
-
|
|
527
|
+
K(e.$slots, "default")
|
|
529
528
|
], 16, Fo)
|
|
530
529
|
], 64);
|
|
531
530
|
}
|
|
@@ -539,7 +538,7 @@ const Ee = () => {
|
|
|
539
538
|
}, Oo = G({
|
|
540
539
|
name: "ElDropdownItem",
|
|
541
540
|
components: {
|
|
542
|
-
ElDropdownCollectionItem:
|
|
541
|
+
ElDropdownCollectionItem: Ze,
|
|
543
542
|
ElRovingFocusItem: _o,
|
|
544
543
|
ElDropdownItemImpl: So
|
|
545
544
|
},
|
|
@@ -591,13 +590,13 @@ function ko(e, o, a, t, c, u) {
|
|
|
591
590
|
focusable: !e.disabled
|
|
592
591
|
}, {
|
|
593
592
|
default: v(() => [
|
|
594
|
-
R(l,
|
|
593
|
+
R(l, H(e.propsAndAttrs, {
|
|
595
594
|
onPointerleave: e.handlePointerLeave,
|
|
596
595
|
onPointermove: e.handlePointerMove,
|
|
597
596
|
onClickimpl: e.handleClick
|
|
598
597
|
}), {
|
|
599
598
|
default: v(() => [
|
|
600
|
-
|
|
599
|
+
K(e.$slots, "default")
|
|
601
600
|
]),
|
|
602
601
|
_: 3
|
|
603
602
|
}, 16, ["onPointerleave", "onPointermove", "onClickimpl"])
|
|
@@ -611,24 +610,24 @@ function ko(e, o, a, t, c, u) {
|
|
|
611
610
|
var _e = /* @__PURE__ */ A(Oo, [["render", ko], ["__file", "dropdown-item.vue"]]);
|
|
612
611
|
const Po = G({
|
|
613
612
|
name: "ElDropdownMenu",
|
|
614
|
-
props:
|
|
613
|
+
props: xe,
|
|
615
614
|
setup(e) {
|
|
616
|
-
const o = ee("dropdown"), { _elDropdownSize: a } = Ee(), t = a.value, { focusTrapRef: c, onKeydown: u } = h(
|
|
615
|
+
const o = ee("dropdown"), { _elDropdownSize: a } = Ee(), t = a.value, { focusTrapRef: c, onKeydown: u } = h(Ue, void 0), { contentRef: s, role: l, triggerId: p } = h(q, void 0), { collectionRef: m, getItems: g } = h(eo, void 0), {
|
|
617
616
|
rovingFocusGroupRef: w,
|
|
618
617
|
rovingFocusGroupRootStyle: _,
|
|
619
618
|
tabIndex: n,
|
|
620
619
|
onBlur: d,
|
|
621
620
|
onFocus: i,
|
|
622
621
|
onMousedown: f
|
|
623
|
-
} = h(ne, void 0), { collectionRef:
|
|
622
|
+
} = h(ne, void 0), { collectionRef: B } = h(oe, void 0), S = C(() => [o.b("menu"), o.bm("menu", t == null ? void 0 : t.value)]), L = we(s, m, c, w, B), I = P((T) => {
|
|
624
623
|
var D;
|
|
625
624
|
(D = e.onKeydown) == null || D.call(e, T);
|
|
626
625
|
}, (T) => {
|
|
627
626
|
const { currentTarget: D, code: M, target: F } = T;
|
|
628
|
-
if (D.contains(F), E.tab === M && T.stopImmediatePropagation(), T.preventDefault(), F !== k(s) || !
|
|
627
|
+
if (D.contains(F), E.tab === M && T.stopImmediatePropagation(), T.preventDefault(), F !== k(s) || !oo.includes(M))
|
|
629
628
|
return;
|
|
630
629
|
const J = g().filter((Y) => !Y.disabled).map((Y) => Y.ref);
|
|
631
|
-
|
|
630
|
+
no.includes(M) && J.reverse(), te(J);
|
|
632
631
|
});
|
|
633
632
|
return {
|
|
634
633
|
size: t,
|
|
@@ -660,16 +659,16 @@ function No(e, o, a, t, c, u) {
|
|
|
660
659
|
onKeydown: o[2] || (o[2] = x((...s) => e.handleKeydown && e.handleKeydown(...s), ["self"])),
|
|
661
660
|
onMousedown: o[3] || (o[3] = x((...s) => e.onMousedown && e.onMousedown(...s), ["self"]))
|
|
662
661
|
}, [
|
|
663
|
-
|
|
662
|
+
K(e.$slots, "default")
|
|
664
663
|
], 46, Do);
|
|
665
664
|
}
|
|
666
665
|
var he = /* @__PURE__ */ A(Po, [["render", No], ["__file", "dropdown-menu.vue"]]);
|
|
667
|
-
const
|
|
666
|
+
const Yo = Ye($o, {
|
|
668
667
|
DropdownItem: _e,
|
|
669
668
|
DropdownMenu: he
|
|
670
|
-
}), Vo = ge(_e),
|
|
669
|
+
}), Vo = ge(_e), Ho = ge(he);
|
|
671
670
|
export {
|
|
672
671
|
Vo as E,
|
|
673
|
-
|
|
674
|
-
|
|
672
|
+
Ho as a,
|
|
673
|
+
Yo as b
|
|
675
674
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|