g-ui-web 0.10.3 → 0.10.5

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,2 +1,2 @@
1
- declare const getBarOptions: (options?: object, num?: number) => {};
1
+ declare const getBarOptions: (options?: object, num?: number, direction?: string) => {};
2
2
  export { getBarOptions };
@@ -1,4 +1,4 @@
1
- export declare const barOptions: (num: any) => {
1
+ export declare const barOptions: (num: any, direction: any) => {
2
2
  backgroundColor: any;
3
3
  legend: {
4
4
  trigger: string;
package/lib/g-ui-web.js CHANGED
@@ -93981,13 +93981,13 @@ const Qit = (e, t) => {
93981
93981
  ]);
93982
93982
  };
93983
93983
  }
93984
- }), ost = lr(ast), Nb = Qn(), ist = (e) => {
93985
- let t = [], r = [], n = [];
93986
- for (let a = 0; a < e; a++)
93987
- t.push({
93984
+ }), ost = lr(ast), Nb = Qn(), ist = (e, t) => {
93985
+ let r = [], n = [], a = [];
93986
+ for (let o = 0; o < e; o++)
93987
+ r.push({
93988
93988
  barWidth: Nb.chartOption.barWidth
93989
93989
  // label: { show: true, position: "top" }
93990
- }), n.push({
93990
+ }), a.push({
93991
93991
  splitLine: { lineStyle: { type: "dashed" } },
93992
93992
  axisLine: {
93993
93993
  show: !1
@@ -93995,7 +93995,7 @@ const Qit = (e, t) => {
93995
93995
  axisTick: {
93996
93996
  show: !1
93997
93997
  }
93998
- }), r.push({
93998
+ }), n.push({
93999
93999
  axisTick: {
94000
94000
  show: !1
94001
94001
  },
@@ -94024,14 +94024,14 @@ const Qit = (e, t) => {
94024
94024
  containLabel: !0
94025
94025
  },
94026
94026
  color: Nb.chartOption.colors,
94027
- xAxis: r,
94028
- yAxis: n,
94029
- series: t
94027
+ xAxis: n,
94028
+ yAxis: a,
94029
+ series: r
94030
94030
  };
94031
- }, yB = (e, t) => {
94032
- const r = z({});
94033
- return r.value = Vn({}, ist(t), e), {
94034
- ...On(r.value)
94031
+ }, yB = (e, t, r) => {
94032
+ const n = z({});
94033
+ return n.value = Vn({}, ist(t), e), {
94034
+ ...On(n.value)
94035
94035
  };
94036
94036
  }, sst = { class: "g-bar" }, lst = H({
94037
94037
  name: "GBar"
@@ -94093,7 +94093,7 @@ const Qit = (e, t) => {
94093
94093
  }), r.dbOptions.direction == "horizontal" ? f.xAxis = Vn({}, f.xAxis, _) : f.yAxis = Vn({}, f.yAxis, _);
94094
94094
  }
94095
94095
  }
94096
- f ? n.value = yB(f, r.dbOptions.columns.length) : n.value = yB(g, r.dbOptions.columns.length);
94096
+ f ? n.value = yB(f, r.dbOptions.columns.length, r.dbOptions.direction) : n.value = yB(g, r.dbOptions.columns.length, r.dbOptions.direction);
94097
94097
  };
94098
94098
  return Ae(
94099
94099
  () => r.dbOptions.data,
@@ -94128,7 +94128,7 @@ const Qit = (e, t) => {
94128
94128
  ]);
94129
94129
  };
94130
94130
  }
94131
- }), cst = /* @__PURE__ */ Ia(ust, [["__scopeId", "data-v-026184bf"]]), dst = lr(cst), $b = Qn(), fst = {
94131
+ }), cst = /* @__PURE__ */ Ia(ust, [["__scopeId", "data-v-4e402101"]]), dst = lr(cst), $b = Qn(), fst = {
94132
94132
  backgroundColor: $b.chartOption.backgroundColor,
94133
94133
  color: $b.chartOption.colors,
94134
94134
  tooltip: {
@@ -95163,17 +95163,11 @@ const Zst = /* @__PURE__ */ _l(Xst), Jst = ["id"], Qst = /* @__PURE__ */ H({
95163
95163
  }, nlt = {
95164
95164
  key: 0,
95165
95165
  class: "g-target-tooltip"
95166
- }, alt = { class: "bottom" }, olt = {
95166
+ }, alt = { class: "bottom" }, olt = { class: "field" }, ilt = {
95167
95167
  key: 0,
95168
- class: "field"
95169
- }, ilt = {
95170
- key: 1,
95171
95168
  class: "unit"
95172
- }, slt = { class: "top" }, llt = { class: "field_box" }, ult = {
95169
+ }, slt = { class: "top" }, llt = { class: "field_box" }, ult = { class: "field" }, clt = {
95173
95170
  key: 0,
95174
- class: "field"
95175
- }, clt = {
95176
- key: 1,
95177
95171
  class: "unit"
95178
95172
  }, dlt = { class: "bottom" }, flt = {
95179
95173
  key: 0,
@@ -95184,10 +95178,7 @@ const Zst = /* @__PURE__ */ _l(Xst), Jst = ["id"], Qst = /* @__PURE__ */ H({
95184
95178
  }, hlt = { class: "left_box" }, vlt = { class: "title" }, glt = {
95185
95179
  key: 0,
95186
95180
  class: "g-target-tooltip"
95187
- }, mlt = { class: "right_box" }, ylt = {
95188
- key: 0,
95189
- class: "field"
95190
- }, blt = { class: "unit" }, _lt = H({
95181
+ }, mlt = { class: "right_box" }, ylt = { class: "field" }, blt = { class: "unit" }, _lt = H({
95191
95182
  name: "GTargetS"
95192
95183
  }), wlt = /* @__PURE__ */ H({
95193
95184
  ..._lt,
@@ -95236,15 +95227,15 @@ const Zst = /* @__PURE__ */ _l(Xst), Jst = ["id"], Qst = /* @__PURE__ */ H({
95236
95227
  emits: ["click"],
95237
95228
  setup(e, { expose: t, emit: r }) {
95238
95229
  Vd((M) => ({
95239
- "3b4593f8": l.value,
95240
- "43ae0894": u.value,
95241
- b1c0fb16: c.value,
95242
- d16c750c: d.value,
95243
- "1c4df0c1": f.value,
95244
- 28431295: g.value,
95245
- "5543d27c": h.value,
95246
- "5562c713": v.value,
95247
- "6743e3fe": m.value
95230
+ 68726568: l.value,
95231
+ a163dfcc: u.value,
95232
+ "0ac60ade": c.value,
95233
+ "74be9496": d.value,
95234
+ "2360e646": f.value,
95235
+ "7dc9f8f9": g.value,
95236
+ "2668e6e0": h.value,
95237
+ "32d7962f": v.value,
95238
+ "3868f862": m.value
95248
95239
  }));
95249
95240
  const n = Qn(), a = e, o = O(() => a.bg && a.type != "default" ? `g-target-s-top-${a.size} g-target-s-${a.type} g-target-s-bg` : a.border && !a.bg ? `g-target-s-top-${a.size} g-target-s-${a.type} g-target-s-border` : `g-target-s-top-${a.size} g-target-s-${a.type}`), i = O(() => a.bg && a.type != "default" ? `g-target-s-bottom-${a.size} g-target-s-${a.type} g-target-s-bg` : a.border && !a.bg ? `g-target-s-bottom-${a.size} g-target-s-${a.type} g-target-s-border` : `g-target-s-bottom-${a.size} g-target-s-${a.type}`), s = O(() => a.bg && a.type != "default" ? `g-target-s-left-${a.size} g-target-s-${a.type} g-target-s-bg` : a.border && !a.bg ? `g-target-s-left-${a.size} g-target-s-${a.type} g-target-s-border` : `g-target-s-left-${a.size} g-target-s-${a.type}`), l = O(() => a.border ? "1px solid" : "0"), u = O(() => a.border ? "var(--border-radius-base)" : ""), c = O(() => a.bg ? `var(--color-${a.type}-lights-7)` : ""), d = O(() => a.bg ? `var(--color-${a.type})` : ""), f = O(() => a.border ? `var(--color-${a.type})` : ""), p = O(() => {
95250
95241
  if (a.aspect)
@@ -95284,7 +95275,7 @@ const Zst = /* @__PURE__ */ _l(Xst), Jst = ["id"], Qst = /* @__PURE__ */ H({
95284
95275
  const y = z(null), w = z({}), x = z({});
95285
95276
  let C = null, S = z(!1);
95286
95277
  const E = async (M) => {
95287
- S.value = !1, T(), _.value = M[a.dbOptions.dataField], C = w.value, S.value = !0;
95278
+ S.value = !1, T(), _.value = M[a.dbOptions.dataField], console.log(_.value + "optData"), C = w.value, S.value = !0;
95288
95279
  }, T = () => {
95289
95280
  w.value = a.dbOptions.columns && a.dbOptions.columns.length > 0 && a.dbOptions.columns.find((M) => M.field === a.dbOptions.dataField);
95290
95281
  };
@@ -95362,7 +95353,7 @@ const Zst = /* @__PURE__ */ _l(Xst), Jst = ["id"], Qst = /* @__PURE__ */ H({
95362
95353
  ])) : ce("", !0)
95363
95354
  ]),
95364
95355
  $("div", alt, [
95365
- b(_) ? (k(), F("div", olt, $e(b(_) || "--"), 1)) : ce("", !0),
95356
+ $("div", olt, $e(b(_) || "--"), 1),
95366
95357
  w.value && w.value.unit ? (k(), F("div", ilt, $e(w.value.unit), 1)) : ce("", !0)
95367
95358
  ])
95368
95359
  ], 2)) : ce("", !0),
@@ -95379,7 +95370,7 @@ const Zst = /* @__PURE__ */ _l(Xst), Jst = ["id"], Qst = /* @__PURE__ */ H({
95379
95370
  }, $e(a.aspect), 5)) : ce("", !0),
95380
95371
  $("div", slt, [
95381
95372
  $("div", llt, [
95382
- b(_) ? (k(), F("div", ult, $e(b(_) || "--"), 1)) : ce("", !0),
95373
+ $("div", ult, $e(b(_) || "--"), 1),
95383
95374
  w.value && w.value.unit ? (k(), F("div", clt, $e(w.value.unit), 1)) : ce("", !0)
95384
95375
  ]),
95385
95376
  e.arrow ? (k(), F("div", {
@@ -95456,10 +95447,10 @@ const Zst = /* @__PURE__ */ _l(Xst), Jst = ["id"], Qst = /* @__PURE__ */ H({
95456
95447
  ])
95457
95448
  ]),
95458
95449
  $("div", mlt, [
95459
- b(_) ? (k(), F("div", ylt, $e(b(_) || "--"), 1)) : ce("", !0),
95450
+ $("div", ylt, $e(b(_) || "--"), 1),
95460
95451
  $("div", blt, $e(w.value.unit), 1),
95461
95452
  e.arrow ? (k(), F("div", {
95462
- key: 1,
95453
+ key: 0,
95463
95454
  class: "arrow",
95464
95455
  onClick: A[2] || (A[2] = (L) => M.$emit("click", L))
95465
95456
  }, [
@@ -95475,7 +95466,7 @@ const Zst = /* @__PURE__ */ _l(Xst), Jst = ["id"], Qst = /* @__PURE__ */ H({
95475
95466
  ], 64);
95476
95467
  };
95477
95468
  }
95478
- }), xlt = /* @__PURE__ */ Ia(wlt, [["__scopeId", "data-v-5a8ac1fe"]]), Clt = lr(xlt), Slt = { class: "left" }, Elt = { class: "right" }, Tlt = { class: "top" }, Mlt = { class: "bottom" }, Alt = H({
95469
+ }), xlt = /* @__PURE__ */ Ia(wlt, [["__scopeId", "data-v-6571ac9d"]]), Clt = lr(xlt), Slt = { class: "left" }, Elt = { class: "right" }, Tlt = { class: "top" }, Mlt = { class: "bottom" }, Alt = H({
95479
95470
  name: "GTargetR"
95480
95471
  }), klt = /* @__PURE__ */ H({
95481
95472
  ...Alt,
@@ -96059,12 +96050,12 @@ const Zst = /* @__PURE__ */ _l(Xst), Jst = ["id"], Qst = /* @__PURE__ */ H({
96059
96050
  setup(e, { expose: t, emit: r }) {
96060
96051
  var w;
96061
96052
  Vd((x) => ({
96062
- "3bd14888": l.value,
96063
- "074b25e0": s.value,
96064
- "220aaa4d": f.value,
96065
- "6d88ce34": c.value,
96066
- "7733745b": d.value,
96067
- "7f88dfb6": h.value
96053
+ b5174f7c: l.value,
96054
+ dc8cfecc: s.value,
96055
+ fbcac55a: f.value,
96056
+ e288638c: c.value,
96057
+ "573d5b95": d.value,
96058
+ be884088: h.value
96068
96059
  }));
96069
96060
  const n = Qn(), a = z(null), o = e, i = O(() => {
96070
96061
  if (o.bg)
Binary file