bp-aicc-editor 1.0.0
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/LICENSE +21 -0
- package/README.EN.md +129 -0
- package/README.md +133 -0
- package/lib/accounting-BdNhlOvc.js +150 -0
- package/lib/arrow-right-ZYLcC6uE.js +24 -0
- package/lib/atlas-Dqnvg58g.js +27 -0
- package/lib/blueprint-7yYCtfFC.js +28 -0
- package/lib/border-box-BoVwKoLu.js +226 -0
- package/lib/browser_upgrade/chrome.png +0 -0
- package/lib/browser_upgrade/edge.png +0 -0
- package/lib/browser_upgrade/index.css +49 -0
- package/lib/btn-group-aVjYHP70.js +125 -0
- package/lib/btn-return-KOGYYoba.js +37 -0
- package/lib/button-base-CUvUtpPb.js +42 -0
- package/lib/cache-Cs2VtqJi.js +43 -0
- package/lib/capitalize-CJ7zhOsJ.js +46 -0
- package/lib/carousel-table-hn7W3uoD.js +163 -0
- package/lib/children-manager-CdxNQ6Oe.js +457 -0
- package/lib/circle-DdqdosvQ.js +10 -0
- package/lib/config-6kqKwjzS.js +783 -0
- package/lib/config-B1XQHD5S.js +110 -0
- package/lib/config-BqncRAOx.js +167 -0
- package/lib/config-CSUhHF5L.js +10 -0
- package/lib/config-CXGTRw74.js +743 -0
- package/lib/config-CjMfBTu9.js +75 -0
- package/lib/config-Cm22p_rY.js +40 -0
- package/lib/config-D3z2R85K.js +373 -0
- package/lib/config-D846M2Gv.js +813 -0
- package/lib/config-DHGpQmWe.js +695 -0
- package/lib/config-DJJlRxrQ.js +510 -0
- package/lib/config-DOtfpO43.js +64 -0
- package/lib/config-DS3NxQuJ.js +427 -0
- package/lib/config-DSw2PMKb.js +528 -0
- package/lib/config-DwVaqCyN.js +369 -0
- package/lib/config-Ec_zeOmT.js +10 -0
- package/lib/config-V6sABZH7.js +152 -0
- package/lib/config-XBAZDWTe.js +739 -0
- package/lib/config-ZZyCB-UG.js +210 -0
- package/lib/config-efyvf2nq.js +799 -0
- package/lib/context-Bl7hm9BN.js +5 -0
- package/lib/context-DXwgwPsi.js +5 -0
- package/lib/dashedLine-CJojzUDO.js +23 -0
- package/lib/data-CnP9NKXT.js +7 -0
- package/lib/data-field-DL4ZWkqD.js +17 -0
- package/lib/data-source-9Lgf-grI.js +78 -0
- package/lib/datav-BNctF3aF.js +89 -0
- package/lib/dater-BmOxJMnU.js +34 -0
- package/lib/db-rnJHM_q3.js +22 -0
- package/lib/decoration-ByPSHV8P.js +408 -0
- package/lib/delete-074QJWYN.js +112 -0
- package/lib/dialogBox-D3bwyGqh.js +21 -0
- package/lib/dialogSquare-C4KW-cRk.js +43 -0
- package/lib/dottedLine-CUbyTDpF.js +23 -0
- package/lib/doubleHeadedArrow-ph10_VNV.js +31 -0
- package/lib/ds-api-editor-uAArtQJI.js +115 -0
- package/lib/ds-global-editor-Cp80r2NN.js +121 -0
- package/lib/ds-sql-editor-ijeSFlXA.js +338 -0
- package/lib/ds-static-editor-CyEO_12Q.js +21592 -0
- package/lib/eightPointedStar-iyNwBma5.js +12 -0
- package/lib/empty-panel-C6Y6WgQ5.js +49 -0
- package/lib/event-DDj_G-ix.js +130 -0
- package/lib/favicon.svg +14 -0
- package/lib/filter-panel-BXIsc124.js +573 -0
- package/lib/fivePointedStar-CG-mQPKI.js +12 -0
- package/lib/fourPointedStar-Cjt9WMZi.js +12 -0
- package/lib/full-screen-By33Ud_D.js +34 -0
- package/lib/group-Bw2QYoqv.js +24 -0
- package/lib/heart-BS_j9yRq.js +4 -0
- package/lib/hexagon-BfE9vpeG.js +12 -0
- package/lib/hexagonalStar-CDF1zFRy.js +12 -0
- package/lib/icon/add.png +0 -0
- package/lib/icon/align-center.png +0 -0
- package/lib/icon/amplify.png +0 -0
- package/lib/icon/audio.png +0 -0
- package/lib/icon/bottomUp.png +0 -0
- package/lib/icon/carouselList.png +0 -0
- package/lib/icon/characters.png +0 -0
- package/lib/icon/delete.png +0 -0
- package/lib/icon/delete1.png +0 -0
- package/lib/icon/edit.png +0 -0
- package/lib/icon/file.png +0 -0
- package/lib/icon/graphic.png +0 -0
- package/lib/icon/icon/357/274/217/346/267/273/345/212/240 /347/231/275/350/211/262 1@2x.png +0 -0
- package/lib/icon/icon/357/274/217/346/267/273/345/212/240@2x.png +0 -0
- package/lib/icon/img.png +0 -0
- package/lib/icon/lock.png +0 -0
- package/lib/icon/multiline.png +0 -0
- package/lib/icon/navigate.png +0 -0
- package/lib/icon/next.png +0 -0
- package/lib/icon/pictureScrolling.png +0 -0
- package/lib/icon/previous.png +0 -0
- package/lib/icon/reduce.png +0 -0
- package/lib/icon/return.png +0 -0
- package/lib/icon/save.png +0 -0
- package/lib/icon/scBg.png +0 -0
- package/lib/icon/scrollText.png +0 -0
- package/lib/icon/search.png +0 -0
- package/lib/icon/share.png +0 -0
- package/lib/icon/topUp.png +0 -0
- package/lib/icon/upload.png +0 -0
- package/lib/icon/video.png +0 -0
- package/lib/icon/view.png +0 -0
- package/lib/icon//345/244/215/351/200/211/357/274/217/346/234/252/351/200/211@2x.png +0 -0
- package/lib/icon//345/244/215/351/200/211/357/274/217/351/200/211/344/270/255@2x(1).png +0 -0
- package/lib/icon//345/244/215/351/200/211/357/274/217/351/200/211/344/270/255@2x.png +0 -0
- package/lib/iking-utils.es-Ba74AedH.js +13822 -0
- package/lib/index-B76XXskt.js +225 -0
- package/lib/index-B9lRx-kg.js +85 -0
- package/lib/index-B9nm6Rgv.js +142 -0
- package/lib/index-BAN9B0Xt.js +176 -0
- package/lib/index-BH6iU67J.js +209 -0
- package/lib/index-BSeD4M2U.js +988 -0
- package/lib/index-BbUCT3bG.js +66 -0
- package/lib/index-Bjs1bW2W.js +6291 -0
- package/lib/index-Bzc3Ri47.js +472 -0
- package/lib/index-C2ezj_lw.js +19 -0
- package/lib/index-C8Ni1uMd.js +435 -0
- package/lib/index-CCCckUnm.js +19 -0
- package/lib/index-CGni9huM.js +339 -0
- package/lib/index-CI6xXcR0.js +47 -0
- package/lib/index-CTo4-44e.js +2013 -0
- package/lib/index-CX6tHoIu.js +208 -0
- package/lib/index-Cb06BDgi.js +48 -0
- package/lib/index-CuapA_N-.js +586 -0
- package/lib/index-D0Kh7c2E.js +142 -0
- package/lib/index-D8pryMlS.js +228 -0
- package/lib/index-DGErpAp1.js +245 -0
- package/lib/index-DHe-NWes.js +415 -0
- package/lib/index-DL5IJLR7.js +156 -0
- package/lib/index-DN_9YBN_.js +957 -0
- package/lib/index-DOYvASbD.js +121 -0
- package/lib/index-D_ojDCWy.js +52 -0
- package/lib/index-DcmokBSP.js +109 -0
- package/lib/index-Dm1le54W.js +226 -0
- package/lib/index-Dpg5we85.js +127 -0
- package/lib/index-IeVkGUKs.js +146 -0
- package/lib/index-VSfx-dDV.js +87 -0
- package/lib/index-_Ya8vNUb.js +79 -0
- package/lib/index.es.js +5 -0
- package/lib/index.umd.js +99 -0
- package/lib/kebabCase-CO6lu_Gu.js +250 -0
- package/lib/keyMap-wL6Ma83z.js +91 -0
- package/lib/layer-setting-panel-C86c3fN0.js +486 -0
- package/lib/main-graph-BjOO_j7Y.js +43 -0
- package/lib/marquee-B6qUH-Kc.js +49 -0
- package/lib/message-carousel-ToN1yK7K.js +34 -0
- package/lib/multi-layout-config-DWBvxtbQ.js +312 -0
- package/lib/number-title-flop-DUzpC1bo.js +112 -0
- package/lib/orderBy--EIhNVJu.js +388 -0
- package/lib/page-config-DT1C_kDM.js +5598 -0
- package/lib/page-table-U2Zv9dzo.js +169 -0
- package/lib/paragraph-D7CutH53.js +51 -0
- package/lib/pentagon-6sVh023X.js +12 -0
- package/lib/plus-DjE6l8qH.js +24 -0
- package/lib/rank-board-Cgj8rzLd.js +121 -0
- package/lib/rectangle-BQXP06pk.js +10 -0
- package/lib/roundedRectangle-DnEbzLph.js +10 -0
- package/lib/scroll-article-BC3pQhTm.js +130 -0
- package/lib/scroll-rank-BsbvGjIy.js +191 -0
- package/lib/scroll-rank-bar-BfceYhB-.js +189 -0
- package/lib/scroll-table-BTbnMVFS.js +303 -0
- package/lib/search-DkzwOoCx.js +24 -0
- package/lib/select-options-BTOkre7F.js +338 -0
- package/lib/setting-panel-CMKniQhs.js +397 -0
- package/lib/source-panel-ClGOmTVn.js +557 -0
- package/lib/straightLine-DPMRNFNz.js +23 -0
- package/lib/style.css +1 -0
- package/lib/table-bar-ciEVdDFG.js +117 -0
- package/lib/transform-layer.vue_vue_type_style_index_0_scoped_04cdae36_lang-6ixEI9oF.js +593 -0
- package/lib/triangle-NkNGdZCH.js +15 -0
- package/lib/use-border-BUij5e0F.js +29 -0
- package/lib/use-data-center-Cj9FGyCg.js +31 -0
- package/lib/use-series-Cmnkexlu.js +18 -0
- package/lib/use-swiper-B17v1vT0.js +12 -0
- package/lib/vue-util-oCdnLsQn.js +6 -0
- package/lib/warning-DYO0amRd.js +25 -0
- package/package.json +154 -0
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { _ as C, l as F } from "./index-Bjs1bW2W.js";
|
|
2
|
+
import { defineComponent as R, computed as r, toRef as h, ref as f, shallowRef as z, watch as S, onMounted as A, onUnmounted as D, nextTick as _, createElementBlock as B, openBlock as E, normalizeStyle as s, createElementVNode as l, createTextVNode as g, toDisplayString as $ } from "vue";
|
|
3
|
+
import { g as N } from "./index-CTo4-44e.js";
|
|
4
|
+
import { u as j, a as I, g as O } from "./use-data-center-Cj9FGyCg.js";
|
|
5
|
+
const P = R({
|
|
6
|
+
name: "VMarquee",
|
|
7
|
+
props: {
|
|
8
|
+
com: {
|
|
9
|
+
type: Object,
|
|
10
|
+
required: !0
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
setup(e) {
|
|
14
|
+
const o = j();
|
|
15
|
+
I(e.com);
|
|
16
|
+
const m = r(() => o.dataMap[e.com.id]?.source ?? {}), v = r(() => O(e.com.apis.source.fields)), n = h(e.com, "config"), i = h(e.com, "attr"), u = f(null), a = f(0), c = f(0), y = z(null), k = r(() => {
|
|
17
|
+
const { textStyle: t } = n.value;
|
|
18
|
+
return {
|
|
19
|
+
width: `${i.value.w}px`,
|
|
20
|
+
height: `${i.value.h}px`,
|
|
21
|
+
fontFamily: `${t.fontFamily}, Arial, sans-serif`,
|
|
22
|
+
fontSize: `${t.fontSize}px`,
|
|
23
|
+
color: t.color,
|
|
24
|
+
"font-weight": t.fontWeight
|
|
25
|
+
};
|
|
26
|
+
}), M = r(() => ({
|
|
27
|
+
display: "inline-block",
|
|
28
|
+
transform: `translateX(-${c.value}px)`,
|
|
29
|
+
transition: "none 0s ease 0s"
|
|
30
|
+
})), d = r(() => m.value[v.value.value] || ""), w = () => {
|
|
31
|
+
n.value.loop && _(() => {
|
|
32
|
+
const { ifSpeed: t, speed: T, duration: b, timeout: W } = n.value;
|
|
33
|
+
if (u.value && (a.value = u.value.offsetWidth / 2), a.value > i.value.w) {
|
|
34
|
+
const V = t ? T / 100 * a.value : b;
|
|
35
|
+
y.value = N.fromTo(
|
|
36
|
+
c,
|
|
37
|
+
{
|
|
38
|
+
value: 0
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
value: a.value,
|
|
42
|
+
duration: V / 1e3,
|
|
43
|
+
ease: "none",
|
|
44
|
+
repeatDelay: W / 1e3,
|
|
45
|
+
repeat: 1 / 0
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
} else
|
|
49
|
+
p();
|
|
50
|
+
});
|
|
51
|
+
}, p = () => {
|
|
52
|
+
y.value?.kill(), a.value = i.value.w, c.value = 0;
|
|
53
|
+
};
|
|
54
|
+
S(
|
|
55
|
+
[n, d],
|
|
56
|
+
() => {
|
|
57
|
+
p(), w();
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
deep: !0
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
let x = !0;
|
|
64
|
+
return S(d, (t) => {
|
|
65
|
+
x || (n.value.contentText = t), x = !1;
|
|
66
|
+
}), A(() => {
|
|
67
|
+
w();
|
|
68
|
+
}), D(() => {
|
|
69
|
+
p();
|
|
70
|
+
}), {
|
|
71
|
+
config: n,
|
|
72
|
+
marqueeRef: u,
|
|
73
|
+
wrapperStyle: k,
|
|
74
|
+
textStyle: M,
|
|
75
|
+
titleText: d,
|
|
76
|
+
textWidth: a
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
}), U = {
|
|
80
|
+
class: "datav-marquee",
|
|
81
|
+
style: { "white-space": "nowrap", overflow: "hidden" }
|
|
82
|
+
};
|
|
83
|
+
function X(e, o, m, v, n, i) {
|
|
84
|
+
return E(), B("div", {
|
|
85
|
+
class: "datav-wrapper",
|
|
86
|
+
style: s(e.wrapperStyle)
|
|
87
|
+
}, [
|
|
88
|
+
l("div", U, [
|
|
89
|
+
l("div", {
|
|
90
|
+
ref: "marqueeRef",
|
|
91
|
+
style: s(e.textStyle)
|
|
92
|
+
}, [
|
|
93
|
+
l("div", {
|
|
94
|
+
style: s({
|
|
95
|
+
display: "inline-block",
|
|
96
|
+
"min-width": `${e.textWidth}px`
|
|
97
|
+
})
|
|
98
|
+
}, [
|
|
99
|
+
g($(e.config.contentText), 1),
|
|
100
|
+
o[0] || (o[0] = l("i", { style: { display: "inline-block", width: "80px" } }, null, -1))
|
|
101
|
+
], 4),
|
|
102
|
+
l("div", {
|
|
103
|
+
style: s({
|
|
104
|
+
display: "inline-block",
|
|
105
|
+
"min-width": `${e.textWidth}px`
|
|
106
|
+
})
|
|
107
|
+
}, [
|
|
108
|
+
g($(e.config.contentText), 1),
|
|
109
|
+
o[1] || (o[1] = l("i", { style: { display: "inline-block", width: "80px" } }, null, -1))
|
|
110
|
+
], 4)
|
|
111
|
+
], 4)
|
|
112
|
+
])
|
|
113
|
+
], 4);
|
|
114
|
+
}
|
|
115
|
+
const q = /* @__PURE__ */ C(P, [["render", X]]);
|
|
116
|
+
q.install = (e) => {
|
|
117
|
+
e.component("VMarquee", q), e.component("VMarqueeProp", F(() => import("./config-V6sABZH7.js")));
|
|
118
|
+
};
|
|
119
|
+
export {
|
|
120
|
+
q as default
|
|
121
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { _ as p, l as m } from "./index-Bjs1bW2W.js";
|
|
2
|
+
import { defineComponent as u, toRef as c, computed as i, createElementBlock as d, openBlock as g, normalizeStyle as l, createElementVNode as f } from "vue";
|
|
3
|
+
import { presetImages as y } from "./decoration-ByPSHV8P.js";
|
|
4
|
+
const h = u({
|
|
5
|
+
name: "VDecoration",
|
|
6
|
+
props: {
|
|
7
|
+
com: {
|
|
8
|
+
type: Object,
|
|
9
|
+
required: !0
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
setup(e) {
|
|
13
|
+
const t = c(e.com, "config"), o = c(e.com, "attr"), n = i(() => ({
|
|
14
|
+
transform: "translateZ(0px)",
|
|
15
|
+
width: `${o.value.w}px`,
|
|
16
|
+
height: `${o.value.h}px`
|
|
17
|
+
})), a = i(() => {
|
|
18
|
+
const r = y[t.value.global.img];
|
|
19
|
+
return {
|
|
20
|
+
width: "100%",
|
|
21
|
+
height: "100%",
|
|
22
|
+
opacity: t.value.global.opacity,
|
|
23
|
+
"background-image": `url(${r.url})`,
|
|
24
|
+
"background-size": "100%",
|
|
25
|
+
"background-repeat": "no-repeat",
|
|
26
|
+
"background-position": "center",
|
|
27
|
+
...r.css
|
|
28
|
+
};
|
|
29
|
+
});
|
|
30
|
+
return {
|
|
31
|
+
wraperStyle: n,
|
|
32
|
+
imgBoxStyle: a
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
function b(e, t, o, n, a, r) {
|
|
37
|
+
return g(), d("div", {
|
|
38
|
+
class: "datav-wrapper",
|
|
39
|
+
style: l(e.wraperStyle)
|
|
40
|
+
}, [
|
|
41
|
+
f("div", {
|
|
42
|
+
style: l(e.imgBoxStyle)
|
|
43
|
+
}, null, 4)
|
|
44
|
+
], 4);
|
|
45
|
+
}
|
|
46
|
+
const s = /* @__PURE__ */ p(h, [["render", b]]);
|
|
47
|
+
s.install = (e) => {
|
|
48
|
+
e.component("VDecoration", s), e.component("VDecorationProp", m(() => import("./config-DOtfpO43.js")));
|
|
49
|
+
};
|
|
50
|
+
export {
|
|
51
|
+
s as default
|
|
52
|
+
};
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { b as m, a as v, f as y, _ as x, l as B } from "./index-Bjs1bW2W.js";
|
|
2
|
+
import { storeToRefs as I } from "pinia";
|
|
3
|
+
import { defineComponent as $, toRef as k, computed as p, ref as _, watch as z, onMounted as V, onBeforeUnmount as E, resolveComponent as T, createElementBlock as A, openBlock as h, normalizeStyle as w, createBlock as L, createCommentVNode as U, withCtx as j, createTextVNode as q, toDisplayString as D } from "vue";
|
|
4
|
+
const F = $({
|
|
5
|
+
name: "VButtonBase",
|
|
6
|
+
props: {
|
|
7
|
+
com: {
|
|
8
|
+
type: Object,
|
|
9
|
+
required: !0
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
setup(a) {
|
|
13
|
+
const { pageConfig: r } = I(m()), e = k(a.com, "config"), c = k(a.com, "attr"), d = p(() => r.value.resourceList[e.value.url]), l = _(""), i = async (t) => {
|
|
14
|
+
if (!t) {
|
|
15
|
+
l.value = e.value.url;
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
l.value = t;
|
|
19
|
+
};
|
|
20
|
+
i(r.value.resourceList[e.value.url]), z(
|
|
21
|
+
() => d,
|
|
22
|
+
(t) => {
|
|
23
|
+
i(t.value);
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
deep: !0
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
const C = p(() => {
|
|
30
|
+
const t = e.value.imageType === "vector";
|
|
31
|
+
let o = `url('${l.value}') 0% 0% / `, n = "";
|
|
32
|
+
return e.value.bgModel && (e.value.repeat === "repeat" ? (o += "auto repeat", n = "auto") : e.value.repeat === "repeat-x" ? (o += "auto 100% repeat-x", n = "auto 100%") : e.value.repeat === "repeat-y" ? (o += "100% repeat-y", n = "100%") : (o += "100% 100% no-repeat", n = "100% 100%")), {
|
|
33
|
+
width: `${c.value.w}px`,
|
|
34
|
+
height: `${c.value.h}px`,
|
|
35
|
+
"image-rendering": "-webkit-optimize-contrast",
|
|
36
|
+
background: t ? e.value.vectorFill : o,
|
|
37
|
+
"-webkit-mask-image": t ? `url(${e.value.vectorImage})` : "none",
|
|
38
|
+
"-webkit-mask-repeat": t ? e.value.repeat : "initial",
|
|
39
|
+
"-webkit-mask-size": t ? n : "initial",
|
|
40
|
+
"border-radius": `${e.value.radius}px`,
|
|
41
|
+
cursor: e.value.cursor ? "pointer" : "default"
|
|
42
|
+
};
|
|
43
|
+
}), P = p(() => ({
|
|
44
|
+
width: "100%",
|
|
45
|
+
height: "100%",
|
|
46
|
+
backgroundColor: e.value.backgroundColor,
|
|
47
|
+
color: e.value.textStyle.color,
|
|
48
|
+
fontSize: `${e.value.textStyle.fontSize}px`,
|
|
49
|
+
fontWeight: e.value.textStyle.fontWeight,
|
|
50
|
+
fontFamily: e.value.textStyle.fontFamily
|
|
51
|
+
})), b = () => {
|
|
52
|
+
if (e.value.jumpPageId) {
|
|
53
|
+
const t = v(), o = m(), n = e.value.jumpPageId, u = o.allPages.findIndex((s) => s.id === n);
|
|
54
|
+
u !== -1 && (t.editIsComs(!1), o.editPages(r.value.defaultAllPages, n), t.requestCom(o.screen.id, y, u));
|
|
55
|
+
}
|
|
56
|
+
e.value.instructions && e.value.instructions.length > 0 && e.value.instructions.forEach((t) => {
|
|
57
|
+
const { delay: o } = t;
|
|
58
|
+
o > 0 && setTimeout(() => {
|
|
59
|
+
}, o);
|
|
60
|
+
});
|
|
61
|
+
}, f = () => {
|
|
62
|
+
const t = v(), o = m(), n = o.allPages.findIndex((s) => s.id === r.value.defaultAllPages), u = o.allPages.findIndex((s) => s.id === o.allPages[n].returnPage);
|
|
63
|
+
t.editIsComs(!1), o.editPages(r.value.defaultAllPages, o.allPages[n].returnPage), t.requestCom(o.screen.id, y, u);
|
|
64
|
+
}, g = (t) => {
|
|
65
|
+
t.keyCode === e.value.shortcutKeys && f();
|
|
66
|
+
};
|
|
67
|
+
return V(() => {
|
|
68
|
+
e.value.shortcutKeys && window.addEventListener("keydown", g);
|
|
69
|
+
}), E(() => {
|
|
70
|
+
window.removeEventListener("keydown", g);
|
|
71
|
+
}), {
|
|
72
|
+
returnPage: f,
|
|
73
|
+
imgUrl: l,
|
|
74
|
+
bgUrl: d,
|
|
75
|
+
config: e,
|
|
76
|
+
imgStyle: P,
|
|
77
|
+
wrapperStyle: C,
|
|
78
|
+
handleClick: b
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
function K(a, r, e, c, d, l) {
|
|
83
|
+
const i = T("el-button");
|
|
84
|
+
return h(), A("div", {
|
|
85
|
+
class: "datav-wrapper",
|
|
86
|
+
style: w(a.wrapperStyle)
|
|
87
|
+
}, [
|
|
88
|
+
a.config.bgModel ? U("", !0) : (h(), L(i, {
|
|
89
|
+
key: 0,
|
|
90
|
+
style: w(a.imgStyle),
|
|
91
|
+
onClick: a.handleClick
|
|
92
|
+
}, {
|
|
93
|
+
default: j(() => [
|
|
94
|
+
q(D(a.config.contentText), 1)
|
|
95
|
+
]),
|
|
96
|
+
_: 1
|
|
97
|
+
}, 8, ["style", "onClick"]))
|
|
98
|
+
], 4);
|
|
99
|
+
}
|
|
100
|
+
const S = /* @__PURE__ */ x(F, [["render", K]]);
|
|
101
|
+
S.install = (a) => {
|
|
102
|
+
a.component("VButtonBase", S), a.component(
|
|
103
|
+
"VButtonBaseProp",
|
|
104
|
+
B(() => import("./config-DwVaqCyN.js"))
|
|
105
|
+
);
|
|
106
|
+
};
|
|
107
|
+
export {
|
|
108
|
+
S as default
|
|
109
|
+
};
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import { useDialog as N, NIcon as O } from "naive-ui";
|
|
2
|
+
import { ElMessageBox as A } from "element-plus";
|
|
3
|
+
import { createElementBlock as h, openBlock as r, createElementVNode as _, defineComponent as H, ref as z, watch as U, computed as I, onMounted as F, onUnmounted as K, resolveComponent as s, createVNode as f, withCtx as i, Fragment as L, renderList as T, createBlock as k, normalizeClass as R, createCommentVNode as j, toDisplayString as M, createTextVNode as q } from "vue";
|
|
4
|
+
import { _ as D, u as G, a as J, b as Q, m as W, P as x } from "./index-Bjs1bW2W.js";
|
|
5
|
+
import { I as X } from "./plus-DjE6l8qH.js";
|
|
6
|
+
import { storeToRefs as Y } from "pinia";
|
|
7
|
+
const Z = {}, e0 = {
|
|
8
|
+
t: "1631033355676",
|
|
9
|
+
class: "icon",
|
|
10
|
+
viewBox: "0 0 1024 1024",
|
|
11
|
+
version: "1.1",
|
|
12
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
13
|
+
"p-id": "5531",
|
|
14
|
+
width: "64",
|
|
15
|
+
height: "64"
|
|
16
|
+
};
|
|
17
|
+
function o0(o, a) {
|
|
18
|
+
return r(), h("svg", e0, [...a[0] || (a[0] = [
|
|
19
|
+
_("path", {
|
|
20
|
+
d: "M974.11282027 682.14153813c23.10564053 0 42.010256-18.90461547 42.01025706-42.010256v-546.13333333c0-23.10564053-18.90461547-42.010256-42.01025706-42.010256H49.88717973c-23.10564053 0-42.010256 18.90461547-42.01025706 42.010256v546.13333333c0 23.10564053 18.90461547 42.010256 42.01025706 42.010256h924.22564054z m-882.21538454-84.020512v-462.11282133h840.20512854v462.11282133H91.89743573z m161.73948694-350.7856416c0 16.8041024-14.70358933 31.5076928-31.50769174 31.5076928h-21.00512853c-16.8041024 0-31.5076928-14.70358933-31.50769173-31.5076928v-21.00512853c0-16.8041024 14.70358933-31.5076928 31.50769173-31.50769173h21.00512853c16.8041024 0 31.5076928 14.70358933 31.50769174 31.50769173v21.00512853z m119.72923093-21.00512853c0-16.8041024-14.70358933-31.5076928-31.50769173-31.50769173h-21.00512854c-16.8041024 0-31.5076928 14.70358933-31.5076928 31.50769173v21.00512853c0 16.8041024 14.70358933 31.5076928 31.5076928 31.5076928h21.00512854c16.8041024 0 31.5076928-14.70358933 31.50769173-31.5076928v-21.00512853z m241.55897493 21.00512853c0 16.8041024-14.70358933 31.5076928-31.5076928 31.5076928h-21.00512853c-16.8041024 0-31.5076928-14.70358933-31.50769173-31.5076928v-21.00512853c0-16.8041024 14.70358933-31.5076928 31.50769173-31.50769173h21.00512853c16.8041024 0 31.5076928 14.70358933 31.5076928 31.50769173v21.00512853z m-121.829744 0c0 16.8041024-14.70358933 31.5076928-31.50769173 31.5076928h-21.00512853c-16.8041024 0-31.5076928-14.70358933-31.5076928-31.5076928v-21.00512853c0-16.8041024 14.70358933-31.5076928 31.5076928-31.50769173h21.00512853c16.8041024 0 31.5076928 14.70358933 31.50769173 31.50769173v21.00512853z m363.38871787-21.00512853c0-16.8041024-14.70358933-31.5076928-31.50769173-31.50769173h-21.00512854c-16.8041024 0-31.5076928 14.70358933-31.5076928 31.50769173v21.00512853c0 16.8041024 14.70358933 31.5076928 31.5076928 31.5076928h21.00512854c16.8041024 0 31.5076928-14.70358933 31.50769173-31.5076928v-21.00512853z m-121.82974293 0c0-16.8041024-14.70358933-31.5076928-31.5076928-31.50769173h-21.00512854c-16.8041024 0-31.5076928 14.70358933-31.50769173 31.50769173v21.00512853c0 16.8041024 14.70358933 31.5076928 31.50769173 31.5076928h21.00512854c16.8041024 0 31.5076928-14.70358933 31.5076928-31.5076928v-21.00512853z m-481.0174368 147.0358976c0 16.8041024-14.70358933 31.5076928-31.50769174 31.5076928h-21.00512853c-16.8041024 0-31.5076928-14.70358933-31.50769173-31.5076928v-21.00512747c0-16.8041024 14.70358933-31.5076928 31.50769173-31.5076928h21.00512853c16.8041024 0 31.5076928 14.70358933 31.50769174 31.5076928v21.00512747z m119.72923093-21.00512747c0-16.8041024-14.70358933-31.5076928-31.50769173-31.5076928h-21.00512854c-16.8041024 0-31.5076928 14.70358933-31.5076928 31.5076928v21.00512747c0 16.8041024 14.70358933 31.5076928 31.5076928 31.5076928h21.00512854c16.8041024 0 31.5076928-14.70358933 31.50769173-31.5076928v-21.00512747z m241.55897493 21.00512747c0 16.8041024-14.70358933 31.5076928-31.5076928 31.5076928h-21.00512853c-16.8041024 0-31.5076928-14.70358933-31.50769173-31.5076928v-21.00512747c0-16.8041024 14.70358933-31.5076928 31.50769173-31.5076928h21.00512853c16.8041024 0 31.5076928 14.70358933 31.5076928 31.5076928v21.00512747z m-121.829744 0c0 16.8041024-14.70358933 31.5076928-31.50769173 31.5076928h-21.00512853c-16.8041024 0-31.5076928-14.70358933-31.5076928-31.5076928v-21.00512747c0-16.8041024 14.70358933-31.5076928 31.5076928-31.5076928h21.00512853c16.8041024 0 31.5076928 14.70358933 31.50769173 31.5076928v21.00512747z m363.38871787-21.00512747c0-16.8041024-14.70358933-31.5076928-31.50769173-31.5076928h-21.00512854c-16.8041024 0-31.5076928 14.70358933-31.5076928 31.5076928v21.00512747c0 16.8041024 14.70358933 31.5076928 31.5076928 31.5076928h21.00512854c16.8041024 0 31.5076928-14.70358933 31.50769173-31.5076928v-21.00512747z m-121.82974293 0c0-16.8041024-14.70358933-31.5076928-31.5076928-31.5076928h-21.00512854c-16.8041024 0-31.5076928 14.70358933-31.50769173 31.5076928v21.00512747c0 16.8041024 14.70358933 31.5076928 31.50769173 31.5076928h21.00512854c16.8041024 0 31.5076928-14.70358933 31.5076928-31.5076928v-21.00512747z m-481.0174368 147.03589654c0 16.8041024-14.70358933 31.5076928-31.50769174 31.5076928h-21.00512853c-16.8041024 0-31.5076928-14.70358933-31.50769173-31.5076928v-21.00512747c0-16.8041024 14.70358933-31.5076928 31.50769173-31.5076928h21.00512853c16.8041024 0 31.5076928 14.70358933 31.50769174 31.5076928v21.00512747z m481.0174368-21.00512747c0-16.8041024-14.70358933-31.5076928-31.5076928-31.5076928H320.85333333c-16.8041024 0-31.5076928 14.70358933-31.5076928 31.5076928v21.00512747c0 16.8041024 14.70358933 31.5076928 31.5076928 31.5076928h382.29333334c16.8041024 0 31.5076928-14.70358933 31.5076928-31.5076928v-21.00512747z m121.82974293 0c0-16.8041024-14.70358933-31.5076928-31.50769173-31.5076928h-21.00512854c-16.8041024 0-31.5076928 14.70358933-31.5076928 31.5076928v21.00512747c0 16.8041024 14.70358933 31.5076928 31.5076928 31.5076928h21.00512854c16.8041024 0 31.5076928-14.70358933 31.50769173-31.5076928v-21.00512747zM346.05948693 747.25743573h331.88102614c10.50256427 0 16.8041024 12.60307733 8.4020512 21.00512854l-161.73948694 199.54871786c-6.30153813 6.30153813-18.90461547 6.30153813-23.1056416 0l-163.84-199.54871786c-6.30153813-8.4020512-2.10051307-21.00512853 8.4020512-21.00512854z",
|
|
21
|
+
"p-id": "5532"
|
|
22
|
+
}, null, -1)
|
|
23
|
+
])]);
|
|
24
|
+
}
|
|
25
|
+
const n0 = /* @__PURE__ */ D(Z, [["render", o0]]), t0 = {}, a0 = {
|
|
26
|
+
t: "1639131986503",
|
|
27
|
+
class: "icon",
|
|
28
|
+
viewBox: "0 0 1024 1024",
|
|
29
|
+
version: "1.1",
|
|
30
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
31
|
+
"p-id": "4869",
|
|
32
|
+
width: "64",
|
|
33
|
+
height: "64"
|
|
34
|
+
};
|
|
35
|
+
function c0(o, a) {
|
|
36
|
+
return r(), h("svg", a0, [...a[0] || (a[0] = [
|
|
37
|
+
_("path", {
|
|
38
|
+
d: "M148.95240533 309.952512a36.32878933 36.32878933 0 0 1 52.21034667-9.08765867l272.54237867 204.95291734a63.635456 63.635456 0 0 0 76.58973866 0l272.52053334-204.95291734a36.306944 36.306944 0 0 1 52.21034666 9.08765867c12.582912 19.00544 10.76974933 44.19310933-4.36906666 61.16693333L575.504384 701.94517333a84.91281067 84.91281067 0 0 1-127.008768 0L153.36516267 371.14129067a50.331648 50.331648 0 0 1-4.41275734-61.16693334z",
|
|
39
|
+
"p-id": "4870"
|
|
40
|
+
}, null, -1)
|
|
41
|
+
])]);
|
|
42
|
+
}
|
|
43
|
+
const l0 = /* @__PURE__ */ D(t0, [["render", c0]]), s0 = H({
|
|
44
|
+
name: "FooterToolbar",
|
|
45
|
+
components: {
|
|
46
|
+
IconKeyboard: n0,
|
|
47
|
+
IconArrowDown: l0,
|
|
48
|
+
IconPlus: X
|
|
49
|
+
},
|
|
50
|
+
setup() {
|
|
51
|
+
N();
|
|
52
|
+
const o = z(null);
|
|
53
|
+
U(
|
|
54
|
+
() => o.value,
|
|
55
|
+
(e) => {
|
|
56
|
+
e !== null && (w(e ? "dialog" : "page"), o.value = null);
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
const a = (e) => {
|
|
60
|
+
e !== null && (w(e ? "dialog" : "page"), o.value = null);
|
|
61
|
+
}, d = G(), y = J(), c = Q(), E = z(20), C = z(20), P = [
|
|
62
|
+
{ label: "200%", value: 200 },
|
|
63
|
+
{ label: "150%", value: 150 },
|
|
64
|
+
{ label: "100%", value: 100 },
|
|
65
|
+
{ label: "50%", value: 50 },
|
|
66
|
+
{ label: "自适应", value: -1 }
|
|
67
|
+
], { selectPage: S } = Y(c), g = I(() => (c.pageConfig.pages?.forEach((e) => {
|
|
68
|
+
e.renameing = !1;
|
|
69
|
+
}), c.pageConfig.pages)), w = (e) => {
|
|
70
|
+
c.handleAddPage(e);
|
|
71
|
+
}, B = (e) => {
|
|
72
|
+
A.confirm("确定删除子屏吗,删除后子屏下的所有组件也将同步删除,且无法恢复!", "删除确认", {
|
|
73
|
+
confirmButtonText: "确定",
|
|
74
|
+
cancelButtonText: "取消",
|
|
75
|
+
type: "warning"
|
|
76
|
+
}).then(() => {
|
|
77
|
+
c.removePage(e);
|
|
78
|
+
});
|
|
79
|
+
}, $ = I(() => c.pageConfig), V = async (e) => {
|
|
80
|
+
e === -1 ? c.autoCanvasScale(() => d.getPanelOffset) : c.setCanvasScale(e === 0 ? C.value : e, d.getPanelOffset.x, d.getPanelOffset.y);
|
|
81
|
+
}, p = (e, l) => {
|
|
82
|
+
y.selectedComs.forEach((t) => {
|
|
83
|
+
t.attr.y += e, t.attr.x += l;
|
|
84
|
+
});
|
|
85
|
+
}, b = (e) => {
|
|
86
|
+
const l = e.target;
|
|
87
|
+
if (!["input", "textarea"].includes(l.tagName.toLowerCase())) {
|
|
88
|
+
const t = e.key.toLowerCase();
|
|
89
|
+
if (W(e)) {
|
|
90
|
+
e.preventDefault();
|
|
91
|
+
const { setPanelState: m } = d;
|
|
92
|
+
t === "arrowleft" ? m(x.layer, !d.layer.show) : t === "arrowup" ? m(x.components, !d.components.show) : t === "arrowright" ? m(x.config, !d.config.show) : t === "a" && c.autoCanvasScale(() => d.getPanelOffset);
|
|
93
|
+
} else if (y.selectedComs.length && ["arrowup", "arrowright", "arrowdown", "arrowleft"].includes(t)) {
|
|
94
|
+
e.preventDefault();
|
|
95
|
+
const { grid: m } = $.value;
|
|
96
|
+
t === "arrowup" ? p(-m, 0) : t === "arrowright" ? p(0, m) : t === "arrowdown" ? p(m, 0) : t === "arrowleft" && p(0, -m);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}, u = z(""), n = (e) => {
|
|
100
|
+
u.value = e.name;
|
|
101
|
+
const l = g.value?.find((t) => t.id === e.id);
|
|
102
|
+
l && (l.renameing = !0);
|
|
103
|
+
}, v = (e) => {
|
|
104
|
+
const l = g.value?.find((t) => t.id === e.id);
|
|
105
|
+
l && (l.renameing = !1), l.name = u.value, c.setSelectPage(u.value), u.value = "";
|
|
106
|
+
};
|
|
107
|
+
return F(() => {
|
|
108
|
+
document.addEventListener("keydown", b, !1);
|
|
109
|
+
}), K(() => {
|
|
110
|
+
document.removeEventListener("keydown", b, !1);
|
|
111
|
+
}), {
|
|
112
|
+
handleCommand: a,
|
|
113
|
+
scaleList: P,
|
|
114
|
+
scale: E,
|
|
115
|
+
inputScale: C,
|
|
116
|
+
selectPage: S,
|
|
117
|
+
pagePanels: g,
|
|
118
|
+
typeAddValue: o,
|
|
119
|
+
rename: u,
|
|
120
|
+
submitScale: V,
|
|
121
|
+
handleAdd: w,
|
|
122
|
+
handleClose: B,
|
|
123
|
+
handDbClick: n,
|
|
124
|
+
handBlur: v,
|
|
125
|
+
options: [
|
|
126
|
+
{
|
|
127
|
+
label: "子屏",
|
|
128
|
+
value: 0
|
|
129
|
+
}
|
|
130
|
+
// {
|
|
131
|
+
// label: '弹窗',
|
|
132
|
+
// value: 1,
|
|
133
|
+
// }
|
|
134
|
+
]
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
}), r0 = { class: "g-footer bottom-sider" }, d0 = { class: "screen-pages" }, i0 = {
|
|
138
|
+
key: 0,
|
|
139
|
+
class: "flex"
|
|
140
|
+
}, m0 = ["onDblclick"], u0 = { class: "screen-size" }, f0 = { class: "el-dropdown-link" };
|
|
141
|
+
function p0(o, a, d, y, c, E) {
|
|
142
|
+
const C = s("ele-CloseBold"), P = s("el-icon"), S = s("el-link"), g = s("el-input"), w = s("el-radio"), B = s("el-radio-group"), $ = s("IconPlus"), V = O, p = s("el-dropdown-item"), b = s("el-dropdown-menu"), u = s("el-dropdown");
|
|
143
|
+
return r(), h("div", r0, [
|
|
144
|
+
_("div", d0, [
|
|
145
|
+
f(B, {
|
|
146
|
+
modelValue: o.selectPage,
|
|
147
|
+
"onUpdate:modelValue": a[1] || (a[1] = (n) => o.selectPage = n),
|
|
148
|
+
class: "radio-group"
|
|
149
|
+
}, {
|
|
150
|
+
default: i(() => [
|
|
151
|
+
(r(!0), h(L, null, T(o.pagePanels, (n) => (r(), k(w, {
|
|
152
|
+
value: n.name,
|
|
153
|
+
border: "",
|
|
154
|
+
key: n.id,
|
|
155
|
+
class: R(n.name === "主屏" ? "is-panel" : ""),
|
|
156
|
+
name: n.name
|
|
157
|
+
}, {
|
|
158
|
+
default: i(() => [
|
|
159
|
+
n.renameing ? (r(), k(g, {
|
|
160
|
+
key: 1,
|
|
161
|
+
modelValue: o.rename,
|
|
162
|
+
"onUpdate:modelValue": a[0] || (a[0] = (v) => o.rename = v),
|
|
163
|
+
onBlur: (v) => o.handBlur(n)
|
|
164
|
+
}, null, 8, ["modelValue", "onBlur"])) : (r(), h("div", i0, [
|
|
165
|
+
_("p", {
|
|
166
|
+
onDblclick: (v) => o.handDbClick(n)
|
|
167
|
+
}, M(n.name), 41, m0),
|
|
168
|
+
n.name !== "主屏" ? (r(), k(S, {
|
|
169
|
+
key: 0,
|
|
170
|
+
underline: !1,
|
|
171
|
+
onClick: (v) => o.handleClose(n.name)
|
|
172
|
+
}, {
|
|
173
|
+
default: i(() => [
|
|
174
|
+
f(P, { class: "el-icon--right" }, {
|
|
175
|
+
default: i(() => [
|
|
176
|
+
f(C)
|
|
177
|
+
]),
|
|
178
|
+
_: 1
|
|
179
|
+
})
|
|
180
|
+
]),
|
|
181
|
+
_: 1
|
|
182
|
+
}, 8, ["onClick"])) : j("", !0)
|
|
183
|
+
]))
|
|
184
|
+
]),
|
|
185
|
+
_: 2
|
|
186
|
+
}, 1032, ["value", "class", "name"]))), 128))
|
|
187
|
+
]),
|
|
188
|
+
_: 1
|
|
189
|
+
}, 8, ["modelValue"])
|
|
190
|
+
]),
|
|
191
|
+
_("div", u0, [
|
|
192
|
+
f(u, { onCommand: o.handleCommand }, {
|
|
193
|
+
dropdown: i(() => [
|
|
194
|
+
f(b, null, {
|
|
195
|
+
default: i(() => [
|
|
196
|
+
(r(!0), h(L, null, T(o.options, (n) => (r(), k(p, {
|
|
197
|
+
command: n.value
|
|
198
|
+
}, {
|
|
199
|
+
default: i(() => [
|
|
200
|
+
q(M(n.label), 1)
|
|
201
|
+
]),
|
|
202
|
+
_: 2
|
|
203
|
+
}, 1032, ["command"]))), 256))
|
|
204
|
+
]),
|
|
205
|
+
_: 1
|
|
206
|
+
})
|
|
207
|
+
]),
|
|
208
|
+
default: i(() => [
|
|
209
|
+
_("span", f0, [
|
|
210
|
+
f(V, { class: "btn-add-icon" }, {
|
|
211
|
+
default: i(() => [
|
|
212
|
+
f($)
|
|
213
|
+
]),
|
|
214
|
+
_: 1
|
|
215
|
+
})
|
|
216
|
+
])
|
|
217
|
+
]),
|
|
218
|
+
_: 1
|
|
219
|
+
}, 8, ["onCommand"])
|
|
220
|
+
])
|
|
221
|
+
]);
|
|
222
|
+
}
|
|
223
|
+
const b0 = /* @__PURE__ */ D(s0, [["render", p0], ["__scopeId", "data-v-bc4eadf1"]]);
|
|
224
|
+
export {
|
|
225
|
+
b0 as default
|
|
226
|
+
};
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { s as G, _ as I, l as L } from "./index-Bjs1bW2W.js";
|
|
2
|
+
import { defineComponent as R, toRef as k, ref as h, computed as l, watch as W, createElementBlock as g, openBlock as y, normalizeStyle as $, createElementVNode as j, Fragment as q, renderList as H, toDisplayString as N } from "vue";
|
|
3
|
+
import { u as O, a as P, g as T } from "./use-data-center-Cj9FGyCg.js";
|
|
4
|
+
import { u as U } from "./event-DDj_G-ix.js";
|
|
5
|
+
const J = R({
|
|
6
|
+
name: "VBtnGroup",
|
|
7
|
+
props: {
|
|
8
|
+
com: {
|
|
9
|
+
type: Object,
|
|
10
|
+
required: !0
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
setup(o) {
|
|
14
|
+
const i = U(), s = k(o.com, "config"), v = k(o.com, "attr"), x = O(), f = h(!1), r = h(-1), u = h(-1);
|
|
15
|
+
P(o.com);
|
|
16
|
+
const d = l(() => x.dataMap[o.com.id]?.source ?? []), t = l(() => T(o.com.apis.source.fields));
|
|
17
|
+
W(
|
|
18
|
+
() => d.value,
|
|
19
|
+
(e) => {
|
|
20
|
+
r.value = e?.find((n) => n[t.value.s])?.[t.value.y];
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
const w = l(() => ({
|
|
24
|
+
width: `${v.value.w}px`,
|
|
25
|
+
height: `${v.value.h}px`
|
|
26
|
+
})), S = l(() => s.value.active.show), b = l(() => s.value.hover.show), B = l(() => {
|
|
27
|
+
const { radius: e } = s.value.global;
|
|
28
|
+
return {
|
|
29
|
+
borderRadius: `${e.t}px ${e.r}px ${e.b}px ${e.z}px `
|
|
30
|
+
};
|
|
31
|
+
}), M = l(() => Array.isArray(d.value) ? d.value?.length ? d.value.map((e) => ({
|
|
32
|
+
x: e[t.value.x],
|
|
33
|
+
y: e[t.value.y],
|
|
34
|
+
...e
|
|
35
|
+
})) : [] : []), p = (e) => {
|
|
36
|
+
const { margin: n, global: a, padding: c } = s.value;
|
|
37
|
+
let m = a.shadow;
|
|
38
|
+
return {
|
|
39
|
+
padding: `${c.t}px ${c.r}px ${c.b}px ${c.z}px`,
|
|
40
|
+
margin: `${n.t}px ${n.r}px ${n.b}px ${n.z}px`,
|
|
41
|
+
color: setChartColor(e.color),
|
|
42
|
+
backgroundColor: setChartColor(e.backgroundColor),
|
|
43
|
+
backgroundImage: `url('${G(e.image)}')`,
|
|
44
|
+
border: `${a.borderWidth}px ${a.borderType} ${e.borderColor}`,
|
|
45
|
+
backgroundSize: e.backgroundSize,
|
|
46
|
+
fontSize: `${a.fontSize}px`,
|
|
47
|
+
fontWeight: a.fontWeight,
|
|
48
|
+
fontFamily: a.fontFamily,
|
|
49
|
+
letterSpacing: `${a.letterSpacing}px`,
|
|
50
|
+
width: `${a.width}px`,
|
|
51
|
+
transform: `rotate(${a.roate}deg)`,
|
|
52
|
+
borderRadius: `${a.btn.t}px ${a.btn.r}px ${a.btn.b}px ${a.btn.z}px `,
|
|
53
|
+
...m
|
|
54
|
+
};
|
|
55
|
+
}, z = (e) => {
|
|
56
|
+
const n = e[t.value.y], { defaul: a, hover: c, active: m } = s.value;
|
|
57
|
+
return n === r.value ? p(m) : n === u.value ? p(c) : p(a);
|
|
58
|
+
}, V = (e) => {
|
|
59
|
+
r.value = S.value ? e[t.value.y] : -1, console.log("btn", e), i.handleSubVariablesChange(o.com, "click", {
|
|
60
|
+
...e,
|
|
61
|
+
x: e[t.value.x],
|
|
62
|
+
y: e[t.value.y]
|
|
63
|
+
});
|
|
64
|
+
}, _ = (e) => {
|
|
65
|
+
r.value = S.value ? e[t.value.y] : -1, i.handleSubVariablesChange(o.com, "dbclick", {
|
|
66
|
+
...e,
|
|
67
|
+
x: e[t.value.x],
|
|
68
|
+
y: e[t.value.y]
|
|
69
|
+
});
|
|
70
|
+
}, A = (e) => {
|
|
71
|
+
u.value = b.value ? e.y : -1, i.handleSubVariablesChange(o.com, "mouseover", {
|
|
72
|
+
...e,
|
|
73
|
+
x: e[t.value.x],
|
|
74
|
+
y: e[t.value.y]
|
|
75
|
+
});
|
|
76
|
+
}, D = (e) => {
|
|
77
|
+
u.value = -1, i.handleSubVariablesChange(o.com, "mouseleave", {
|
|
78
|
+
...e,
|
|
79
|
+
x: e[t.value.x],
|
|
80
|
+
y: e[t.value.y]
|
|
81
|
+
});
|
|
82
|
+
}, E = l(() => ({})), F = l(() => ({}));
|
|
83
|
+
return {
|
|
84
|
+
setBtnStyle: z,
|
|
85
|
+
clickBtn: V,
|
|
86
|
+
dblClick: _,
|
|
87
|
+
handMouseover: A,
|
|
88
|
+
handMouseleave: D,
|
|
89
|
+
showHover: b,
|
|
90
|
+
dv_field: t,
|
|
91
|
+
outerStyle: B,
|
|
92
|
+
hoverIndex: u,
|
|
93
|
+
activeIndex: r,
|
|
94
|
+
wrapperStyle: w,
|
|
95
|
+
imgStyle: E,
|
|
96
|
+
imgSrc: F,
|
|
97
|
+
isEnter: f,
|
|
98
|
+
btnList: M
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
}), K = ["onClick", "onDblclick", "onMouseover", "onMouseleave"];
|
|
102
|
+
function Q(o, i, s, v, x, f) {
|
|
103
|
+
return y(), g("div", {
|
|
104
|
+
class: "datav-wrapper btn-group",
|
|
105
|
+
style: $(o.wrapperStyle)
|
|
106
|
+
}, [
|
|
107
|
+
j("div", {
|
|
108
|
+
style: $(o.outerStyle)
|
|
109
|
+
}, [
|
|
110
|
+
(y(!0), g(q, null, H(o.btnList, (r) => (y(), g("div", {
|
|
111
|
+
key: r.x,
|
|
112
|
+
style: $(o.setBtnStyle(r)),
|
|
113
|
+
onClick: (u) => o.clickBtn(r),
|
|
114
|
+
onDblclick: (u) => o.dblClick(r),
|
|
115
|
+
onMouseover: (u) => o.handMouseover(r),
|
|
116
|
+
onMouseleave: (u) => o.handMouseleave(r)
|
|
117
|
+
}, N(r.x), 45, K))), 128))
|
|
118
|
+
], 4)
|
|
119
|
+
], 4);
|
|
120
|
+
}
|
|
121
|
+
const C = /* @__PURE__ */ I(J, [["render", Q], ["__scopeId", "data-v-0be81260"]]);
|
|
122
|
+
C.install = (o) => {
|
|
123
|
+
o.component("VBtnGroup", C), o.component("VBtnGroupProp", L(() => import("./config-DJJlRxrQ.js")));
|
|
124
|
+
};
|
|
125
|
+
export {
|
|
126
|
+
C as default
|
|
127
|
+
};
|