@newview/ui 1.1.85 → 1.1.87

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.
@@ -60865,6 +60865,17 @@ let GridInstanceJava$1 = class GridInstanceJava2 extends BaseInstance {
60865
60865
  return this.props.option.event.event_rowspanMethod({ row, _rowIndex, column, visibleData });
60866
60866
  }
60867
60867
  });
60868
+ /**
60869
+ * 表尾数据
60870
+ * @returns
60871
+ */
60872
+ __publicField2(this, "footerMethod", ({ columns, data: data2 }) => {
60873
+ if (this.props.option.event && this.props.option.event.event_footerMethod) {
60874
+ return this.props.option.event.event_footerMethod({ columns, data: data2 });
60875
+ } else {
60876
+ return [];
60877
+ }
60878
+ });
60868
60879
  //#endregion 查询面板 End
60869
60880
  /**
60870
60881
  * 清除当前选中行
@@ -61186,6 +61197,16 @@ let GridInstanceJava$1 = class GridInstanceJava2 extends BaseInstance {
61186
61197
  }
61187
61198
  return true;
61188
61199
  });
61200
+ /**
61201
+ * 显示表尾
61202
+ * @returns
61203
+ */
61204
+ __publicField2(this, "getShowFooter", () => {
61205
+ if (this.props.option.setting) {
61206
+ return this.props.option.setting.showFooter;
61207
+ }
61208
+ return false;
61209
+ });
61189
61210
  /**
61190
61211
  * 行附加 className
61191
61212
  * @returns
@@ -61972,6 +61993,13 @@ let GridInstanceJava$1 = class GridInstanceJava2 extends BaseInstance {
61972
61993
  __publicField2(this, "exportExcel", (exportDatas, fileName, merges, style2) => {
61973
61994
  new ExcelHelper().downloadExcelAndSetStyle(exportDatas, fileName + ".xlsx", merges, style2);
61974
61995
  });
61996
+ /**
61997
+ * 获取合并单元格配置
61998
+ */
61999
+ __publicField2(this, "getMergeCells", () => {
62000
+ var _a;
62001
+ return this.props.option.setting && ((_a = this.props.option.setting) == null ? void 0 : _a.mergeCells);
62002
+ });
61975
62003
  this.props = props;
61976
62004
  this.ctx = ctx;
61977
62005
  CreatGridRenderer();
@@ -62094,8 +62122,8 @@ let GridInstanceJava$1 = class GridInstanceJava2 extends BaseInstance {
62094
62122
  }
62095
62123
  //#endregion 公开方法 END
62096
62124
  };
62097
- const GridJava_vue_vue_type_style_index_0_scoped_3822ca27_lang = "";
62098
- const _withScopeId$2 = (n) => (pushScopeId("data-v-3822ca27"), n = n(), popScopeId(), n);
62125
+ const GridJava_vue_vue_type_style_index_0_scoped_2aa27996_lang = "";
62126
+ const _withScopeId$2 = (n) => (pushScopeId("data-v-2aa27996"), n = n(), popScopeId(), n);
62099
62127
  const _hoisted_1$a = { class: "nv-crud nv-pos-r" };
62100
62128
  const _hoisted_2$7 = { class: "grid-msg" };
62101
62129
  const _hoisted_3$6 = { class: "nv-crud-body" };
@@ -62250,10 +62278,13 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
62250
62278
  "edit-rules": _ctx.getEditRules(),
62251
62279
  "menu-config": _ctx.getMenuConfig(),
62252
62280
  "filter-config": _ctx.getFilterConfig(),
62281
+ "merge-cells": _ctx.getMergeCells(),
62253
62282
  "span-method": _ctx.rowspanMethod,
62283
+ "footer-method": _ctx.footerMethod,
62254
62284
  "checkbox-config": _ctx.getCheckboxConfig(),
62255
62285
  stripe: _ctx.getStripe(),
62256
62286
  "show-overflow": _ctx.getShowOverflow(),
62287
+ "show-footer": _ctx.getShowFooter(),
62257
62288
  onKeydownStart: _ctx.gridEvents.keydownStart,
62258
62289
  onKeydown: _ctx.gridEvents.keydown,
62259
62290
  onKeydownEnd: _ctx.gridEvents.keydownEnd,
@@ -62301,7 +62332,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
62301
62332
  }, null, 8, ["columns", "xTable", "onClearRadioRow", "onDelete", "onAddchild"])
62302
62333
  ]),
62303
62334
  _: 1
