g-ui-web 1.0.21 → 1.0.23

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
@@ -115168,13 +115168,22 @@ const b6t = { class: "g-datatable" }, _6t = H({
115168
115168
  ]
115169
115169
  };
115170
115170
  const h = (C) => {
115171
- const x = [];
115172
- return C.forEach((S) => {
115173
- let E = x.find((A) => A.source === S.source);
115174
- E || (E = { source: S.source, count: S.count, children: [] }, x.push(E));
115175
- const T = { source1: S.source1, count1: S.count1 };
115176
- E.children.push(T);
115177
- }), x;
115171
+ let x = o.dbOptions.axisFields;
115172
+ const S = o.dbOptions.dataField, E = C.reduce((A, M) => {
115173
+ const k = M[x[0]];
115174
+ return A[k] || (A[k] = []), A[k].push(M), A;
115175
+ }, {});
115176
+ return Object.entries(E).map(([A, M]) => {
115177
+ const k = M.reduce((F, R) => F + Number(R[S]), 0), O = M.map((F) => ({
115178
+ [x[1]]: F[x[1]],
115179
+ [S]: F[S]
115180
+ }));
115181
+ return {
115182
+ [x[0]]: A,
115183
+ [S]: k,
115184
+ children: O
115185
+ };
115186
+ });
115178
115187
  }, v = B({}), g = o.dbOptions.columns.find((C) => C.field === o.dbOptions.dataField), m = async (C) => {
115179
115188
  if (C = h(C), ya(C)) {
115180
115189
  s.value = !0;
@@ -115183,29 +115192,29 @@ const b6t = { class: "g-datatable" }, _6t = H({
115183
115192
  s.value = !1;
115184
115193
  p = {
115185
115194
  series: [{}]
115186
- }, f = [], d.value = C, d.value && o.dbOptions && (d.value.map((x) => {
115187
- let S = {
115188
- name: x[o.dbOptions.axisField],
115195
+ }, f = [], d.value = C, d.value && o.dbOptions && (d.value.map((x, S) => {
115196
+ let E = {
115197
+ name: x[o.dbOptions.axisFields[0]],
115189
115198
  value: x[o.dbOptions.dataField],
115190
- children: x.children.map((E) => ({
115191
- name: E[o.dbOptions.cAxisField],
115192
- value: E[o.dbOptions.cDataField]
115199
+ children: x.children.map((T) => ({
115200
+ name: T[o.dbOptions.axisFields[1]],
115201
+ value: T[o.dbOptions.dataField]
115193
115202
  }))
115194
115203
  };
115195
- f.push(S);
115204
+ f.push(E);
115196
115205
  }), o.options ? o.options.series ? o.options.series[0].data = f : o.options.series = [{ data: f }] : p.series[0].data = f), o.options ? c.value = CW(o.options, {
115197
115206
  type: o.type,
115198
115207
  size: o.size,
115199
115208
  isMarkLine: o.isMarkLine,
115200
115209
  markLineData: o.markLineData,
115201
- title: g.title,
115210
+ title: "",
115202
115211
  unit: g.unit
115203
115212
  }) : c.value = CW(p, {
115204
115213
  type: o.type,
115205
115214
  size: o.size,
115206
115215
  isMarkLine: o.isMarkLine,
115207
115216
  markLineData: o.markLineData,
115208
- title: g.title,
115217
+ title: "",
115209
115218
  unit: g.unit
115210
115219
  }), _(1);
115211
115220
  };
@@ -115221,7 +115230,7 @@ const b6t = { class: "g-datatable" }, _6t = H({
115221
115230
  size: o.size,
115222
115231
  isMarkLine: o.isMarkLine,
115223
115232
  markLineData: o.markLineData,
115224
- title: g.title,
115233
+ title: "",
115225
115234
  unit: g.unit
115226
115235
  },
115227
115236
  y.value
@@ -115237,7 +115246,7 @@ const b6t = { class: "g-datatable" }, _6t = H({
115237
115246
  size: o.size,
115238
115247
  isMarkLine: o.isMarkLine,
115239
115248
  markLineData: o.markLineData,
115240
- title: g.title,
115249
+ title: "",
115241
115250
  unit: g == null ? void 0 : g.unit
115242
115251
  })) : (y.value = S.dataIndex, c.value = q8(
115243
115252
  c.value,
@@ -115246,7 +115255,7 @@ const b6t = { class: "g-datatable" }, _6t = H({
115246
115255
  size: o.size,
115247
115256
  isMarkLine: o.isMarkLine,
115248
115257
  markLineData: o.markLineData,
115249
- title: g.title,
115258
+ title: "",
115250
115259
  unit: g == null ? void 0 : g.unit
115251
115260
  },
115252
115261
  S.dataIndex
@@ -115308,7 +115317,7 @@ const b6t = { class: "g-datatable" }, _6t = H({
115308
115317
  ], 2);
115309
115318
  };
115310
115319
  }
115311
- }), M8t = /* @__PURE__ */ Qn(A8t, [["__scopeId", "data-v-50060849"]]), k8t = tr(M8t), D8t = { class: "g-calendar" }, O8t = { class: "g-calendar-header" }, I8t = { class: "switch-box" }, L8t = { class: "switch-box1" }, R8t = { class: "switch-box2" }, P8t = {
115320
+ }), M8t = /* @__PURE__ */ Qn(A8t, [["__scopeId", "data-v-d3bfdd6c"]]), k8t = tr(M8t), D8t = { class: "g-calendar" }, O8t = { class: "g-calendar-header" }, I8t = { class: "switch-box" }, L8t = { class: "switch-box1" }, R8t = { class: "switch-box2" }, P8t = {
115312
115321
  key: 0,
115313
115322
  class: "todoList"
115314
115323
  }, N8t = { class: "popover-inbox" }, $8t = ["onClick"], V8t = {
Binary file