@stlhorizon/vue-ui 3.15.19 → 3.15.20
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/index.esm.js
CHANGED
|
@@ -16151,9 +16151,15 @@ const Qb = /* @__PURE__ */ Rt(Tb, [["render", Xb]]), Jb = { class: "w-full h-ful
|
|
|
16151
16151
|
const C = {
|
|
16152
16152
|
data: F,
|
|
16153
16153
|
labels: O.slice(0, F.length),
|
|
16154
|
+
width: 400,
|
|
16155
|
+
height: 400,
|
|
16154
16156
|
...t.chartOptions
|
|
16155
16157
|
};
|
|
16156
|
-
|
|
16158
|
+
if (f.value.legend !== void 0 && (C.showLegend = f.value.legend), f.value.grid !== void 0 && (C.showGrid = f.value.grid), f.value.values !== void 0 && (C.showValues = f.value.values), f.value.percentages !== void 0 && (C.showPercentages = f.value.percentages), f.value.points !== void 0 && (C.showPoints = f.value.points), f.value.fillArea !== void 0 && (C.fillArea = f.value.fillArea), t.chartData.datasets?.[0]?.backgroundColor) {
|
|
16159
|
+
const N = t.chartData.datasets[0].backgroundColor;
|
|
16160
|
+
C.colors = Array.isArray(N) ? N : [N];
|
|
16161
|
+
}
|
|
16162
|
+
return t.chartData.datasets?.[0]?.borderColor && (C.lineColor = t.chartData.datasets[0].borderColor), C;
|
|
16157
16163
|
}), k = b(() => {
|
|
16158
16164
|
switch (t.chartType) {
|
|
16159
16165
|
case "bar":
|
|
@@ -16311,7 +16317,7 @@ const Qb = /* @__PURE__ */ Rt(Tb, [["render", Xb]]), Jb = { class: "w-full h-ful
|
|
|
16311
16317
|
])) : p("", !0),
|
|
16312
16318
|
e.chartType && e.chartData && k.value && z.value ? (s(), i("div", {
|
|
16313
16319
|
key: 1,
|
|
16314
|
-
class: v(["w-full h-full", u[e.padding]])
|
|
16320
|
+
class: v(["w-full h-full flex items-center justify-center", u[e.padding]])
|
|
16315
16321
|
}, [
|
|
16316
16322
|
(s(), q($e(k.value), ht(z.value, { doughnut: H.value }), null, 16, ["doughnut"]))
|
|
16317
16323
|
], 2)) : (s(), i("div", {
|