g-ui-web 1.0.22 → 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,22 +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(
115174
- (A) => A[o.dbOptions.axisField] === S[o.dbOptions.axisField]
115175
- );
115176
- E || (E = {
115177
- [o.dbOptions.axisField]: S[o.dbOptions.axisField],
115178
- [o.dbOptions.dataField]: S[o.dbOptions.dataField],
115179
- children: []
115180
- }, x.push(E));
115181
- const T = {
115182
- [o.dbOptions.cDataField]: S[o.dbOptions.cDataField],
115183
- [o.dbOptions.cAxisField]: S[o.dbOptions.cAxisField]
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
115184
115185
  };
115185
- E.children.push(T);
115186
- }), x;
115186
+ });
115187
115187
  }, v = B({}), g = o.dbOptions.columns.find((C) => C.field === o.dbOptions.dataField), m = async (C) => {
115188
115188
  if (C = h(C), ya(C)) {
115189
115189
  s.value = !0;
@@ -115192,29 +115192,29 @@ const b6t = { class: "g-datatable" }, _6t = H({
115192
115192
  s.value = !1;
115193
115193
  p = {
115194
115194
  series: [{}]
115195
- }, f = [], d.value = C, d.value && o.dbOptions && (d.value.map((x) => {
115196
- let S = {
115197
- 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]],
115198
115198
  value: x[o.dbOptions.dataField],
115199
- children: x.children.map((E) => ({
115200
- name: E[o.dbOptions.cAxisField],
115201
- value: E[o.dbOptions.cDataField]
115199
+ children: x.children.map((T) => ({
115200
+ name: T[o.dbOptions.axisFields[1]],
115201
+ value: T[o.dbOptions.dataField]
115202
115202
  }))
115203
115203
  };
115204
- f.push(S);
115204
+ f.push(E);
115205
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, {
115206
115206
  type: o.type,
115207
115207
  size: o.size,
115208
115208
  isMarkLine: o.isMarkLine,
115209
115209
  markLineData: o.markLineData,
115210
- title: g.title,
115210
+ title: "",
115211
115211
  unit: g.unit
115212
115212
  }) : c.value = CW(p, {
115213
115213
  type: o.type,
115214
115214
  size: o.size,
115215
115215
  isMarkLine: o.isMarkLine,
115216
115216
  markLineData: o.markLineData,
115217
- title: g.title,
115217
+ title: "",
115218
115218
  unit: g.unit
115219
115219
  }), _(1);
115220
115220
  };
@@ -115230,7 +115230,7 @@ const b6t = { class: "g-datatable" }, _6t = H({
115230
115230
  size: o.size,
115231
115231
  isMarkLine: o.isMarkLine,
115232
115232
  markLineData: o.markLineData,
115233
- title: g.title,
115233
+ title: "",
115234
115234
  unit: g.unit
115235
115235
  },
115236
115236
  y.value
@@ -115246,7 +115246,7 @@ const b6t = { class: "g-datatable" }, _6t = H({
115246
115246
  size: o.size,
115247
115247
  isMarkLine: o.isMarkLine,
115248
115248
  markLineData: o.markLineData,
115249
- title: g.title,
115249
+ title: "",
115250
115250
  unit: g == null ? void 0 : g.unit
115251
115251
  })) : (y.value = S.dataIndex, c.value = q8(
115252
115252
  c.value,
@@ -115255,7 +115255,7 @@ const b6t = { class: "g-datatable" }, _6t = H({
115255
115255
  size: o.size,
115256
115256
  isMarkLine: o.isMarkLine,
115257
115257
  markLineData: o.markLineData,
115258
- title: g.title,
115258
+ title: "",
115259
115259
  unit: g == null ? void 0 : g.unit
115260
115260
  },
115261
115261
  S.dataIndex
@@ -115317,7 +115317,7 @@ const b6t = { class: "g-datatable" }, _6t = H({
115317
115317
  ], 2);
115318
115318
  };
115319
115319
  }
115320
- }), M8t = /* @__PURE__ */ Qn(A8t, [["__scopeId", "data-v-5b1d7bcd"]]), 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 = {
115321
115321
  key: 0,
115322
115322
  class: "todoList"
115323
115323
  }, N8t = { class: "popover-inbox" }, $8t = ["onClick"], V8t = {
Binary file