@vipl520/dk-ui 1.0.22 → 1.0.24

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.mjs CHANGED
@@ -11800,7 +11800,7 @@ const _hoisted_7$b = { class: "attachment-content flex" };
11800
11800
  const _hoisted_8$9 = { class: "attachment-group" };
11801
11801
  const _hoisted_9$7 = { class: "group_list" };
11802
11802
  const _hoisted_10$6 = ["onClick"];
11803
- const _hoisted_11$5 = { class: "ml-10px" };
11803
+ const _hoisted_11$6 = { class: "ml-10px" };
11804
11804
  const _hoisted_12$5 = { class: "op" };
11805
11805
  const _hoisted_13$4 = { class: "attachment-container" };
11806
11806
  const _hoisted_14$4 = {
@@ -12177,7 +12177,7 @@ var _sfc_main$$ = /* @__PURE__ */ defineComponent({
12177
12177
  })),
12178
12178
  createElementVNode(
12179
12179
  "span",
12180
- _hoisted_11$5,
12180
+ _hoisted_11$6,
12181
12181
  toDisplayString(item.name),
12182
12182
  1
12183
12183
  /* TEXT */
@@ -14384,7 +14384,7 @@ const _hoisted_7$a = { class: "name-header-operations" };
14384
14384
  const _hoisted_8$8 = ["title", "onDblclick"];
14385
14385
  const _hoisted_9$6 = ["onUpdate:modelValue", "onBlur"];
14386
14386
  const _hoisted_10$5 = ["width", "height", "viewBox", "data-link-anchor", "innerHTML"];
14387
- const _hoisted_11$4 = /* @__PURE__ */ createElementVNode(
14387
+ const _hoisted_11$5 = /* @__PURE__ */ createElementVNode(
14388
14388
  "div",
14389
14389
  { style: { "position": "absolute", "display": "none", "width": "100%", "height": "100%" } },
14390
14390
  null,
@@ -14807,7 +14807,7 @@ var _sfc_main$M = /* @__PURE__ */ defineComponent({
14807
14807
  /* KEYED_FRAGMENT */
14808
14808
  ))
14809
14809
  ]),
14810
- _hoisted_11$4,
14810
+ _hoisted_11$5,
14811
14811
  createElementVNode("div", _hoisted_12$4, [
14812
14812
  (openBlock(), createElementBlock(
14813
14813
  Fragment,
@@ -17841,7 +17841,7 @@ const _hoisted_8$6 = /* @__PURE__ */ createElementVNode(
17841
17841
  );
17842
17842
  const _hoisted_9$5 = { class: "phone-title" };
17843
17843
  const _hoisted_10$4 = { class: "phone-title-icon" };
17844
- const _hoisted_11$3 = /* @__PURE__ */ createElementVNode(
17844
+ const _hoisted_11$4 = /* @__PURE__ */ createElementVNode(
17845
17845
  "div",
17846
17846
  null,
17847
17847
  "\u9875\u9762\u6807\u9898",
@@ -18010,7 +18010,7 @@ var _sfc_main$E = /* @__PURE__ */ defineComponent({
18010
18010
  /* STABLE */
18011
18011
  })
18012
18012
  ]),
18013
- _hoisted_11$3,
18013
+ _hoisted_11$4,
18014
18014
  createElementVNode("div", _hoisted_12$3, [
18015
18015
  createVNode(_component_el_popover, {
18016
18016
  placement: "bottom",
@@ -22920,7 +22920,7 @@ const _hoisted_10$3 = {
22920
22920
  key: 0,
22921
22921
  class: "tag"
22922
22922
  };
22923
- const _hoisted_11$2 = {
22923
+ const _hoisted_11$3 = {
22924
22924
  key: 1,
22925
22925
  class: "tag"
22926
22926
  };
@@ -23124,7 +23124,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
23124
23124
  ]))
23125
23125
  : createCommentVNode("v-if", true),
23126
23126
  (item.down_count > 100)
23127
- ? (openBlock(), createElementBlock("span", _hoisted_11$2, [
23127
+ ? (openBlock(), createElementBlock("span", _hoisted_11$3, [
23128
23128
  createVNode(_component_van_icon, { name: "fire" }),
23129
23129
  createTextVNode("热门")
23130
23130
  ]))
@@ -24736,6 +24736,24 @@ const tableProps = {
24736
24736
  cacheTable: {
24737
24737
  default: true,
24738
24738
  type: Boolean
24739
+ },
24740
+ tableBefore: {
24741
+ default: () => {
24742
+ return {};
24743
+ },
24744
+ type: Object
24745
+ },
24746
+ tableAfter: {
24747
+ default: () => {
24748
+ return {};
24749
+ },
24750
+ type: Object
24751
+ },
24752
+ buttons: {
24753
+ default: () => {
24754
+ return ["refresh", "add", "export_csv", "edit", "delete", "comSearch", "quickSearch", "columnDisplay"];
24755
+ },
24756
+ type: Array
24739
24757
  }
24740
24758
  // ...ElTableNext.props,
24741
24759
  };
@@ -28114,6 +28132,8 @@ class dkTable {
28114
28132
  * 显示回收站
28115
28133
  */
28116
28134
  async showRecycle() {
28135
+ if (!this.runBefore("getRecycleTable"))
28136
+ return;
28117
28137
  this.recycleTable.showDialogLoading = true;
28118
28138
  if (this.recycleTable.column.length <= 0) {
28119
28139
  await this.getRecycleTable();
@@ -28126,6 +28146,8 @@ class dkTable {
28126
28146
  * 获取回收站列表
28127
28147
  */
28128
28148
  getRecycleIndex = () => {
28149
+ if (!this.runBefore("getRecycleIndex"))
28150
+ return;
28129
28151
  this.recycleTable.loading = true;
28130
28152
  return this.api.recycle(this.recycleTable.filter).then((res) => {
28131
28153
  this.recycleTable.data = res.data.list;
@@ -28304,6 +28326,36 @@ class dkTable {
28304
28326
  this.runAfter("onTableDblclick", { row, column });
28305
28327
  }
28306
28328
  };
28329
+ exportCsv = () => {
28330
+ const header = this.table.column;
28331
+ const headerMap = new Map(
28332
+ header.filter((item) => item !== void 0 && item.label !== void 0 && item.export).map((item) => [item.label, item.prop])
28333
+ );
28334
+ const headerLabels = Array.from(headerMap.keys());
28335
+ function jsonToCsv(data) {
28336
+ let csvContent = headerLabels.join(",") + "\n";
28337
+ data.forEach((row) => {
28338
+ const line = [];
28339
+ headerLabels.forEach((label) => {
28340
+ const prop = headerMap.get(label);
28341
+ const value = String(row[prop]);
28342
+ line.push(`"${value.replace(/"/g, '""').replace(/[\n\r]/g, " ")}"`);
28343
+ });
28344
+ csvContent += line.join(",") + "\n";
28345
+ });
28346
+ return csvContent;
28347
+ }
28348
+ function downloadCsv(csvContent, fileName) {
28349
+ const link = document.createElement("a");
28350
+ link.setAttribute("href", "data:text/csv;charset=utf-8," + encodeURIComponent(csvContent));
28351
+ link.setAttribute("download", fileName + ".csv");
28352
+ document.body.appendChild(link);
28353
+ link.click();
28354
+ document.body.removeChild(link);
28355
+ }
28356
+ const csvStr = jsonToCsv(this.table.selection);
28357
+ downloadCsv(csvStr, "export_data");
28358
+ };
28307
28359
  /**
28308
28360
  * 打开表单
28309
28361
  * @param operate 操作:Add=添加,Edit=编辑
@@ -28395,6 +28447,12 @@ class dkTable {
28395
28447
  this.toggleForm("Add");
28396
28448
  }
28397
28449
  ],
28450
+ [
28451
+ "export_csv",
28452
+ () => {
28453
+ this.exportCsv();
28454
+ }
28455
+ ],
28398
28456
  [
28399
28457
  "edit",
28400
28458
  () => {
@@ -29392,7 +29450,7 @@ const _hoisted_8$4 = {
29392
29450
  };
29393
29451
  const _hoisted_9$3 = { class: "com-search-col-input-range" };
29394
29452
  const _hoisted_10$2 = { class: "com-search-col" };
29395
- const _hoisted_11$1 = {
29453
+ const _hoisted_11$2 = {
29396
29454
  key: 0,
29397
29455
  class: "com-search-col-label"
29398
29456
  };
@@ -29655,7 +29713,7 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
29655
29713
  createElementVNode("div", _hoisted_10$2, [
29656
29714
  item.comSearchShowLabel !== false ? (openBlock(), createElementBlock(
29657
29715
  "div",
29658
- _hoisted_11$1,
29716
+ _hoisted_11$2,
29659
29717
  toDisplayString(item.label),
29660
29718
  1
29661
29719
  /* TEXT */
@@ -29903,31 +29961,38 @@ const _hoisted_2$8 = /* @__PURE__ */ createElementVNode(
29903
29961
  /* HOISTED */
29904
29962
  );
29905
29963
  const _hoisted_3$6 = /* @__PURE__ */ createElementVNode(
29964
+ "span",
29965
+ { class: "m-l-5px" },
29966
+ "\u5BFC\u51FA",
29967
+ -1
29968
+ /* HOISTED */
29969
+ );
29970
+ const _hoisted_4$6 = /* @__PURE__ */ createElementVNode(
29906
29971
  "span",
29907
29972
  { class: "m-l-5px" },
29908
29973
  "\u7F16\u8F91",
29909
29974
  -1
29910
29975
  /* HOISTED */
29911
29976
  );
29912
- const _hoisted_4$6 = { class: "m-l-5px" };
29913
- const _hoisted_5$4 = /* @__PURE__ */ createElementVNode(
29977
+ const _hoisted_5$4 = { class: "m-l-5px" };
29978
+ const _hoisted_6$4 = /* @__PURE__ */ createElementVNode(
29914
29979
  "span",
29915
29980
  { class: "m-l-5px" },
29916
29981
  "\u5220\u9664",
29917
29982
  -1
29918
29983
  /* HOISTED */
29919
29984
  );
29920
- const _hoisted_6$4 = { class: "table-header-operate-text" };
29921
- const _hoisted_7$4 = /* @__PURE__ */ createElementVNode(
29985
+ const _hoisted_7$4 = { class: "table-header-operate-text" };
29986
+ const _hoisted_8$3 = /* @__PURE__ */ createElementVNode(
29922
29987
  "span",
29923
29988
  { class: "table-header-operate-text" },
29924
29989
  " \u56DE\u6536\u7AD9 ",
29925
29990
  -1
29926
29991
  /* HOISTED */
29927
29992
  );
29928
- const _hoisted_8$3 = { class: "table-search" };
29929
- const _hoisted_9$2 = { class: "mr-1" };
29930
- const _hoisted_10$1 = { class: "table-search-button-group" };
29993
+ const _hoisted_9$2 = { class: "table-search" };
29994
+ const _hoisted_10$1 = { class: "mr-1" };
29995
+ const _hoisted_11$1 = { class: "table-search-button-group" };
29931
29996
  const __default__$d = defineComponent({
29932
29997
  name: "DkTableHeader"
29933
29998
  });
@@ -29940,7 +30005,7 @@ var _sfc_main$e = /* @__PURE__ */ defineComponent({
29940
30005
  },
29941
30006
  buttons: {
29942
30007
  default: () => {
29943
- return ["refresh", "add", "edit", "delete", "comSearch", "quickSearch", "columnDisplay"];
30008
+ return ["refresh", "add", "export_csv", "edit", "delete", "comSearch", "quickSearch", "columnDisplay"];
29944
30009
  },
29945
30010
  type: Array
29946
30011
  },
@@ -30074,8 +30139,33 @@ var _sfc_main$e = /* @__PURE__ */ defineComponent({
30074
30139
  _: 1
30075
30140
  /* STABLE */
30076
30141
  })) : createCommentVNode("v-if", true),
30077
- props.buttons.includes("edit") && unref(DkTable).auth("edit") ? (openBlock(), createBlock(_component_el_tooltip, {
30142
+ props.buttons.includes("export_csv") && unref(DkTable).auth("export_csv") ? (openBlock(), createBlock(_component_el_tooltip, {
30078
30143
  key: 2,
30144
+ content: "\u5BFC\u51FA\u9009\u4E2D\u884C",
30145
+ placement: "top"
30146
+ }, {
30147
+ default: withCtx(() => [
30148
+ withDirectives((openBlock(), createBlock(_component_el_button, {
30149
+ disabled: !enableBatchOpt.value,
30150
+ class: "table-header-operate",
30151
+ type: "primary",
30152
+ onClick: _cache[2] || (_cache[2] = ($event) => onAction("export_csv"))
30153
+ }, {
30154
+ default: withCtx(() => [
30155
+ createVNode(_component_dk_icon, { icon: "typcn:download" }),
30156
+ _hoisted_3$6
30157
+ ]),
30158
+ _: 1
30159
+ /* STABLE */
30160
+ }, 8, ["disabled"])), [
30161
+ [_directive_blur]
30162
+ ])
30163
+ ]),
30164
+ _: 1
30165
+ /* STABLE */
30166
+ })) : createCommentVNode("v-if", true),
30167
+ props.buttons.includes("edit") && unref(DkTable).auth("edit") ? (openBlock(), createBlock(_component_el_tooltip, {
30168
+ key: 3,
30079
30169
  content: "\u7F16\u8F91\u9009\u4E2D\u884C",
30080
30170
  placement: "top"
30081
30171
  }, {
@@ -30084,11 +30174,11 @@ var _sfc_main$e = /* @__PURE__ */ defineComponent({
30084
30174
  disabled: !enableBatchOpt.value,
30085
30175
  class: "table-header-operate",
30086
30176
  type: "primary",
30087
- onClick: _cache[2] || (_cache[2] = ($event) => onAction("edit"))
30177
+ onClick: _cache[3] || (_cache[3] = ($event) => onAction("edit"))
30088
30178
  }, {
30089
30179
  default: withCtx(() => [
30090
30180
  createVNode(_component_dk_icon, { icon: "typcn:edit" }),
30091
- _hoisted_3$6
30181
+ _hoisted_4$6
30092
30182
  ]),
30093
30183
  _: 1
30094
30184
  /* STABLE */
@@ -30100,16 +30190,16 @@ var _sfc_main$e = /* @__PURE__ */ defineComponent({
30100
30190
  /* STABLE */
30101
30191
  })) : createCommentVNode("v-if", true),
30102
30192
  props.buttons.includes("delete") && unref(DkTable).auth("del") ? (openBlock(), createBlock(_component_el_popconfirm, {
30103
- key: 3,
30193
+ key: 4,
30104
30194
  "confirm-button-text": "\u5220\u9664",
30105
30195
  "cancel-button-text": "\u53D6\u6D88",
30106
30196
  "confirm-button-type": "danger",
30107
30197
  title: "\u60A8\u786E\u5B9A\u8981\u5220\u9664\u6240\u9009\u8BB0\u5F55\u5417\uFF1F",
30108
30198
  disabled: !enableBatchOpt.value,
30109
- onConfirm: _cache[3] || (_cache[3] = ($event) => onAction("delete"))
30199
+ onConfirm: _cache[4] || (_cache[4] = ($event) => onAction("delete"))
30110
30200
  }, {
30111
30201
  reference: withCtx(() => [
30112
- createElementVNode("div", _hoisted_4$6, [
30202
+ createElementVNode("div", _hoisted_5$4, [
30113
30203
  createVNode(_component_el_tooltip, {
30114
30204
  content: "\u5220\u9664\u6240\u9009\u884C",
30115
30205
  placement: "top"
@@ -30123,7 +30213,7 @@ var _sfc_main$e = /* @__PURE__ */ defineComponent({
30123
30213
  default: withCtx(() => [
30124
30214
  createCommentVNode(' <Icon name="fa fa-trash" />'),
30125
30215
  createVNode(_component_dk_icon, { icon: "typcn:trash" }),
30126
- _hoisted_5$4
30216
+ _hoisted_6$4
30127
30217
  ]),
30128
30218
  _: 1
30129
30219
  /* STABLE */
@@ -30140,7 +30230,7 @@ var _sfc_main$e = /* @__PURE__ */ defineComponent({
30140
30230
  /* STABLE */
30141
30231
  }, 8, ["disabled"])) : createCommentVNode("v-if", true),
30142
30232
  props.buttons.includes("unfold") ? (openBlock(), createBlock(_component_el_tooltip, {
30143
- key: 4,
30233
+ key: 5,
30144
30234
  content: (unref(DkTable).table.expandAll ? "\u6536\u7F29" : "\u5C55\u5F00") + "\u6240\u6709\u5B50\u83DC\u5355",
30145
30235
  placement: "top"
30146
30236
  }, {
@@ -30148,14 +30238,14 @@ var _sfc_main$e = /* @__PURE__ */ defineComponent({
30148
30238
  withDirectives((openBlock(), createBlock(_component_el_button, {
30149
30239
  class: "table-header-operate",
30150
30240
  type: unref(DkTable).table.expandAll ? "danger" : "warning",
30151
- onClick: _cache[4] || (_cache[4] = ($event) => unref(DkTable).onTableHeaderAction("unfold", {
30241
+ onClick: _cache[5] || (_cache[5] = ($event) => unref(DkTable).onTableHeaderAction("unfold", {
30152
30242
  unfold: !unref(DkTable).table.expandAll
30153
30243
  }))
30154
30244
  }, {
30155
30245
  default: withCtx(() => [
30156
30246
  createElementVNode(
30157
30247
  "span",
30158
- _hoisted_6$4,
30248
+ _hoisted_7$4,
30159
30249
  toDisplayString(unref(DkTable).table.expandAll ? "\u6536\u7F29\u6240\u6709" : "\u5C55\u5F00\u6240\u6709"),
30160
30250
  1
30161
30251
  /* TEXT */
@@ -30179,10 +30269,10 @@ var _sfc_main$e = /* @__PURE__ */ defineComponent({
30179
30269
  class: "table-header-operate m-l-5px",
30180
30270
  type: "warning",
30181
30271
  loading: unref(DkTable).recycleTable.showDialogLoading,
30182
- onClick: _cache[5] || (_cache[5] = ($event) => onAction("recycle"))
30272
+ onClick: _cache[6] || (_cache[6] = ($event) => onAction("recycle"))
30183
30273
  }, {
30184
30274
  default: withCtx(() => [
30185
- _hoisted_7$4
30275
+ _hoisted_8$3
30186
30276
  ]),
30187
30277
  _: 1
30188
30278
  /* STABLE */
@@ -30193,18 +30283,18 @@ var _sfc_main$e = /* @__PURE__ */ defineComponent({
30193
30283
  _: 1
30194
30284
  /* STABLE */
30195
30285
  }),
30196
- createElementVNode("div", _hoisted_8$3, [
30197
- createElementVNode("div", _hoisted_9$2, [
30286
+ createElementVNode("div", _hoisted_9$2, [
30287
+ createElementVNode("div", _hoisted_10$1, [
30198
30288
  createVNode(_component_el_input, {
30199
30289
  modelValue: unref(DkTable).table.filter.quickSearch,
30200
- "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => unref(DkTable).table.filter.quickSearch = $event),
30290
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => unref(DkTable).table.filter.quickSearch = $event),
30201
30291
  placeholder: "\u8BF7\u8F93\u5165",
30202
30292
  "prefix-icon": "Search",
30203
30293
  size: __props.size,
30204
- onInput: _cache[7] || (_cache[7] = ($event) => unref(debounce)(onSearchInput, 500)())
30294
+ onInput: _cache[8] || (_cache[8] = ($event) => unref(debounce)(onSearchInput, 500)())
30205
30295
  }, null, 8, ["modelValue", "size"])
30206
30296
  ]),
30207
- createElementVNode("div", _hoisted_10$1, [
30297
+ createElementVNode("div", _hoisted_11$1, [
30208
30298
  props.buttons.includes("columnDisplay") ? (openBlock(), createBlock(_component_el_dropdown, {
30209
30299
  key: 0,
30210
30300
  "max-height": 380,
@@ -30274,7 +30364,7 @@ var _sfc_main$e = /* @__PURE__ */ defineComponent({
30274
30364
  withDirectives((openBlock(), createBlock(_component_el_button, {
30275
30365
  size: __props.size,
30276
30366
  class: "table-search-button-item",
30277
- onClick: _cache[8] || (_cache[8] = ($event) => unref(DkTable).table.showComSearch = !unref(DkTable).table.showComSearch)
30367
+ onClick: _cache[9] || (_cache[9] = ($event) => unref(DkTable).table.showComSearch = !unref(DkTable).table.showComSearch)
30278
30368
  }, {
30279
30369
  default: withCtx(() => [
30280
30370
  createVNode(_component_dk_icon, { icon: "Search" })
@@ -31039,7 +31129,7 @@ var _sfc_main$b = /* @__PURE__ */ defineComponent({
31039
31129
  const props = __props;
31040
31130
  const FormRef = ref();
31041
31131
  const TableRef = ref();
31042
- const DkTable = new dkTable(props.tableApi);
31132
+ const DkTable = new dkTable(props.tableApi, props.tableBefore, props.tableAfter);
31043
31133
  provide("DkTable", DkTable);
31044
31134
  onMounted(() => {
31045
31135
  DkTable.getTable(props.cacheTable)?.then(() => {
@@ -31156,25 +31246,22 @@ var _sfc_main$b = /* @__PURE__ */ defineComponent({
31156
31246
  [
31157
31247
  createElementVNode("div", _hoisted_1$8, [
31158
31248
  createCommentVNode("\u9876\u90E8\u83DC\u5355"),
31159
- createVNode(
31160
- DkTableHeader,
31161
- { size: "default" },
31162
- createSlots({
31163
- _: 2
31164
- /* DYNAMIC */
31165
- }, [
31166
- renderList(_ctx.$slots, (slot, idx) => {
31167
- return {
31168
- name: idx,
31169
- fn: withCtx(() => [
31170
- renderSlot(_ctx.$slots, idx)
31171
- ])
31172
- };
31173
- })
31174
- ]),
31175
- 1024
31176
- /* DYNAMIC_SLOTS */
31177
- ),
31249
+ createVNode(DkTableHeader, {
31250
+ size: "default",
31251
+ buttons: _ctx.buttons
31252
+ }, createSlots({
31253
+ _: 2
31254
+ /* DYNAMIC */
31255
+ }, [
31256
+ renderList(_ctx.$slots, (slot, idx) => {
31257
+ return {
31258
+ name: idx,
31259
+ fn: withCtx(() => [
31260
+ renderSlot(_ctx.$slots, idx)
31261
+ ])
31262
+ };
31263
+ })
31264
+ ]), 1032, ["buttons"]),
31178
31265
  createCommentVNode("\u8868\u683C"),
31179
31266
  withDirectives((openBlock(), createBlock(_component_el_table, mergeProps({
31180
31267
  ref_key: "TableRef",
@@ -2,7 +2,7 @@
2
2
  "$schema": "http://json.schemastore.org/web-types",
3
3
  "framework": "vue",
4
4
  "name": "dk",
5
- "version": "1.0.21",
5
+ "version": "1.0.23",
6
6
  "js-types-syntax": "typescript",
7
7
  "description-markup": "markdown",
8
8
  "contributions": {
@@ -5,6 +5,9 @@ export declare const Table: import("@vipl520/utils").WithInstall<{
5
5
  $props: {
6
6
  tableApi?: string | undefined;
7
7
  cacheTable?: boolean | undefined;
8
+ tableBefore?: Record<string, any> | undefined;
9
+ tableAfter?: Record<string, any> | undefined;
10
+ buttons?: unknown[] | undefined;
8
11
  style?: unknown;
9
12
  key?: string | number | symbol | undefined;
10
13
  ref?: import("vue").VNodeRef | undefined;
@@ -72,6 +75,18 @@ export declare const Table: import("@vipl520/utils").WithInstall<{
72
75
  default: boolean;
73
76
  type: BooleanConstructor;
74
77
  };
78
+ tableBefore: {
79
+ default: () => {};
80
+ type: ObjectConstructor;
81
+ };
82
+ tableAfter: {
83
+ default: () => {};
84
+ type: ObjectConstructor;
85
+ };
86
+ buttons: {
87
+ default: () => string[];
88
+ type: ArrayConstructor;
89
+ };
75
90
  }>>, {
76
91
  DkTable: import("./utils/dkTable").default;
77
92
  TableRef: import("vue").Ref<any>;
@@ -79,6 +94,9 @@ export declare const Table: import("@vipl520/utils").WithInstall<{
79
94
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
80
95
  tableApi: string;
81
96
  cacheTable: boolean;
97
+ tableBefore: Record<string, any>;
98
+ tableAfter: Record<string, any>;
99
+ buttons: unknown[];
82
100
  }, {}, string, {}> & {
83
101
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
84
102
  created?: ((() => void) | (() => void)[]) | undefined;
@@ -108,6 +126,18 @@ export declare const Table: import("@vipl520/utils").WithInstall<{
108
126
  default: boolean;
109
127
  type: BooleanConstructor;
110
128
  };
129
+ tableBefore: {
130
+ default: () => {};
131
+ type: ObjectConstructor;
132
+ };
133
+ tableAfter: {
134
+ default: () => {};
135
+ type: ObjectConstructor;
136
+ };
137
+ buttons: {
138
+ default: () => string[];
139
+ type: ArrayConstructor;
140
+ };
111
141
  }>> & import("vue").ShallowUnwrapRef<{
112
142
  DkTable: import("./utils/dkTable").default;
113
143
  TableRef: import("vue").Ref<any>;
@@ -125,6 +155,18 @@ export declare const Table: import("@vipl520/utils").WithInstall<{
125
155
  default: boolean;
126
156
  type: BooleanConstructor;
127
157
  };
158
+ tableBefore: {
159
+ default: () => {};
160
+ type: ObjectConstructor;
161
+ };
162
+ tableAfter: {
163
+ default: () => {};
164
+ type: ObjectConstructor;
165
+ };
166
+ buttons: {
167
+ default: () => string[];
168
+ type: ArrayConstructor;
169
+ };
128
170
  }>>, {
129
171
  DkTable: import("./utils/dkTable").default;
130
172
  TableRef: import("vue").Ref<any>;
@@ -132,6 +174,9 @@ export declare const Table: import("@vipl520/utils").WithInstall<{
132
174
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
133
175
  tableApi: string;
134
176
  cacheTable: boolean;
177
+ tableBefore: Record<string, any>;
178
+ tableAfter: Record<string, any>;
179
+ buttons: unknown[];
135
180
  }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
136
181
  $slots: Partial<Record<NonNullable<string | number>, (_: {}) => any>> & Partial<Record<string, (_: any) => any>> & {
137
182
  columnPrepend?(_: {}): any;