@orchidui/dashboard 1.8.1-57 → 1.8.1-58
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.
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { computed as d, ref as h, openBlock as i, createElementBlock as
|
|
2
|
-
import { useChart as
|
|
3
|
-
const
|
|
1
|
+
import { computed as d, ref as h, openBlock as i, createElementBlock as l, createElementVNode as s, Fragment as m, renderList as u, createCommentVNode as f, toDisplayString as x } from "vue";
|
|
2
|
+
import { useChart as y } from "./Dashboard/composables/useChart.js";
|
|
3
|
+
const g = { class: "grid grid-cols-2" }, v = { class: "pt-4 pb-7 flex flex-col h-[100%]" }, w = { class: "text-[14px] flex flex-1 items-center justify-start pr-2 gap-3" }, b = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "rounded-sm overflow-hidden w-[32px] h-[32px]"
|
|
6
|
+
}, _ = ["src"], F = { class: "truncate" }, A = {
|
|
4
7
|
__name: "OcBarRaceChart",
|
|
5
8
|
props: {
|
|
6
9
|
variant: {
|
|
@@ -18,10 +21,10 @@ const y = { class: "grid grid-cols-2" }, v = { class: "pt-4 pb-7 flex flex-col h
|
|
|
18
21
|
tooltipValueFormatter: Function
|
|
19
22
|
},
|
|
20
23
|
setup(a) {
|
|
21
|
-
const t = a,
|
|
24
|
+
const t = a, n = {
|
|
22
25
|
primary: "#2465DE",
|
|
23
26
|
purple: "#B14AED"
|
|
24
|
-
},
|
|
27
|
+
}, p = d(() => ({
|
|
25
28
|
xAxis: {
|
|
26
29
|
show: !1,
|
|
27
30
|
type: "value"
|
|
@@ -96,13 +99,13 @@ const y = { class: "grid grid-cols-2" }, v = { class: "pt-4 pb-7 flex flex-col h
|
|
|
96
99
|
},
|
|
97
100
|
barGap: 0,
|
|
98
101
|
itemStyle: {
|
|
99
|
-
color:
|
|
102
|
+
color: n[t.variant],
|
|
100
103
|
opacity: 0.2,
|
|
101
104
|
borderRadius: [0, 4, 4, 0]
|
|
102
105
|
},
|
|
103
106
|
emphasis: {
|
|
104
107
|
itemStyle: {
|
|
105
|
-
color:
|
|
108
|
+
color: n[t.variant]
|
|
106
109
|
}
|
|
107
110
|
}
|
|
108
111
|
},
|
|
@@ -116,25 +119,31 @@ const y = { class: "grid grid-cols-2" }, v = { class: "pt-4 pb-7 flex flex-col h
|
|
|
116
119
|
},
|
|
117
120
|
barGap: "-100%",
|
|
118
121
|
itemStyle: {
|
|
119
|
-
color:
|
|
122
|
+
color: n[t.variant]
|
|
120
123
|
}
|
|
121
124
|
}
|
|
122
125
|
]
|
|
123
|
-
})),
|
|
124
|
-
return
|
|
125
|
-
|
|
126
|
-
(i(!0),
|
|
127
|
-
l("div",
|
|
126
|
+
})), c = h();
|
|
127
|
+
return y(c, p), (e, o) => (i(), l("div", g, [
|
|
128
|
+
s("div", v, [
|
|
129
|
+
(i(!0), l(m, null, u(a.legendData, (r) => (i(), l("div", w, [
|
|
130
|
+
r.image ? (i(), l("div", b, [
|
|
131
|
+
s("img", {
|
|
132
|
+
src: r.image,
|
|
133
|
+
class: "w-full h-full min-w-[32px] min-h-[32px] object-cover align-middle inline-block"
|
|
134
|
+
}, null, 8, _)
|
|
135
|
+
])) : f("", !0),
|
|
136
|
+
s("div", F, x(r.name ?? r), 1)
|
|
128
137
|
]))), 256))
|
|
129
138
|
]),
|
|
130
|
-
|
|
139
|
+
s("div", {
|
|
131
140
|
ref_key: "barRaceChart",
|
|
132
|
-
ref:
|
|
141
|
+
ref: c,
|
|
133
142
|
class: "h-full"
|
|
134
143
|
}, null, 512)
|
|
135
144
|
]));
|
|
136
145
|
}
|
|
137
146
|
};
|
|
138
147
|
export {
|
|
139
|
-
|
|
148
|
+
A as default
|
|
140
149
|
};
|