62304
- }, 16, ["empty-text", "data", "footer-data", "border", "show-header", "row-class-name", "cell-class-name", "row-config", "edit-config", "tree-config", "edit-rules", "menu-config", "filter-config", "span-method", "checkbox-config", "stripe", "show-overflow", "onKeydownStart", "onKeydown", "onKeydownEnd", "onPaste", "onCopy", "onCut", "onCurrentChange", "onRadioChange", "onCheckboxChange", "onCheckboxAll", "onCheckboxRangeStart", "onCheckboxRangeChange", "onCheckboxRangeEnd", "onCellClick", "onCellDblclick", "onCellMenu", "onCellMouseenter", "onCellMouseleave", "onHeaderCellClick", "onHeaderCellDblclick", "onHeaderCellMenu", "onFooterCellClick", "onFooterCellDblclick", "onFooterCellMenu", "onSortChange", "onFilterChange", "onResizableChange", "onToggleRowExpand", "onToggleTreeExpand", "onMenuClick", "onEditClosed", "onEditActived", "onEditDisabled", "onValidError", "onScroll", "onCustom"]), [
62335
+ }, 16, ["empty-text", "data", "footer-data", "border", "show-header", "row-class-name", "cell-class-name", "row-config", "edit-config", "tree-config", "edit-rules", "menu-config", "filter-config", "merge-cells", "span-method", "footer-method", "checkbox-config", "stripe", "show-overflow", "show-footer", "onKeydownStart", "onKeydown", "onKeydownEnd", "onPaste", "onCopy", "onCut", "onCurrentChange", "onRadioChange", "onCheckboxChange", "onCheckboxAll", "onCheckboxRangeStart", "onCheckboxRangeChange", "onCheckboxRangeEnd", "onCellClick", "onCellDblclick", "onCellMenu", "onCellMouseenter", "onCellMouseleave", "onHeaderCellClick", "onHeaderCellDblclick", "onHeaderCellMenu", "onFooterCellClick", "onFooterCellDblclick", "onFooterCellMenu", "onSortChange", "onFilterChange", "onResizableChange", "onToggleRowExpand", "onToggleTreeExpand", "onMenuClick", "onEditClosed", "onEditActived", "onEditDisabled", "onValidError", "onScroll", "onCustom"]), [
62305
62336
  [vShow, _ctx.showTable]
62306
62337
  ])
62307
62338
  ], 512)
@@ -62319,7 +62350,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
62319
62350
  ])) : createCommentVNode("", true)
62320
62351
  ]);
62321
62352
  }
62322
- const GridJava = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-3822ca27"]]);
62353
+ const GridJava = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-2aa27996"]]);
62323
62354
  const propDefine$p = {
62324
62355
  width: {
62325
62356
  // Box 宽度
@@ -242091,6 +242122,17 @@ class GridInstanceJava extends BaseInstance {
242091
242122
  return this.props.option.event.event_rowspanMethod({ row, _rowIndex, column, visibleData });
242092
242123
  }
242093
242124
  });
242125
+ /**
242126
+ * 表尾数据
242127
+ * @returns
242128
+ */
242129
+ __publicField2(this, "footerMethod", ({ columns, data: data2 }) => {
242130
+ if (this.props.option.event && this.props.option.event.event_footerMethod) {
242131
+ return this.props.option.event.event_footerMethod({ columns, data: data2 });
242132
+ } else {
242133
+ return [];
242134
+ }
242135
+ });
242094
242136
  //#endregion 查询面板 End
242095
242137
  /**
242096
242138
  * 清除当前选中行
@@ -242412,6 +242454,16 @@ class GridInstanceJava extends BaseInstance {
242412
242454
  }
242413
242455
  return true;
242414
242456
  });
242457
+ /**
242458
+ * 显示表尾
242459
+ * @returns
242460
+ */
242461
+ __publicField2(this, "getShowFooter", () => {
242462
+ if (this.props.option.setting) {
242463
+ return this.props.option.setting.showFooter;
242464
+ }
242465
+ return false;
242466
+ });
242415
242467
  /**
242416
242468
  * 行附加 className
242417
242469
  * @returns
@@ -243198,6 +243250,13 @@ class GridInstanceJava extends BaseInstance {
243198
243250
  __publicField2(this, "exportExcel", (exportDatas, fileName, merges, style2) => {
243199
243251
  new ExcelHelper().downloadExcelAndSetStyle(exportDatas, fileName + ".xlsx", merges, style2);
243200
243252
  });
243253
+ /**
243254
+ * 获取合并单元格配置
243255
+ */
243256
+ __publicField2(this, "getMergeCells", () => {
243257
+ var _a;
243258
+ return this.props.option.setting && ((_a = this.props.option.setting) == null ? void 0 : _a.mergeCells);
243259
+ });
243201
243260
  this.props = props;
243202
243261
  this.ctx = ctx;
243203
243262
  CreatGridRenderer();