@newview/ui 1.1.75 → 1.1.77

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.
@@ -58024,6 +58024,17 @@ let GridInstance$1 = class GridInstance2 extends BaseInstance {
58024
58024
  return this.props.option.event.event_rowspanMethod({ row, _rowIndex, column, visibleData });
58025
58025
  }
58026
58026
  });
58027
+ /**
58028
+ * 表尾数据
58029
+ * @returns
58030
+ */
58031
+ __publicField2(this, "footerMethod", ({ columns, data: data2 }) => {
58032
+ if (this.props.option.event && this.props.option.event.event_footerMethod) {
58033
+ return this.props.option.event.event_footerMethod({ columns, data: data2 });
58034
+ } else {
58035
+ return [];
58036
+ }
58037
+ });
58027
58038
  //#endregion 查询面板 End
58028
58039
  /**
58029
58040
  * 清除当前选中行
@@ -58345,6 +58356,16 @@ let GridInstance$1 = class GridInstance2 extends BaseInstance {
58345
58356
  }
58346
58357
  return true;
58347
58358
  });
58359
+ /**
58360
+ * 显示表尾
58361
+ * @returns
58362
+ */
58363
+ __publicField2(this, "getShowFooter", () => {
58364
+ if (this.props.option.setting) {
58365
+ return this.props.option.setting.showFooter;
58366
+ }
58367
+ return false;
58368
+ });
58348
58369
  /**
58349
58370
  * 行附加 className
58350
58371
  * @returns
@@ -59364,8 +59385,8 @@ let GridInstance$1 = class GridInstance2 extends BaseInstance {
59364
59385
  }
59365
59386
  //#endregion 公开方法 END
59366
59387
  };
59367
- const Grid_vue_vue_type_style_index_0_scoped_ad6987b7_lang = "";
59368
- const _withScopeId$3 = (n) => (pushScopeId("data-v-ad6987b7"), n = n(), popScopeId(), n);
59388
+ const Grid_vue_vue_type_style_index_0_scoped_d80176c1_lang = "";
59389
+ const _withScopeId$3 = (n) => (pushScopeId("data-v-d80176c1"), n = n(), popScopeId(), n);
59369
59390
  const _hoisted_1$e = { class: "nv-crud nv-pos-r" };
59370
59391
  const _hoisted_2$b = { class: "grid-msg" };
59371
59392
  const _hoisted_3$9 = { class: "nv-crud-body" };
@@ -59522,9 +59543,11 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
59522
59543
  "filter-config": _ctx.getFilterConfig(),
59523
59544
  "merge-cells": _ctx.getMergeCells(),
59524
59545
  "span-method": _ctx.rowspanMethod,
59546
+ "footer-method": _ctx.footerMethod,
59525
59547
  "checkbox-config": _ctx.getCheckboxConfig(),
59526
59548
  stripe: _ctx.getStripe(),
59527
59549
  "show-overflow": _ctx.getShowOverflow(),
59550
+ "show-footer": _ctx.getShowFooter(),
59528
59551
  onKeydownStart: _ctx.gridEvents.keydownStart,
59529
59552
  onKeydown: _ctx.gridEvents.keydown,
59530
59553
  onKeydownEnd: _ctx.gridEvents.keydownEnd,
@@ -59572,7 +59595,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
59572
59595
  }, null, 8, ["columns", "xTable", "onClearRadioRow", "onDelete", "onAddchild"])
59573
59596
  ]),
59574
59597
  _: 1
59575
- }, 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", "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"]), [
59598
+ }, 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"]), [
59576
59599
  [vShow, _ctx.showTable]
59577
59600
  ])
59578
59601
  ], 512)
@@ -59590,7 +59613,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
59590
59613
  ])) : createCommentVNode("", true)
59591
59614
  ]);
59592
59615
  }
59593
- const Grid = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-ad6987b7"]]);
59616
+ const Grid = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-d80176c1"]]);
59594
59617
  const GridCellContent = defineComponent({
59595
59618
  name: "GridCellContent",
59596
59619
  props: {
@@ -240472,6 +240495,17 @@ class GridInstance extends BaseInstance {
240472
240495
  return this.props.option.event.event_rowspanMethod({ row, _rowIndex, column, visibleData });
240473
240496
  }
240474
240497
  });
240498
+ /**
240499
+ * 表尾数据
240500
+ * @returns
240501
+ */
240502
+ __publicField2(this, "footerMethod", ({ columns, data: data2 }) => {
240503
+ if (this.props.option.event && this.props.option.event.event_footerMethod) {
240504
+ return this.props.option.event.event_footerMethod({ columns, data: data2 });
240505
+ } else {
240506
+ return [];
240507
+ }
240508
+ });
240475
240509
  //#endregion 查询面板 End
240476
240510
  /**
240477
240511
  * 清除当前选中行
@@ -240793,6 +240827,16 @@ class GridInstance extends BaseInstance {
240793
240827
  }
240794
240828
  return true;
240795
240829
  });
240830
+ /**
240831
+ * 显示表尾
240832
+ * @returns
240833
+ */
240834
+ __publicField2(this, "getShowFooter", () => {
240835
+ if (this.props.option.setting) {
240836
+ return this.props.option.setting.showFooter;
240837
+ }
240838
+ return false;
240839
+ });
240796
240840
  /**
240797
240841
  * 行附加 className
240798
240842
  * @returns