@newview/ui 1.1.84 → 1.1.85

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.
@@ -61315,6 +61315,10 @@ let GridInstanceJava$1 = class GridInstanceJava2 extends BaseInstance {
61315
61315
  * 表格数据
61316
61316
  */
61317
61317
  __publicField2(this, "datas", ref([]));
61318
+ /**
61319
+ * 表尾数据
61320
+ */
61321
+ __publicField2(this, "footerData", ref([]));
61318
61322
  /**
61319
61323
  * 页码
61320
61324
  */
@@ -61935,6 +61939,39 @@ let GridInstanceJava$1 = class GridInstanceJava2 extends BaseInstance {
61935
61939
  __publicField2(this, "setFilter", (field, options2) => {
61936
61940
  this.xTable.value.setFilter(field, options2);
61937
61941
  });
61942
+ /**
61943
+ * 表尾数据赋值
61944
+ * @param datas
61945
+ */
61946
+ __publicField2(this, "setFooterData", (datas) => {
61947
+ this.footerData.value = datas;
61948
+ });
61949
+ /**
61950
+ * 临时合并单元格
61951
+ * @param mergeCells
61952
+ */
61953
+ __publicField2(this, "setMergeCells", (mergeCells) => {
61954
+ var _a;
61955
+ (_a = this.xTable.value) == null ? void 0 : _a.setMergeCells(mergeCells);
61956
+ });
61957
+ /**
61958
+ * 临时合并表尾
61959
+ * @param mergeCells
61960
+ */
61961
+ __publicField2(this, "setMergeFooterItems", (mergeCells) => {
61962
+ var _a;
61963
+ (_a = this.xTable.value) == null ? void 0 : _a.setMergeFooterItems(mergeCells);
61964
+ });
61965
+ /**
61966
+ * 导出excel
61967
+ * @param exportDatas 导出数据
61968
+ * @param fileName 导出文件名
61969
+ * @param merges 合并单元格配置
61970
+ * @param style 单元格样式
61971
+ */
61972
+ __publicField2(this, "exportExcel", (exportDatas, fileName, merges, style2) => {
61973
+ new ExcelHelper().downloadExcelAndSetStyle(exportDatas, fileName + ".xlsx", merges, style2);
61974
+ });
61938
61975
  this.props = props;
61939
61976
  this.ctx = ctx;
61940
61977
  CreatGridRenderer();
@@ -62057,8 +62094,8 @@ let GridInstanceJava$1 = class GridInstanceJava2 extends BaseInstance {
62057
62094
  }
62058
62095
  //#endregion 公开方法 END
62059
62096
  };
62060
- const GridJava_vue_vue_type_style_index_0_scoped_60a03b77_lang = "";
62061
- const _withScopeId$2 = (n) => (pushScopeId("data-v-60a03b77"), n = n(), popScopeId(), n);
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);
62062
62099
  const _hoisted_1$a = { class: "nv-crud nv-pos-r" };
62063
62100
  const _hoisted_2$7 = { class: "grid-msg" };
62064
62101
  const _hoisted_3$6 = { class: "nv-crud-body" };
@@ -62200,6 +62237,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
62200
62237
  height: "100%",
62201
62238
  "empty-text": (_a = _ctx.option.setting) == null ? void 0 : _a.emptyText,
62202
62239
  data: _ctx.datas,
62240
+ "footer-data": _ctx.footerData,
62203
62241
  "keep-source": true,
62204
62242
  "column-config": { resizable: true },
62205
62243
  border: _ctx.getBorder(),
@@ -62263,7 +62301,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
62263
62301
  }, null, 8, ["columns", "xTable", "onClearRadioRow", "onDelete", "onAddchild"])
62264
62302
  ]),
62265
62303
  _: 1
62266
- }, 16, ["empty-text", "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"]), [
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"]), [
62267
62305
  [vShow, _ctx.showTable]
62268
62306
  ])
62269
62307
  ], 512)
@@ -62281,7 +62319,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
62281
62319
  ])) : createCommentVNode("", true)
62282
62320
  ]);
62283
62321
  }
62284
- const GridJava = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-60a03b77"]]);
62322
+ const GridJava = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-3822ca27"]]);
62285
62323
  const propDefine$p = {
62286
62324
  width: {
62287
62325
  // Box 宽度
@@ -242503,6 +242541,10 @@ class GridInstanceJava extends BaseInstance {
242503
242541
  * 表格数据
242504
242542
  */
242505
242543
  __publicField2(this, "datas", ref([]));
242544
+ /**
242545
+ * 表尾数据
242546
+ */
242547
+ __publicField2(this, "footerData", ref([]));
242506
242548
  /**
242507
242549
  * 页码
242508
242550
  */
@@ -243123,6 +243165,39 @@ class GridInstanceJava extends BaseInstance {
243123
243165
  __publicField2(this, "setFilter", (field, options2) => {
243124
243166
  this.xTable.value.setFilter(field, options2);
243125
243167
  });
243168
+ /**
243169
+ * 表尾数据赋值
243170
+ * @param datas
243171
+ */
243172
+ __publicField2(this, "setFooterData", (datas) => {
243173
+ this.footerData.value = datas;
243174
+ });
243175
+ /**
243176
+ * 临时合并单元格
243177
+ * @param mergeCells
243178
+ */
243179
+ __publicField2(this, "setMergeCells", (mergeCells) => {
243180
+ var _a;
243181
+ (_a = this.xTable.value) == null ? void 0 : _a.setMergeCells(mergeCells);
243182
+ });
243183
+ /**
243184
+ * 临时合并表尾
243185
+ * @param mergeCells
243186
+ */
243187
+ __publicField2(this, "setMergeFooterItems", (mergeCells) => {
243188
+ var _a;
243189
+ (_a = this.xTable.value) == null ? void 0 : _a.setMergeFooterItems(mergeCells);
243190
+ });
243191
+ /**
243192
+ * 导出excel
243193
+ * @param exportDatas 导出数据
243194
+ * @param fileName 导出文件名
243195
+ * @param merges 合并单元格配置
243196
+ * @param style 单元格样式
243197
+ */
243198
+ __publicField2(this, "exportExcel", (exportDatas, fileName, merges, style2) => {
243199
+ new ExcelHelper().downloadExcelAndSetStyle(exportDatas, fileName + ".xlsx", merges, style2);
243200
+ });
243126
243201
  this.props = props;
243127
243202
  this.ctx = ctx;
243128
243203
  CreatGridRenderer();