@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,5 +1,5 @@
1
1
  import { defineAsyncComponent as o } from "vue";
2
- const t = o(() => import("../../../OcBarRaceChart-Cu4K9WI5.js"));
2
+ const t = o(() => import("../../../OcBarRaceChart-Bv-k6V7o.js"));
3
3
  export {
4
4
  t as BarRaceChart
5
5
  };
@@ -1,6 +1,9 @@
1
- import { computed as d, ref as h, openBlock as i, createElementBlock as s, createElementVNode as l, Fragment as m, renderList as u, toDisplayString as f } from "vue";
2
- import { useChart as x } from "./Dashboard/composables/useChart.js";
3
- const y = { 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" }, g = { class: "truncate" }, _ = {
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, r = {
24
+ const t = a, n = {
22
25
  primary: "#2465DE",
23
26
  purple: "#B14AED"
24
- }, c = d(() => ({
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: r[t.variant],
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: r[t.variant]
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: r[t.variant]
122
+ color: n[t.variant]
120
123
  }
121
124
  }
122
125
  ]
123
- })), n = h();
124
- return x(n, c), (e, o) => (i(), s("div", y, [
125
- l("div", v, [
126
- (i(!0), s(m, null, u(a.legendData, (p) => (i(), s("div", b, [
127
- l("div", g, f(p), 1)
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
- l("div", {
139
+ s("div", {
131
140
  ref_key: "barRaceChart",
132
- ref: n,
141
+ ref: c,
133
142
  class: "h-full"
134
143
  }, null, 512)
135
144
  ]));
136
145
  }
137
146
  };
138
147
  export {
139
- _ as default
148
+ A as default
140
149
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orchidui/dashboard",
3
3
  "description": "Orchid Dashboard UI , Dashboard Ui Library Vue 3 tailwind css",
4
- "version": "1.8.1-57",
4
+ "version": "1.8.1-58",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "vite build"