@vipl520/dk-ui 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/dist/index.js CHANGED
@@ -24749,6 +24749,18 @@
24749
24749
  cacheTable: {
24750
24750
  default: true,
24751
24751
  type: Boolean
24752
+ },
24753
+ tableBefore: {
24754
+ default: () => {
24755
+ return {};
24756
+ },
24757
+ type: Object
24758
+ },
24759
+ tableAfter: {
24760
+ default: () => {
24761
+ return {};
24762
+ },
24763
+ type: Object
24752
24764
  }
24753
24765
  // ...ElTableNext.props,
24754
24766
  };
@@ -28127,6 +28139,8 @@
28127
28139
  * 显示回收站
28128
28140
  */
28129
28141
  async showRecycle() {
28142
+ if (!this.runBefore("getRecycleTable"))
28143
+ return;
28130
28144
  this.recycleTable.showDialogLoading = true;
28131
28145
  if (this.recycleTable.column.length <= 0) {
28132
28146
  await this.getRecycleTable();
@@ -28139,6 +28153,8 @@
28139
28153
  * 获取回收站列表
28140
28154
  */
28141
28155
  getRecycleIndex = () => {
28156
+ if (!this.runBefore("getRecycleIndex"))
28157
+ return;
28142
28158
  this.recycleTable.loading = true;
28143
28159
  return this.api.recycle(this.recycleTable.filter).then((res) => {
28144
28160
  this.recycleTable.data = res.data.list;
@@ -31052,7 +31068,7 @@
31052
31068
  const props = __props;
31053
31069
  const FormRef = require$$0.ref();
31054
31070
  const TableRef = require$$0.ref();
31055
- const DkTable = new dkTable(props.tableApi);
31071
+ const DkTable = new dkTable(props.tableApi, props.tableBefore, props.tableAfter);
31056
31072
  require$$0.provide("DkTable", DkTable);
31057
31073
  require$$0.onMounted(() => {
31058
31074
  DkTable.getTable(props.cacheTable)?.then(() => {