@qynpm/ui 1.0.43 → 1.0.45
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/README.md +2 -0
- package/dist/index.cjs +12 -12
- package/dist/index.mjs +13 -13
- package/dist/qy-action-bar/index.cjs +1 -1
- package/dist/qy-action-bar/index.mjs +1 -1
- package/dist/qy-autocomplete/index.cjs +1 -1
- package/dist/qy-autocomplete/index.mjs +1 -1
- package/dist/qy-checkbox/index.cjs +1 -1
- package/dist/qy-checkbox/index.mjs +1 -1
- package/dist/qy-checkbox-group/index.cjs +1 -1
- package/dist/qy-checkbox-group/index.mjs +1 -1
- package/dist/qy-color-picker/index.cjs +1 -1
- package/dist/qy-color-picker/index.mjs +1 -1
- package/dist/qy-date-picker/index.cjs +1 -1
- package/dist/qy-date-picker/index.mjs +1 -1
- package/dist/qy-dialog/index.cjs +1 -1
- package/dist/qy-dialog/index.mjs +1 -1
- package/dist/qy-dropdown/index.cjs +2 -2
- package/dist/qy-dropdown/index.mjs +2 -2
- package/dist/qy-file-picker/index.cjs +1 -1
- package/dist/qy-file-picker/index.mjs +1 -1
- package/dist/qy-form-section/index.cjs +1 -1
- package/dist/qy-form-section/index.mjs +1 -1
- package/dist/qy-image/index.cjs +1 -1
- package/dist/qy-image/index.mjs +1 -1
- package/dist/qy-image-preview/index.cjs +1 -1
- package/dist/qy-image-preview/index.mjs +2 -2
- package/dist/qy-image-upload/index.cjs +1 -1
- package/dist/qy-image-upload/index.mjs +1 -1
- package/dist/qy-input-tag/index.cjs +1 -1
- package/dist/qy-input-tag/index.mjs +1 -1
- package/dist/qy-legacy-selection-dialog/index.cjs +1 -1
- package/dist/qy-legacy-selection-dialog/index.mjs +1 -1
- package/dist/qy-menu-actions/index.cjs +1 -1
- package/dist/qy-menu-actions/index.mjs +1 -1
- package/dist/qy-money-input/index.cjs +1 -1
- package/dist/qy-money-input/index.mjs +1 -1
- package/dist/qy-pagination/index.cjs +1 -1
- package/dist/qy-pagination/index.mjs +1 -1
- package/dist/qy-popconfirm/index.cjs +1 -1
- package/dist/qy-popconfirm/index.mjs +1 -1
- package/dist/qy-popover/index.cjs +1 -1
- package/dist/qy-popover/index.mjs +1 -1
- package/dist/qy-radio/index.cjs +1 -1
- package/dist/qy-radio/index.mjs +1 -1
- package/dist/qy-radio-group/index.cjs +1 -1
- package/dist/qy-radio-group/index.mjs +1 -1
- package/dist/qy-record-quote-search/index.cjs +1 -1
- package/dist/qy-record-quote-search/index.mjs +1 -1
- package/dist/qy-remark-image/index.cjs +1 -1
- package/dist/qy-remark-image/index.mjs +1 -1
- package/dist/qy-remote-select/index.cjs +1 -1
- package/dist/qy-remote-select/index.mjs +1 -1
- package/dist/qy-search-input/index.cjs +1 -1
- package/dist/qy-search-input/index.mjs +1 -1
- package/dist/qy-select/index.cjs +1 -1
- package/dist/qy-select/index.mjs +1 -1
- package/dist/qy-selection-dialog/index.cjs +1 -1
- package/dist/qy-selection-dialog/index.mjs +1 -1
- package/dist/qy-switch/index.cjs +1 -1
- package/dist/qy-switch/index.mjs +1 -1
- package/dist/qy-table-column-settings/index.cjs +1 -1
- package/dist/qy-table-column-settings/index.mjs +1 -1
- package/dist/qy-tooltip/index.cjs +1 -1
- package/dist/qy-tooltip/index.mjs +1 -1
- package/dist/qy-tree-select/index.cjs +1 -1
- package/dist/qy-tree-select/index.mjs +1 -1
- package/dist/qy-upload/index.cjs +1 -1
- package/dist/qy-upload/index.mjs +1 -1
- package/dist/shared/{index-BNssRW4d.mjs → index-9G8dxxVx.mjs} +13 -13
- package/dist/shared/{index-DRIoLeFE.mjs → index-B1gnVI8Y.mjs} +44 -45
- package/dist/shared/{index-CiE6qJCJ.mjs → index-BcDt1tKY.mjs} +151 -143
- package/dist/shared/index-BfA7ZJnJ.cjs +1 -0
- package/dist/shared/index-BfXhDFFn.cjs +1 -0
- package/dist/shared/index-Bfmf0msc.mjs +71 -0
- package/dist/shared/index-BhpomD_C.cjs +1 -0
- package/dist/shared/index-BvXyRAhX.cjs +1 -0
- package/dist/shared/index-Bz9WjKdL.cjs +1 -0
- package/dist/shared/{index-Co84fsS5.mjs → index-C5hzCMaD.mjs} +88 -80
- package/dist/shared/index-CPW3gKgP.mjs +2429 -0
- package/dist/shared/index-CUwUz-Le.cjs +1 -0
- package/dist/shared/index-CjImIyvI.mjs +124 -0
- package/dist/shared/{index-gMrQlV5n.cjs → index-CsfcDlq4.cjs} +1 -1
- package/dist/shared/{index-DAztNKSp.cjs → index-D359jZg_.cjs} +1 -1
- package/dist/shared/{index-DvFMgAcu.mjs → index-DEoy2IfN.mjs} +1 -1
- package/dist/shared/{index-BjqJCq-6.mjs → index-DM0zanTb.mjs} +3 -3
- package/dist/shared/index-DOpfxPDq.cjs +1 -0
- package/dist/shared/index-DPqFEuPp.mjs +798 -0
- package/dist/shared/index-DWBkjY5O.cjs +1 -0
- package/dist/shared/index-DaUdmOjn.cjs +1 -0
- package/dist/shared/index-MEzLM_rM.cjs +1 -0
- package/dist/shared/index-MyPNS-OR.cjs +1 -0
- package/dist/shared/{index-C4F8hXzQ.mjs → index-XSV-GmR2.mjs} +90 -81
- package/dist/shared/index-_e-HwHF0.mjs +79 -0
- package/dist/shared/{index-DXZ6Y6wd.mjs → index-uMEKxoXj.mjs} +1 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-B38X3tvf.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BNKC9382.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_setup_true_lang-DIWWHODS.mjs → index.vue_vue_type_script_setup_true_lang-BtMkNw_I.mjs} +49 -47
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-Byp7e--Y.mjs +63 -0
- package/dist/shared/{index.vue_vue_type_script_setup_true_lang-Dn29lZTs.mjs → index.vue_vue_type_script_setup_true_lang-Bypkl4Ty.mjs} +20 -18
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-CPm8gzId.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-CYaK3oDY.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-CeVvm5Ph.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-Cn0JqB5r.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DMHhx9lY.mjs +133 -0
- package/dist/shared/{index.vue_vue_type_script_setup_true_lang-DwFGEW4B.mjs → index.vue_vue_type_script_setup_true_lang-DkMm40Ac.mjs} +50 -42
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-qXBKqHCs.mjs +40 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BI4abIsm.mjs +219 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BNBJu1Mq.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BZZ8vhEf.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_style_index_0_lang-DSur831A.mjs → index.vue_vue_type_style_index_0_lang-Bpe6LkvL.mjs} +24 -18
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CYIUfOy9.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-D2iiEHqM.mjs +413 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-Dt19xolk.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DzvboHR2.mjs +176 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-E92uiH6Q.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-W44zpeKW.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_style_index_0_lang-CcVf5MXE.mjs → index.vue_vue_type_style_index_0_lang-shJS7iXC.mjs} +59 -57
- package/dist/shared/index.vue_vue_type_style_index_0_lang-z2Unl0WQ.mjs +142 -0
- package/dist/shared/overlay-stack-CFFRngnU.mjs +34 -0
- package/dist/shared/overlay-stack-DeKq7jZu.cjs +1 -0
- package/dist/shared/{utils-DoyI5oM8.mjs → utils-CUXINmHY.mjs} +63 -49
- package/dist/shared/utils-DpkN3Zat.cjs +1 -0
- package/index.d.ts +44 -12
- package/package.json +2 -3
- package/qy-action-bar/index.d.ts +16 -4
- package/qy-autocomplete/index.d.ts +43 -2
- package/qy-checkbox/index.d.ts +1 -0
- package/qy-checkbox-group/index.d.ts +1 -0
- package/qy-date-picker/index.d.ts +1 -0
- package/qy-dialog/index.d.ts +4 -0
- package/qy-form-section/index.d.ts +22 -4
- package/qy-image/index.d.ts +1 -0
- package/qy-image-preview/index.d.ts +8 -4
- package/qy-menu-actions/index.d.ts +21 -2
- package/qy-money-input/index.d.ts +1 -0
- package/qy-pagination/index.d.ts +4 -0
- package/qy-popover/index.d.ts +4 -0
- package/qy-radio-group/index.d.ts +1 -0
- package/qy-record-quote-search/index.d.ts +53 -4
- package/qy-remark-image/index.d.ts +44 -4
- package/qy-remote-select/index.d.ts +53 -2
- package/qy-search-input/index.d.ts +66 -4
- package/qy-select/index.d.ts +4 -0
- package/qy-selection-dialog/index.d.ts +63 -2
- package/qy-switch/index.d.ts +1 -0
- package/qy-table-column-settings/index.d.ts +19 -2
- package/qy-tooltip/index.d.ts +5 -0
- package/qy-tree-select/index.d.ts +1 -0
- package/dist/shared/index-7MG12FbD.mjs +0 -2362
- package/dist/shared/index-BEcS8y8g.mjs +0 -68
- package/dist/shared/index-BSTMCPDj.mjs +0 -72
- package/dist/shared/index-BhvOSOfi.mjs +0 -766
- package/dist/shared/index-CGq7Q_hV.mjs +0 -119
- package/dist/shared/index-CVYNG8Fc.cjs +0 -1
- package/dist/shared/index-CbNd9JEx.cjs +0 -1
- package/dist/shared/index-CmgTSaFS.cjs +0 -1
- package/dist/shared/index-CnVhquq5.cjs +0 -1
- package/dist/shared/index-D27mwR57.cjs +0 -1
- package/dist/shared/index-DKw-seoh.cjs +0 -1
- package/dist/shared/index-DRugp8x0.cjs +0 -1
- package/dist/shared/index-DTbGlDqr.cjs +0 -1
- package/dist/shared/index-MyDDX-zj.cjs +0 -1
- package/dist/shared/index-d76Z3yrB.cjs +0 -1
- package/dist/shared/index-rSrDnOpu.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BiIgNax-.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-CKp87br2.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-CqSJ_8hG.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DbLp1kvW.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-EiHoQBXt.mjs +0 -94
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-IyZesuKm.mjs +0 -48
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-UBQQ6Z03.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-ccFLNRry.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-r7iyZzDS.mjs +0 -61
- package/dist/shared/index.vue_vue_type_style_index_0_lang-1cTut9Ql.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-B2thgQml.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BMZqMPZb.mjs +0 -215
- package/dist/shared/index.vue_vue_type_style_index_0_lang-Bb3L64L8.mjs +0 -406
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BoaO6MKl.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-C4Yk-UdJ.mjs +0 -172
- package/dist/shared/index.vue_vue_type_style_index_0_lang-D9-2GN18.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DHK86rdP.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DsOg_Rum.mjs +0 -128
- package/dist/shared/index.vue_vue_type_style_index_0_lang-RiwA2WPO.cjs +0 -1
- package/dist/shared/utils-BjEXwY3L.cjs +0 -1
|
@@ -1,406 +0,0 @@
|
|
|
1
|
-
import { ElDialog as he, ElIcon as xe } from "element-plus/es";
|
|
2
|
-
import { defineComponent as we, useSlots as be, ref as d, computed as C, createVNode as z, watchEffect as ke, watch as le, h as ne, nextTick as A, onMounted as _e, onUnmounted as Ce, openBlock as i, createElementBlock as c, normalizeClass as I, createSlots as ze, withCtx as q, createElementVNode as l, normalizeStyle as N, unref as L, createCommentVNode as v, renderSlot as M, toDisplayString as ae, withModifiers as u, createBlock as ie, withDirectives as qe, vShow as Me } from "vue";
|
|
3
|
-
import Se from "clsx";
|
|
4
|
-
import { ElButton as se } from "element-plus";
|
|
5
|
-
import { Close as Be } from "@element-plus/icons-vue";
|
|
6
|
-
import { useBreakpoints as Ee, useDraggable as Ie } from "@vueuse/core";
|
|
7
|
-
const Le = { class: "text-lg flex items-center pt-2 pl-[var(--content-padding)]" }, De = { key: 0 }, Oe = { key: 1 }, $e = {
|
|
8
|
-
key: 0,
|
|
9
|
-
class: "icon-[material-symbols--square-outline-rounded]",
|
|
10
|
-
role: "img",
|
|
11
|
-
"aria-hidden": "true"
|
|
12
|
-
}, Te = {
|
|
13
|
-
key: 1,
|
|
14
|
-
class: "icon-[tdesign--fullscreen-exit-1]",
|
|
15
|
-
role: "img",
|
|
16
|
-
"aria-hidden": "true"
|
|
17
|
-
}, Ze = {
|
|
18
|
-
key: 0,
|
|
19
|
-
class: "fixed -right-12 top-2 h-9 w-9 hover:bg-gray-600/80 transition-all"
|
|
20
|
-
}, He = { class: "flex justify-between h-[var(--footer-height)] px-[var(--content-padding)] items-center" }, Ae = { class: "flex items-center justify-between w-full pl-1 pr-4 h-full ml-2" }, Ne = { class: "flex items-center gap-2" }, Fe = { class: "text-sm text-gray-700 truncate max-w-[200px]" }, je = { class: "flex items-center gap-2" }, re = 5, F = 2e3, Je = /* @__PURE__ */ we({
|
|
21
|
-
inheritAttrs: !1,
|
|
22
|
-
__name: "index",
|
|
23
|
-
props: {
|
|
24
|
-
open: { type: Boolean, default: !1 },
|
|
25
|
-
title: { default: "" },
|
|
26
|
-
width: { default: "50%" },
|
|
27
|
-
showFooter: { type: Boolean, default: !0 },
|
|
28
|
-
showConfirm: { type: Boolean, default: !0 },
|
|
29
|
-
showCancel: { type: Boolean, default: !0 },
|
|
30
|
-
confirmText: { default: "确 认" },
|
|
31
|
-
cancelText: { default: "取 消" },
|
|
32
|
-
confirmLoading: { type: Boolean, default: !1 },
|
|
33
|
-
confirmDisabled: { type: Boolean, default: !1 },
|
|
34
|
-
closeOnConfirm: { type: Boolean, default: !1 },
|
|
35
|
-
closeOnEscape: { type: Boolean, default: !0 },
|
|
36
|
-
closeOnOverlay: { type: Boolean, default: !0 },
|
|
37
|
-
minimizable: { type: Boolean, default: !0 },
|
|
38
|
-
destroyOnClose: { type: Boolean, default: !1 },
|
|
39
|
-
draggable: { type: Boolean, default: !0 },
|
|
40
|
-
lockScroll: { type: Boolean, default: !0 },
|
|
41
|
-
top: { default: "15vh" },
|
|
42
|
-
fullscreen: { type: Boolean, default: !1 },
|
|
43
|
-
showFullscreen: { type: Boolean, default: !1 },
|
|
44
|
-
size: { default: "default" },
|
|
45
|
-
zIndex: { default: 2e3 }
|
|
46
|
-
},
|
|
47
|
-
emits: ["update:open", "open-change", "confirm", "cancel", "close", "opened", "closed"],
|
|
48
|
-
setup(de, { expose: ce, emit: ue }) {
|
|
49
|
-
let m = 0;
|
|
50
|
-
const t = de, D = be(), j = d(!0), O = d(!1), R = d(F), V = d(null), fe = Ee({
|
|
51
|
-
mobile: 0,
|
|
52
|
-
tablet: 640,
|
|
53
|
-
laptop: 1024,
|
|
54
|
-
desktop: 1280
|
|
55
|
-
}).isSmaller("tablet"), $ = C(() => {
|
|
56
|
-
const e = [];
|
|
57
|
-
return t.showCancel && e.push("cancel"), t.showConfirm && e.push("confirm"), e;
|
|
58
|
-
}), U = C(() => ({
|
|
59
|
-
CancelButton: z(P),
|
|
60
|
-
ConfirmButton: z(J)
|
|
61
|
-
})), W = C(() => !!(D.footer || t.showFooter)), h = d(!1), x = d(!1);
|
|
62
|
-
let T = !1, w = document.activeElement instanceof HTMLElement ? document.activeElement : null;
|
|
63
|
-
const k = d(
|
|
64
|
-
t.showFullscreen && fe ? !0 : t.fullscreen
|
|
65
|
-
), s = ue, X = C(() => t.open);
|
|
66
|
-
ke(() => {
|
|
67
|
-
X.value && (h.value = !1);
|
|
68
|
-
}), le(
|
|
69
|
-
() => t.open,
|
|
70
|
-
(e, o) => {
|
|
71
|
-
if (e) {
|
|
72
|
-
h.value = !1, x.value = !1, w = document.activeElement instanceof HTMLElement ? document.activeElement : w, o === !1 && s("open-change", !0);
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
o && !h.value && (h.value = !0, s("open-change", !1), s("close", "external"));
|
|
76
|
-
}
|
|
77
|
-
), le(
|
|
78
|
-
() => t.confirmLoading,
|
|
79
|
-
(e) => {
|
|
80
|
-
e ? T = !0 : T && (T = !1, x.value = !1);
|
|
81
|
-
}
|
|
82
|
-
), ce({
|
|
83
|
-
handleMinimize: H
|
|
84
|
-
});
|
|
85
|
-
const p = `qy-dialog-${Math.random().toString(36).slice(2, 11)}`, b = d(!1);
|
|
86
|
-
let _ = !1;
|
|
87
|
-
const S = d(null), { x: K, y: Z } = Ie(S, {
|
|
88
|
-
initialValue: {
|
|
89
|
-
x: 5,
|
|
90
|
-
y: window.innerHeight - 100 - m * 60
|
|
91
|
-
},
|
|
92
|
-
onMove(e) {
|
|
93
|
-
var o;
|
|
94
|
-
(o = S.value) == null || o.classList.add("dragging"), document.body.classList.add("qy-dialog--dragging"), K.value = Math.max(
|
|
95
|
-
0,
|
|
96
|
-
Math.min(window.innerWidth - 300, e.x)
|
|
97
|
-
), Z.value = Math.max(
|
|
98
|
-
0,
|
|
99
|
-
Math.min(window.innerHeight - 50, e.y)
|
|
100
|
-
);
|
|
101
|
-
},
|
|
102
|
-
onEnd() {
|
|
103
|
-
var e;
|
|
104
|
-
(e = S.value) == null || e.classList.remove("dragging"), document.body.classList.remove("qy-dialog--dragging");
|
|
105
|
-
}
|
|
106
|
-
}), me = C(() => ({
|
|
107
|
-
transform: `translate(${K.value}px, ${Z.value}px)`,
|
|
108
|
-
willChange: "transform"
|
|
109
|
-
}));
|
|
110
|
-
function Y(e) {
|
|
111
|
-
const o = e.target, { scrollTop: n, scrollHeight: r, clientHeight: f } = o;
|
|
112
|
-
j.value = n <= re, O.value = r - (n + f) <= re;
|
|
113
|
-
}
|
|
114
|
-
function pe() {
|
|
115
|
-
const e = document.querySelector(`.${p}.el-dialog`);
|
|
116
|
-
e && (V.value = e, e.addEventListener("scroll", Y)), B(), s("opened");
|
|
117
|
-
}
|
|
118
|
-
function G() {
|
|
119
|
-
k.value = !k.value, B();
|
|
120
|
-
}
|
|
121
|
-
function g(e) {
|
|
122
|
-
t.confirmLoading && e !== "external" || h.value || (h.value = !0, te(), s("update:open", !1), s("open-change", !1), (e === "cancel" || e === "header") && s("cancel"), s("close", e));
|
|
123
|
-
}
|
|
124
|
-
function ge() {
|
|
125
|
-
s("closed"), A(() => {
|
|
126
|
-
w != null && w.isConnected && w.focus();
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
function ye(e) {
|
|
130
|
-
t.showFullscreen && e.detail >= 2 && G();
|
|
131
|
-
}
|
|
132
|
-
function J() {
|
|
133
|
-
return ne(
|
|
134
|
-
se,
|
|
135
|
-
{
|
|
136
|
-
type: "primary",
|
|
137
|
-
class: "dialog__footerBtn",
|
|
138
|
-
loading: t.confirmLoading,
|
|
139
|
-
disabled: t.confirmDisabled || t.confirmLoading || x.value,
|
|
140
|
-
onClick: ve
|
|
141
|
-
},
|
|
142
|
-
() => t.confirmText
|
|
143
|
-
);
|
|
144
|
-
}
|
|
145
|
-
function ve() {
|
|
146
|
-
x.value || t.confirmLoading || t.confirmDisabled || (x.value = !0, s("confirm"), A(() => {
|
|
147
|
-
t.confirmLoading || (x.value = !1);
|
|
148
|
-
}), t.closeOnConfirm && g("confirm"));
|
|
149
|
-
}
|
|
150
|
-
function P() {
|
|
151
|
-
return ne(
|
|
152
|
-
se,
|
|
153
|
-
{ class: "dialog__footerBtn", onClick: () => g("cancel") },
|
|
154
|
-
() => t.cancelText
|
|
155
|
-
);
|
|
156
|
-
}
|
|
157
|
-
_e(() => {
|
|
158
|
-
typeof window.qyDialogMaxZIndex > "u" && (window.qyDialogMaxZIndex = F), B(), document.addEventListener("keydown", ee), document.addEventListener("mousedown", oe, !0);
|
|
159
|
-
});
|
|
160
|
-
function Q() {
|
|
161
|
-
var r, f;
|
|
162
|
-
const e = (r = document.querySelector(`.${p}`)) == null ? void 0 : r.closest(".el-overlay");
|
|
163
|
-
if (!e) return !1;
|
|
164
|
-
const n = Array.from(
|
|
165
|
-
document.querySelectorAll(".el-overlay")
|
|
166
|
-
).filter((a) => window.getComputedStyle(a).display !== "none").map((a, y) => ({
|
|
167
|
-
overlay: a,
|
|
168
|
-
order: y,
|
|
169
|
-
zIndex: Number.parseInt(
|
|
170
|
-
window.getComputedStyle(a).zIndex || "0",
|
|
171
|
-
10
|
|
172
|
-
)
|
|
173
|
-
}));
|
|
174
|
-
return n.sort(
|
|
175
|
-
(a, y) => a.zIndex - y.zIndex || a.order - y.order
|
|
176
|
-
), ((f = n.at(-1)) == null ? void 0 : f.overlay) === e;
|
|
177
|
-
}
|
|
178
|
-
function ee(e) {
|
|
179
|
-
e.key !== "Escape" || !t.open || !t.closeOnEscape || t.confirmLoading || !Q() || (e.preventDefault(), g("escape"));
|
|
180
|
-
}
|
|
181
|
-
function oe(e) {
|
|
182
|
-
if (!t.open || !t.closeOnOverlay || t.confirmLoading || !Q() || !(e.target instanceof Node))
|
|
183
|
-
return;
|
|
184
|
-
const o = document.querySelector(`.${p}.el-dialog`), n = o == null ? void 0 : o.closest(".el-overlay");
|
|
185
|
-
!o || !n || !n.contains(e.target) || o.contains(e.target) || g("overlay");
|
|
186
|
-
}
|
|
187
|
-
function B() {
|
|
188
|
-
var y;
|
|
189
|
-
const e = Array.from(
|
|
190
|
-
document.querySelectorAll(".el-overlay")
|
|
191
|
-
).filter((E) => window.getComputedStyle(E).display !== "none" && !E.classList.contains("is-message")), o = (y = document.querySelector(`.${p}`)) == null ? void 0 : y.closest(".el-overlay"), n = document.querySelector(
|
|
192
|
-
`.${p}.el-dialog`
|
|
193
|
-
);
|
|
194
|
-
if (!o || !n) return;
|
|
195
|
-
const r = F;
|
|
196
|
-
window.qyDialogMaxZIndex = window.qyDialogMaxZIndex || r;
|
|
197
|
-
const a = Math.max(
|
|
198
|
-
window.qyDialogMaxZIndex,
|
|
199
|
-
...e.map(
|
|
200
|
-
(E) => parseInt(window.getComputedStyle(E).zIndex || r.toString())
|
|
201
|
-
)
|
|
202
|
-
) + 2;
|
|
203
|
-
window.qyDialogMaxZIndex = a, A(() => {
|
|
204
|
-
o.style.zIndex = a.toString(), n.style.zIndex = (a + 1).toString(), R.value = a + 1;
|
|
205
|
-
});
|
|
206
|
-
}
|
|
207
|
-
Ce(() => {
|
|
208
|
-
var e;
|
|
209
|
-
document.removeEventListener("keydown", ee), document.removeEventListener("mousedown", oe, !0), (e = V.value) == null || e.removeEventListener("scroll", Y), te();
|
|
210
|
-
});
|
|
211
|
-
function te() {
|
|
212
|
-
if (!_) {
|
|
213
|
-
b.value = !1;
|
|
214
|
-
return;
|
|
215
|
-
}
|
|
216
|
-
_ = !1, m = Math.max(0, m - 1), b.value = !1;
|
|
217
|
-
}
|
|
218
|
-
function H() {
|
|
219
|
-
var o;
|
|
220
|
-
const e = (o = document.querySelector(`.${p}`)) == null ? void 0 : o.closest(".el-overlay");
|
|
221
|
-
!e || !t.open || (b.value ? (b.value = !1, e.style.display = "block", _ && (_ = !1, m = Math.max(0, m - 1)), B()) : (b.value = !0, e.style.display = "none", _ = !0, m += 1, Z.value = window.innerHeight - 50 - m * 60));
|
|
222
|
-
}
|
|
223
|
-
return (e, o) => {
|
|
224
|
-
const n = xe, r = he;
|
|
225
|
-
return i(), c("div", null, [
|
|
226
|
-
z(r, {
|
|
227
|
-
ref: "dialogRef",
|
|
228
|
-
class: I(["qy-dialog", [
|
|
229
|
-
t.size === "small" && "[&_.el-dialog__header]:!hidden",
|
|
230
|
-
p
|
|
231
|
-
]]),
|
|
232
|
-
"model-value": X.value,
|
|
233
|
-
title: t.title,
|
|
234
|
-
width: t.width,
|
|
235
|
-
top: t.top,
|
|
236
|
-
"align-center": "",
|
|
237
|
-
"append-to-body": "",
|
|
238
|
-
"destroy-on-close": t.destroyOnClose,
|
|
239
|
-
"lock-scroll": t.lockScroll,
|
|
240
|
-
style: {
|
|
241
|
-
"--el-dialog-padding-primary": 0
|
|
242
|
-
},
|
|
243
|
-
"show-close": !1,
|
|
244
|
-
"close-on-press-escape": !1,
|
|
245
|
-
"close-on-click-modal": !1,
|
|
246
|
-
fullscreen: k.value,
|
|
247
|
-
"z-index": R.value,
|
|
248
|
-
onClosed: ge,
|
|
249
|
-
onOpened: pe,
|
|
250
|
-
draggable: t.draggable
|
|
251
|
-
}, ze({
|
|
252
|
-
header: q(() => [
|
|
253
|
-
t.size === "default" ? (i(), c("div", {
|
|
254
|
-
key: 0,
|
|
255
|
-
style: N({
|
|
256
|
-
borderBottom: "1px solid",
|
|
257
|
-
borderColor: j.value ? "transparent" : "var(--block-outline-color)",
|
|
258
|
-
transition: "border-color .2s linear"
|
|
259
|
-
}),
|
|
260
|
-
class: "flex justify-between h-[var(--header-height)]",
|
|
261
|
-
onDblclick: ye
|
|
262
|
-
}, [
|
|
263
|
-
l("div", Le, [
|
|
264
|
-
L(D).header ? L(D).header ? (i(), c("div", Oe, [
|
|
265
|
-
M(e.$slots, "header")
|
|
266
|
-
])) : v("", !0) : (i(), c("span", De, ae(t.title), 1))
|
|
267
|
-
]),
|
|
268
|
-
l("div", {
|
|
269
|
-
class: "flex",
|
|
270
|
-
onMousedown: o[4] || (o[4] = u(() => {
|
|
271
|
-
}, ["stop"]))
|
|
272
|
-
}, [
|
|
273
|
-
t.size === "default" && t.minimizable ? (i(), c("div", {
|
|
274
|
-
key: 0,
|
|
275
|
-
class: "qy-dialog__btn qy-dialog__btn--default",
|
|
276
|
-
onClick: u(H, ["stop"]),
|
|
277
|
-
onMousedown: o[0] || (o[0] = u(() => {
|
|
278
|
-
}, ["stop"]))
|
|
279
|
-
}, [...o[7] || (o[7] = [
|
|
280
|
-
l("span", {
|
|
281
|
-
class: "icon-[material-symbols--minimize] text-xl mb-3",
|
|
282
|
-
role: "img",
|
|
283
|
-
"aria-hidden": "true"
|
|
284
|
-
}, null, -1)
|
|
285
|
-
])], 32)) : v("", !0),
|
|
286
|
-
t.showFullscreen ? (i(), c("div", {
|
|
287
|
-
key: 1,
|
|
288
|
-
class: "qy-dialog__btn qy-dialog__btn--default",
|
|
289
|
-
onClick: u(G, ["stop"]),
|
|
290
|
-
onMousedown: o[1] || (o[1] = u(() => {
|
|
291
|
-
}, ["stop"]))
|
|
292
|
-
}, [
|
|
293
|
-
k.value ? (i(), c("span", Te)) : (i(), c("span", $e))
|
|
294
|
-
], 32)) : v("", !0),
|
|
295
|
-
l("div", {
|
|
296
|
-
class: "qy-dialog__btn qy-dialog__btn--danger",
|
|
297
|
-
onClick: o[2] || (o[2] = u((f) => g("header"), ["stop"])),
|
|
298
|
-
onMousedown: o[3] || (o[3] = u(() => {
|
|
299
|
-
}, ["stop"]))
|
|
300
|
-
}, [...o[8] || (o[8] = [
|
|
301
|
-
l("span", {
|
|
302
|
-
class: "icon-[ri--close-line] text-xl",
|
|
303
|
-
role: "img",
|
|
304
|
-
"aria-hidden": "true"
|
|
305
|
-
}, null, -1)
|
|
306
|
-
])], 32)
|
|
307
|
-
], 32)
|
|
308
|
-
], 36)) : v("", !0)
|
|
309
|
-
]),
|
|
310
|
-
default: q(() => [
|
|
311
|
-
l("div", {
|
|
312
|
-
class: I(["qy-dialog__wrapper", L(Se)(k.value && "qy-dialog__wrapper--fullscreen")]),
|
|
313
|
-
style: N({
|
|
314
|
-
maxHeight: W.value ? "calc(100vh - var(--header-height) - var(--footer-height) - var(--sides-gap))" : "calc(100vh - var(--header-height) - var(--sides-gap))",
|
|
315
|
-
padding: t.size === "small" ? "var(--small-content-padding)" : "var(--content-padding)"
|
|
316
|
-
})
|
|
317
|
-
}, [
|
|
318
|
-
t.size === "small" ? (i(), c("div", Ze, [
|
|
319
|
-
z(n, {
|
|
320
|
-
size: 36,
|
|
321
|
-
class: "cursor-pointer text-gray-100 active:scale-75 rounded-sm transition-all",
|
|
322
|
-
onClick: o[5] || (o[5] = (f) => g("header"))
|
|
323
|
-
}, {
|
|
324
|
-
default: q(() => [
|
|
325
|
-
z(L(Be))
|
|
326
|
-
]),
|
|
327
|
-
_: 1
|
|
328
|
-
})
|
|
329
|
-
])) : v("", !0),
|
|
330
|
-
M(e.$slots, "default")
|
|
331
|
-
], 6)
|
|
332
|
-
]),
|
|
333
|
-
_: 2
|
|
334
|
-
}, [
|
|
335
|
-
t.showFooter && !e.$slots.footer && Array.isArray($.value) ? {
|
|
336
|
-
name: "footer",
|
|
337
|
-
fn: q(() => [
|
|
338
|
-
l("div", He, [
|
|
339
|
-
l("div", null, [
|
|
340
|
-
M(e.$slots, "footer-left")
|
|
341
|
-
]),
|
|
342
|
-
l("div", {
|
|
343
|
-
class: I([{
|
|
344
|
-
"qy-dialog__footer--outline": O.value
|
|
345
|
-
}, "qy-dialog__footer flex items-center justify-end"])
|
|
346
|
-
}, [
|
|
347
|
-
$.value.includes("cancel") ? (i(), ie(P, { key: 0 })) : v("", !0),
|
|
348
|
-
$.value.includes("confirm") ? (i(), ie(J, { key: 1 })) : v("", !0),
|
|
349
|
-
M(e.$slots, "footer-append")
|
|
350
|
-
], 2)
|
|
351
|
-
])
|
|
352
|
-
]),
|
|
353
|
-
key: "0"
|
|
354
|
-
} : W.value ? {
|
|
355
|
-
name: "footer",
|
|
356
|
-
fn: q(() => [
|
|
357
|
-
l("div", {
|
|
358
|
-
class: I([{
|
|
359
|
-
"qy-dialog__footer--outline": O.value
|
|
360
|
-
}, "qy-dialog__footer px-[var(--content-padding)] min-h-[var(--footer-height)] flex items-center justify-end"])
|
|
361
|
-
}, [
|
|
362
|
-
M(e.$slots, "footer", {
|
|
363
|
-
layouts: U.value,
|
|
364
|
-
layoutsNode: Object.values(U.value)
|
|
365
|
-
})
|
|
366
|
-
], 2)
|
|
367
|
-
]),
|
|
368
|
-
key: "1"
|
|
369
|
-
} : void 0
|
|
370
|
-
]), 1032, ["class", "model-value", "title", "width", "top", "destroy-on-close", "lock-scroll", "fullscreen", "z-index", "draggable"]),
|
|
371
|
-
qe(l("div", {
|
|
372
|
-
ref_key: "minimizedRef",
|
|
373
|
-
ref: S,
|
|
374
|
-
class: "fixed left-0 top-0 bg-white rounded shadow-lg cursor-pointer z-[9999] hover:bg-gray-50",
|
|
375
|
-
style: N([me.value, { width: "300px", height: "50px", "will-change": "transform" }])
|
|
376
|
-
}, [
|
|
377
|
-
l("div", Ae, [
|
|
378
|
-
l("div", Ne, [
|
|
379
|
-
o[9] || (o[9] = l("div", { class: "icon-[mdi--window-restore] text-gray-600" }, null, -1)),
|
|
380
|
-
l("span", Fe, ae(t.title), 1)
|
|
381
|
-
]),
|
|
382
|
-
l("div", je, [
|
|
383
|
-
l("div", {
|
|
384
|
-
class: "p-1 hover:bg-gray-200 rounded",
|
|
385
|
-
onClick: u(H, ["stop"])
|
|
386
|
-
}, [...o[10] || (o[10] = [
|
|
387
|
-
l("div", { class: "icon-[mdi--window-maximize] text-gray-600" }, null, -1)
|
|
388
|
-
])]),
|
|
389
|
-
l("div", {
|
|
390
|
-
class: "p-1 hover:bg-red-100 rounded",
|
|
391
|
-
onClick: o[6] || (o[6] = u((f) => g("header"), ["stop"]))
|
|
392
|
-
}, [...o[11] || (o[11] = [
|
|
393
|
-
l("div", { class: "icon-[mdi--close] text-red-600" }, null, -1)
|
|
394
|
-
])])
|
|
395
|
-
])
|
|
396
|
-
])
|
|
397
|
-
], 4), [
|
|
398
|
-
[Me, b.value]
|
|
399
|
-
])
|
|
400
|
-
]);
|
|
401
|
-
};
|
|
402
|
-
}
|
|
403
|
-
});
|
|
404
|
-
export {
|
|
405
|
-
Je as _
|
|
406
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const a=require("vue"),F=require("element-plus"),W=["id","role","aria-disabled","tabindex","disabled","onKeydown"],j={class:"qy-color-picker__value","aria-hidden":"true"};let G=0;const H=()=>`qy-color-picker-${++G}`,J=a.defineComponent({name:"QyColorPicker",inheritAttrs:!1,__name:"index",props:{modelValue:{default:null},format:{default:void 0},showAlpha:{type:Boolean,default:!1},predefine:{default:void 0},size:{default:"default"},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1}},emits:["update:modelValue","active-change","change","visible-change"],setup(R,{emit:D}){const n=R,i=D,c=a.useAttrs(),g=a.ref(null),k=a.ref(null),p=a.ref(null),r=a.ref(u(n.modelValue)),h=a.ref(r.value),t=a.ref(!1),o=a.ref(null),s=a.ref(!1),f=a.ref(!1),w=H(),L=a.computed(()=>typeof c.id=="string"&&c.id||w),_=`qy-color-picker__popper--${w}`,z=a.computed(()=>n.format||(n.showAlpha?"rgb":"hex")),m=a.computed(()=>u(n.modelValue)),B=a.computed(()=>String(c.role||"button")),I=a.computed(()=>c["aria-disabled"]??(n.disabled?"true":"false")),K=a.computed(()=>n.disabled?void 0:c.tabindex??0),N=a.computed(()=>{const e={};for(const[l,d]of Object.entries(c)){const b=l.toLowerCase();(l==="class"||l==="style"||l==="id"||l==="title"||l==="tabindex"||l==="role"||b.startsWith("data-")||b.startsWith("aria-")||["onkeydown","onkeyup","onkeypress"].includes(b))&&(e[l]=d)}return e});a.watch(()=>n.modelValue,e=>{r.value=u(e),t.value&&(h.value=r.value)});function u(e){return e==null||e===""?null:String(e)}function S(){if(!n.disabled){if(t.value){v();return}V()}}function C(){n.disabled||t.value||V()}function T(){t.value&&v()}function V(){t.value||n.disabled||(h.value=u(n.modelValue),r.value=h.value,o.value=null,s.value=!1,f.value=!1,t.value=!0,$(),i("visible-change",!0),a.nextTick(()=>{var e,l;return(l=(e=p.value)==null?void 0:e.show)==null?void 0:l.call(e)}))}function M(e){!t.value||o.value||(r.value=u(e),i("active-change",r.value))}function O(e){!t.value||o.value==="cancel"||(r.value=u(e),s.value||(s.value=!0,o.value="commit",i("update:modelValue",r.value)))}function Q(e){!t.value||o.value==="cancel"||(r.value=u(e),s.value||(s.value=!0,o.value="commit",i("update:modelValue",r.value)),f.value||(f.value=!0,i("change",r.value)),y())}function U(){!t.value||o.value==="cancel"||(s.value||(s.value=!0,o.value="commit",r.value=null,i("update:modelValue",null)),f.value||(f.value=!0,i("change",null)),y())}function v(){var e,l;!t.value||o.value||(o.value="cancel",r.value=u(n.modelValue),(l=(e=p.value)==null?void 0:e.hide)==null||l.call(e),y())}function y(){var e,l;t.value&&(t.value=!1,P(),(l=(e=p.value)==null?void 0:e.hide)==null||l.call(e),i("visible-change",!1),a.nextTick(()=>{var d;return(d=k.value)==null?void 0:d.focus()}))}function E(e){var l,d;return e instanceof Node?(l=g.value)!=null&&l.contains(e)?!0:!!((d=e.closest)!=null&&d.call(e,`.${_}`)):!1}function x(e){t.value&&!E(e.target)&&v()}function q(e){t.value&&!E(e.target)&&v()}function A(e){t.value&&e.key==="Escape"&&(e.preventDefault(),e.stopPropagation(),v())}function $(){document.addEventListener("pointerdown",x,!0),document.addEventListener("focusin",q,!0),document.addEventListener("keydown",A,!0)}function P(){document.removeEventListener("pointerdown",x,!0),document.removeEventListener("focusin",q,!0),document.removeEventListener("keydown",A,!0)}return a.onBeforeUnmount(()=>{P()}),(e,l)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"rootRef",ref:g,class:"qy-color-picker","data-qy-color-picker":""},[a.createElementVNode("button",a.mergeProps({ref_key:"triggerRef",ref:k,type:"button",class:"qy-color-picker__trigger"},N.value,{id:L.value,role:B.value,"aria-disabled":I.value,tabindex:K.value,disabled:n.disabled,class:{"is-disabled":n.disabled,"is-open":t.value},onClick:S,onKeydown:[a.withKeys(a.withModifiers(C,["prevent"]),["enter"]),a.withKeys(a.withModifiers(C,["prevent"]),["space"]),a.withKeys(a.withModifiers(T,["prevent"]),["esc"])]}),[a.createElementVNode("span",{class:a.normalizeClass(["qy-color-picker__swatch",{"is-empty":!m.value}]),style:a.normalizeStyle(m.value?{backgroundColor:m.value}:void 0),"aria-hidden":"true"},null,6),a.createElementVNode("span",j,a.toDisplayString(m.value||"选择颜色"),1),l[0]||(l[0]=a.createElementVNode("span",{class:"qy-color-picker__arrow","aria-hidden":"true"},"⌄",-1))],16,W),a.createVNode(a.unref(F.ElColorPicker),{ref_key:"rendererRef",ref:p,class:"qy-color-picker__renderer","model-value":r.value,"show-alpha":n.showAlpha,"color-format":z.value,predefine:n.predefine,size:n.size,disabled:!1,clearable:n.clearable,teleported:!0,tabindex:-1,"popper-class":_,"aria-hidden":"true",onActiveChange:M,"onUpdate:modelValue":O,onChange:Q,onClear:U},null,8,["model-value","show-alpha","color-format","predefine","size","clearable"])],512))}});exports._sfc_main=J;
|
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
import { defineComponent as J, useAttrs as X, ref as o, computed as c, watch as Y, onBeforeUnmount as Z, openBlock as ee, createElementBlock as ae, createElementVNode as b, mergeProps as le, withKeys as _, withModifiers as w, normalizeStyle as ne, normalizeClass as te, toDisplayString as re, createVNode as oe, unref as ie, nextTick as B } from "vue";
|
|
2
|
-
import { ElColorPicker as ue } from "element-plus";
|
|
3
|
-
const se = ["id", "role", "aria-disabled", "tabindex", "disabled", "onKeydown"], de = {
|
|
4
|
-
class: "qy-color-picker__value",
|
|
5
|
-
"aria-hidden": "true"
|
|
6
|
-
};
|
|
7
|
-
let ce = 0;
|
|
8
|
-
const fe = () => `qy-color-picker-${++ce}`, me = /* @__PURE__ */ J({
|
|
9
|
-
name: "QyColorPicker",
|
|
10
|
-
inheritAttrs: !1,
|
|
11
|
-
__name: "index",
|
|
12
|
-
props: {
|
|
13
|
-
modelValue: { default: null },
|
|
14
|
-
format: { default: void 0 },
|
|
15
|
-
showAlpha: { type: Boolean, default: !1 },
|
|
16
|
-
predefine: { default: void 0 },
|
|
17
|
-
size: { default: "default" },
|
|
18
|
-
disabled: { type: Boolean, default: !1 },
|
|
19
|
-
clearable: { type: Boolean, default: !1 }
|
|
20
|
-
},
|
|
21
|
-
emits: ["update:modelValue", "active-change", "change", "visible-change"],
|
|
22
|
-
setup(I, { emit: K }) {
|
|
23
|
-
const l = I, i = K, f = X(), C = o(null), V = o(null), m = o(null), t = o(u(l.modelValue)), g = o(t.value), n = o(!1), r = o(null), s = o(!1), v = o(!1), E = fe(), N = c(() => typeof f.id == "string" && f.id || E), x = `qy-color-picker__popper--${E}`, S = c(
|
|
24
|
-
() => l.format || (l.showAlpha ? "rgb" : "hex")
|
|
25
|
-
), h = c(() => u(l.modelValue)), O = c(() => String(f.role || "button")), Q = c(
|
|
26
|
-
() => f["aria-disabled"] ?? (l.disabled ? "true" : "false")
|
|
27
|
-
), T = c(
|
|
28
|
-
() => l.disabled ? void 0 : f.tabindex ?? 0
|
|
29
|
-
), U = c(() => {
|
|
30
|
-
const e = {};
|
|
31
|
-
for (const [a, d] of Object.entries(f)) {
|
|
32
|
-
const k = a.toLowerCase();
|
|
33
|
-
(a === "class" || a === "style" || a === "id" || a === "title" || a === "tabindex" || a === "role" || k.startsWith("data-") || k.startsWith("aria-") || ["onkeydown", "onkeyup", "onkeypress"].includes(k)) && (e[a] = d);
|
|
34
|
-
}
|
|
35
|
-
return e;
|
|
36
|
-
});
|
|
37
|
-
Y(
|
|
38
|
-
() => l.modelValue,
|
|
39
|
-
(e) => {
|
|
40
|
-
t.value = u(e), n.value && (g.value = t.value);
|
|
41
|
-
}
|
|
42
|
-
);
|
|
43
|
-
function u(e) {
|
|
44
|
-
return e == null || e === "" ? null : String(e);
|
|
45
|
-
}
|
|
46
|
-
function $() {
|
|
47
|
-
if (!l.disabled) {
|
|
48
|
-
if (n.value) {
|
|
49
|
-
p();
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
R();
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
function A() {
|
|
56
|
-
l.disabled || n.value || R();
|
|
57
|
-
}
|
|
58
|
-
function F() {
|
|
59
|
-
n.value && p();
|
|
60
|
-
}
|
|
61
|
-
function R() {
|
|
62
|
-
n.value || l.disabled || (g.value = u(l.modelValue), t.value = g.value, r.value = null, s.value = !1, v.value = !1, n.value = !0, H(), i("visible-change", !0), B(() => {
|
|
63
|
-
var e, a;
|
|
64
|
-
return (a = (e = m.value) == null ? void 0 : e.show) == null ? void 0 : a.call(e);
|
|
65
|
-
}));
|
|
66
|
-
}
|
|
67
|
-
function W(e) {
|
|
68
|
-
!n.value || r.value || (t.value = u(e), i("active-change", t.value));
|
|
69
|
-
}
|
|
70
|
-
function j(e) {
|
|
71
|
-
!n.value || r.value === "cancel" || (t.value = u(e), s.value || (s.value = !0, r.value = "commit", i("update:modelValue", t.value)));
|
|
72
|
-
}
|
|
73
|
-
function M(e) {
|
|
74
|
-
!n.value || r.value === "cancel" || (t.value = u(e), s.value || (s.value = !0, r.value = "commit", i("update:modelValue", t.value)), v.value || (v.value = !0, i("change", t.value)), y());
|
|
75
|
-
}
|
|
76
|
-
function G() {
|
|
77
|
-
!n.value || r.value === "cancel" || (s.value || (s.value = !0, r.value = "commit", t.value = null, i("update:modelValue", null)), v.value || (v.value = !0, i("change", null)), y());
|
|
78
|
-
}
|
|
79
|
-
function p() {
|
|
80
|
-
var e, a;
|
|
81
|
-
!n.value || r.value || (r.value = "cancel", t.value = u(l.modelValue), (a = (e = m.value) == null ? void 0 : e.hide) == null || a.call(e), y());
|
|
82
|
-
}
|
|
83
|
-
function y() {
|
|
84
|
-
var e, a;
|
|
85
|
-
n.value && (n.value = !1, z(), (a = (e = m.value) == null ? void 0 : e.hide) == null || a.call(e), i("visible-change", !1), B(() => {
|
|
86
|
-
var d;
|
|
87
|
-
return (d = V.value) == null ? void 0 : d.focus();
|
|
88
|
-
}));
|
|
89
|
-
}
|
|
90
|
-
function P(e) {
|
|
91
|
-
var a, d;
|
|
92
|
-
return e instanceof Node ? (a = C.value) != null && a.contains(e) ? !0 : !!((d = e.closest) != null && d.call(e, `.${x}`)) : !1;
|
|
93
|
-
}
|
|
94
|
-
function q(e) {
|
|
95
|
-
n.value && !P(e.target) && p();
|
|
96
|
-
}
|
|
97
|
-
function D(e) {
|
|
98
|
-
n.value && !P(e.target) && p();
|
|
99
|
-
}
|
|
100
|
-
function L(e) {
|
|
101
|
-
n.value && e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), p());
|
|
102
|
-
}
|
|
103
|
-
function H() {
|
|
104
|
-
document.addEventListener("pointerdown", q, !0), document.addEventListener("focusin", D, !0), document.addEventListener("keydown", L, !0);
|
|
105
|
-
}
|
|
106
|
-
function z() {
|
|
107
|
-
document.removeEventListener("pointerdown", q, !0), document.removeEventListener("focusin", D, !0), document.removeEventListener("keydown", L, !0);
|
|
108
|
-
}
|
|
109
|
-
return Z(() => {
|
|
110
|
-
z();
|
|
111
|
-
}), (e, a) => (ee(), ae("div", {
|
|
112
|
-
ref_key: "rootRef",
|
|
113
|
-
ref: C,
|
|
114
|
-
class: "qy-color-picker",
|
|
115
|
-
"data-qy-color-picker": ""
|
|
116
|
-
}, [
|
|
117
|
-
b("button", le({
|
|
118
|
-
ref_key: "triggerRef",
|
|
119
|
-
ref: V,
|
|
120
|
-
type: "button",
|
|
121
|
-
class: "qy-color-picker__trigger"
|
|
122
|
-
}, U.value, {
|
|
123
|
-
id: N.value,
|
|
124
|
-
role: O.value,
|
|
125
|
-
"aria-disabled": Q.value,
|
|
126
|
-
tabindex: T.value,
|
|
127
|
-
disabled: l.disabled,
|
|
128
|
-
class: { "is-disabled": l.disabled, "is-open": n.value },
|
|
129
|
-
onClick: $,
|
|
130
|
-
onKeydown: [
|
|
131
|
-
_(w(A, ["prevent"]), ["enter"]),
|
|
132
|
-
_(w(A, ["prevent"]), ["space"]),
|
|
133
|
-
_(w(F, ["prevent"]), ["esc"])
|
|
134
|
-
]
|
|
135
|
-
}), [
|
|
136
|
-
b("span", {
|
|
137
|
-
class: te(["qy-color-picker__swatch", { "is-empty": !h.value }]),
|
|
138
|
-
style: ne(h.value ? { backgroundColor: h.value } : void 0),
|
|
139
|
-
"aria-hidden": "true"
|
|
140
|
-
}, null, 6),
|
|
141
|
-
b("span", de, re(h.value || "选择颜色"), 1),
|
|
142
|
-
a[0] || (a[0] = b("span", {
|
|
143
|
-
class: "qy-color-picker__arrow",
|
|
144
|
-
"aria-hidden": "true"
|
|
145
|
-
}, "⌄", -1))
|
|
146
|
-
], 16, se),
|
|
147
|
-
oe(ie(ue), {
|
|
148
|
-
ref_key: "rendererRef",
|
|
149
|
-
ref: m,
|
|
150
|
-
class: "qy-color-picker__renderer",
|
|
151
|
-
"model-value": t.value,
|
|
152
|
-
"show-alpha": l.showAlpha,
|
|
153
|
-
"color-format": S.value,
|
|
154
|
-
predefine: l.predefine,
|
|
155
|
-
size: l.size,
|
|
156
|
-
disabled: !1,
|
|
157
|
-
clearable: l.clearable,
|
|
158
|
-
teleported: !0,
|
|
159
|
-
tabindex: -1,
|
|
160
|
-
"popper-class": x,
|
|
161
|
-
"aria-hidden": "true",
|
|
162
|
-
onActiveChange: W,
|
|
163
|
-
"onUpdate:modelValue": j,
|
|
164
|
-
onChange: M,
|
|
165
|
-
onClear: G
|
|
166
|
-
}, null, 8, ["model-value", "show-alpha", "color-format", "predefine", "size", "clearable"])
|
|
167
|
-
], 512));
|
|
168
|
-
}
|
|
169
|
-
});
|
|
170
|
-
export {
|
|
171
|
-
me as _
|
|
172
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const R=require("element-plus"),e=require("vue"),le=require("clsx"),U=require("element-plus"),ne=require("@element-plus/icons-vue"),W=require("@vueuse/core"),ae={class:"text-lg flex items-center pt-2 pl-[var(--content-padding)]"},re={key:0},ie={key:1},se={key:0,class:"icon-[material-symbols--square-outline-rounded]",role:"img","aria-hidden":"true"},de={key:1,class:"icon-[tdesign--fullscreen-exit-1]",role:"img","aria-hidden":"true"},ce={key:0,class:"fixed -right-12 top-2 h-9 w-9 hover:bg-gray-600/80 transition-all"},ue={class:"flex justify-between h-[var(--footer-height)] px-[var(--content-padding)] items-center"},fe={class:"flex items-center justify-between w-full pl-1 pr-4 h-full ml-2"},me={class:"flex items-center gap-2"},pe={class:"text-sm text-gray-700 truncate max-w-[200px]"},ge={class:"flex items-center gap-2"},X=5,M=2e3,ye=e.defineComponent({inheritAttrs:!1,__name:"index",props:{open:{type:Boolean,default:!1},title:{default:""},width:{default:"50%"},showFooter:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},showCancel:{type:Boolean,default:!0},confirmText:{default:"确 认"},cancelText:{default:"取 消"},confirmLoading:{type:Boolean,default:!1},confirmDisabled:{type:Boolean,default:!1},closeOnConfirm:{type:Boolean,default:!1},closeOnEscape:{type:Boolean,default:!0},closeOnOverlay:{type:Boolean,default:!0},minimizable:{type:Boolean,default:!0},destroyOnClose:{type:Boolean,default:!1},draggable:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},top:{default:"15vh"},fullscreen:{type:Boolean,default:!1},showFullscreen:{type:Boolean,default:!1},size:{default:"default"},zIndex:{default:2e3}},emits:["update:open","open-change","confirm","cancel","close","opened","closed"],setup(K,{expose:P,emit:Y}){let d=0;const l=K,E=e.useSlots(),S=e.ref(!0),C=e.ref(!1),q=e.ref(M),N=e.ref(null),G=W.useBreakpoints({mobile:0,tablet:640,laptop:1024,desktop:1280}).isSmaller("tablet"),B=e.computed(()=>{const t=[];return l.showCancel&&t.push("cancel"),l.showConfirm&&t.push("confirm"),t}),V=e.computed(()=>({CancelButton:e.createVNode(Z),ConfirmButton:e.createVNode(T)})),I=e.computed(()=>!!(E.footer||l.showFooter)),m=e.ref(!1),p=e.ref(!1);let b=!1,g=document.activeElement instanceof HTMLElement?document.activeElement:null;const v=e.ref(l.showFullscreen&&G?!0:l.fullscreen),r=Y,L=e.computed(()=>l.open);e.watchEffect(()=>{L.value&&(m.value=!1)}),e.watch(()=>l.open,(t,o)=>{if(t){m.value=!1,p.value=!1,g=document.activeElement instanceof HTMLElement?document.activeElement:g,o===!1&&r("open-change",!0);return}o&&!m.value&&(m.value=!0,r("open-change",!1),r("close","external"))}),e.watch(()=>l.confirmLoading,t=>{t?b=!0:b&&(b=!1,p.value=!1)}),P({handleMinimize:z});const c=`qy-dialog-${Math.random().toString(36).slice(2,11)}`,y=e.ref(!1);let h=!1;const w=e.ref(null),{x:D,y:_}=W.useDraggable(w,{initialValue:{x:5,y:window.innerHeight-100-d*60},onMove(t){var o;(o=w.value)==null||o.classList.add("dragging"),document.body.classList.add("qy-dialog--dragging"),D.value=Math.max(0,Math.min(window.innerWidth-300,t.x)),_.value=Math.max(0,Math.min(window.innerHeight-50,t.y))},onEnd(){var t;(t=w.value)==null||t.classList.remove("dragging"),document.body.classList.remove("qy-dialog--dragging")}}),J=e.computed(()=>({transform:`translate(${D.value}px, ${_.value}px)`,willChange:"transform"}));function O(t){const o=t.target,{scrollTop:n,scrollHeight:i,clientHeight:s}=o;S.value=n<=X,C.value=i-(n+s)<=X}function Q(){const t=document.querySelector(`.${c}.el-dialog`);t&&(N.value=t,t.addEventListener("scroll",O)),x(),r("opened")}function $(){v.value=!v.value,x()}function u(t){l.confirmLoading&&t!=="external"||m.value||(m.value=!0,j(),r("update:open",!1),r("open-change",!1),(t==="cancel"||t==="header")&&r("cancel"),r("close",t))}function ee(){r("closed"),e.nextTick(()=>{g!=null&&g.isConnected&&g.focus()})}function te(t){l.showFullscreen&&t.detail>=2&&$()}function T(){return e.h(U.ElButton,{type:"primary",class:"dialog__footerBtn",loading:l.confirmLoading,disabled:l.confirmDisabled||l.confirmLoading||p.value,onClick:oe},()=>l.confirmText)}function oe(){p.value||l.confirmLoading||l.confirmDisabled||(p.value=!0,r("confirm"),e.nextTick(()=>{l.confirmLoading||(p.value=!1)}),l.closeOnConfirm&&u("confirm"))}function Z(){return e.h(U.ElButton,{class:"dialog__footerBtn",onClick:()=>u("cancel")},()=>l.cancelText)}e.onMounted(()=>{typeof window.qyDialogMaxZIndex>"u"&&(window.qyDialogMaxZIndex=M),x(),document.addEventListener("keydown",A),document.addEventListener("mousedown",F,!0)});function H(){var i,s;const t=(i=document.querySelector(`.${c}`))==null?void 0:i.closest(".el-overlay");if(!t)return!1;const n=Array.from(document.querySelectorAll(".el-overlay")).filter(a=>window.getComputedStyle(a).display!=="none").map((a,f)=>({overlay:a,order:f,zIndex:Number.parseInt(window.getComputedStyle(a).zIndex||"0",10)}));return n.sort((a,f)=>a.zIndex-f.zIndex||a.order-f.order),((s=n.at(-1))==null?void 0:s.overlay)===t}function A(t){t.key!=="Escape"||!l.open||!l.closeOnEscape||l.confirmLoading||!H()||(t.preventDefault(),u("escape"))}function F(t){if(!l.open||!l.closeOnOverlay||l.confirmLoading||!H()||!(t.target instanceof Node))return;const o=document.querySelector(`.${c}.el-dialog`),n=o==null?void 0:o.closest(".el-overlay");!o||!n||!n.contains(t.target)||o.contains(t.target)||u("overlay")}function x(){var f;const t=Array.from(document.querySelectorAll(".el-overlay")).filter(k=>window.getComputedStyle(k).display!=="none"&&!k.classList.contains("is-message")),o=(f=document.querySelector(`.${c}`))==null?void 0:f.closest(".el-overlay"),n=document.querySelector(`.${c}.el-dialog`);if(!o||!n)return;const i=M;window.qyDialogMaxZIndex=window.qyDialogMaxZIndex||i;const a=Math.max(window.qyDialogMaxZIndex,...t.map(k=>parseInt(window.getComputedStyle(k).zIndex||i.toString())))+2;window.qyDialogMaxZIndex=a,e.nextTick(()=>{o.style.zIndex=a.toString(),n.style.zIndex=(a+1).toString(),q.value=a+1})}e.onUnmounted(()=>{var t;document.removeEventListener("keydown",A),document.removeEventListener("mousedown",F,!0),(t=N.value)==null||t.removeEventListener("scroll",O),j()});function j(){if(!h){y.value=!1;return}h=!1,d=Math.max(0,d-1),y.value=!1}function z(){var o;const t=(o=document.querySelector(`.${c}`))==null?void 0:o.closest(".el-overlay");!t||!l.open||(y.value?(y.value=!1,t.style.display="block",h&&(h=!1,d=Math.max(0,d-1)),x()):(y.value=!0,t.style.display="none",h=!0,d+=1,_.value=window.innerHeight-50-d*60))}return(t,o)=>{const n=R.ElIcon,i=R.ElDialog;return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(i,{ref:"dialogRef",class:e.normalizeClass(["qy-dialog",[l.size==="small"&&"[&_.el-dialog__header]:!hidden",c]]),"model-value":L.value,title:l.title,width:l.width,top:l.top,"align-center":"","append-to-body":"","destroy-on-close":l.destroyOnClose,"lock-scroll":l.lockScroll,style:{"--el-dialog-padding-primary":0},"show-close":!1,"close-on-press-escape":!1,"close-on-click-modal":!1,fullscreen:v.value,"z-index":q.value,onClosed:ee,onOpened:Q,draggable:l.draggable},e.createSlots({header:e.withCtx(()=>[l.size==="default"?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({borderBottom:"1px solid",borderColor:S.value?"transparent":"var(--block-outline-color)",transition:"border-color .2s linear"}),class:"flex justify-between h-[var(--header-height)]",onDblclick:te},[e.createElementVNode("div",ae,[e.unref(E).header?e.unref(E).header?(e.openBlock(),e.createElementBlock("div",ie,[e.renderSlot(t.$slots,"header")])):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",re,e.toDisplayString(l.title),1))]),e.createElementVNode("div",{class:"flex",onMousedown:o[4]||(o[4]=e.withModifiers(()=>{},["stop"]))},[l.size==="default"&&l.minimizable?(e.openBlock(),e.createElementBlock("div",{key:0,class:"qy-dialog__btn qy-dialog__btn--default",onClick:e.withModifiers(z,["stop"]),onMousedown:o[0]||(o[0]=e.withModifiers(()=>{},["stop"]))},[...o[7]||(o[7]=[e.createElementVNode("span",{class:"icon-[material-symbols--minimize] text-xl mb-3",role:"img","aria-hidden":"true"},null,-1)])],32)):e.createCommentVNode("",!0),l.showFullscreen?(e.openBlock(),e.createElementBlock("div",{key:1,class:"qy-dialog__btn qy-dialog__btn--default",onClick:e.withModifiers($,["stop"]),onMousedown:o[1]||(o[1]=e.withModifiers(()=>{},["stop"]))},[v.value?(e.openBlock(),e.createElementBlock("span",de)):(e.openBlock(),e.createElementBlock("span",se))],32)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"qy-dialog__btn qy-dialog__btn--danger",onClick:o[2]||(o[2]=e.withModifiers(s=>u("header"),["stop"])),onMousedown:o[3]||(o[3]=e.withModifiers(()=>{},["stop"]))},[...o[8]||(o[8]=[e.createElementVNode("span",{class:"icon-[ri--close-line] text-xl",role:"img","aria-hidden":"true"},null,-1)])],32)],32)],36)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["qy-dialog__wrapper",e.unref(le)(v.value&&"qy-dialog__wrapper--fullscreen")]),style:e.normalizeStyle({maxHeight:I.value?"calc(100vh - var(--header-height) - var(--footer-height) - var(--sides-gap))":"calc(100vh - var(--header-height) - var(--sides-gap))",padding:l.size==="small"?"var(--small-content-padding)":"var(--content-padding)"})},[l.size==="small"?(e.openBlock(),e.createElementBlock("div",ce,[e.createVNode(n,{size:36,class:"cursor-pointer text-gray-100 active:scale-75 rounded-sm transition-all",onClick:o[5]||(o[5]=s=>u("header"))},{default:e.withCtx(()=>[e.createVNode(e.unref(ne.Close))]),_:1})])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default")],6)]),_:2},[l.showFooter&&!t.$slots.footer&&Array.isArray(B.value)?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",ue,[e.createElementVNode("div",null,[e.renderSlot(t.$slots,"footer-left")]),e.createElementVNode("div",{class:e.normalizeClass([{"qy-dialog__footer--outline":C.value},"qy-dialog__footer flex items-center justify-end"])},[B.value.includes("cancel")?(e.openBlock(),e.createBlock(Z,{key:0})):e.createCommentVNode("",!0),B.value.includes("confirm")?(e.openBlock(),e.createBlock(T,{key:1})):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"footer-append")],2)])]),key:"0"}:I.value?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([{"qy-dialog__footer--outline":C.value},"qy-dialog__footer px-[var(--content-padding)] min-h-[var(--footer-height)] flex items-center justify-end"])},[e.renderSlot(t.$slots,"footer",{layouts:V.value,layoutsNode:Object.values(V.value)})],2)]),key:"1"}:void 0]),1032,["class","model-value","title","width","top","destroy-on-close","lock-scroll","fullscreen","z-index","draggable"]),e.withDirectives(e.createElementVNode("div",{ref_key:"minimizedRef",ref:w,class:"fixed left-0 top-0 bg-white rounded shadow-lg cursor-pointer z-[9999] hover:bg-gray-50",style:e.normalizeStyle([J.value,{width:"300px",height:"50px","will-change":"transform"}])},[e.createElementVNode("div",fe,[e.createElementVNode("div",me,[o[9]||(o[9]=e.createElementVNode("div",{class:"icon-[mdi--window-restore] text-gray-600"},null,-1)),e.createElementVNode("span",pe,e.toDisplayString(l.title),1)]),e.createElementVNode("div",ge,[e.createElementVNode("div",{class:"p-1 hover:bg-gray-200 rounded",onClick:e.withModifiers(z,["stop"])},[...o[10]||(o[10]=[e.createElementVNode("div",{class:"icon-[mdi--window-maximize] text-gray-600"},null,-1)])]),e.createElementVNode("div",{class:"p-1 hover:bg-red-100 rounded",onClick:o[6]||(o[6]=e.withModifiers(s=>u("header"),["stop"]))},[...o[11]||(o[11]=[e.createElementVNode("div",{class:"icon-[mdi--close] text-red-600"},null,-1)])])])])],4),[[e.vShow,y.value]])])}}});exports._sfc_main=ye;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("vue"),P=require("element-plus"),K=1e3,O=t.defineComponent({name:"QyPopover",inheritAttrs:!1,__name:"index",props:{trigger:{type:String,default:"click"},placement:{type:String,default:"bottom"},effect:{type:String,default:"light"},width:{type:[Number,String],default:240},offset:{type:Number,default:12},showDelay:{type:Number,default:0},hideDelay:{type:Number,default:200},showArrow:{type:Boolean,default:!0},transition:{type:String,default:void 0},disabled:{type:Boolean,default:!1},open:{type:Boolean,default:void 0}},emits:["update:open","open-change","open","close"],setup(r,{expose:B,emit:E}){const n=r,c=E,i=t.computed(()=>n.open!==void 0),v=i.value&&n.open===!0&&!n.disabled,f=t.ref(v),u=t.ref(v),h=t.ref(v),a=t.ref(null),y=t.computed(()=>n.disabled?!1:i.value?n.open===!0:f.value);let o,d=!1,s;const b=t.computed(()=>typeof n.width=="number"?`${n.width}px`:n.width),S=t.computed(()=>({"--qy-popover-width":b.value,"--qy-popover-mobile-gutter":"24px"})),m=t.useSlots(),T=t.computed(()=>{var e;return((e=m.reference)==null?void 0:e.call(m))??[]});function w(){o&&(clearTimeout(o),o=void 0),a.value=null}function q(e){o&&clearTimeout(o),o=setTimeout(()=>{o=void 0,a.value===e&&(a.value=null)},K)}function l(){if(d)return;const e=y.value;u.value!==e&&(d=!0,s=e,u.value=e)}function p(e){if(!(e&&n.disabled)){if(!i.value){if(f.value===e)return;f.value=e,c("update:open",e),l();return}a.value!==e&&(a.value===null&&n.open===e||(a.value=e,e?q(e):o&&(clearTimeout(o),o=void 0),c("update:open",e),l()))}}function g(e){e===u.value&&(!d||s!==e||(d=!1,s=void 0,e!==h.value&&(h.value=e,a.value===e&&w(),c("open-change",e),c(e?"open":"close"),l())))}function C(e){p(e),l()}function L(){g(!0)}function N(){g(!1)}function W(){p(!1)}function k(e){e.key!=="Escape"&&e.code!=="Escape"||u.value&&(e.preventDefault(),p(!1),l())}return t.watch(y,()=>l()),t.watch(i,e=>{w(),e?f.value=n.open===!0:f.value=u.value,l()}),t.watch(()=>n.open,(e,A)=>{!i.value||a.value===null||(e===a.value||e!==A)&&w()}),t.watch(()=>n.disabled,e=>{e?p(!1):l()}),t.onBeforeUnmount(()=>{window.removeEventListener("keydown",k),d=!1,s=void 0,o&&clearTimeout(o)}),t.onMounted(()=>{window.addEventListener("keydown",k)}),B({close:W}),(e,A)=>(t.openBlock(),t.createBlock(t.unref(P.ElPopover),{visible:u.value,trigger:r.trigger,placement:r.placement,effect:r.effect,width:r.width,offset:r.offset,"show-after":r.showDelay,"hide-after":r.hideDelay,"show-arrow":r.showArrow,transition:r.transition,disabled:r.disabled,enterable:!0,"popper-style":S.value,"popper-class":"qy-popover-popper","onUpdate:visible":C,onAfterEnter:L,onAfterLeave:N},{reference:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(T.value,(D,I)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(D),{key:D.key??I}))),128))]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["visible","trigger","placement","effect","width","offset","show-after","hide-after","show-arrow","transition","disabled","popper-style"]))}});exports._sfc_main=O;
|