@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,5 +1,5 @@
1
1
  import { defineAsyncComponent as o } from "vue";
2
- const t = o(() => import("../../../OcBarRaceChart-Bv-k6V7o.js"));
2
+ const t = o(() => import("../../../OcBarRaceChart-D_XrqdiO.js"));
3
3
  export {
4
4
  t as BarRaceChart
5
5
  };
@@ -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, 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 = {
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, n = {
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: n[t.variant],
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: n[t.variant]
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: n[t.variant]
119
+ color: r[t.variant]
123
120
  }
124
121
  }
125
122
  ]
126
- })), c = h();
127
- return y(c, p), (e, o) => (i(), l("div", g, [
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, (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)
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: c,
134
+ ref: n,
142
135
  class: "h-full"
143
136
  }, null, 512)
144
137
  ]));
145
138
  }
146
139
  };
147
140
  export {
148
- A as default
141
+ D as default
149
142
  };
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-58",
4
+ "version": "1.8.1-59",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "vite build"