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