@vipl520/dk-ui 1.0.23 → 1.0.25
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +135 -55
- package/dist/index.min.js +5 -3
- package/dist/index.min.js.map +1 -1
- package/dist/index.min.mjs +5 -3
- package/dist/index.min.mjs.map +1 -1
- package/dist/index.mjs +135 -55
- package/dist/web-types.json +1 -1
- package/es/table/index.d.ts +15 -0
- package/es/table/src/components/header.vue2.mjs +58 -26
- package/es/table/src/components/header.vue2.mjs.map +1 -1
- package/es/table/src/props.d.ts +4 -0
- package/es/table/src/props.mjs +6 -0
- package/es/table/src/props.mjs.map +1 -1
- package/es/table/src/table.vue.d.ts +9 -0
- package/es/table/src/table.vue2.mjs +16 -19
- package/es/table/src/table.vue2.mjs.map +1 -1
- package/es/table/utils/dkTable.d.ts +1 -0
- package/es/table/utils/dkTable.mjs +45 -0
- package/es/table/utils/dkTable.mjs.map +1 -1
- package/lib/table/index.d.ts +15 -0
- package/lib/table/src/components/header.vue2.js +58 -26
- package/lib/table/src/components/header.vue2.js.map +1 -1
- package/lib/table/src/props.d.ts +4 -0
- package/lib/table/src/props.js +6 -0
- package/lib/table/src/props.js.map +1 -1
- package/lib/table/src/table.vue.d.ts +9 -0
- package/lib/table/src/table.vue2.js +16 -19
- package/lib/table/src/table.vue2.js.map +1 -1
- package/lib/table/utils/dkTable.d.ts +1 -0
- package/lib/table/utils/dkTable.js +45 -0
- package/lib/table/utils/dkTable.js.map +1 -1
- package/package.json +1 -1
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
23127
|
+
? (openBlock(), createElementBlock("span", _hoisted_11$3, [
|
23128
23128
|
createVNode(_component_van_icon, { name: "fire" }),
|
23129
23129
|
createTextVNode("热门")
|
23130
23130
|
]))
|
@@ -24748,6 +24748,12 @@ const tableProps = {
|
|
24748
24748
|
return {};
|
24749
24749
|
},
|
24750
24750
|
type: Object
|
24751
|
+
},
|
24752
|
+
buttons: {
|
24753
|
+
default: () => {
|
24754
|
+
return ["refresh", "add", "export_csv", "edit", "delete", "comSearch", "quickSearch", "columnDisplay"];
|
24755
|
+
},
|
24756
|
+
type: Array
|
24751
24757
|
}
|
24752
24758
|
// ...ElTableNext.props,
|
24753
24759
|
};
|
@@ -28320,6 +28326,45 @@ class dkTable {
|
|
28320
28326
|
this.runAfter("onTableDblclick", { row, column });
|
28321
28327
|
}
|
28322
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
|
+
let value = "";
|
28342
|
+
if (prop && prop.indexOf(".") > -1) {
|
28343
|
+
const fieldNameArr = prop.split(".");
|
28344
|
+
value = row[fieldNameArr[0]] || {};
|
28345
|
+
for (let index = 1; index < fieldNameArr.length; index++) {
|
28346
|
+
value = value ? value[fieldNameArr[index]] ?? "" : "";
|
28347
|
+
}
|
28348
|
+
} else {
|
28349
|
+
value = String(row[prop]);
|
28350
|
+
}
|
28351
|
+
line.push(`"${value.replace(/"/g, '""').replace(/[\n\r]/g, " ")}"`);
|
28352
|
+
});
|
28353
|
+
csvContent += line.join(",") + "\n";
|
28354
|
+
});
|
28355
|
+
return csvContent;
|
28356
|
+
}
|
28357
|
+
function downloadCsv(csvContent, fileName) {
|
28358
|
+
const link = document.createElement("a");
|
28359
|
+
link.setAttribute("href", "data:text/csv;charset=utf-8," + encodeURIComponent(csvContent));
|
28360
|
+
link.setAttribute("download", fileName + ".csv");
|
28361
|
+
document.body.appendChild(link);
|
28362
|
+
link.click();
|
28363
|
+
document.body.removeChild(link);
|
28364
|
+
}
|
28365
|
+
const csvStr = jsonToCsv(this.table.selection);
|
28366
|
+
downloadCsv(csvStr, "export_data");
|
28367
|
+
};
|
28323
28368
|
/**
|
28324
28369
|
* 打开表单
|
28325
28370
|
* @param operate 操作:Add=添加,Edit=编辑
|
@@ -28411,6 +28456,12 @@ class dkTable {
|
|
28411
28456
|
this.toggleForm("Add");
|
28412
28457
|
}
|
28413
28458
|
],
|
28459
|
+
[
|
28460
|
+
"export_csv",
|
28461
|
+
() => {
|
28462
|
+
this.exportCsv();
|
28463
|
+
}
|
28464
|
+
],
|
28414
28465
|
[
|
28415
28466
|
"edit",
|
28416
28467
|
() => {
|
@@ -29408,7 +29459,7 @@ const _hoisted_8$4 = {
|
|
29408
29459
|
};
|
29409
29460
|
const _hoisted_9$3 = { class: "com-search-col-input-range" };
|
29410
29461
|
const _hoisted_10$2 = { class: "com-search-col" };
|
29411
|
-
const _hoisted_11$
|
29462
|
+
const _hoisted_11$2 = {
|
29412
29463
|
key: 0,
|
29413
29464
|
class: "com-search-col-label"
|
29414
29465
|
};
|
@@ -29671,7 +29722,7 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
29671
29722
|
createElementVNode("div", _hoisted_10$2, [
|
29672
29723
|
item.comSearchShowLabel !== false ? (openBlock(), createElementBlock(
|
29673
29724
|
"div",
|
29674
|
-
_hoisted_11$
|
29725
|
+
_hoisted_11$2,
|
29675
29726
|
toDisplayString(item.label),
|
29676
29727
|
1
|
29677
29728
|
/* TEXT */
|
@@ -29919,31 +29970,38 @@ const _hoisted_2$8 = /* @__PURE__ */ createElementVNode(
|
|
29919
29970
|
/* HOISTED */
|
29920
29971
|
);
|
29921
29972
|
const _hoisted_3$6 = /* @__PURE__ */ createElementVNode(
|
29973
|
+
"span",
|
29974
|
+
{ class: "m-l-5px" },
|
29975
|
+
"\u5BFC\u51FA",
|
29976
|
+
-1
|
29977
|
+
/* HOISTED */
|
29978
|
+
);
|
29979
|
+
const _hoisted_4$6 = /* @__PURE__ */ createElementVNode(
|
29922
29980
|
"span",
|
29923
29981
|
{ class: "m-l-5px" },
|
29924
29982
|
"\u7F16\u8F91",
|
29925
29983
|
-1
|
29926
29984
|
/* HOISTED */
|
29927
29985
|
);
|
29928
|
-
const
|
29929
|
-
const
|
29986
|
+
const _hoisted_5$4 = { class: "m-l-5px" };
|
29987
|
+
const _hoisted_6$4 = /* @__PURE__ */ createElementVNode(
|
29930
29988
|
"span",
|
29931
29989
|
{ class: "m-l-5px" },
|
29932
29990
|
"\u5220\u9664",
|
29933
29991
|
-1
|
29934
29992
|
/* HOISTED */
|
29935
29993
|
);
|
29936
|
-
const
|
29937
|
-
const
|
29994
|
+
const _hoisted_7$4 = { class: "table-header-operate-text" };
|
29995
|
+
const _hoisted_8$3 = /* @__PURE__ */ createElementVNode(
|
29938
29996
|
"span",
|
29939
29997
|
{ class: "table-header-operate-text" },
|
29940
29998
|
" \u56DE\u6536\u7AD9 ",
|
29941
29999
|
-1
|
29942
30000
|
/* HOISTED */
|
29943
30001
|
);
|
29944
|
-
const
|
29945
|
-
const
|
29946
|
-
const
|
30002
|
+
const _hoisted_9$2 = { class: "table-search" };
|
30003
|
+
const _hoisted_10$1 = { class: "mr-1" };
|
30004
|
+
const _hoisted_11$1 = { class: "table-search-button-group" };
|
29947
30005
|
const __default__$d = defineComponent({
|
29948
30006
|
name: "DkTableHeader"
|
29949
30007
|
});
|
@@ -29956,7 +30014,7 @@ var _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
29956
30014
|
},
|
29957
30015
|
buttons: {
|
29958
30016
|
default: () => {
|
29959
|
-
return ["refresh", "add", "edit", "delete", "comSearch", "quickSearch", "columnDisplay"];
|
30017
|
+
return ["refresh", "add", "export_csv", "edit", "delete", "comSearch", "quickSearch", "columnDisplay"];
|
29960
30018
|
},
|
29961
30019
|
type: Array
|
29962
30020
|
},
|
@@ -30090,8 +30148,33 @@ var _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
30090
30148
|
_: 1
|
30091
30149
|
/* STABLE */
|
30092
30150
|
})) : createCommentVNode("v-if", true),
|
30093
|
-
props.buttons.includes("
|
30151
|
+
props.buttons.includes("export_csv") && unref(DkTable).auth("export_csv") ? (openBlock(), createBlock(_component_el_tooltip, {
|
30094
30152
|
key: 2,
|
30153
|
+
content: "\u5BFC\u51FA\u9009\u4E2D\u884C",
|
30154
|
+
placement: "top"
|
30155
|
+
}, {
|
30156
|
+
default: withCtx(() => [
|
30157
|
+
withDirectives((openBlock(), createBlock(_component_el_button, {
|
30158
|
+
disabled: !enableBatchOpt.value,
|
30159
|
+
class: "table-header-operate",
|
30160
|
+
type: "primary",
|
30161
|
+
onClick: _cache[2] || (_cache[2] = ($event) => onAction("export_csv"))
|
30162
|
+
}, {
|
30163
|
+
default: withCtx(() => [
|
30164
|
+
createVNode(_component_dk_icon, { icon: "typcn:download" }),
|
30165
|
+
_hoisted_3$6
|
30166
|
+
]),
|
30167
|
+
_: 1
|
30168
|
+
/* STABLE */
|
30169
|
+
}, 8, ["disabled"])), [
|
30170
|
+
[_directive_blur]
|
30171
|
+
])
|
30172
|
+
]),
|
30173
|
+
_: 1
|
30174
|
+
/* STABLE */
|
30175
|
+
})) : createCommentVNode("v-if", true),
|
30176
|
+
props.buttons.includes("edit") && unref(DkTable).auth("edit") ? (openBlock(), createBlock(_component_el_tooltip, {
|
30177
|
+
key: 3,
|
30095
30178
|
content: "\u7F16\u8F91\u9009\u4E2D\u884C",
|
30096
30179
|
placement: "top"
|
30097
30180
|
}, {
|
@@ -30100,11 +30183,11 @@ var _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
30100
30183
|
disabled: !enableBatchOpt.value,
|
30101
30184
|
class: "table-header-operate",
|
30102
30185
|
type: "primary",
|
30103
|
-
onClick: _cache[
|
30186
|
+
onClick: _cache[3] || (_cache[3] = ($event) => onAction("edit"))
|
30104
30187
|
}, {
|
30105
30188
|
default: withCtx(() => [
|
30106
30189
|
createVNode(_component_dk_icon, { icon: "typcn:edit" }),
|
30107
|
-
|
30190
|
+
_hoisted_4$6
|
30108
30191
|
]),
|
30109
30192
|
_: 1
|
30110
30193
|
/* STABLE */
|
@@ -30116,16 +30199,16 @@ var _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
30116
30199
|
/* STABLE */
|
30117
30200
|
})) : createCommentVNode("v-if", true),
|
30118
30201
|
props.buttons.includes("delete") && unref(DkTable).auth("del") ? (openBlock(), createBlock(_component_el_popconfirm, {
|
30119
|
-
key:
|
30202
|
+
key: 4,
|
30120
30203
|
"confirm-button-text": "\u5220\u9664",
|
30121
30204
|
"cancel-button-text": "\u53D6\u6D88",
|
30122
30205
|
"confirm-button-type": "danger",
|
30123
30206
|
title: "\u60A8\u786E\u5B9A\u8981\u5220\u9664\u6240\u9009\u8BB0\u5F55\u5417\uFF1F",
|
30124
30207
|
disabled: !enableBatchOpt.value,
|
30125
|
-
onConfirm: _cache[
|
30208
|
+
onConfirm: _cache[4] || (_cache[4] = ($event) => onAction("delete"))
|
30126
30209
|
}, {
|
30127
30210
|
reference: withCtx(() => [
|
30128
|
-
createElementVNode("div",
|
30211
|
+
createElementVNode("div", _hoisted_5$4, [
|
30129
30212
|
createVNode(_component_el_tooltip, {
|
30130
30213
|
content: "\u5220\u9664\u6240\u9009\u884C",
|
30131
30214
|
placement: "top"
|
@@ -30139,7 +30222,7 @@ var _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
30139
30222
|
default: withCtx(() => [
|
30140
30223
|
createCommentVNode(' <Icon name="fa fa-trash" />'),
|
30141
30224
|
createVNode(_component_dk_icon, { icon: "typcn:trash" }),
|
30142
|
-
|
30225
|
+
_hoisted_6$4
|
30143
30226
|
]),
|
30144
30227
|
_: 1
|
30145
30228
|
/* STABLE */
|
@@ -30156,7 +30239,7 @@ var _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
30156
30239
|
/* STABLE */
|
30157
30240
|
}, 8, ["disabled"])) : createCommentVNode("v-if", true),
|
30158
30241
|
props.buttons.includes("unfold") ? (openBlock(), createBlock(_component_el_tooltip, {
|
30159
|
-
key:
|
30242
|
+
key: 5,
|
30160
30243
|
content: (unref(DkTable).table.expandAll ? "\u6536\u7F29" : "\u5C55\u5F00") + "\u6240\u6709\u5B50\u83DC\u5355",
|
30161
30244
|
placement: "top"
|
30162
30245
|
}, {
|
@@ -30164,14 +30247,14 @@ var _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
30164
30247
|
withDirectives((openBlock(), createBlock(_component_el_button, {
|
30165
30248
|
class: "table-header-operate",
|
30166
30249
|
type: unref(DkTable).table.expandAll ? "danger" : "warning",
|
30167
|
-
onClick: _cache[
|
30250
|
+
onClick: _cache[5] || (_cache[5] = ($event) => unref(DkTable).onTableHeaderAction("unfold", {
|
30168
30251
|
unfold: !unref(DkTable).table.expandAll
|
30169
30252
|
}))
|
30170
30253
|
}, {
|
30171
30254
|
default: withCtx(() => [
|
30172
30255
|
createElementVNode(
|
30173
30256
|
"span",
|
30174
|
-
|
30257
|
+
_hoisted_7$4,
|
30175
30258
|
toDisplayString(unref(DkTable).table.expandAll ? "\u6536\u7F29\u6240\u6709" : "\u5C55\u5F00\u6240\u6709"),
|
30176
30259
|
1
|
30177
30260
|
/* TEXT */
|
@@ -30195,10 +30278,10 @@ var _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
30195
30278
|
class: "table-header-operate m-l-5px",
|
30196
30279
|
type: "warning",
|
30197
30280
|
loading: unref(DkTable).recycleTable.showDialogLoading,
|
30198
|
-
onClick: _cache[
|
30281
|
+
onClick: _cache[6] || (_cache[6] = ($event) => onAction("recycle"))
|
30199
30282
|
}, {
|
30200
30283
|
default: withCtx(() => [
|
30201
|
-
|
30284
|
+
_hoisted_8$3
|
30202
30285
|
]),
|
30203
30286
|
_: 1
|
30204
30287
|
/* STABLE */
|
@@ -30209,18 +30292,18 @@ var _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
30209
30292
|
_: 1
|
30210
30293
|
/* STABLE */
|
30211
30294
|
}),
|
30212
|
-
createElementVNode("div",
|
30213
|
-
createElementVNode("div",
|
30295
|
+
createElementVNode("div", _hoisted_9$2, [
|
30296
|
+
createElementVNode("div", _hoisted_10$1, [
|
30214
30297
|
createVNode(_component_el_input, {
|
30215
30298
|
modelValue: unref(DkTable).table.filter.quickSearch,
|
30216
|
-
"onUpdate:modelValue": _cache[
|
30299
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => unref(DkTable).table.filter.quickSearch = $event),
|
30217
30300
|
placeholder: "\u8BF7\u8F93\u5165",
|
30218
30301
|
"prefix-icon": "Search",
|
30219
30302
|
size: __props.size,
|
30220
|
-
onInput: _cache[
|
30303
|
+
onInput: _cache[8] || (_cache[8] = ($event) => unref(debounce)(onSearchInput, 500)())
|
30221
30304
|
}, null, 8, ["modelValue", "size"])
|
30222
30305
|
]),
|
30223
|
-
createElementVNode("div",
|
30306
|
+
createElementVNode("div", _hoisted_11$1, [
|
30224
30307
|
props.buttons.includes("columnDisplay") ? (openBlock(), createBlock(_component_el_dropdown, {
|
30225
30308
|
key: 0,
|
30226
30309
|
"max-height": 380,
|
@@ -30290,7 +30373,7 @@ var _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
30290
30373
|
withDirectives((openBlock(), createBlock(_component_el_button, {
|
30291
30374
|
size: __props.size,
|
30292
30375
|
class: "table-search-button-item",
|
30293
|
-
onClick: _cache[
|
30376
|
+
onClick: _cache[9] || (_cache[9] = ($event) => unref(DkTable).table.showComSearch = !unref(DkTable).table.showComSearch)
|
30294
30377
|
}, {
|
30295
30378
|
default: withCtx(() => [
|
30296
30379
|
createVNode(_component_dk_icon, { icon: "Search" })
|
@@ -31172,25 +31255,22 @@ var _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
31172
31255
|
[
|
31173
31256
|
createElementVNode("div", _hoisted_1$8, [
|
31174
31257
|
createCommentVNode("\u9876\u90E8\u83DC\u5355"),
|
31175
|
-
createVNode(
|
31176
|
-
|
31177
|
-
|
31178
|
-
|
31179
|
-
|
31180
|
-
|
31181
|
-
|
31182
|
-
|
31183
|
-
|
31184
|
-
|
31185
|
-
|
31186
|
-
|
31187
|
-
|
31188
|
-
|
31189
|
-
|
31190
|
-
|
31191
|
-
1024
|
31192
|
-
/* DYNAMIC_SLOTS */
|
31193
|
-
),
|
31258
|
+
createVNode(DkTableHeader, {
|
31259
|
+
size: "default",
|
31260
|
+
buttons: _ctx.buttons
|
31261
|
+
}, createSlots({
|
31262
|
+
_: 2
|
31263
|
+
/* DYNAMIC */
|
31264
|
+
}, [
|
31265
|
+
renderList(_ctx.$slots, (slot, idx) => {
|
31266
|
+
return {
|
31267
|
+
name: idx,
|
31268
|
+
fn: withCtx(() => [
|
31269
|
+
renderSlot(_ctx.$slots, idx)
|
31270
|
+
])
|
31271
|
+
};
|
31272
|
+
})
|
31273
|
+
]), 1032, ["buttons"]),
|
31194
31274
|
createCommentVNode("\u8868\u683C"),
|
31195
31275
|
withDirectives((openBlock(), createBlock(_component_el_table, mergeProps({
|
31196
31276
|
ref_key: "TableRef",
|
package/dist/web-types.json
CHANGED
package/es/table/index.d.ts
CHANGED
@@ -7,6 +7,7 @@ export declare const Table: import("@vipl520/utils").WithInstall<{
|
|
7
7
|
cacheTable?: boolean | undefined;
|
8
8
|
tableBefore?: Record<string, any> | undefined;
|
9
9
|
tableAfter?: Record<string, any> | undefined;
|
10
|
+
buttons?: unknown[] | undefined;
|
10
11
|
style?: unknown;
|
11
12
|
key?: string | number | symbol | undefined;
|
12
13
|
ref?: import("vue").VNodeRef | undefined;
|
@@ -82,6 +83,10 @@ export declare const Table: import("@vipl520/utils").WithInstall<{
|
|
82
83
|
default: () => {};
|
83
84
|
type: ObjectConstructor;
|
84
85
|
};
|
86
|
+
buttons: {
|
87
|
+
default: () => string[];
|
88
|
+
type: ArrayConstructor;
|
89
|
+
};
|
85
90
|
}>>, {
|
86
91
|
DkTable: import("./utils/dkTable").default;
|
87
92
|
TableRef: import("vue").Ref<any>;
|
@@ -91,6 +96,7 @@ export declare const Table: import("@vipl520/utils").WithInstall<{
|
|
91
96
|
cacheTable: boolean;
|
92
97
|
tableBefore: Record<string, any>;
|
93
98
|
tableAfter: Record<string, any>;
|
99
|
+
buttons: unknown[];
|
94
100
|
}, {}, string, {}> & {
|
95
101
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
96
102
|
created?: ((() => void) | (() => void)[]) | undefined;
|
@@ -128,6 +134,10 @@ export declare const Table: import("@vipl520/utils").WithInstall<{
|
|
128
134
|
default: () => {};
|
129
135
|
type: ObjectConstructor;
|
130
136
|
};
|
137
|
+
buttons: {
|
138
|
+
default: () => string[];
|
139
|
+
type: ArrayConstructor;
|
140
|
+
};
|
131
141
|
}>> & import("vue").ShallowUnwrapRef<{
|
132
142
|
DkTable: import("./utils/dkTable").default;
|
133
143
|
TableRef: import("vue").Ref<any>;
|
@@ -153,6 +163,10 @@ export declare const Table: import("@vipl520/utils").WithInstall<{
|
|
153
163
|
default: () => {};
|
154
164
|
type: ObjectConstructor;
|
155
165
|
};
|
166
|
+
buttons: {
|
167
|
+
default: () => string[];
|
168
|
+
type: ArrayConstructor;
|
169
|
+
};
|
156
170
|
}>>, {
|
157
171
|
DkTable: import("./utils/dkTable").default;
|
158
172
|
TableRef: import("vue").Ref<any>;
|
@@ -162,6 +176,7 @@ export declare const Table: import("@vipl520/utils").WithInstall<{
|
|
162
176
|
cacheTable: boolean;
|
163
177
|
tableBefore: Record<string, any>;
|
164
178
|
tableAfter: Record<string, any>;
|
179
|
+
buttons: unknown[];
|
165
180
|
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
166
181
|
$slots: Partial<Record<NonNullable<string | number>, (_: {}) => any>> & Partial<Record<string, (_: any) => any>> & {
|
167
182
|
columnPrepend?(_: {}): any;
|