g-ui-web 0.10.32 → 0.10.33

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/lib/g-ui-web.js CHANGED
@@ -95230,44 +95230,46 @@ const Cst = (e, t) => {
95230
95230
  let l = [], u = {
95231
95231
  series: [{}]
95232
95232
  };
95233
- const c = z({}), d = async (f) => {
95234
- if (!f || f.length == 0) {
95233
+ const c = z({}), d = () => {
95234
+ l = [];
95235
+ }, f = async (p) => {
95236
+ if (d(), !p || p.length == 0) {
95235
95237
  a.value = !0;
95236
95238
  return;
95237
95239
  } else
95238
95240
  a.value = !1;
95239
- const p = Sg(r.dbOptions.axisField);
95240
- o.value = f, o.value && r.dbOptions && (o.value.map((h) => {
95241
- let v = {
95242
- name: p == "function" ? r.dbOptions.axisField(h) : h[r.dbOptions.axisField],
95243
- value: h[r.dbOptions.dataField]
95241
+ const h = Sg(r.dbOptions.axisField);
95242
+ o.value = p, o.value && r.dbOptions && (o.value.map((v) => {
95243
+ let g = {
95244
+ name: h == "function" ? r.dbOptions.axisField(v) : v[r.dbOptions.axisField],
95245
+ value: v[r.dbOptions.dataField]
95244
95246
  };
95245
- l.push(v);
95246
- }), i ? i.series ? i.series.length > 1 ? i.series.map((h) => {
95247
- h.type == "funnel" && (h.data = l);
95247
+ l.push(g);
95248
+ }), i ? i.series ? i.series.length > 1 ? i.series.map((v) => {
95249
+ v.type == "funnel" && (v.data = l);
95248
95250
  }) : i.series[0].data = l : i.series = [{ data: l }] : u.series[0].data = l), i ? n.value = xB(i) : n.value = xB(u);
95249
95251
  };
95250
95252
  return Me(
95251
95253
  () => r.dbOptions.data,
95252
- (f) => {
95253
- c.value = mr(f);
95254
- const p = ["http://", "https://", void 0];
95255
- !f.path && !f.dsKey && !c.value.dataUrl && !(typeof f == "string" && p.some((h) => f.includes(h))) && c.value.loadStaticData(f), (typeof f == "string" || f.path) && c.value.reload(f.data);
95254
+ (p) => {
95255
+ c.value = mr(p);
95256
+ const h = ["http://", "https://", void 0];
95257
+ !p.path && !p.dsKey && !c.value.dataUrl && !(typeof p == "string" && h.some((v) => p.includes(v))) && c.value.loadStaticData(p), (typeof p == "string" || p.path) && c.value.reload(p.data);
95256
95258
  },
95257
95259
  {
95258
95260
  deep: !0
95259
95261
  }
95260
95262
  ), xe(async () => {
95261
- c.value = mr(r.dbOptions.data), c.value.on("load", (f) => {
95262
- d(f);
95263
+ c.value = mr(r.dbOptions.data), c.value.on("load", (p) => {
95264
+ f(p);
95263
95265
  });
95264
95266
  }), t({
95265
95267
  props: r,
95266
95268
  funnelRef: s
95267
- }), (f, p) => {
95268
- const h = xt("g-chart");
95269
+ }), (p, h) => {
95270
+ const v = xt("g-chart");
95269
95271
  return k(), F("div", ilt, [
95270
- fe(h, $t({ options: n.value }, f.$attrs, {
95272
+ fe(v, $t({ options: n.value }, p.$attrs, {
95271
95273
  ref_key: "funnelRef",
95272
95274
  ref: s,
95273
95275
  isEmpty: a.value
@@ -95275,7 +95277,7 @@ const Cst = (e, t) => {
95275
95277
  ]);
95276
95278
  };
95277
95279
  }
95278
- }), ult = /* @__PURE__ */ ma(llt, [["__scopeId", "data-v-3efbdd24"]]), clt = tr(ult), dlt = Jn(), flt = (e) => ({
95280
+ }), ult = /* @__PURE__ */ ma(llt, [["__scopeId", "data-v-21bb1069"]]), clt = tr(ult), dlt = Jn(), flt = (e) => ({
95279
95281
  backgroundColor: dlt.chartOption.backgroundColor,
95280
95282
  title: {},
95281
95283
  tooltip: {
Binary file