mooho-base-admin-plus 2.8.0 → 2.8.1

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/history.md CHANGED
@@ -140,3 +140,5 @@ mooho-base-admin-plus@2.7.4 - 修复全选的bug
140
140
  mooho-base-admin-plus@2.7.5 - 将List组件改为后端分页
141
141
  mooho-base-admin-plus@2.7.6 - 修复审批后没有刷新的bug
142
142
  mooho-base-admin-plus@2.7.7 - 增加自定义显示格式
143
+ mooho-base-admin-plus@2.8.0 - 表格增加只返回所需字段的选项
144
+ mooho-base-admin-plus@2.8.1 - 表格增加必须返回的字段属性
@@ -37971,6 +37971,12 @@ const modalForm = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_rend
37971
37971
  highlightRow: {
37972
37972
  type: Boolean,
37973
37973
  default: !1
37974
+ },
37975
+ /**
37976
+ * 必须返回的字段
37977
+ */
37978
+ returnColumns: {
37979
+ type: Array
37974
37980
  }
37975
37981
  },
37976
37982
  computed: {
@@ -38229,6 +38235,7 @@ function _sfc_render$r(r, a, o, s, l, u) {
38229
38235
  "load-data-enable": o.loadDataEnable,
38230
38236
  "row-class-name": o.rowClassName,
38231
38237
  "highlight-row": o.highlightRow,
38238
+ returnColumns: o.returnColumns,
38232
38239
  onCreate: u.create,
38233
38240
  onEdit: u.edit,
38234
38241
  onShow: u.show,
@@ -38282,7 +38289,7 @@ function _sfc_render$r(r, a, o, s, l, u) {
38282
38289
  })
38283
38290
  ]),
38284
38291
  _: 3
38285
- }, 8, ["view-code", "static", "setting-enable", "select-enable", "check-cross-page", "tree-enable", "tree-load", "has-children", "create-enable", "edit-enable", "show-enable", "remove-enable", "draggable", "filter-enable", "page-enable", "embedded", "before-load-data", "on-search", "summary-method", "page-size-opts", "span-method", "load-data-enable", "row-class-name", "highlight-row", "onCreate", "onEdit", "onShow", "onOnReady", "onOnLoadData", "onAfterInit"])
38292
+ }, 8, ["view-code", "static", "setting-enable", "select-enable", "check-cross-page", "tree-enable", "tree-load", "has-children", "create-enable", "edit-enable", "show-enable", "remove-enable", "draggable", "filter-enable", "page-enable", "embedded", "before-load-data", "on-search", "summary-method", "page-size-opts", "span-method", "load-data-enable", "row-class-name", "highlight-row", "returnColumns", "onCreate", "onEdit", "onShow", "onOnReady", "onOnLoadData", "onAfterInit"])
38286
38293
  ])
38287
38294
  ]),
38288
38295
  _: 3
@@ -40911,6 +40918,12 @@ const _sfc_main$n = {
40911
40918
  highlightRow: {
40912
40919
  type: Boolean,
40913
40920
  default: !1
40921
+ },
40922
+ /**
40923
+ * 必须返回的字段
40924
+ */
40925
+ returnColumns: {
40926
+ type: Array
40914
40927
  }
40915
40928
  },
40916
40929
  computed: {
@@ -41068,7 +41081,7 @@ const _sfc_main$n = {
41068
41081
  orderBy: this.orderBy
41069
41082
  };
41070
41083
  if (this.tableView.isGroupBy && (a.isGroupBy = !0, a.groupColumn = JSON.parse(this.tableView.groupColumn), a.groupMethod = JSON.parse(this.tableView.groupMethod)), this.tableView.isCustom) {
41071
- let o = await customModelApi.query(this.tableView.model, a, null, this.tableView.isReturnSimple ? this.tableView : null);
41084
+ let o = await customModelApi.query(this.tableView.model, a, this.returnColumns, this.tableView.isReturnSimple ? this.tableView : null);
41072
41085
  this.total = o.totalCount, this.data = o.data;
41073
41086
  } else if (this.tableView.isDataSource) {
41074
41087
  let o = await dataSourceApi.query(this.tableView.dataSource, a);
@@ -41077,7 +41090,7 @@ const _sfc_main$n = {
41077
41090
  let o = await modelApi.query(
41078
41091
  this.tableView.model,
41079
41092
  a,
41080
- null,
41093
+ this.returnColumns,
41081
41094
  this.tableView.isReturnSimple ? this.tableView : null,
41082
41095
  this.tableView.functionName,
41083
41096
  this.tableView.functionType
@@ -42549,7 +42562,7 @@ function _sfc_render$n(r, a, o, s, l, u) {
42549
42562
  ], 2)
42550
42563
  ], 2);
42551
42564
  }
42552
- const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-da194f9d"]]), __vite_glob_1_32 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42565
+ const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-1cb5962f"]]), __vite_glob_1_32 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42553
42566
  __proto__: null,
42554
42567
  default: viewTable
42555
42568
  }, Symbol.toStringTag, { value: "Module" })), _sfc_main$m = {