form-imagining 0.0.92-beta18 → 0.0.92-beta19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App-CAAZO9S9.js +32 -0
- package/dist/App-CUdwEKRG.js +32 -0
- package/dist/Area-BpNoVE8E.js +4 -0
- package/dist/Area-DBjSP3Y9.js +4 -0
- package/dist/Bar-C6ooL3FF.js +4 -0
- package/dist/Bar-CgLCDAHr.js +4 -0
- package/dist/ChartsArea-BFQJi84w.js +4 -0
- package/dist/ChartsArea-DDTvy400.js +4 -0
- package/dist/ChartsBar-CJ0X1KjC.js +4 -0
- package/dist/ChartsBar-DFTuG0LA.js +4 -0
- package/dist/ChartsPie-Cldf9FOv.js +4 -0
- package/dist/ChartsPie-Dj9JDrHi.js +4 -0
- package/dist/CheckBoxModel-CsTIi-xF.js +4 -0
- package/dist/CheckBoxModel-Dhvxmjpa.js +4 -0
- package/dist/Col-B_1G-Fil.js +4 -0
- package/dist/Col-xmXliqvU.js +4 -0
- package/dist/Collapse-BtD0WERD.js +4 -0
- package/dist/Collapse-CLKYiX4O.js +4 -0
- package/dist/{CommonText copy-CGxS2Qi7.js → CommonText copy-B2yj3G5b.js } +32 -32
- package/dist/CommonText copy-CRSyaL-1.js +189 -0
- package/dist/{Demo copy-Bux2O9AZ.js → Demo copy-CubdSIKo.js } +2 -2
- package/dist/{Demo-BzRVEJLn.js → Demo-BjeNq-DU.js} +21 -21
- package/dist/Demo-CmCJanEO.js +201 -0
- package/dist/{Demo-DVx3PIWg.js → Demo-D90lFuzo.js} +2 -2
- package/dist/Demo-DXm0EgtZ.js +72 -0
- package/dist/FView-B1lErBMF.js +4 -0
- package/dist/FView-DeTq-wJ3.js +4 -0
- package/dist/FX-DA_XCVlw.js +4 -0
- package/dist/FX-oFZuEtIR.js +4 -0
- package/dist/{Form-CE0VVIWD.js → Form-CsKlmwSd.js} +4 -4
- package/dist/{FormGridCopy-DEDMj3pk.js → FormGridCopy-C3Kukdxg.js} +36 -36
- package/dist/FormGridCopy-DN03FhE6.js +168 -0
- package/dist/{FormImagining-CuYGo7WU.js → FormImagining-BFd1dEJh.js} +1 -1
- package/dist/FormImagining-fy-ynI5-.js +9 -0
- package/dist/GenerateForm-BfQ4sBX4.js +4 -0
- package/dist/GenerateForm-DAwOJq-w.js +4 -0
- package/dist/GenerateReport-D-hnCMW7.js +4 -0
- package/dist/GenerateReport-DPBmcnAP.js +4 -0
- package/dist/{HelloWorld-h_Vl21wq.js → HelloWorld-B5h85HIU.js} +1 -1
- package/dist/HelloWorld-BaByWBAi.js +9 -0
- package/dist/Input-/345/210/240/351/231/{244-CW4crSu2.js → 244-BeE76j1B.js} +3 -3
- package/dist/Input-/345/210/240/351/231/244-DioOpwpw.js +87 -0
- package/dist/Label-/345/210/240/351/231/{244-CegZH5xZ.js → 244-BOUf-F9T.js} +5 -5
- package/dist/Label-/345/210/240/351/231/244-BozFgr0e.js +92 -0
- package/dist/LabelModel-C-Bbgyys.js +4 -0
- package/dist/LabelModel-D7-yXtBm.js +4 -0
- package/dist/{Login-SUqc9wWH.js → Login-DoEIHZ_m.js} +1 -1
- package/dist/Login-nK2_PTJH.js +9 -0
- package/dist/Pie-BU-qVEku.js +4 -0
- package/dist/Pie-Dk7uSF-M.js +4 -0
- package/dist/RView-AcFtF1kf.js +4 -0
- package/dist/RView-CRKNRRl9.js +4 -0
- package/dist/SqlModule-CnByP1k6.js +4 -0
- package/dist/SqlModule-GljcU_W2.js +4 -0
- package/dist/{SvgIconCopy-DtAYuQdF.js → SvgIconCopy-BFGR3ehL.js} +7 -7
- package/dist/SvgIconCopy-Bqa1HlQo.js +39 -0
- package/dist/TableBtnModal-BQit-SGu.js +4 -0
- package/dist/TableBtnModal-DdNht6Vl.js +4 -0
- package/dist/{TextModel-D4eIZfmj.js → TextModel-BxWU9Gq8.js} +1 -1
- package/dist/TextModel-CJ1aPc_4.js +9 -0
- package/dist/childForm-BkMXEK88.js +4 -0
- package/dist/childForm-gHGrBViT.js +4 -0
- package/dist/{cssMode-B_ZiewAH.js → cssMode-BWD8UR-7.js} +1 -1
- package/dist/cssMode-CkDPbB5M.js +1577 -0
- package/dist/form-imagining.js +9 -9
- package/dist/form-imagining.umd.cjs +251 -253
- package/dist/formTest-DfoY5NBn.js +19 -0
- package/dist/formTest-Dj0PZZ0E.js +19 -0
- package/dist/{freemarker2-BoVD1dnM.js → freemarker2-8TtD-XF5.js} +1 -1
- package/dist/freemarker2-B3T8IPQ1.js +995 -0
- package/dist/{handlebars-ifuhb0Lb.js → handlebars-C_BaW8Rn.js} +1 -1
- package/dist/handlebars-D6qKT-AB.js +425 -0
- package/dist/{html-DZYB8t03.js → html-C2G2dsUq.js} +1 -1
- package/dist/html-Ck1Wx24K.js +314 -0
- package/dist/{htmlMode-DOFueWmP.js → htmlMode-C9heZ-wD.js} +1 -1
- package/dist/htmlMode-DpQWRO56.js +1587 -0
- package/dist/index - /345/211/257/346/234/{254-CIbO8ZcU.js" → 254-5IgttBw9.js" } +38 -38
- package/dist/index - /345/211/257/346/234/254-Cz6y82wV.js" +531 -0
- package/dist/{index-DUBZV_5t.js → index-BJZgJsIz.js} +8047 -6120
- package/dist/index-C0BVVkDi.js +302291 -0
- package/dist/{index-DbGjikbV.js → index-CAd1Adx9.js} +4 -4
- package/dist/index-CeBR6sKj.js +36 -0
- package/dist/index-Cg3usEM6.js +3323 -0
- package/dist/index-CqmwavVi.js +3323 -0
- package/dist/index-DbbQdNO4.js +11 -0
- package/dist/index-cYrkAxdg.js +11 -0
- package/dist/{javascript-BtLKWUmq.js → javascript-BRI3Zb_9.js} +1 -1
- package/dist/javascript-C4Y-AWKe.js +76 -0
- package/dist/json/scope_type.json +6 -6
- package/dist/{jsonMode-CQYbYfxz.js → jsonMode-8xn8SfZQ.js} +1 -1
- package/dist/jsonMode-CPAKXxg0.js +2002 -0
- package/dist/{liquid-CHJI3hXR.js → liquid-DWxQbQ4c.js} +1 -1
- package/dist/liquid-ogK4Qu_y.js +246 -0
- package/dist/{mdx-JvfMqEkP.js → mdx-6wJfcYzW.js} +1 -1
- package/dist/mdx-BJJH_1Vj.js +171 -0
- package/dist/{python-CrRChc1F.js → python-74lxbGw1.js} +1 -1
- package/dist/python-c1fDNvEm.js +307 -0
- package/dist/{razor-D71nSgUR.js → razor-BrOfoM9E.js} +1 -1
- package/dist/razor-Dlgmhv8W.js +556 -0
- package/dist/setting.json +3 -3
- package/dist/style.css +1 -1
- package/dist/{tableSelectDemo-BI2sz7Dx.js → tableSelectDemo-BvSq3eH4.js} +15 -15
- package/dist/tableSelectDemo-DYDNQA05.js +134 -0
- package/dist/{tableSelectDemo2-C5pw53a8.js → tableSelectDemo2-Bcb8OnpR.js} +6 -6
- package/dist/tableSelectDemo2-Do2Wq46R.js +108 -0
- package/dist/{tsMode-Bt_ny7qs.js → tsMode-8dtB1J5W.js} +7 -7
- package/dist/tsMode-BHGGICf3.js +895 -0
- package/dist/{typescript-DQAW9Yxy.js → typescript-D0qjUcRs.js} +1 -1
- package/dist/typescript-_V4Eojcy.js +349 -0
- package/dist/{xml-Cj-NbBn6.js → xml-CCaCZz6y.js} +1 -1
- package/dist/xml-DdjA8Nsq.js +101 -0
- package/dist/{yaml-DbhGFxhP.js → yaml-2FS6Qljr.js} +1 -1
- package/dist/yaml-CyIWhPlg.js +212 -0
- package/package.json +68 -68
- package/dist/App-BIQh0-lC.js +0 -30
- package/dist/Area-BdxioIhN.js +0 -4
- package/dist/Bar-BQrPuceK.js +0 -4
- package/dist/ChartsArea-BG2Ttoq1.js +0 -4
- package/dist/ChartsBar-D3JI5yi3.js +0 -4
- package/dist/ChartsPie-COlwXlj3.js +0 -4
- package/dist/CheckBoxModel-DTnVGL4L.js +0 -4
- package/dist/Col-b5d3FpfE.js +0 -4
- package/dist/Collapse-CM9cRW7P.js +0 -4
- package/dist/FView-Bcnwet9-.js +0 -4
- package/dist/FX-BKsKbcWT.js +0 -4
- package/dist/GenerateForm-Wmoqhefi.js +0 -4
- package/dist/GenerateReport-DbSQDTq2.js +0 -4
- package/dist/LabelModel-BI6Zw0iH.js +0 -4
- package/dist/Pie-DYxKGS38.js +0 -4
- package/dist/RView-P7QVQHik.js +0 -4
- package/dist/SqlModule-D_4pePg2.js +0 -4
- package/dist/TableBtnModal-BwxBxHSJ.js +0 -4
- package/dist/childForm-Bo_eI2ZK.js +0 -4
- package/dist/formTest-InTCs7JJ.js +0 -19
- package/dist/index-BXkrSJvd.js +0 -11
- package/dist/index-DTzMRyWT.js +0 -3658
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { defineComponent as c, onMounted as p, resolveComponent as i, openBlock as e, createBlock as o, unref as n, withCtx as t, createVNode as f, KeepAlive as u, resolveDynamicComponent as _ } from "vue";
|
|
2
|
+
import { ap as m, R as s } from "./index-C0BVVkDi.js";
|
|
3
|
+
const x = /* @__PURE__ */ c({
|
|
4
|
+
__name: "App",
|
|
5
|
+
setup(d) {
|
|
6
|
+
return p(() => {
|
|
7
|
+
}), (v, h) => {
|
|
8
|
+
const r = i("a-config-provider");
|
|
9
|
+
return e(), o(r, {
|
|
10
|
+
locale: n(m),
|
|
11
|
+
theme: { token: { fontSize: 13, borderRadius: 5, colorPrimary: "#1890ff" } }
|
|
12
|
+
}, {
|
|
13
|
+
default: t(() => [
|
|
14
|
+
f(n(s), null, {
|
|
15
|
+
default: t(({ Component: a, route: l }) => [
|
|
16
|
+
(e(), o(u, null, [
|
|
17
|
+
(e(), o(_(a), {
|
|
18
|
+
key: l.fullPath
|
|
19
|
+
}))
|
|
20
|
+
], 1024))
|
|
21
|
+
]),
|
|
22
|
+
_: 1
|
|
23
|
+
})
|
|
24
|
+
]),
|
|
25
|
+
_: 1
|
|
26
|
+
}, 8, ["locale"]);
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
export {
|
|
31
|
+
x as default
|
|
32
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { defineComponent as c, onMounted as p, resolveComponent as i, openBlock as e, createBlock as o, unref as n, withCtx as t, createVNode as f, KeepAlive as u, resolveDynamicComponent as _ } from "vue";
|
|
2
|
+
import { ap as m, R as s } from "./index-BJZgJsIz.js";
|
|
3
|
+
const x = /* @__PURE__ */ c({
|
|
4
|
+
__name: "App",
|
|
5
|
+
setup(d) {
|
|
6
|
+
return p(() => {
|
|
7
|
+
}), (v, h) => {
|
|
8
|
+
const r = i("a-config-provider");
|
|
9
|
+
return e(), o(r, {
|
|
10
|
+
locale: n(m),
|
|
11
|
+
theme: { token: { fontSize: 13, borderRadius: 5, colorPrimary: "#1890ff" } }
|
|
12
|
+
}, {
|
|
13
|
+
default: t(() => [
|
|
14
|
+
f(n(s), null, {
|
|
15
|
+
default: t(({ Component: a, route: l }) => [
|
|
16
|
+
(e(), o(u, null, [
|
|
17
|
+
(e(), o(_(a), {
|
|
18
|
+
key: l.fullPath
|
|
19
|
+
}))
|
|
20
|
+
], 1024))
|
|
21
|
+
]),
|
|
22
|
+
_: 1
|
|
23
|
+
})
|
|
24
|
+
]),
|
|
25
|
+
_: 1
|
|
26
|
+
}, 8, ["locale"]);
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
export {
|
|
31
|
+
x as default
|
|
32
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
const le = { class: "property-toolbar" }, te = { class: "toolbar-items" }, oe = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as j, computed as f, resolveComponent as u, openBlock as r, createElementBlock as c, createElementVNode as v, createVNode as t, withCtx as n, unref as i, h as y, withDirectives as g, vModelText as x, Fragment as O, renderList as B, createBlock as C, resolveDynamicComponent as h, createTextVNode as S, toDisplayString as R } from "vue";
|
|
2
|
+
import { g as k, i as F, k as q, j as G, f as H, h as J, b as K, a as P, c as Q, B as X, M as Y, D as Z, S as $, _ as ee } from "./index-BJZgJsIz.js";
|
|
3
|
+
const le = { class: "property-toolbar" }, te = { class: "toolbar-items" }, oe = /* @__PURE__ */ j({
|
|
4
4
|
__name: "CommonText copy",
|
|
5
5
|
props: {
|
|
6
6
|
textElement: {
|
|
@@ -9,26 +9,26 @@ const le = { class: "property-toolbar" }, te = { class: "toolbar-items" }, oe =
|
|
|
9
9
|
}
|
|
10
10
|
},
|
|
11
11
|
emits: ["update:textElement"],
|
|
12
|
-
setup(
|
|
13
|
-
const A =
|
|
12
|
+
setup(z, { emit: w }) {
|
|
13
|
+
const A = z, D = w, e = f({
|
|
14
14
|
get: () => A.textElement,
|
|
15
|
-
set: (a) =>
|
|
16
|
-
}),
|
|
15
|
+
set: (a) => D("update:textElement", a)
|
|
16
|
+
}), E = [
|
|
17
17
|
{ value: "solid", label: "实线", icon: Y },
|
|
18
18
|
{ value: "dashed", label: "虚线", icon: Z },
|
|
19
19
|
{ value: "dotted", label: "点线", icon: $ }
|
|
20
20
|
], m = [
|
|
21
|
-
{ value: "none", label: "无框线", icon:
|
|
21
|
+
{ value: "none", label: "无框线", icon: k },
|
|
22
22
|
{ value: "all", label: "所有框线", icon: F },
|
|
23
|
-
{ value: "top", label: "上框线", icon:
|
|
24
|
-
{ value: "right", label: "右框线", icon:
|
|
25
|
-
{ value: "bottom", label: "下框线", icon:
|
|
26
|
-
{ value: "left", label: "左框线", icon:
|
|
27
|
-
],
|
|
23
|
+
{ value: "top", label: "上框线", icon: q },
|
|
24
|
+
{ value: "right", label: "右框线", icon: G },
|
|
25
|
+
{ value: "bottom", label: "下框线", icon: H },
|
|
26
|
+
{ value: "left", label: "左框线", icon: J }
|
|
27
|
+
], U = f(() => {
|
|
28
28
|
const a = m.find(
|
|
29
29
|
(o) => o.value === e.value.border
|
|
30
30
|
);
|
|
31
|
-
return a ? a.icon :
|
|
31
|
+
return a ? a.icon : k;
|
|
32
32
|
});
|
|
33
33
|
function T(a) {
|
|
34
34
|
a > 0 && !e.value.borderStyle && (e.value.borderStyle = "solid", e.value.border = "all"), a === 0 && (e.value.border = "none", e.value.borderStyle = null);
|
|
@@ -36,11 +36,11 @@ const le = { class: "property-toolbar" }, te = { class: "toolbar-items" }, oe =
|
|
|
36
36
|
function V({ key: a }) {
|
|
37
37
|
e.value.border = a;
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function M() {
|
|
40
40
|
e.value.bold = !e.value.bold;
|
|
41
41
|
}
|
|
42
42
|
return (a, o) => {
|
|
43
|
-
const d = u("a-radio-button"), p = u("a-radio-group"), _ = u("a-button"), b = u("a-input-number"), s = u("a-tooltip"),
|
|
43
|
+
const d = u("a-radio-button"), p = u("a-radio-group"), _ = u("a-button"), b = u("a-input-number"), s = u("a-tooltip"), I = u("a-divider"), L = u("a-menu-item"), N = u("a-menu"), W = u("a-dropdown");
|
|
44
44
|
return r(), c("div", le, [
|
|
45
45
|
v("div", te, [
|
|
46
46
|
t(p, {
|
|
@@ -51,19 +51,19 @@ const le = { class: "property-toolbar" }, te = { class: "toolbar-items" }, oe =
|
|
|
51
51
|
default: n(() => [
|
|
52
52
|
t(d, { value: "left" }, {
|
|
53
53
|
default: n(() => [
|
|
54
|
-
t(i(
|
|
54
|
+
t(i(K))
|
|
55
55
|
]),
|
|
56
56
|
_: 1
|
|
57
57
|
}),
|
|
58
58
|
t(d, { value: "center" }, {
|
|
59
59
|
default: n(() => [
|
|
60
|
-
t(i(
|
|
60
|
+
t(i(P))
|
|
61
61
|
]),
|
|
62
62
|
_: 1
|
|
63
63
|
}),
|
|
64
64
|
t(d, { value: "right" }, {
|
|
65
65
|
default: n(() => [
|
|
66
|
-
t(i(
|
|
66
|
+
t(i(Q))
|
|
67
67
|
]),
|
|
68
68
|
_: 1
|
|
69
69
|
})
|
|
@@ -72,8 +72,8 @@ const le = { class: "property-toolbar" }, te = { class: "toolbar-items" }, oe =
|
|
|
72
72
|
}, 8, ["value"]),
|
|
73
73
|
t(_, {
|
|
74
74
|
size: "small",
|
|
75
|
-
icon:
|
|
76
|
-
onClick:
|
|
75
|
+
icon: y(i(X)),
|
|
76
|
+
onClick: M
|
|
77
77
|
}, null, 8, ["icon"]),
|
|
78
78
|
t(s, {
|
|
79
79
|
title: "字号",
|
|
@@ -95,7 +95,7 @@ const le = { class: "property-toolbar" }, te = { class: "toolbar-items" }, oe =
|
|
|
95
95
|
color: "blue"
|
|
96
96
|
}, {
|
|
97
97
|
default: n(() => [
|
|
98
|
-
|
|
98
|
+
g(v("input", {
|
|
99
99
|
type: "color",
|
|
100
100
|
"onUpdate:modelValue": o[2] || (o[2] = (l) => e.value.color = l),
|
|
101
101
|
class: "color-picker"
|
|
@@ -105,18 +105,18 @@ const le = { class: "property-toolbar" }, te = { class: "toolbar-items" }, oe =
|
|
|
105
105
|
]),
|
|
106
106
|
_: 1
|
|
107
107
|
}),
|
|
108
|
-
t(
|
|
108
|
+
t(I, { type: "vertical" }),
|
|
109
109
|
t(W, null, {
|
|
110
110
|
overlay: n(() => [
|
|
111
111
|
t(N, { onClick: V }, {
|
|
112
112
|
default: n(() => [
|
|
113
|
-
(r(), c(
|
|
113
|
+
(r(), c(O, null, B(m, (l) => t(L, {
|
|
114
114
|
key: l.value,
|
|
115
115
|
disabled: l.value === e.value.border
|
|
116
116
|
}, {
|
|
117
117
|
default: n(() => [
|
|
118
|
-
(r(), C(
|
|
119
|
-
|
|
118
|
+
(r(), C(h(l.icon), { style: { fontSize: "18px" } })),
|
|
119
|
+
S(" " + R(l.label), 1)
|
|
120
120
|
]),
|
|
121
121
|
_: 2
|
|
122
122
|
}, 1032, ["disabled"])), 64))
|
|
@@ -127,7 +127,7 @@ const le = { class: "property-toolbar" }, te = { class: "toolbar-items" }, oe =
|
|
|
127
127
|
default: n(() => [
|
|
128
128
|
t(_, {
|
|
129
129
|
size: "small",
|
|
130
|
-
icon:
|
|
130
|
+
icon: y(U.value)
|
|
131
131
|
}, null, 8, ["icon"])
|
|
132
132
|
]),
|
|
133
133
|
_: 1
|
|
@@ -147,14 +147,14 @@ const le = { class: "property-toolbar" }, te = { class: "toolbar-items" }, oe =
|
|
|
147
147
|
size: "small"
|
|
148
148
|
}, {
|
|
149
149
|
addonAfter: n(() => [...o[6] || (o[6] = [
|
|
150
|
-
|
|
150
|
+
S("px", -1)
|
|
151
151
|
])]),
|
|
152
152
|
_: 1
|
|
153
153
|
}, 8, ["value"])
|
|
154
154
|
]),
|
|
155
155
|
_: 1
|
|
156
156
|
}),
|
|
157
|
-
|
|
157
|
+
g(v("input", {
|
|
158
158
|
type: "color",
|
|
159
159
|
"onUpdate:modelValue": o[4] || (o[4] = (l) => e.value.borderColor = l),
|
|
160
160
|
class: "color-picker"
|
|
@@ -167,12 +167,12 @@ const le = { class: "property-toolbar" }, te = { class: "toolbar-items" }, oe =
|
|
|
167
167
|
size: "small"
|
|
168
168
|
}, {
|
|
169
169
|
default: n(() => [
|
|
170
|
-
(r(), c(
|
|
170
|
+
(r(), c(O, null, B(E, (l) => t(d, {
|
|
171
171
|
key: l.value,
|
|
172
172
|
value: l.value
|
|
173
173
|
}, {
|
|
174
174
|
default: n(() => [
|
|
175
|
-
(r(), C(
|
|
175
|
+
(r(), C(h(l.icon)))
|
|
176
176
|
]),
|
|
177
177
|
_: 2
|
|
178
178
|
}, 1032, ["value"])), 64))
|
|
@@ -183,7 +183,7 @@ const le = { class: "property-toolbar" }, te = { class: "toolbar-items" }, oe =
|
|
|
183
183
|
]);
|
|
184
184
|
};
|
|
185
185
|
}
|
|
186
|
-
}), ue = /* @__PURE__ */ ee(oe, [["__scopeId", "data-v-
|
|
186
|
+
}), ue = /* @__PURE__ */ ee(oe, [["__scopeId", "data-v-553e4e34"]]);
|
|
187
187
|
export {
|
|
188
188
|
ue as default
|
|
189
189
|
};
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import { defineComponent as j, computed as f, resolveComponent as u, openBlock as r, createElementBlock as c, createElementVNode as v, createVNode as t, withCtx as n, unref as i, h as y, withDirectives as g, vModelText as x, Fragment as O, renderList as B, createBlock as C, resolveDynamicComponent as h, createTextVNode as S, toDisplayString as R } from "vue";
|
|
2
|
+
import { g as k, i as F, k as q, j as G, f as H, h as J, b as K, a as P, c as Q, B as X, M as Y, D as Z, S as $, _ as ee } from "./index-C0BVVkDi.js";
|
|
3
|
+
const le = { class: "property-toolbar" }, te = { class: "toolbar-items" }, oe = /* @__PURE__ */ j({
|
|
4
|
+
__name: "CommonText copy",
|
|
5
|
+
props: {
|
|
6
|
+
textElement: {
|
|
7
|
+
type: Object,
|
|
8
|
+
default: () => ({})
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
emits: ["update:textElement"],
|
|
12
|
+
setup(z, { emit: w }) {
|
|
13
|
+
const A = z, D = w, e = f({
|
|
14
|
+
get: () => A.textElement,
|
|
15
|
+
set: (a) => D("update:textElement", a)
|
|
16
|
+
}), E = [
|
|
17
|
+
{ value: "solid", label: "实线", icon: Y },
|
|
18
|
+
{ value: "dashed", label: "虚线", icon: Z },
|
|
19
|
+
{ value: "dotted", label: "点线", icon: $ }
|
|
20
|
+
], m = [
|
|
21
|
+
{ value: "none", label: "无框线", icon: k },
|
|
22
|
+
{ value: "all", label: "所有框线", icon: F },
|
|
23
|
+
{ value: "top", label: "上框线", icon: q },
|
|
24
|
+
{ value: "right", label: "右框线", icon: G },
|
|
25
|
+
{ value: "bottom", label: "下框线", icon: H },
|
|
26
|
+
{ value: "left", label: "左框线", icon: J }
|
|
27
|
+
], U = f(() => {
|
|
28
|
+
const a = m.find(
|
|
29
|
+
(o) => o.value === e.value.border
|
|
30
|
+
);
|
|
31
|
+
return a ? a.icon : k;
|
|
32
|
+
});
|
|
33
|
+
function T(a) {
|
|
34
|
+
a > 0 && !e.value.borderStyle && (e.value.borderStyle = "solid", e.value.border = "all"), a === 0 && (e.value.border = "none", e.value.borderStyle = null);
|
|
35
|
+
}
|
|
36
|
+
function V({ key: a }) {
|
|
37
|
+
e.value.border = a;
|
|
38
|
+
}
|
|
39
|
+
function M() {
|
|
40
|
+
e.value.bold = !e.value.bold;
|
|
41
|
+
}
|
|
42
|
+
return (a, o) => {
|
|
43
|
+
const d = u("a-radio-button"), p = u("a-radio-group"), _ = u("a-button"), b = u("a-input-number"), s = u("a-tooltip"), I = u("a-divider"), L = u("a-menu-item"), N = u("a-menu"), W = u("a-dropdown");
|
|
44
|
+
return r(), c("div", le, [
|
|
45
|
+
v("div", te, [
|
|
46
|
+
t(p, {
|
|
47
|
+
value: e.value.horzAlign,
|
|
48
|
+
"onUpdate:value": o[0] || (o[0] = (l) => e.value.horzAlign = l),
|
|
49
|
+
size: "small"
|
|
50
|
+
}, {
|
|
51
|
+
default: n(() => [
|
|
52
|
+
t(d, { value: "left" }, {
|
|
53
|
+
default: n(() => [
|
|
54
|
+
t(i(K))
|
|
55
|
+
]),
|
|
56
|
+
_: 1
|
|
57
|
+
}),
|
|
58
|
+
t(d, { value: "center" }, {
|
|
59
|
+
default: n(() => [
|
|
60
|
+
t(i(P))
|
|
61
|
+
]),
|
|
62
|
+
_: 1
|
|
63
|
+
}),
|
|
64
|
+
t(d, { value: "right" }, {
|
|
65
|
+
default: n(() => [
|
|
66
|
+
t(i(Q))
|
|
67
|
+
]),
|
|
68
|
+
_: 1
|
|
69
|
+
})
|
|
70
|
+
]),
|
|
71
|
+
_: 1
|
|
72
|
+
}, 8, ["value"]),
|
|
73
|
+
t(_, {
|
|
74
|
+
size: "small",
|
|
75
|
+
icon: y(i(X)),
|
|
76
|
+
onClick: M
|
|
77
|
+
}, null, 8, ["icon"]),
|
|
78
|
+
t(s, {
|
|
79
|
+
title: "字号",
|
|
80
|
+
color: "blue"
|
|
81
|
+
}, {
|
|
82
|
+
default: n(() => [
|
|
83
|
+
t(b, {
|
|
84
|
+
value: e.value.fontSize,
|
|
85
|
+
"onUpdate:value": o[1] || (o[1] = (l) => e.value.fontSize = l),
|
|
86
|
+
placeholder: "字体大小",
|
|
87
|
+
style: { width: "50px" },
|
|
88
|
+
size: "small"
|
|
89
|
+
}, null, 8, ["value"])
|
|
90
|
+
]),
|
|
91
|
+
_: 1
|
|
92
|
+
}),
|
|
93
|
+
t(s, {
|
|
94
|
+
title: "字体颜色",
|
|
95
|
+
color: "blue"
|
|
96
|
+
}, {
|
|
97
|
+
default: n(() => [
|
|
98
|
+
g(v("input", {
|
|
99
|
+
type: "color",
|
|
100
|
+
"onUpdate:modelValue": o[2] || (o[2] = (l) => e.value.color = l),
|
|
101
|
+
class: "color-picker"
|
|
102
|
+
}, null, 512), [
|
|
103
|
+
[x, e.value.color]
|
|
104
|
+
])
|
|
105
|
+
]),
|
|
106
|
+
_: 1
|
|
107
|
+
}),
|
|
108
|
+
t(I, { type: "vertical" }),
|
|
109
|
+
t(W, null, {
|
|
110
|
+
overlay: n(() => [
|
|
111
|
+
t(N, { onClick: V }, {
|
|
112
|
+
default: n(() => [
|
|
113
|
+
(r(), c(O, null, B(m, (l) => t(L, {
|
|
114
|
+
key: l.value,
|
|
115
|
+
disabled: l.value === e.value.border
|
|
116
|
+
}, {
|
|
117
|
+
default: n(() => [
|
|
118
|
+
(r(), C(h(l.icon), { style: { fontSize: "18px" } })),
|
|
119
|
+
S(" " + R(l.label), 1)
|
|
120
|
+
]),
|
|
121
|
+
_: 2
|
|
122
|
+
}, 1032, ["disabled"])), 64))
|
|
123
|
+
]),
|
|
124
|
+
_: 1
|
|
125
|
+
})
|
|
126
|
+
]),
|
|
127
|
+
default: n(() => [
|
|
128
|
+
t(_, {
|
|
129
|
+
size: "small",
|
|
130
|
+
icon: y(U.value)
|
|
131
|
+
}, null, 8, ["icon"])
|
|
132
|
+
]),
|
|
133
|
+
_: 1
|
|
134
|
+
}),
|
|
135
|
+
t(s, {
|
|
136
|
+
title: "边框宽度",
|
|
137
|
+
color: "blue"
|
|
138
|
+
}, {
|
|
139
|
+
default: n(() => [
|
|
140
|
+
t(b, {
|
|
141
|
+
value: e.value.borderWidth,
|
|
142
|
+
"onUpdate:value": o[3] || (o[3] = (l) => e.value.borderWidth = l),
|
|
143
|
+
min: 0,
|
|
144
|
+
max: 10,
|
|
145
|
+
style: { width: "80px" },
|
|
146
|
+
onChange: T,
|
|
147
|
+
size: "small"
|
|
148
|
+
}, {
|
|
149
|
+
addonAfter: n(() => [...o[6] || (o[6] = [
|
|
150
|
+
S("px", -1)
|
|
151
|
+
])]),
|
|
152
|
+
_: 1
|
|
153
|
+
}, 8, ["value"])
|
|
154
|
+
]),
|
|
155
|
+
_: 1
|
|
156
|
+
}),
|
|
157
|
+
g(v("input", {
|
|
158
|
+
type: "color",
|
|
159
|
+
"onUpdate:modelValue": o[4] || (o[4] = (l) => e.value.borderColor = l),
|
|
160
|
+
class: "color-picker"
|
|
161
|
+
}, null, 512), [
|
|
162
|
+
[x, e.value.borderColor]
|
|
163
|
+
]),
|
|
164
|
+
t(p, {
|
|
165
|
+
value: e.value.borderStyle,
|
|
166
|
+
"onUpdate:value": o[5] || (o[5] = (l) => e.value.borderStyle = l),
|
|
167
|
+
size: "small"
|
|
168
|
+
}, {
|
|
169
|
+
default: n(() => [
|
|
170
|
+
(r(), c(O, null, B(E, (l) => t(d, {
|
|
171
|
+
key: l.value,
|
|
172
|
+
value: l.value
|
|
173
|
+
}, {
|
|
174
|
+
default: n(() => [
|
|
175
|
+
(r(), C(h(l.icon)))
|
|
176
|
+
]),
|
|
177
|
+
_: 2
|
|
178
|
+
}, 1032, ["value"])), 64))
|
|
179
|
+
]),
|
|
180
|
+
_: 1
|
|
181
|
+
}, 8, ["value"])
|
|
182
|
+
])
|
|
183
|
+
]);
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
}), ue = /* @__PURE__ */ ee(oe, [["__scopeId", "data-v-553e4e34"]]);
|
|
187
|
+
export {
|
|
188
|
+
ue as default
|
|
189
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as n, resolveComponent as t,
|
|
1
|
+
import { defineComponent as n, resolveComponent as t, openBlock as c, createBlock as p } from "vue";
|
|
2
2
|
const a = /* @__PURE__ */ n({
|
|
3
3
|
__name: "Demo copy",
|
|
4
4
|
setup(r) {
|
|
5
5
|
return (o, s) => {
|
|
6
6
|
const e = t("c-echarts-pie");
|
|
7
|
-
return
|
|
7
|
+
return c(), p(e, { options: o.chartOptionss }, null, 8, ["options"]);
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
10
|
});
|