bp-aicc-editor 1.2.521 → 1.2.523
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/lib/{ScreenPreview-CV95NWOd.js → ScreenPreview-yUHo60be.js} +51 -105
- package/lib/atlas-BMjKIOwk.js +3891 -0
- package/lib/{button-base-DHNVBrQ9.js → button-base-CXl1z-_m.js} +1 -1
- package/lib/{cache-lsjsKZHu.js → cache-DbHSDjJy.js} +1 -1
- package/lib/config-provider-Bui8m4GV.js +62 -0
- package/lib/{container-group-DqAcKEBy.js → container-group-D6Extorz.js} +1 -1
- package/lib/{copy-C5Pi6nJh.js → copy-CsCmPy4J.js} +1 -1
- package/lib/{datav-BER95ty-.js → datav-BTD-HJhV.js} +27 -27
- package/lib/{delete-C2EW4JCs.js → delete-COj0ilHh.js} +1 -1
- package/lib/{divider-BazBGRgV.js → divider-B3K_URZc.js} +1 -1
- package/lib/dropdown-CWvnuJsO.js +105 -0
- package/lib/{edit-B2pfd2q1.js → edit-vdJaEine.js} +1 -1
- package/lib/{el-form-item-BDdxk5F5.js → el-form-item-BbaNohQv.js} +51 -51
- package/lib/{el-link-D2ol9BHQ.js → el-link-Dq721Q7-.js} +12 -12
- package/lib/{el-loading-Cgwgez55.js → el-loading-DOxnN3bm.js} +17 -17
- package/lib/{fullscreen-OChDsSnk.js → fullscreen-DXSogbcG.js} +1 -1
- package/lib/{image-C5ZAY3yt.js → image-Cu7JTK9-.js} +1 -1
- package/lib/{index-Ci8AbyIq.js → index-68soBnbK.js} +8 -8
- package/lib/{index-BatyRVpL.js → index-B-d8WIg1.js} +7 -7
- package/lib/{index-BfIEunKC.js → index-B4zV3cxV.js} +18 -17
- package/lib/{index-CZJriuFt.js → index-B8QqTLfg.js} +4974 -4898
- package/lib/index-BBMItxtW.js +619 -0
- package/lib/{index-CGrR_i0u.js → index-BMm0MRz5.js} +14 -15
- package/lib/index-BMn8EzMD.js +1027 -0
- package/lib/index-BNTW8F-9.js +322 -0
- package/lib/index-BTI518b1.js +69 -0
- package/lib/{index-BWPVi43E.js → index-BZxUAT4z.js} +4 -4
- package/lib/{index-Ck7uFsPE.js → index-BdYTc41r.js} +24 -24
- package/lib/index-BfI55Ioc.js +404 -0
- package/lib/{index-BhP9eBCp.js → index-BmAcetSf.js} +19 -20
- package/lib/index-C35Yp3i8.js +545 -0
- package/lib/{index-B19lEYui.js → index-C6GUNRx9.js} +2 -2
- package/lib/index-CC28_8Jl.js +567 -0
- package/lib/index-CDhmvVt8.js +338 -0
- package/lib/index-CDx0y0fp.js +144 -0
- package/lib/{el-button-DvLKp6Ga.js → index-CJjljoJG.js} +106 -106
- package/lib/index-CNCgXPiO.js +235 -0
- package/lib/{index-CWbZmzNT.js → index-CPa_MnOD.js} +30 -29
- package/lib/index-CW6ljdNf.js +1582 -0
- package/lib/index-C_WopEui.js +513 -0
- package/lib/{index-CX_Ghcb6.js → index-CejowjGd.js} +56 -53
- package/lib/{index-BwCQWH-N.js → index-CfZXOvi-.js} +42 -40
- package/lib/{index-CVsy2qTh.js → index-CgzRTmPh.js} +16 -15
- package/lib/index-CmzuNM9v.js +32 -0
- package/lib/index-CrxcAFt8.js +5343 -0
- package/lib/{index-C7k49L2T.js → index-CuHA7QXu.js} +10 -10
- package/lib/{index-qVyixI57.js → index-CyBGAB7D.js} +21 -20
- package/lib/index-D6J7coU0.js +129 -0
- package/lib/index-DDHxrdAo.js +1773 -0
- package/lib/index-DDL-yqq0.js +1401 -0
- package/lib/{index-BPcvYtHf.js → index-DOxy-bey.js} +6 -6
- package/lib/{index-CVE37oE7.js → index-DOyr0BHr.js} +7 -7
- package/lib/index-DPOanmXI.js +887 -0
- package/lib/{index-3pzVrvby.js → index-DR_husZg.js} +46 -46
- package/lib/{el-tab-pane-DD2eM9rB.js → index-DUzOCQrW.js} +125 -124
- package/lib/{index-CGFEhUh9.js → index-DVYI-g8Q.js} +53 -52
- package/lib/index-DVyjilLy.js +51 -0
- package/lib/{index-CJyYGViv.js → index-DWAJ9GyC.js} +9 -9
- package/lib/index-Dj2qCwPD.js +178 -0
- package/lib/{index-D4X0_jbv.js → index-Dx2Gld1J.js} +32 -32
- package/lib/{index-C2XeCqtq.js → index-E9T-y2Yz.js} +3 -3
- package/lib/{index-Buoc0ISP.js → index-FlmXAW0Z.js} +60 -58
- package/lib/index-NqqOvc6V.js +169 -0
- package/lib/{index-BkdiXCRY.js → index-ObKRNOmJ.js} +6 -7
- package/lib/index-bOWjoplU.js +448 -0
- package/lib/{index-CXQ258ID.js → index-buU8mDzi.js} +15 -16
- package/lib/{index-tbhuYbb0.js → index-mGKAWDJZ.js} +11 -12
- package/lib/index.es.js +4 -4
- package/lib/index.umd.js +46 -40
- package/lib/{layer-setting-panel-VvDSQ-cn.js → layer-setting-panel-BGPj32nP.js} +2 -2
- package/lib/{line-show-Bp4G-LqO.js → line-show-DUn1bu_P.js} +1 -1
- package/lib/{multi-layout-config-drSy7ezf.js → multi-layout-config-BTWxJeuc.js} +7 -8
- package/lib/{multiline-text-D89kYrA2.js → multiline-text-CPJdCWJ7.js} +1 -1
- package/lib/{navigation-YAGxZ0OT.js → navigation-ZLJaBOUj.js} +1 -1
- package/lib/page-config-CHP07Ndf.js +253 -0
- package/lib/{page-tabs-wFeNBY4c.js → page-tabs-CKLhgrip.js} +45 -41
- package/lib/{plus-3mdO6yXY.js → plus-xgpQU22I.js} +1 -1
- package/lib/raf-CJog_tcv.js +6 -0
- package/lib/refs-DZMysoBI.js +8 -0
- package/lib/{requestOld-DRcjsmRQ.js → requestOld-CaGzCXrV.js} +97 -96
- package/lib/{schema-BsnIOGBI.js → schema-BaFWGeFt.js} +1 -1
- package/lib/{schema-_APJMUW3.js → schema-CUR-UK2S.js} +44 -41
- package/lib/{schema-BavJE-SK.js → schema-WUk7XVq7.js} +58 -54
- package/lib/{schema-qKI1F8Bt.js → schema-geZfujv8.js} +1 -1
- package/lib/{schema-BflqDw-a.js → schema-iosjRxCC.js} +1 -1
- package/lib/{schema-Bo30dbBx.js → schema-tuPllxn6.js} +1 -1
- package/lib/scroll-CWfl60Tu.js +58 -0
- package/lib/{setting-panel-BgzN3BUP.js → setting-panel-0qLcwYyT.js} +154 -151
- package/lib/{show-C4AeWlKj.js → show-BCwE3hGY.js} +1 -1
- package/lib/{stepper-D5EFeJWG.js → stepper-Bud1Jppr.js} +1 -1
- package/lib/strings-BvUQWzDM.js +6 -0
- package/lib/style.css +1 -1
- package/lib/{switch-B0dR4LM_.js → switch-VlaUmSpJ.js} +1 -1
- package/lib/{unlock-Cq9PLhBA.js → unlock-B2FVPQlm.js} +1 -1
- package/lib/{use-env-url-BM9dgwx_.js → use-env-url-D1p8ib2L.js} +1 -1
- package/lib/use-global-config-D_yoqf3Q.js +90 -0
- package/lib/validator-BOXH2OMA.js +5 -0
- package/lib/{vnode-B_Dj8zxu.js → vnode-Bxs1g06p.js} +1 -1
- package/package.json +1 -1
- package/lib/atlas-DsmLq2V0.js +0 -38
- package/lib/el-overlay-BK0_UIU6.js +0 -704
- package/lib/index-B1yAU2Cb.js +0 -390
- package/lib/index-BCFXuK7k.js +0 -68
- package/lib/index-BD4Jwo8Z.js +0 -449
- package/lib/index-BMWqf88L.js +0 -356
- package/lib/index-Belsn8kt.js +0 -107
- package/lib/index-CIADz1i0.js +0 -8494
- package/lib/index-DKTrbqcA.js +0 -56
- package/lib/index-Ge_d2xqD.js +0 -127
- package/lib/page-config-Cmsi8Vpr.js +0 -582
- package/lib/strings-_mHAdgA4.js +0 -6
- package/lib/use-global-config-CflpFoxU.js +0 -115
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { createElementBlock as l, openBlock as o, createElementVNode as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { createElementBlock as l, openBlock as o, createElementVNode as s, defineComponent as V, mergeModels as _, useModel as w, resolveComponent as E, Fragment as r, createVNode as d, unref as v, withCtx as h, renderList as i, normalizeStyle as g, withModifiers as L } from "vue";
|
|
2
|
+
import { _ as M, ap as x, U as B } from "./index-B8QqTLfg.js";
|
|
3
|
+
import { I as $ } from "./plus-xgpQU22I.js";
|
|
4
|
+
import { E as D } from "./index-NqqOvc6V.js";
|
|
5
5
|
const S = [
|
|
6
6
|
["#00baff", "#3de7c9", "#fff", "#ffc530", "#469f4b"],
|
|
7
7
|
["#37a2da", "#32c5e9", "#67e0e3", "#9fe6b8", "#ffdb5c", "#ff9f7f", "#fb7293", "#e062ae", "#e690d1", "#e7bcf3", "#9d96f5", "#8378ea", "#96bfff"],
|
|
@@ -18,17 +18,17 @@ const S = [
|
|
|
18
18
|
};
|
|
19
19
|
function A(f, u) {
|
|
20
20
|
return o(), l("svg", U, [...u[0] || (u[0] = [
|
|
21
|
-
|
|
21
|
+
s("path", {
|
|
22
22
|
d: "M832.990625 494.253125",
|
|
23
23
|
"p-id": "3990"
|
|
24
24
|
}, null, -1),
|
|
25
|
-
|
|
25
|
+
s("path", {
|
|
26
26
|
d: "M567.659375 510.678125L894.134375 185.6375c15.440625-15.384375 15.525-40.275 0.16875-55.74375-15.384375-15.496875-40.246875-15.525-55.6875-0.16875L512.028125 454.821875 188.309375 129.865625C173.009375 114.48125 148.0625 114.425 132.65 129.78125 117.2375 145.165625 117.209375 170.1125 132.565625 185.553125l323.634375 324.871875L129.865625 835.26875c-15.440625 15.384375-15.525 40.275-0.16875 55.74375 7.678125 7.734375 17.803125 11.615625 27.928125 11.615625 10.040625 0 20.08125-3.825 27.759375-11.475l326.390625-324.928125 326.671875 327.909375C846.153125 901.896875 856.25 905.75 866.346875 905.75c10.06875 0 20.1375-3.853125 27.815625-11.503125 15.384375-15.384375 15.440625-40.275 0.084375-55.715625L567.659375 510.678125 567.659375 510.678125zM567.659375 510.678125",
|
|
27
27
|
"p-id": "3991"
|
|
28
28
|
}, null, -1)
|
|
29
29
|
])]);
|
|
30
30
|
}
|
|
31
|
-
const I = /* @__PURE__ */
|
|
31
|
+
const I = /* @__PURE__ */ M(T, [["render", A]]), N = { class: "g-datav-theme-tag no-padding" }, P = ["onClick"], z = { class: "edit-picker-color" }, F = { class: "color-add" }, H = /* @__PURE__ */ V({
|
|
32
32
|
__name: "index",
|
|
33
33
|
props: /* @__PURE__ */ _({
|
|
34
34
|
label: {
|
|
@@ -50,30 +50,30 @@ const I = /* @__PURE__ */ x(T, [["render", A]]), N = { class: "g-datav-theme-tag
|
|
|
50
50
|
},
|
|
51
51
|
modelModifiers: {}
|
|
52
52
|
}),
|
|
53
|
-
emits: /* @__PURE__ */ _([
|
|
53
|
+
emits: /* @__PURE__ */ _([B], ["update:modelValue"]),
|
|
54
54
|
setup(f, { emit: u }) {
|
|
55
|
-
const p =
|
|
55
|
+
const p = x(S), e = w(f, "modelValue");
|
|
56
56
|
e.value = e.value.length ? e.value : p[0];
|
|
57
|
-
function k(
|
|
58
|
-
e.value =
|
|
57
|
+
function k(c) {
|
|
58
|
+
e.value = c;
|
|
59
59
|
}
|
|
60
|
-
function C(
|
|
61
|
-
e.value.splice(
|
|
60
|
+
function C(c) {
|
|
61
|
+
e.value.splice(c, 1);
|
|
62
62
|
}
|
|
63
63
|
function b() {
|
|
64
64
|
e.value.push("#fff");
|
|
65
65
|
}
|
|
66
|
-
return (
|
|
67
|
-
const y =
|
|
66
|
+
return (c, m) => {
|
|
67
|
+
const y = E("g-color-picker");
|
|
68
68
|
return o(), l(r, null, [
|
|
69
|
-
d(v(
|
|
69
|
+
d(v(D), {
|
|
70
70
|
trigger: "click",
|
|
71
71
|
placement: "bottom",
|
|
72
72
|
"show-arrow": !1,
|
|
73
73
|
"popper-class": "g-datav-theme-popover"
|
|
74
74
|
}, {
|
|
75
75
|
reference: h(() => [
|
|
76
|
-
|
|
76
|
+
s("div", N, [
|
|
77
77
|
(o(!0), l(r, null, i(e.value, (t) => (o(), l("span", {
|
|
78
78
|
key: t,
|
|
79
79
|
style: g({ backgroundColor: t })
|
|
@@ -81,35 +81,35 @@ const I = /* @__PURE__ */ x(T, [["render", A]]), N = { class: "g-datav-theme-tag
|
|
|
81
81
|
])
|
|
82
82
|
]),
|
|
83
83
|
default: h(() => [
|
|
84
|
-
(o(!0), l(r, null, i(v(p), (t,
|
|
85
|
-
key:
|
|
84
|
+
(o(!0), l(r, null, i(v(p), (t, a) => (o(), l("div", {
|
|
85
|
+
key: a,
|
|
86
86
|
class: "g-datav-theme-tag",
|
|
87
|
-
onClick: (
|
|
87
|
+
onClick: (n) => k(t)
|
|
88
88
|
}, [
|
|
89
|
-
(o(!0), l(r, null, i(t, (
|
|
90
|
-
key:
|
|
91
|
-
style: g({ backgroundColor:
|
|
89
|
+
(o(!0), l(r, null, i(t, (n) => (o(), l("span", {
|
|
90
|
+
key: n,
|
|
91
|
+
style: g({ backgroundColor: n })
|
|
92
92
|
}, null, 4))), 128))
|
|
93
93
|
], 8, P))), 128))
|
|
94
94
|
]),
|
|
95
95
|
_: 1
|
|
96
96
|
}),
|
|
97
|
-
|
|
98
|
-
(o(!0), l(r, null, i(e.value, (t,
|
|
99
|
-
key:
|
|
97
|
+
s("div", z, [
|
|
98
|
+
(o(!0), l(r, null, i(e.value, (t, a) => (o(), l("div", {
|
|
99
|
+
key: a,
|
|
100
100
|
class: "color-item"
|
|
101
101
|
}, [
|
|
102
102
|
d(y, {
|
|
103
|
-
modelValue: e.value[
|
|
104
|
-
"onUpdate:modelValue": (
|
|
103
|
+
modelValue: e.value[a],
|
|
104
|
+
"onUpdate:modelValue": (n) => e.value[a] = n,
|
|
105
105
|
"is-chart": ""
|
|
106
106
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
107
107
|
d(I, {
|
|
108
|
-
onClick:
|
|
108
|
+
onClick: L((n) => C(a), ["stop"])
|
|
109
109
|
}, null, 8, ["onClick"])
|
|
110
110
|
]))), 128)),
|
|
111
|
-
|
|
112
|
-
d(
|
|
111
|
+
s("div", F, [
|
|
112
|
+
d($, {
|
|
113
113
|
onClick: m[0] || (m[0] = (t) => b())
|
|
114
114
|
})
|
|
115
115
|
])
|
|
@@ -119,5 +119,5 @@ const I = /* @__PURE__ */ x(T, [["render", A]]), N = { class: "g-datav-theme-tag
|
|
|
119
119
|
}
|
|
120
120
|
});
|
|
121
121
|
export {
|
|
122
|
-
|
|
122
|
+
H as default
|
|
123
123
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as o, createBlock as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as o, createBlock as a, openBlock as n, unref as l, withCtx as t, createTextVNode as c, toDisplayString as i, renderSlot as f } from "vue";
|
|
2
|
+
import { E as p } from "./index-NqqOvc6V.js";
|
|
3
3
|
const s = /* @__PURE__ */ o({
|
|
4
4
|
__name: "index",
|
|
5
5
|
props: {
|
|
@@ -18,7 +18,7 @@ const s = /* @__PURE__ */ o({
|
|
|
18
18
|
content: String
|
|
19
19
|
},
|
|
20
20
|
setup(e) {
|
|
21
|
-
return (r, g) => (
|
|
21
|
+
return (r, g) => (n(), a(l(p), {
|
|
22
22
|
placement: e.placement,
|
|
23
23
|
trigger: e.trigger,
|
|
24
24
|
"show-after": e.delay,
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { _ as z, a as V, u as D,
|
|
2
|
-
|
|
3
|
-
import { E as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as fe } from "./ScreenPreview-CV95NWOd.js";
|
|
1
|
+
import { _ as z, a as V, u as D, d as ne, k as se, E as re } from "./index-B8QqTLfg.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import { E as ae } from "./el-link-Dq721Q7-.js";
|
|
4
|
+
import { mapActions as ie, mapState as L } from "pinia";
|
|
5
|
+
import { createElementBlock as q, openBlock as R, createElementVNode as m, defineComponent as le, resolveComponent as x, createVNode as p, toDisplayString as ce, withCtx as y, createTextVNode as j } from "vue";
|
|
6
|
+
import { u as de } from "./cache-DbHSDjJy.js";
|
|
7
|
+
import { u as pe } from "./ScreenPreview-yUHo60be.js";
|
|
9
8
|
import { P as _, u as J } from "./toolbar-Dhf_BVAU.js";
|
|
9
|
+
import { E as fe } from "./index-bOWjoplU.js";
|
|
10
|
+
import { E as H } from "./index-CC28_8Jl.js";
|
|
11
|
+
import { E as ue } from "./index-CJjljoJG.js";
|
|
10
12
|
const F = typeof navigator < "u" ? navigator.userAgent.toLowerCase().indexOf("firefox") > 0 : !1;
|
|
11
13
|
function N(e, t, o, n) {
|
|
12
14
|
e.addEventListener ? e.addEventListener(t, o, n) : e.attachEvent && e.attachEvent(`on${t}`, o);
|
|
@@ -132,10 +134,10 @@ const Q = {
|
|
|
132
134
|
}, d = {};
|
|
133
135
|
for (let e = 1; e < 20; e++)
|
|
134
136
|
Q[`f${e}`] = 111 + e;
|
|
135
|
-
let
|
|
137
|
+
let l = [], I = null, $ = "all";
|
|
136
138
|
const v = /* @__PURE__ */ new Map(), b = (e) => Q[e.toLowerCase()] || k[e.toLowerCase()] || e.toUpperCase().charCodeAt(0), ge = (e) => Object.keys(Q).find((t) => Q[t] === e), ye = (e) => Object.keys(k).find((t) => k[t] === e), ee = (e) => {
|
|
137
139
|
$ = e || "all";
|
|
138
|
-
}, U = () => $ || "all", me = () =>
|
|
140
|
+
}, U = () => $ || "all", me = () => l.slice(0), Ae = () => l.map(
|
|
139
141
|
(e) => ge(e) || ye(e) || String.fromCharCode(e)
|
|
140
142
|
), Ce = () => {
|
|
141
143
|
const e = [];
|
|
@@ -145,7 +147,7 @@ const v = /* @__PURE__ */ new Map(), b = (e) => Q[e.toLowerCase()] || k[e.toLowe
|
|
|
145
147
|
scope: n,
|
|
146
148
|
shortcut: a,
|
|
147
149
|
mods: s,
|
|
148
|
-
keys: o.split("+").map((
|
|
150
|
+
keys: o.split("+").map((f) => b(f))
|
|
149
151
|
});
|
|
150
152
|
});
|
|
151
153
|
}), e;
|
|
@@ -163,7 +165,7 @@ const v = /* @__PURE__ */ new Map(), b = (e) => Q[e.toLowerCase()] || k[e.toLowe
|
|
|
163
165
|
"color"
|
|
164
166
|
].includes(t.type);
|
|
165
167
|
return (t.isContentEditable || (s || o === "TEXTAREA" || o === "SELECT") && !t.readOnly) && (n = !1), n;
|
|
166
|
-
}, we = (e) => (typeof e == "string" && (e = b(e)),
|
|
168
|
+
}, we = (e) => (typeof e == "string" && (e = b(e)), l.indexOf(e) !== -1), ke = (e, t) => {
|
|
167
169
|
let o, n;
|
|
168
170
|
e || (e = U());
|
|
169
171
|
for (const s in d)
|
|
@@ -175,8 +177,8 @@ const v = /* @__PURE__ */ new Map(), b = (e) => Q[e.toLowerCase()] || k[e.toLowe
|
|
|
175
177
|
function ve(e) {
|
|
176
178
|
let t = X(e);
|
|
177
179
|
e.key && e.key.toLowerCase() === "capslock" && (t = b(e.key));
|
|
178
|
-
const o =
|
|
179
|
-
if (o >= 0 &&
|
|
180
|
+
const o = l.indexOf(t);
|
|
181
|
+
if (o >= 0 && l.splice(o, 1), e.key && e.key.toLowerCase() === "meta" && l.splice(0, l.length), (t === 93 || t === 224) && (t = 91), t in h) {
|
|
180
182
|
h[t] = !1;
|
|
181
183
|
for (const n in k)
|
|
182
184
|
k[n] === t && (E[n] = !1);
|
|
@@ -209,14 +211,14 @@ const oe = (e, ...t) => {
|
|
|
209
211
|
splitKey: n = "+"
|
|
210
212
|
}) => {
|
|
211
213
|
Z(e).forEach((s) => {
|
|
212
|
-
const a = s.split(n),
|
|
214
|
+
const a = s.split(n), f = a.length, r = a[f - 1], c = r === "*" ? "*" : b(r);
|
|
213
215
|
if (!d[c]) return;
|
|
214
216
|
t || (t = U());
|
|
215
|
-
const g =
|
|
216
|
-
d[c] = d[c].filter((
|
|
217
|
-
const w = (o ?
|
|
218
|
-
return w && C.push(
|
|
219
|
-
}), C.forEach((
|
|
217
|
+
const g = f > 1 ? G(k, a) : [], C = [];
|
|
218
|
+
d[c] = d[c].filter((u) => {
|
|
219
|
+
const w = (o ? u.method === o : !0) && u.scope === t && he(u.mods, g);
|
|
220
|
+
return w && C.push(u.element), !w;
|
|
221
|
+
}), C.forEach((u) => T(u));
|
|
220
222
|
});
|
|
221
223
|
};
|
|
222
224
|
function W(e, t, o, n) {
|
|
@@ -227,16 +229,16 @@ function W(e, t, o, n) {
|
|
|
227
229
|
s = t.mods.length > 0;
|
|
228
230
|
for (const a in h)
|
|
229
231
|
Object.prototype.hasOwnProperty.call(h, a) && (!h[a] && t.mods.indexOf(+a) > -1 || h[a] && t.mods.indexOf(+a) === -1) && (s = !1);
|
|
230
|
-
(t.mods.length === 0 && !h[16] && !h[18] && !h[17] && !h[91] || s || t.shortcut === "*") && (t.keys = [], t.keys = t.keys.concat(
|
|
232
|
+
(t.mods.length === 0 && !h[16] && !h[18] && !h[17] && !h[91] || s || t.shortcut === "*") && (t.keys = [], t.keys = t.keys.concat(l), t.method(e, t) === !1 && (e.preventDefault ? e.preventDefault() : e.returnValue = !1, e.stopPropagation && e.stopPropagation(), e.cancelBubble && (e.cancelBubble = !0)));
|
|
231
233
|
}
|
|
232
234
|
}
|
|
233
235
|
function Y(e, t) {
|
|
234
236
|
const o = d["*"];
|
|
235
237
|
let n = X(e);
|
|
236
238
|
if (e.key && e.key.toLowerCase() === "capslock" || !(E.filter || te).call(this, e)) return;
|
|
237
|
-
if ((n === 93 || n === 224) && (n = 91),
|
|
239
|
+
if ((n === 93 || n === 224) && (n = 91), l.indexOf(n) === -1 && n !== 229 && l.push(n), ["metaKey", "ctrlKey", "altKey", "shiftKey"].forEach((r) => {
|
|
238
240
|
const c = P[r];
|
|
239
|
-
e[r] &&
|
|
241
|
+
e[r] && l.indexOf(c) === -1 ? l.push(c) : !e[r] && l.indexOf(c) > -1 ? l.splice(l.indexOf(c), 1) : r === "metaKey" && e[r] && (l = l.filter((g) => g in P || g === n));
|
|
240
242
|
}), n in h) {
|
|
241
243
|
h[n] = !0;
|
|
242
244
|
for (const r in k)
|
|
@@ -248,33 +250,33 @@ function Y(e, t) {
|
|
|
248
250
|
}
|
|
249
251
|
for (const r in h)
|
|
250
252
|
Object.prototype.hasOwnProperty.call(h, r) && (h[r] = e[P[r]]);
|
|
251
|
-
e.getModifierState && !(e.altKey && !e.ctrlKey) && e.getModifierState("AltGraph") && (
|
|
253
|
+
e.getModifierState && !(e.altKey && !e.ctrlKey) && e.getModifierState("AltGraph") && (l.indexOf(17) === -1 && l.push(17), l.indexOf(18) === -1 && l.push(18), h[17] = !0, h[18] = !0);
|
|
252
254
|
const s = U();
|
|
253
255
|
if (o)
|
|
254
256
|
for (let r = 0; r < o.length; r++)
|
|
255
257
|
o[r].scope === s && (e.type === "keydown" && o[r].keydown || e.type === "keyup" && o[r].keyup) && W(e, o[r], s, t);
|
|
256
258
|
if (!(n in d)) return;
|
|
257
|
-
const a = d[n],
|
|
258
|
-
for (let r = 0; r <
|
|
259
|
+
const a = d[n], f = a.length;
|
|
260
|
+
for (let r = 0; r < f; r++)
|
|
259
261
|
if ((e.type === "keydown" && a[r].keydown || e.type === "keyup" && a[r].keyup) && a[r].key) {
|
|
260
|
-
const c = a[r], { splitKey: g } = c, C = c.key.split(g),
|
|
262
|
+
const c = a[r], { splitKey: g } = c, C = c.key.split(g), u = [];
|
|
261
263
|
for (let w = 0; w < C.length; w++)
|
|
262
|
-
|
|
263
|
-
|
|
264
|
+
u.push(b(C[w]));
|
|
265
|
+
u.sort().join("") === l.sort().join("") && W(e, c, s, t);
|
|
264
266
|
}
|
|
265
267
|
}
|
|
266
268
|
const E = function(e, t, o) {
|
|
267
|
-
|
|
269
|
+
l = [];
|
|
268
270
|
const n = Z(e);
|
|
269
|
-
let s = [], a = "all",
|
|
271
|
+
let s = [], a = "all", f = document, r = 0, c = !1, g = !0, C = "+", u = !1, w = !1;
|
|
270
272
|
if (o === void 0 && typeof t == "function" && (o = t), Object.prototype.toString.call(t) === "[object Object]") {
|
|
271
|
-
const
|
|
272
|
-
|
|
273
|
+
const i = t;
|
|
274
|
+
i.scope && (a = i.scope), i.element && (f = i.element), i.keyup && (c = i.keyup), i.keydown !== void 0 && (g = i.keydown), i.capture !== void 0 && (u = i.capture), typeof i.splitKey == "string" && (C = i.splitKey), i.single === !0 && (w = !0);
|
|
273
275
|
}
|
|
274
276
|
for (typeof t == "string" && (a = t), w && oe(e, a); r < n.length; r++) {
|
|
275
|
-
const
|
|
276
|
-
s = [],
|
|
277
|
-
let A =
|
|
277
|
+
const i = n[r].split(C);
|
|
278
|
+
s = [], i.length > 1 && (s = G(k, i));
|
|
279
|
+
let A = i[i.length - 1];
|
|
278
280
|
A = A === "*" ? "*" : b(A), A in d || (d[A] = []), d[A].push({
|
|
279
281
|
keyup: c,
|
|
280
282
|
keydown: g,
|
|
@@ -284,21 +286,21 @@ const E = function(e, t, o) {
|
|
|
284
286
|
method: o,
|
|
285
287
|
key: n[r],
|
|
286
288
|
splitKey: C,
|
|
287
|
-
element:
|
|
289
|
+
element: f
|
|
288
290
|
});
|
|
289
291
|
}
|
|
290
|
-
if (typeof
|
|
291
|
-
if (!v.has(
|
|
292
|
-
const
|
|
293
|
-
Y(S,
|
|
292
|
+
if (typeof f < "u" && typeof window < "u") {
|
|
293
|
+
if (!v.has(f)) {
|
|
294
|
+
const i = (S = window.event) => Y(S, f), A = (S = window.event) => {
|
|
295
|
+
Y(S, f), ve(S);
|
|
294
296
|
};
|
|
295
|
-
v.set(
|
|
297
|
+
v.set(f, { keydownListener: i, keyupListenr: A, capture: u }), N(f, "keydown", i, u), N(f, "keyup", A, u);
|
|
296
298
|
}
|
|
297
299
|
if (!I) {
|
|
298
|
-
const
|
|
299
|
-
|
|
300
|
+
const i = () => {
|
|
301
|
+
l = [];
|
|
300
302
|
};
|
|
301
|
-
I = { listener:
|
|
303
|
+
I = { listener: i, capture: u }, N(window, "focus", i, u);
|
|
302
304
|
}
|
|
303
305
|
}
|
|
304
306
|
};
|
|
@@ -392,7 +394,7 @@ function Ie(e, t) {
|
|
|
392
394
|
}, null, -1)
|
|
393
395
|
])]);
|
|
394
396
|
}
|
|
395
|
-
const Qe = /* @__PURE__ */ z(Oe, [["render", Ie]]), Ue =
|
|
397
|
+
const Qe = /* @__PURE__ */ z(Oe, [["render", Ie]]), Ue = le({
|
|
396
398
|
name: "HeaderToolber",
|
|
397
399
|
components: {
|
|
398
400
|
IconRpanel: Qe,
|
|
@@ -416,7 +418,7 @@ const Qe = /* @__PURE__ */ z(Oe, [["render", Ie]]), Ue = de({
|
|
|
416
418
|
},
|
|
417
419
|
computed: {
|
|
418
420
|
...L(J, ["layer", "components", "config", "toolbox", "filter"]),
|
|
419
|
-
...L(
|
|
421
|
+
...L(pe, ["dataFilters"]),
|
|
420
422
|
...L(V, ["coms", "subComs"]),
|
|
421
423
|
...L(D, ["screen", "pageConfig"])
|
|
422
424
|
},
|
|
@@ -430,7 +432,7 @@ const Qe = /* @__PURE__ */ z(Oe, [["render", Ie]]), Ue = de({
|
|
|
430
432
|
}
|
|
431
433
|
},
|
|
432
434
|
mounted() {
|
|
433
|
-
const e =
|
|
435
|
+
const e = de(), t = V();
|
|
434
436
|
E("ctrl+s,ctrl+z,ctrl+y,del,ctrl+c,ctrl+v", (o, n) => {
|
|
435
437
|
const s = t.selectedComs;
|
|
436
438
|
switch (n.key) {
|
|
@@ -453,7 +455,7 @@ const Qe = /* @__PURE__ */ z(Oe, [["render", Ie]]), Ue = de({
|
|
|
453
455
|
case "del": {
|
|
454
456
|
if (s.length === 0)
|
|
455
457
|
return;
|
|
456
|
-
const a = s.map((
|
|
458
|
+
const a = s.map((f) => f.alias);
|
|
457
459
|
H.confirm(`删除后无法恢复,是否删除${a.join(",")},共${a.length}个组件`, "确认删除", {
|
|
458
460
|
confirmButtonText: "确定",
|
|
459
461
|
cancelButtonText: "取消",
|
|
@@ -482,7 +484,7 @@ const Qe = /* @__PURE__ */ z(Oe, [["render", Ie]]), Ue = de({
|
|
|
482
484
|
submitScale(e) {
|
|
483
485
|
e === "max" ? this.scale += 2 : this.scale -= 2, this.editorStore.setCanvasScale(this.scale, this.toolbarStore.getPanelOffset.x, this.toolbarStore.getPanelOffset.y);
|
|
484
486
|
},
|
|
485
|
-
...
|
|
487
|
+
...ie(J, ["setPanelState", "setFilterState", "addLoading", "removeLoading"]),
|
|
486
488
|
changeLayerPanel() {
|
|
487
489
|
this.setPanelState(_.layer, !this.layer.show);
|
|
488
490
|
},
|
|
@@ -532,7 +534,7 @@ const Qe = /* @__PURE__ */ z(Oe, [["render", Ie]]), Ue = de({
|
|
|
532
534
|
data: n
|
|
533
535
|
});
|
|
534
536
|
} catch (t) {
|
|
535
|
-
|
|
537
|
+
fe.error(`保存失败:${t}`);
|
|
536
538
|
} finally {
|
|
537
539
|
this.removeLoading();
|
|
538
540
|
}
|
|
@@ -560,11 +562,11 @@ const Qe = /* @__PURE__ */ z(Oe, [["render", Ie]]), Ue = de({
|
|
|
560
562
|
}
|
|
561
563
|
}), Le = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAA89JREFUaEPtWEtS20AQ7R6lgKWzj1yyyQK5srBvYJ8AcwN8gsAJCCewcwLICYATwA3wImWzCFhlZx8tAxVPJ62PJbuCZkaSE6iytprp6df9+ovwyj985frDBsD/9uDGAxsPFLRAaRRy3n9oz+V8HwiaCFghAId1QyAfAH1CuiFJV29gZ+h5Q7+g3ovrhQA4zp4zF+IEidqxwmrF0AeES5Lyy3fv7kZ9PvtEbgDVeuMTEZ3E4hFwyFa2hHUFv6QPsOWF/35WAERFCmoTwT4AtBPz4bklt46LeMQYQGh17ANBN1AEWQl56nl3kcLZFnOcZkWKpyMi+AhAFQTwBFFH9/6qdCMArLxEvGa68MOSqJeXBpGsCwJocoxYBB3PGw1NKaUNILAcPt7GyhexWqwky5yLpz4QHYYgZMvUE9oA7Jp7zfxFgKGg7U4R3q5auVp3+0RwlIdOWgCqdZc528/zgC4lqjWXvdvkmJo9jHq695QAAjfj04QDjog6eTmvUigdX5ZldbxvX7VSrBJAKl3ezCbjjkqRIv/t3cYhSDr7Q1Xtt5QA7Frjx7qtnwZdrbkTThQWYUsnK2UCeOfstRHxmovUdDJqFbGu7l273jjjrIQIx9OH8UB1LxOAXXe5YB0BwmD2MD5WCSvjv73rdkHChS6NsgFEqRMEHMzux5dlKKiSESaNxx98bjYZKymeeSDhI9VMC4xK0az/cdxZtP1WVW8UHggDWCWIixxG7bNacfQFQS8rQKu1xi0BNXUCWUUhUrky3WKolQ9PqPJ8aQB0KcQgwrZZ59vxVbTQfTdohrO5GPY/KovpqG1yxq65Ss/H8hRp1Cwnmyj53FnT2pMNwDAnlwHAtPZkAkjnZIv+TSo1bV2UhSIu7aZtbh5vxFWY2/bpZFzTkaEEEMzAiJMg/a3RC0vpWGBvdj86LwUAC1k0WMEAvt1SpUGdh1fPpKcyXesr02j8yNI8jDCYltzYxRNfnrlYSaEEBFNJ3AarkBJBLO2XiHoz706LOlp1YNXNtuN2AfEs2ucMBdFBkSYvpk34zpq3EoknGk2JxPschx9FhM9Cbg1M4oJHR5R0spAB5PFAn2dpoE2htDei+sBDR7Qm5H0nnWctb+PlLxJ0k8VvuJUD2PElPvLCzBhELgAxmKjs83402XdGdIi30sE8vdJqs6VJ4Gk6VUaJwhhEIQBLtPrb8jbltvTy97mVSR4QpQBYDfakvRYVAOmbBLopiLUAyFPIVmMsiYnsjciLBMBgFotfHu4zVo0vFoCuFzcAdC21rnMbD6zLsrpyX70HfgMYpmNPJYxpcQAAAABJRU5ErkJggg==", _e = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAABA5JREFUaEPtWE1SGkEUfq/HUpdkL9SAWThUFnCAVMEJxBvICaInMJ4AcgLNCdQTaFUOIIsUuIgyBe6dZbSkX/LmxxkIme6ewb8qWNLT3e9773s//SG88x++c/thCeC1I7iMwDICOT2wMArZHz81JnKyDQQ1BCwQgM22IZAHgB4hXZCksxVY77luz8tp99P2XABse8ueCHGARI3IYLVh6AHCKUn5/da9ulB/n/5FZgClSvUrER1ExyNgj71sCesMHqUHsOoGa78LAKIgBTWIYBsAGrH78NiSq/t5ImIMIPA6doCg5RuCbIQ8dN2r0OB0j9l2rSDFwx4RfAGgAgK4gqipu3/2dCMAbLxEPGe68MWSqJ2VBuFZJwRQ4xyxCJqu2++ZUkobgO85vL+MjM/jtchIPnMiHjpAtBuAkHXTSGgDKJadc+YvAvQErTXz8HbWy6WK0yGCvSx00gJQqjjM2U6WC3QpUSo7HN0a59T4pt/W3acE4IcZH4accETUzMp5lUHJ/LIsq+n++qlVYpUAEuXyYjwcNFWGJNcZvAnVipvVXZB09Jeq2ncpARTL1bss3uecQQBb0FrdBESp7Ay5UFiEdZ2qlApgw95qIOI5N6nRsF838X5sCJVNKkuxUj3iqoQI+6ObQVd1ZyqAYsXhhrUHCN3xzWBfdVhyPTOATacFEk50aZQOICydIGBnfD04fQkAQdG4v+O7xsOBkuKpH2T1Il+eZ2+UdxatfVDljyICQQKrDooSNhkhQtgAghVAvEWix3gNPUHQTkvQUrl6SUA1nURWUYhUoUyOGLoUU9X5hQHQpQGDCMbm+DcR4gcQbSCKz0JObuOVdU9FC917/WE4zWvR/KPy2LwzTIyY3V8sO8rIR3sUZdSsJi+ijJr2nnQAhjV5EQBMe08qgGRNtsiso8aJqC6FSeCmo4uyUUSt3XTMte1qDVZEQXeqZBDFMOI8to+Gg7JOVVMC8N/AiEM+zDQKOgZE30yVY4Ht8XX/WGe/EoDvmWjA8h/gZtOljhF+5068ynS9ryyj87yDCN2R4WCnAhG9+LK8i7UiwAYEVBKXvhSyQBBT+hJRe+xeaVFHqw/802BspwWIR6Ge0xNEOyaz/ux5EW2C/59ZlYjpVK1JJNZzbL4UEb4JudpVjQdTpXKzuouSDp7OAHL5QZ9FNNCmUNKAsD/woyOUCVnvpOM08TYSf5GgFQu/gSoHsO5JvGfBzBhEJgARmLDtsz4a650hHSJV2n9Ph0p1grcuCTxMlsqwjBqDyAVgilbzxNtE2JLi7/+aWxYQCwEwm5zxeC0KANIzSXRTEM8CQFX3VevTINIVkTcJIOg7ofDLj/sUqfHNAlBFKVMj0z30Jb9bRuAlvT3vrmUEXjsCfwAY/L5P7G6ZggAAAABJRU5ErkJggg==", Ke = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAYhJREFUWEftl41NwzAQhd/bgBHoBnQD2IBuQDeACYAJKBPQDWADugHdgIzQDQ49dIdcx23cP1VIPqlS4iS+z8++nxJnNp7ZPxpAUQEzuwTwCOAagK5rrQPwSnJW+0EPwJ1/7ug497cAMCG5GgIpAbwDuPUPNcHSlYi5tMqwCwD6yTSeqrUkOd4H4NsnkvMxyc7MYqwjOYpJzewOwJvfTx1CCwioOUmNb7SSAuZvL0je6LoWgOTczK4AaAurII4O4MCC+EqWvVGJkwA4RLo9GpqRfMj3ohZAq9GqZCOdC3fy5OGq26m2IHWQnZHiO7UAaWQoxASgPY5oWQPLIO4BvPjYB8lJ+rwWQOElFeJg5UoW5U2ipXew41kVgMutrKiQyzOjst7ztqRjZocDJKsRwC8ESW3HoB0VYNBb4YUG0BRoCvw7BXoNyT6xnyQuZVD1B7KqWqB0q1Iqi5bsEAYBhCllq4L+2ama0hKwKqhavLVGdVtbrhKqHmCXtrzkWE2takaxYLV/Rk2BHz0UJDBVFX6oAAAAAElFTkSuQmCC", Ve = { class: "datav-header" }, je = { class: "screen-info" }, Je = { class: "screen-top-left" }, Fe = { class: "datav-edit-header" }, Ne = { class: "editor-header-wp" }, Me = { class: "editor-config" }, ze = { class: "global-actions" };
|
|
562
564
|
function qe(e, t, o, n, s, a) {
|
|
563
|
-
const
|
|
565
|
+
const f = ne, r = x("IconLayer"), c = re, g = ae, C = se, u = x("IconRpanel"), w = x("ele-Delete"), i = x("ele-CloseBold"), A = ue, S = x("ele-VideoPlay");
|
|
564
566
|
return R(), q("div", Ve, [
|
|
565
567
|
m("div", je, [
|
|
566
|
-
m("span", null,
|
|
567
|
-
p(
|
|
568
|
+
m("span", null, ce(`${e.types === "template" ? "模版" : "节目"}制作 - `), 1),
|
|
569
|
+
p(f, {
|
|
568
570
|
modelValue: e.screen.name,
|
|
569
571
|
"onUpdate:modelValue": t[0] || (t[0] = (B) => e.screen.name = B)
|
|
570
572
|
}, null, 8, ["modelValue"])
|
|
@@ -598,7 +600,7 @@ function qe(e, t, o, n, s, a) {
|
|
|
598
600
|
default: y(() => [
|
|
599
601
|
p(c, null, {
|
|
600
602
|
default: y(() => [
|
|
601
|
-
p(
|
|
603
|
+
p(u)
|
|
602
604
|
]),
|
|
603
605
|
_: 1
|
|
604
606
|
})
|
|
@@ -660,7 +662,7 @@ function qe(e, t, o, n, s, a) {
|
|
|
660
662
|
default: y(() => [
|
|
661
663
|
p(c, null, {
|
|
662
664
|
default: y(() => [
|
|
663
|
-
p(
|
|
665
|
+
p(i)
|
|
664
666
|
]),
|
|
665
667
|
_: 1
|
|
666
668
|
}),
|
|
@@ -697,7 +699,7 @@ function qe(e, t, o, n, s, a) {
|
|
|
697
699
|
])
|
|
698
700
|
]);
|
|
699
701
|
}
|
|
700
|
-
const
|
|
702
|
+
const tt = /* @__PURE__ */ z(Ue, [["render", qe], ["__scopeId", "data-v-94ddfa21"]]);
|
|
701
703
|
export {
|
|
702
|
-
|
|
704
|
+
tt as default
|
|
703
705
|
};
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { defineComponent as A, computed as s, ref as R, unref as d, createBlock as U, openBlock as v, mergeProps as $, withCtx as c, renderSlot as b, createCommentVNode as m, createElementBlock as D, normalizeClass as K, toDisplayString as g, createTextVNode as V } from "vue";
|
|
2
|
+
import { ak as O, e as H, b0 as r, bv as f, g as I, h as L, v as z, k as F, w as j, bw as q } from "./index-B8QqTLfg.js";
|
|
3
|
+
import { d as u } from "./dropdown-CWvnuJsO.js";
|
|
4
|
+
const G = H({
|
|
5
|
+
trigger: f.trigger,
|
|
6
|
+
triggerKeys: f.triggerKeys,
|
|
7
|
+
placement: u.placement,
|
|
8
|
+
disabled: f.disabled,
|
|
9
|
+
visible: r.visible,
|
|
10
|
+
transition: r.transition,
|
|
11
|
+
popperOptions: u.popperOptions,
|
|
12
|
+
tabindex: u.tabindex,
|
|
13
|
+
content: r.content,
|
|
14
|
+
popperStyle: r.popperStyle,
|
|
15
|
+
popperClass: r.popperClass,
|
|
16
|
+
enterable: {
|
|
17
|
+
...r.enterable,
|
|
18
|
+
default: !0
|
|
19
|
+
},
|
|
20
|
+
effect: {
|
|
21
|
+
...r.effect,
|
|
22
|
+
default: "light"
|
|
23
|
+
},
|
|
24
|
+
teleported: r.teleported,
|
|
25
|
+
appendTo: r.appendTo,
|
|
26
|
+
title: String,
|
|
27
|
+
width: {
|
|
28
|
+
type: [String, Number],
|
|
29
|
+
default: 150
|
|
30
|
+
},
|
|
31
|
+
offset: {
|
|
32
|
+
type: Number,
|
|
33
|
+
default: void 0
|
|
34
|
+
},
|
|
35
|
+
showAfter: {
|
|
36
|
+
type: Number,
|
|
37
|
+
default: 0
|
|
38
|
+
},
|
|
39
|
+
hideAfter: {
|
|
40
|
+
type: Number,
|
|
41
|
+
default: 200
|
|
42
|
+
},
|
|
43
|
+
autoClose: {
|
|
44
|
+
type: Number,
|
|
45
|
+
default: 0
|
|
46
|
+
},
|
|
47
|
+
showArrow: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: !0
|
|
50
|
+
},
|
|
51
|
+
persistent: {
|
|
52
|
+
type: Boolean,
|
|
53
|
+
default: !0
|
|
54
|
+
},
|
|
55
|
+
"onUpdate:visible": {
|
|
56
|
+
type: Function
|
|
57
|
+
}
|
|
58
|
+
}), J = {
|
|
59
|
+
"update:visible": (t) => O(t),
|
|
60
|
+
"before-enter": () => !0,
|
|
61
|
+
"before-leave": () => !0,
|
|
62
|
+
"after-enter": () => !0,
|
|
63
|
+
"after-leave": () => !0
|
|
64
|
+
}, M = "onUpdate:visible", Q = A({
|
|
65
|
+
name: "ElPopover",
|
|
66
|
+
__name: "popover",
|
|
67
|
+
props: G,
|
|
68
|
+
emits: J,
|
|
69
|
+
setup(t, { expose: p, emit: a }) {
|
|
70
|
+
const o = t, n = a, w = s(() => o[M]), i = L("popover"), l = R(), y = s(() => {
|
|
71
|
+
var e;
|
|
72
|
+
return (e = d(l)) == null ? void 0 : e.popperRef;
|
|
73
|
+
}), k = s(() => [
|
|
74
|
+
{
|
|
75
|
+
width: z(o.width)
|
|
76
|
+
},
|
|
77
|
+
o.popperStyle
|
|
78
|
+
]), P = s(() => [i.b(), o.popperClass, { [i.m("plain")]: !!o.content }]), C = s(() => o.transition === `${i.namespace.value}-fade-in-linear`), E = () => {
|
|
79
|
+
var e;
|
|
80
|
+
(e = l.value) == null || e.hide();
|
|
81
|
+
}, S = () => {
|
|
82
|
+
n("before-enter");
|
|
83
|
+
}, B = () => {
|
|
84
|
+
n("before-leave");
|
|
85
|
+
}, N = () => {
|
|
86
|
+
n("after-enter");
|
|
87
|
+
}, T = () => {
|
|
88
|
+
n("update:visible", !1), n("after-leave");
|
|
89
|
+
};
|
|
90
|
+
return p({
|
|
91
|
+
popperRef: y,
|
|
92
|
+
hide: E
|
|
93
|
+
}), (e, _) => (v(), U(d(F), $({
|
|
94
|
+
ref_key: "tooltipRef",
|
|
95
|
+
ref: l
|
|
96
|
+
}, e.$attrs, {
|
|
97
|
+
trigger: e.trigger,
|
|
98
|
+
"trigger-keys": e.triggerKeys,
|
|
99
|
+
placement: e.placement,
|
|
100
|
+
disabled: e.disabled,
|
|
101
|
+
visible: e.visible,
|
|
102
|
+
transition: e.transition,
|
|
103
|
+
"popper-options": e.popperOptions,
|
|
104
|
+
tabindex: e.tabindex,
|
|
105
|
+
content: e.content,
|
|
106
|
+
offset: e.offset,
|
|
107
|
+
"show-after": e.showAfter,
|
|
108
|
+
"hide-after": e.hideAfter,
|
|
109
|
+
"auto-close": e.autoClose,
|
|
110
|
+
"show-arrow": e.showArrow,
|
|
111
|
+
"aria-label": e.title,
|
|
112
|
+
effect: e.effect,
|
|
113
|
+
enterable: e.enterable,
|
|
114
|
+
"popper-class": P.value,
|
|
115
|
+
"popper-style": k.value,
|
|
116
|
+
teleported: e.teleported,
|
|
117
|
+
"append-to": e.appendTo,
|
|
118
|
+
persistent: e.persistent,
|
|
119
|
+
"gpu-acceleration": C.value,
|
|
120
|
+
"onUpdate:visible": w.value,
|
|
121
|
+
onBeforeShow: S,
|
|
122
|
+
onBeforeHide: B,
|
|
123
|
+
onShow: N,
|
|
124
|
+
onHide: T
|
|
125
|
+
}), {
|
|
126
|
+
content: c(() => [
|
|
127
|
+
e.title ? (v(), D(
|
|
128
|
+
"div",
|
|
129
|
+
{
|
|
130
|
+
key: 0,
|
|
131
|
+
class: K(d(i).e("title")),
|
|
132
|
+
role: "title"
|
|
133
|
+
},
|
|
134
|
+
g(e.title),
|
|
135
|
+
3
|
|
136
|
+
)) : m("v-if", !0),
|
|
137
|
+
b(e.$slots, "default", {}, () => [
|
|
138
|
+
V(
|
|
139
|
+
g(e.content),
|
|
140
|
+
1
|
|
141
|
+
)
|
|
142
|
+
])
|
|
143
|
+
]),
|
|
144
|
+
default: c(() => [
|
|
145
|
+
e.$slots.reference ? b(e.$slots, "reference", { key: 0 }) : m("v-if", !0)
|
|
146
|
+
]),
|
|
147
|
+
_: 3
|
|
148
|
+
}, 16, ["trigger", "trigger-keys", "placement", "disabled", "visible", "transition", "popper-options", "tabindex", "content", "offset", "show-after", "hide-after", "auto-close", "show-arrow", "aria-label", "effect", "enterable", "popper-class", "popper-style", "teleported", "append-to", "persistent", "gpu-acceleration", "onUpdate:visible"]));
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
var W = /* @__PURE__ */ I(Q, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);
|
|
152
|
+
const h = (t, p) => {
|
|
153
|
+
const a = p.arg || p.value, o = a?.popperRef;
|
|
154
|
+
o && (o.triggerRef = t);
|
|
155
|
+
};
|
|
156
|
+
var X = {
|
|
157
|
+
mounted(t, p) {
|
|
158
|
+
h(t, p);
|
|
159
|
+
},
|
|
160
|
+
updated(t, p) {
|
|
161
|
+
h(t, p);
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
const Y = "popover", Z = q(X, Y), oe = j(W, {
|
|
165
|
+
directive: Z
|
|
166
|
+
});
|
|
167
|
+
export {
|
|
168
|
+
oe as E
|
|
169
|
+
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { defineComponent as d, createElementBlock as i, openBlock as l, normalizeClass as c, createVNode as x, createCommentVNode as y, unref as g, createSlots as
|
|
2
|
-
import {
|
|
3
|
-
import { U as u } from "./index-CZJriuFt.js";
|
|
1
|
+
import { defineComponent as d, createElementBlock as i, openBlock as l, normalizeClass as c, createVNode as x, createCommentVNode as y, unref as g, createSlots as b, withCtx as a, createTextVNode as m, toDisplayString as t } from "vue";
|
|
2
|
+
import { U as u, b as p } from "./index-B8QqTLfg.js";
|
|
4
3
|
const N = {
|
|
5
4
|
key: 0,
|
|
6
5
|
class: "g-input__caption"
|
|
7
|
-
},
|
|
6
|
+
}, V = /* @__PURE__ */ d({
|
|
8
7
|
__name: "index",
|
|
9
8
|
props: {
|
|
10
9
|
modelValue: {
|
|
@@ -53,7 +52,7 @@ const N = {
|
|
|
53
52
|
]]),
|
|
54
53
|
style: { "pointer-events": "auto" }
|
|
55
54
|
}, [
|
|
56
|
-
x(g(
|
|
55
|
+
x(g(p), {
|
|
57
56
|
"model-value": e.modelValue,
|
|
58
57
|
size: e.size,
|
|
59
58
|
min: e.min,
|
|
@@ -62,7 +61,7 @@ const N = {
|
|
|
62
61
|
placeholder: "",
|
|
63
62
|
"controls-position": "right",
|
|
64
63
|
onChange: r
|
|
65
|
-
},
|
|
64
|
+
}, b({ _: 2 }, [
|
|
66
65
|
e.suffix ? {
|
|
67
66
|
name: "suffix",
|
|
68
67
|
fn: a(() => [
|
|
@@ -83,5 +82,5 @@ const N = {
|
|
|
83
82
|
}
|
|
84
83
|
});
|
|
85
84
|
export {
|
|
86
|
-
|
|
85
|
+
V as default
|
|
87
86
|
};
|