sun-form-v3 1.0.108 → 1.0.110
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index-B6-ZAd03.js +246 -0
- package/dist/{index-aVVGTvks.js → index-Bq9YDxLo.js} +89 -89
- package/dist/{index-CcQm-JOw.js → index-CgZIGTO6.js} +1 -1
- package/dist/index-D1gtY3fW.js +127 -0
- package/dist/{index-DKLdVKkV.js → index-DZhx9NrJ.js} +165 -165
- package/dist/{index-QxOmRCLL.js → index-DqiuJ1Kx.js} +100 -100
- package/dist/{index-bVwrXTS-.js → index-vu5RguVQ.js} +26581 -26523
- package/dist/style.css +1 -1
- package/dist/sun-form-v3.es.js +1 -1
- package/dist/sun-form-v3.umd.js +135 -135
- package/package.json +5 -2
- package/dist/index-BOdLFItr.js +0 -127
- package/dist/index-CGcT-fr5.js +0 -246
@@ -0,0 +1,127 @@
|
|
1
|
+
import { computed as j, ref as g, onMounted as $, resolveComponent as f, openBlock as v, createElementBlock as h, Fragment as x, createVNode as u, withCtx as o, createTextVNode as C, createElementVNode as a, renderList as B, unref as V, toDisplayString as N, nextTick as U, createBlock as D } from "vue";
|
2
|
+
import { e as E, i as M } from "./index-vu5RguVQ.js";
|
3
|
+
const R = { class: "flex-wrap flex" }, S = ["onClick"], T = { class: "inner cursor-pointer hover:shadow-md hover:shadow-blue-200 border w-full h-full p-1 flex flex-col overflow-hidden items-center rounded-md shadow-sm" }, z = { class: "lab border-t w-full text-center mt-1 font-bold" }, F = /* @__PURE__ */ Object.assign({ name: "chatChoose" }, {
|
4
|
+
__name: "chartChoose",
|
5
|
+
props: {
|
6
|
+
modelValue: [String, null],
|
7
|
+
default: null
|
8
|
+
},
|
9
|
+
emits: ["update:modelValue"],
|
10
|
+
setup(_, { emit: d }) {
|
11
|
+
const w = d, i = _, n = j({
|
12
|
+
get() {
|
13
|
+
return i.modelValue;
|
14
|
+
},
|
15
|
+
set(l) {
|
16
|
+
w("update:modelValue", l);
|
17
|
+
}
|
18
|
+
}), m = g([]), k = (l, e) => {
|
19
|
+
n.value = e, r.value = !1;
|
20
|
+
}, r = g(!1), y = (l, e, s) => {
|
21
|
+
l && !m[s] && U(() => {
|
22
|
+
const p = M(l);
|
23
|
+
p.setOption(e, null, {
|
24
|
+
renderer: "svg",
|
25
|
+
useDirtyRect: !0
|
26
|
+
}), m[s] = p;
|
27
|
+
});
|
28
|
+
};
|
29
|
+
return $(() => {
|
30
|
+
}), (l, e) => {
|
31
|
+
const s = f("el-button"), p = f("el-input"), O = f("vxe-modal");
|
32
|
+
return v(), h(x, null, [
|
33
|
+
u(p, {
|
34
|
+
modelValue: n.value,
|
35
|
+
"onUpdate:modelValue": e[1] || (e[1] = (t) => n.value = t),
|
36
|
+
placeholder: "请选择图表",
|
37
|
+
readonly: ""
|
38
|
+
}, {
|
39
|
+
append: o(() => [
|
40
|
+
u(s, {
|
41
|
+
onClick: e[0] || (e[0] = (t) => r.value = !0)
|
42
|
+
}, {
|
43
|
+
default: o(() => e[4] || (e[4] = [
|
44
|
+
C("选择")
|
45
|
+
])),
|
46
|
+
_: 1
|
47
|
+
})
|
48
|
+
]),
|
49
|
+
_: 1
|
50
|
+
}, 8, ["modelValue"]),
|
51
|
+
u(O, {
|
52
|
+
transfer: "",
|
53
|
+
modelValue: r.value,
|
54
|
+
"onUpdate:modelValue": e[3] || (e[3] = (t) => r.value = t),
|
55
|
+
width: "80%",
|
56
|
+
height: "80%",
|
57
|
+
"show-footer": ""
|
58
|
+
}, {
|
59
|
+
title: o(() => e[5] || (e[5] = [
|
60
|
+
a("span", null, "图表选择", -1)
|
61
|
+
])),
|
62
|
+
default: o(() => [
|
63
|
+
a("div", R, [
|
64
|
+
(v(!0), h(x, null, B(V(E), (t, c) => (v(), h("div", {
|
65
|
+
key: c,
|
66
|
+
class: "w-1/4 h-80 p-1",
|
67
|
+
onClick: (b) => k(t, c)
|
68
|
+
}, [
|
69
|
+
a("div", T, [
|
70
|
+
a("div", {
|
71
|
+
class: "chart flex-1 w-full p-1",
|
72
|
+
ref_for: !0,
|
73
|
+
ref: (b) => y(b, t, c)
|
74
|
+
}, null, 512),
|
75
|
+
a("div", z, N(c), 1)
|
76
|
+
])
|
77
|
+
], 8, S))), 128))
|
78
|
+
])
|
79
|
+
]),
|
80
|
+
footer: o(() => [
|
81
|
+
u(s, {
|
82
|
+
icon: "Close",
|
83
|
+
size: "small",
|
84
|
+
onClick: e[2] || (e[2] = (t) => r.value = !1)
|
85
|
+
}, {
|
86
|
+
default: o(() => e[6] || (e[6] = [
|
87
|
+
C("关闭")
|
88
|
+
])),
|
89
|
+
_: 1
|
90
|
+
})
|
91
|
+
]),
|
92
|
+
_: 1
|
93
|
+
}, 8, ["modelValue"])
|
94
|
+
], 64);
|
95
|
+
};
|
96
|
+
}
|
97
|
+
}), A = /* @__PURE__ */ Object.assign({ name: "config-echarts" }, {
|
98
|
+
__name: "index",
|
99
|
+
props: {
|
100
|
+
designer: {
|
101
|
+
type: Object,
|
102
|
+
default: {}
|
103
|
+
},
|
104
|
+
widget: {
|
105
|
+
type: Object,
|
106
|
+
default: {}
|
107
|
+
}
|
108
|
+
},
|
109
|
+
setup(_) {
|
110
|
+
let d = _;
|
111
|
+
return (w, i) => {
|
112
|
+
const n = f("common-label-container");
|
113
|
+
return v(), D(n, { label: "图表类型" }, {
|
114
|
+
default: o(() => [
|
115
|
+
u(F, {
|
116
|
+
modelValue: V(d).widget.props.type,
|
117
|
+
"onUpdate:modelValue": i[0] || (i[0] = (m) => V(d).widget.props.type = m)
|
118
|
+
}, null, 8, ["modelValue"])
|
119
|
+
]),
|
120
|
+
_: 1
|
121
|
+
});
|
122
|
+
};
|
123
|
+
}
|
124
|
+
});
|
125
|
+
export {
|
126
|
+
A as default
|
127
|
+
};
|