china-mobile-international-custom-components 0.0.41 → 0.0.43
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/es/ApplicationTypeTag.mjs +1 -1
- package/es/AutoShowTooltip.mjs +90 -0
- package/es/AvailableRangePreview.mjs +1 -1
- package/es/AvailableRangeSetting.mjs +266 -11
- package/es/CommonTagsList.mjs +200 -0
- package/es/DialogContainer.mjs +128 -0
- package/es/FileUploader.mjs +255 -0
- package/es/ParameterTable.mjs +2288 -0
- package/es/SourcePublish.mjs +475 -833
- package/es/Table.mjs +2 -2
- package/es/assets/AutoShowTooltip.css +1 -0
- package/es/assets/AvailableRangeSetting.css +1 -0
- package/es/assets/CommonTagsList.css +1 -0
- package/es/assets/DialogContainer.css +1 -0
- package/es/assets/FileUploader.css +1 -0
- package/es/assets/ParameterTable.css +1 -0
- package/es/assets/SourcePublish.css +1 -1
- package/es/assets/index2.css +1 -1
- package/es/chunks/{BackBar.zjPh_z_w.js → BackBar.DY42HcZy.js} +33 -33
- package/es/chunks/{BackBar.C3Tp-e_K.js → BackBar.eaUb1JvV.js} +98 -98
- package/es/chunks/config.CyAT4SUn.js +435 -0
- package/es/chunks/config.JrGX09T5.js +435 -0
- package/es/chunks/i18n.Bd7hh14j.js +4026 -0
- package/es/chunks/{i18n.BNeBD4gR.js → i18n.CfMhDOdX.js} +6 -6
- package/es/chunks/{index.DENagLDS.js → index.CHlFhI6c.js} +2 -2
- package/es/chunks/index.DjDvyGXt.js +313 -0
- package/es/chunks/layout.B1qqvrXz.js +639 -0
- package/es/chunks/request.24c3shPx.js +5 -0
- package/es/index.mjs +184 -130
- package/lib/ApplicationTypeTag.js +1 -1
- package/lib/AutoShowTooltip.js +1 -0
- package/lib/AvailableRangePreview.js +1 -1
- package/lib/AvailableRangeSetting.js +1 -1
- package/lib/CommonTagsList.js +1 -0
- package/lib/DialogContainer.js +1 -0
- package/lib/FileUploader.js +1 -0
- package/lib/ParameterTable.js +1 -0
- package/lib/SourcePublish.js +1 -1
- package/lib/Table.js +1 -1
- package/lib/assets/AutoShowTooltip.css +1 -0
- package/lib/assets/AvailableRangeSetting.css +1 -0
- package/lib/assets/CommonTagsList.css +1 -0
- package/lib/assets/DialogContainer.css +1 -0
- package/lib/assets/FileUploader.css +1 -0
- package/lib/assets/ParameterTable.css +1 -0
- package/lib/assets/SourcePublish.css +1 -1
- package/lib/assets/index2.css +1 -1
- package/lib/chunks/{BackBar.BL8repFN.js → BackBar.By7ouDgL.js} +1 -1
- package/lib/chunks/BackBar.CaaASGvb.js +1 -0
- package/lib/chunks/config.BInpXFGZ.js +1 -0
- package/lib/chunks/config.CL0cmPQ6.js +1 -0
- package/lib/chunks/i18n.D3L1FBDI.js +6 -0
- package/lib/chunks/index.D-pFPuUr.js +1 -0
- package/lib/chunks/{index.5Su4CrC-.js → index.zQ1SfvBa.js} +1 -1
- package/lib/chunks/layout.Cen7E9tF.js +1 -0
- package/lib/chunks/request.D8T4MgGX.js +1 -0
- package/lib/index.js +1 -1
- package/package.json +3 -3
- package/es/BackBar.mjs +0 -49
- package/es/assets/AiboxTable.css +0 -1
- package/es/assets/index3.css +0 -1
- package/es/chunks/AiboxTable.feSxtxGI.js +0 -563
- package/es/chunks/BackBar.DE2EjQfI.js +0 -606
- package/es/chunks/index.CSPp4g5C.js +0 -303
- package/es/chunks/index.D1cu8OUn.js +0 -260
- package/es/chunks/index.Doax01RQ.js +0 -254
- package/lib/BackBar.js +0 -1
- package/lib/assets/AiboxTable.css +0 -1
- package/lib/assets/index3.css +0 -1
- package/lib/chunks/AiboxTable.DdCYg_mt.js +0 -1
- package/lib/chunks/BackBar.CpYFuBeN.js +0 -1
- package/lib/chunks/BackBar.DcGRWfNN.js +0 -1
- package/lib/chunks/index.6X8xsqRJ.js +0 -1
- package/lib/chunks/index.B_esKpWv.js +0 -1
- package/lib/chunks/index.CP9rhXZ5.js +0 -1
|
@@ -1,563 +0,0 @@
|
|
|
1
|
-
import { computed as M, createElementBlock as u, openBlock as o, Fragment as k, createVNode as $, renderList as N, createBlock as d, unref as n, withCtx as s, createTextVNode as D, toDisplayString as S, createElementVNode as c, normalizeClass as O, ref as R, resolveDirective as J, createCommentVNode as m, renderSlot as f, withDirectives as Q, createSlots as W } from "vue";
|
|
2
|
-
import { u as H } from "./i18n.BNeBD4gR.js";
|
|
3
|
-
import { IconMore as Z } from "color-message-aibox-vue";
|
|
4
|
-
import { ElButton as z, ElDropdown as ee, ElIcon as le, ElDropdownMenu as ae, ElDropdownItem as oe, ElTable as te, ElTableColumn as w, ElEmpty as ne, ElPagination as se } from "element-plus";
|
|
5
|
-
import { _ as re } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
|
-
import '../assets/AiboxTable.css';const de = { class: "table-btns" }, ie = { class: "btn-box" }, ce = {
|
|
7
|
-
__name: "TableBtns",
|
|
8
|
-
props: {
|
|
9
|
-
config: {
|
|
10
|
-
type: Array,
|
|
11
|
-
required: !0,
|
|
12
|
-
default() {
|
|
13
|
-
return [];
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
showNums: {
|
|
17
|
-
type: Number,
|
|
18
|
-
default: 0,
|
|
19
|
-
validator(t) {
|
|
20
|
-
return t % 1 === 0 && t >= 0;
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
row: {
|
|
24
|
-
type: Object,
|
|
25
|
-
default: () => ({})
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
setup(t) {
|
|
29
|
-
const T = t, { t: E } = H(), i = (h, g) => {
|
|
30
|
-
h && h(g);
|
|
31
|
-
}, y = M(() => T.config.filter((h) => {
|
|
32
|
-
const g = h.permission !== void 0 ? h.permission : !0;
|
|
33
|
-
let r = !0;
|
|
34
|
-
return h.dataPermission && (r = h.dataPermission), g && r;
|
|
35
|
-
})), C = M(() => ({
|
|
36
|
-
show: y.value.slice(0, T.showNums),
|
|
37
|
-
hide: y.value.slice(T.showNums)
|
|
38
|
-
}));
|
|
39
|
-
return (h, g) => (o(), u("div", de, [
|
|
40
|
-
y.value.length > t.showNums ? (o(), u(k, { key: 0 }, [
|
|
41
|
-
(o(!0), u(k, null, N(C.value.show, (r, x) => (o(), d(n(z), {
|
|
42
|
-
key: x,
|
|
43
|
-
type: "primary",
|
|
44
|
-
link: "",
|
|
45
|
-
onClick: (p) => i(r.fn, r.row)
|
|
46
|
-
}, {
|
|
47
|
-
default: s(() => [
|
|
48
|
-
D(S(r.label), 1)
|
|
49
|
-
]),
|
|
50
|
-
_: 2
|
|
51
|
-
}, 1032, ["onClick"]))), 128)),
|
|
52
|
-
$(n(ee), {
|
|
53
|
-
"popper-class": "custom-dropdown",
|
|
54
|
-
trigger: "click"
|
|
55
|
-
}, {
|
|
56
|
-
dropdown: s(() => [
|
|
57
|
-
$(n(ae), { style: { padding: "14px 0" } }, {
|
|
58
|
-
default: s(() => [
|
|
59
|
-
(o(!0), u(k, null, N(C.value.hide, (r, x) => (o(), d(n(oe), {
|
|
60
|
-
key: x,
|
|
61
|
-
class: O({
|
|
62
|
-
"is-delete": r.label === n(E)("COMMON_BUTTON.DELETE_TEXT") || r.label === n(E)("COMMON_BUTTON.DISABLE_TEXT") || r.isDanger
|
|
63
|
-
}),
|
|
64
|
-
onClick: (p) => i(r.fn, r.row)
|
|
65
|
-
}, {
|
|
66
|
-
default: s(() => [
|
|
67
|
-
D(S(r.label), 1)
|
|
68
|
-
]),
|
|
69
|
-
_: 2
|
|
70
|
-
}, 1032, ["class", "onClick"]))), 128))
|
|
71
|
-
]),
|
|
72
|
-
_: 1
|
|
73
|
-
})
|
|
74
|
-
]),
|
|
75
|
-
default: s(() => [
|
|
76
|
-
c("div", ie, [
|
|
77
|
-
$(n(le), { style: { "font-size": "20px", color: "#999" } }, {
|
|
78
|
-
default: s(() => [
|
|
79
|
-
$(n(Z))
|
|
80
|
-
]),
|
|
81
|
-
_: 1
|
|
82
|
-
})
|
|
83
|
-
])
|
|
84
|
-
]),
|
|
85
|
-
_: 1
|
|
86
|
-
})
|
|
87
|
-
], 64)) : (o(!0), u(k, { key: 1 }, N(y.value, (r, x) => (o(), d(n(z), {
|
|
88
|
-
type: "primary",
|
|
89
|
-
link: "",
|
|
90
|
-
key: x,
|
|
91
|
-
onClick: (p) => i(r.fn, r.row)
|
|
92
|
-
}, {
|
|
93
|
-
default: s(() => [
|
|
94
|
-
D(S(r.label), 1)
|
|
95
|
-
]),
|
|
96
|
-
_: 2
|
|
97
|
-
}, 1032, ["onClick"]))), 128))
|
|
98
|
-
]));
|
|
99
|
-
}
|
|
100
|
-
}, ue = /* @__PURE__ */ re(ce, [["__scopeId", "data-v-552341e3"]]), he = {
|
|
101
|
-
key: 0,
|
|
102
|
-
class: "aibox-table__handle"
|
|
103
|
-
}, pe = { class: "handle-left" }, we = { class: "handle-right" }, be = { class: "aibox-table__content" }, fe = { key: 0 }, ye = { class: "aibox-table__slot-wrapper" }, ge = { class: "aibox-table__slot-wrapper" }, ke = ["innerHTML"], Ce = ["innerHTML"], xe = { class: "aibox-table__slot-wrapper" }, ve = ["onClick"], _e = { class: "aibox-table__slot-wrapper" }, Se = ["onClick"], Te = { class: "aibox-table__slot-wrapper" }, $e = { class: "aibox-table__slot-wrapper" }, Me = {
|
|
104
|
-
key: 0,
|
|
105
|
-
class: "aibox-table__slot-wrapper"
|
|
106
|
-
}, Oe = {
|
|
107
|
-
__name: "AiboxTable",
|
|
108
|
-
props: {
|
|
109
|
-
columns: {
|
|
110
|
-
type: Array,
|
|
111
|
-
default: () => []
|
|
112
|
-
},
|
|
113
|
-
data: {
|
|
114
|
-
type: Array,
|
|
115
|
-
default: () => []
|
|
116
|
-
},
|
|
117
|
-
total: {
|
|
118
|
-
type: [String, Number],
|
|
119
|
-
default: 0
|
|
120
|
-
},
|
|
121
|
-
hasPage: {
|
|
122
|
-
type: Boolean,
|
|
123
|
-
default: !0
|
|
124
|
-
},
|
|
125
|
-
onRowKey: {
|
|
126
|
-
type: Function,
|
|
127
|
-
default: () => {
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
onRowClassName: {
|
|
131
|
-
type: Function,
|
|
132
|
-
default: () => {
|
|
133
|
-
}
|
|
134
|
-
},
|
|
135
|
-
maxHeight: {
|
|
136
|
-
type: [String, Number],
|
|
137
|
-
default: null
|
|
138
|
-
},
|
|
139
|
-
isLoading: {
|
|
140
|
-
type: Boolean,
|
|
141
|
-
default: !1
|
|
142
|
-
},
|
|
143
|
-
pages: {
|
|
144
|
-
type: Object,
|
|
145
|
-
default: () => ({
|
|
146
|
-
page: 1,
|
|
147
|
-
size: 10
|
|
148
|
-
})
|
|
149
|
-
},
|
|
150
|
-
showChangeSize: {
|
|
151
|
-
type: Boolean,
|
|
152
|
-
default: !0
|
|
153
|
-
},
|
|
154
|
-
isCustomEmpty: {
|
|
155
|
-
type: Boolean,
|
|
156
|
-
default: !1
|
|
157
|
-
},
|
|
158
|
-
hasBorder: {
|
|
159
|
-
type: Boolean,
|
|
160
|
-
default: !1
|
|
161
|
-
},
|
|
162
|
-
hasHeaderHandle: {
|
|
163
|
-
type: Boolean,
|
|
164
|
-
default: !1
|
|
165
|
-
},
|
|
166
|
-
isSecondaryHeader: {
|
|
167
|
-
type: Boolean,
|
|
168
|
-
default: !1
|
|
169
|
-
},
|
|
170
|
-
defaultSort: {
|
|
171
|
-
type: Object
|
|
172
|
-
},
|
|
173
|
-
spanMethod: {
|
|
174
|
-
type: Function,
|
|
175
|
-
default: () => {
|
|
176
|
-
}
|
|
177
|
-
},
|
|
178
|
-
showSummary: {
|
|
179
|
-
type: Boolean,
|
|
180
|
-
default: !1
|
|
181
|
-
},
|
|
182
|
-
summaryMethod: {
|
|
183
|
-
type: Function,
|
|
184
|
-
default: () => []
|
|
185
|
-
},
|
|
186
|
-
showHandleNums: {
|
|
187
|
-
type: Number,
|
|
188
|
-
default: 0
|
|
189
|
-
},
|
|
190
|
-
selectionType: {
|
|
191
|
-
type: String,
|
|
192
|
-
default: "checkbox"
|
|
193
|
-
},
|
|
194
|
-
expandRowKeys: {
|
|
195
|
-
type: Array,
|
|
196
|
-
default: () => []
|
|
197
|
-
},
|
|
198
|
-
isCanRowClick: {
|
|
199
|
-
type: Boolean,
|
|
200
|
-
default: !1
|
|
201
|
-
},
|
|
202
|
-
isPagePostion: {
|
|
203
|
-
type: Boolean,
|
|
204
|
-
default: !0
|
|
205
|
-
},
|
|
206
|
-
treeProps: {
|
|
207
|
-
type: Object,
|
|
208
|
-
default: () => ({ children: "children", hasChildren: "hasChildren" })
|
|
209
|
-
},
|
|
210
|
-
defaultExpandAll: {
|
|
211
|
-
type: Boolean,
|
|
212
|
-
default: !0
|
|
213
|
-
}
|
|
214
|
-
},
|
|
215
|
-
emits: [
|
|
216
|
-
"onPageChange",
|
|
217
|
-
"onMultiSelection",
|
|
218
|
-
"onSortChange",
|
|
219
|
-
"onCellDblclick",
|
|
220
|
-
"onRowClick"
|
|
221
|
-
],
|
|
222
|
-
setup(t, { expose: T, emit: E }) {
|
|
223
|
-
const i = t, { t: y } = H(), C = R(null), h = R([]), g = M(() => typeof i.total == "string" ? Number(i.total) : i.total), r = M(() => i.showChangeSize ? "total, sizes, prev, pager, next, jumper" : "total, prev, pager, next, jumper"), x = M(() => g.value > 10 && i.hasPage), p = E, L = () => !0, I = (a) => i.onRowKey(a, (b) => b), F = (a) => i.onRowClassName(a), j = (a) => {
|
|
224
|
-
p("onPageChange", { ...i.pages, page: a });
|
|
225
|
-
}, K = (a) => {
|
|
226
|
-
p("onPageChange", { page: 1, size: a });
|
|
227
|
-
}, V = (a) => {
|
|
228
|
-
i.selectionType !== "radio" && p("onMultiSelection", a);
|
|
229
|
-
}, P = (a) => {
|
|
230
|
-
if (i.selectionType === "radio") {
|
|
231
|
-
const b = h.value;
|
|
232
|
-
if (A(), b.length == 1) {
|
|
233
|
-
const [v] = b, e = v.id !== a.id;
|
|
234
|
-
e ? (h.value = [a], p("onMultiSelection", [a])) : (h.value = [], p("onMultiSelection", [])), B(a, e);
|
|
235
|
-
} else
|
|
236
|
-
B(a, !0), h.value = [a], p("onMultiSelection", [a]);
|
|
237
|
-
}
|
|
238
|
-
}, A = () => {
|
|
239
|
-
C.value?.clearSelection(), p("onMultiSelection", []);
|
|
240
|
-
}, X = () => {
|
|
241
|
-
C.value?.clearSort();
|
|
242
|
-
}, U = (a) => {
|
|
243
|
-
p("onSortChange", a);
|
|
244
|
-
}, q = (a, b, v, e) => {
|
|
245
|
-
p("onCellDblclick", a, b, v, e);
|
|
246
|
-
}, G = (a) => {
|
|
247
|
-
i.selectionType === "radio" && P(a);
|
|
248
|
-
}, Y = (a, b, v) => {
|
|
249
|
-
b?.type === "action" || !i.isCanRowClick || p("onRowClick", a, b, v);
|
|
250
|
-
}, B = (a, b) => {
|
|
251
|
-
C.value?.toggleRowSelection(a, b);
|
|
252
|
-
};
|
|
253
|
-
return T({
|
|
254
|
-
handleClearSelection: A,
|
|
255
|
-
handleToggleRowSelection: B,
|
|
256
|
-
clearSort: X
|
|
257
|
-
}), (a, b) => {
|
|
258
|
-
const v = J("loading");
|
|
259
|
-
return o(), u("div", {
|
|
260
|
-
class: O([{
|
|
261
|
-
"row-click-style": t.isCanRowClick,
|
|
262
|
-
"no-pagination": !x.value
|
|
263
|
-
}, "aibox-table"])
|
|
264
|
-
}, [
|
|
265
|
-
t.hasHeaderHandle ? (o(), u("div", he, [
|
|
266
|
-
c("div", pe, [
|
|
267
|
-
f(a.$slots, "handleLeft")
|
|
268
|
-
]),
|
|
269
|
-
c("div", we, [
|
|
270
|
-
f(a.$slots, "handleRight")
|
|
271
|
-
])
|
|
272
|
-
])) : m("", !0),
|
|
273
|
-
c("div", be, [
|
|
274
|
-
Q((o(), d(n(te), {
|
|
275
|
-
ref_key: "aiboxTable",
|
|
276
|
-
ref: C,
|
|
277
|
-
"element-loading-text": n(y)("COMMON_DATA.LOADING_SUFFIX"),
|
|
278
|
-
"tree-props": t.treeProps,
|
|
279
|
-
"header-row-class-name": t.isSecondaryHeader ? "aibox-table__header secondary-header" : "aibox-table__header",
|
|
280
|
-
"row-class-name": F,
|
|
281
|
-
data: t.data,
|
|
282
|
-
border: t.hasBorder,
|
|
283
|
-
style: { width: "100%" },
|
|
284
|
-
"row-key": I,
|
|
285
|
-
height: t.maxHeight,
|
|
286
|
-
"default-sort": t.defaultSort,
|
|
287
|
-
"span-method": t.spanMethod,
|
|
288
|
-
"expand-row-keys": t.expandRowKeys,
|
|
289
|
-
onSelectionChange: V,
|
|
290
|
-
onSortChange: U,
|
|
291
|
-
onCellDblclick: q,
|
|
292
|
-
onCurrentChange: P,
|
|
293
|
-
"show-summary": t.showSummary,
|
|
294
|
-
"summary-method": t.summaryMethod,
|
|
295
|
-
onSelect: G,
|
|
296
|
-
onRowClick: Y,
|
|
297
|
-
"default-expand-all": t.defaultExpandAll
|
|
298
|
-
}, {
|
|
299
|
-
empty: s(() => [
|
|
300
|
-
t.isCustomEmpty ? (o(), u("div", Me, [
|
|
301
|
-
f(a.$slots, "customEmpty")
|
|
302
|
-
])) : (o(), d(n(ne), {
|
|
303
|
-
key: 1,
|
|
304
|
-
description: n(y)("COMMON_DATA.EMPTY"),
|
|
305
|
-
"image-size": 80
|
|
306
|
-
}, null, 8, ["description"]))
|
|
307
|
-
]),
|
|
308
|
-
default: s(() => [
|
|
309
|
-
(o(!0), u(k, null, N(t.columns, (e) => (o(), u(k, null, [
|
|
310
|
-
e.type === "selection" ? (o(), d(n(w), {
|
|
311
|
-
key: e.type,
|
|
312
|
-
type: "selection",
|
|
313
|
-
fixed: "left",
|
|
314
|
-
width: e.width || "50px",
|
|
315
|
-
"reserve-selection": !0,
|
|
316
|
-
selectable: e.selectable || L
|
|
317
|
-
}, null, 8, ["width", "selectable"])) : e.type === "index" ? (o(), d(n(w), {
|
|
318
|
-
key: `${e.type - e.label}`,
|
|
319
|
-
type: "index",
|
|
320
|
-
label: n(y)("COMMON_DATA.SNO_INDEX"),
|
|
321
|
-
fixed: "left",
|
|
322
|
-
width: e.width || "100px"
|
|
323
|
-
}, {
|
|
324
|
-
default: s((l) => [
|
|
325
|
-
t.isLoading ? m("", !0) : (o(), u("span", fe, S((t.pages.page - 1) * t.pages.size + l.$index + 1), 1))
|
|
326
|
-
]),
|
|
327
|
-
_: 1
|
|
328
|
-
}, 8, ["label", "width"])) : e.slot ? (o(), d(n(w), {
|
|
329
|
-
align: e.align || "left",
|
|
330
|
-
key: e.prop,
|
|
331
|
-
prop: e.prop,
|
|
332
|
-
label: e.label,
|
|
333
|
-
width: e.width,
|
|
334
|
-
"min-width": e.minWidth,
|
|
335
|
-
"label-class-name": "label-space-style",
|
|
336
|
-
"class-name": "multi-row",
|
|
337
|
-
fixed: e.fixed,
|
|
338
|
-
sortable: e.sortable,
|
|
339
|
-
"show-overflow-tooltip": e.showOverflowTooltip
|
|
340
|
-
}, W({
|
|
341
|
-
default: s((l) => [
|
|
342
|
-
c("div", ge, [
|
|
343
|
-
f(a.$slots, e.slot, {
|
|
344
|
-
row: l.row,
|
|
345
|
-
index: l.$index,
|
|
346
|
-
minWidth: e.minWidth
|
|
347
|
-
})
|
|
348
|
-
])
|
|
349
|
-
]),
|
|
350
|
-
_: 2
|
|
351
|
-
}, [
|
|
352
|
-
e.headerSlot ? {
|
|
353
|
-
name: "header",
|
|
354
|
-
fn: s(() => [
|
|
355
|
-
c("div", ye, [
|
|
356
|
-
f(a.$slots, e.headerSlot, {
|
|
357
|
-
item: e,
|
|
358
|
-
minWidth: e.minWidth
|
|
359
|
-
})
|
|
360
|
-
])
|
|
361
|
-
]),
|
|
362
|
-
key: "0"
|
|
363
|
-
} : void 0
|
|
364
|
-
]), 1032, ["align", "prop", "label", "width", "min-width", "fixed", "sortable", "show-overflow-tooltip"])) : e.callback ? (o(), d(n(w), {
|
|
365
|
-
align: e.align || "left",
|
|
366
|
-
key: e.callback,
|
|
367
|
-
prop: e.prop,
|
|
368
|
-
label: e.label,
|
|
369
|
-
width: e.width,
|
|
370
|
-
"min-width": e.minWidth,
|
|
371
|
-
"show-overflow-tooltip": "",
|
|
372
|
-
fixed: e.fixed,
|
|
373
|
-
sortable: e.sortable
|
|
374
|
-
}, {
|
|
375
|
-
default: s((l) => [
|
|
376
|
-
c("span", {
|
|
377
|
-
innerHTML: e.callback && e.callback(l.row)
|
|
378
|
-
}, null, 8, ke)
|
|
379
|
-
]),
|
|
380
|
-
_: 2
|
|
381
|
-
}, 1032, ["align", "prop", "label", "width", "min-width", "fixed", "sortable"])) : e.type === "multistage" ? (o(), d(n(w), {
|
|
382
|
-
key: `${e.prop}`,
|
|
383
|
-
label: e.label,
|
|
384
|
-
prop: e.prop,
|
|
385
|
-
width: e.width,
|
|
386
|
-
"min-width": e.minWidth,
|
|
387
|
-
"show-overflow-tooltip": "",
|
|
388
|
-
align: e.align || "left",
|
|
389
|
-
"header-align": e.headerAlign || "left"
|
|
390
|
-
}, {
|
|
391
|
-
default: s(() => [
|
|
392
|
-
(o(!0), u(k, null, N(e.children, (l) => (o(), u(k, null, [
|
|
393
|
-
l.callback ? (o(), d(n(w), {
|
|
394
|
-
key: l.callback,
|
|
395
|
-
prop: l.prop,
|
|
396
|
-
label: l.label,
|
|
397
|
-
"min-width": l.minWidth,
|
|
398
|
-
"show-overflow-tooltip": ""
|
|
399
|
-
}, {
|
|
400
|
-
default: s((_) => [
|
|
401
|
-
c("span", {
|
|
402
|
-
innerHTML: l.callback && l.callback(_.row)
|
|
403
|
-
}, null, 8, Ce)
|
|
404
|
-
]),
|
|
405
|
-
_: 2
|
|
406
|
-
}, 1032, ["prop", "label", "min-width"])) : l.slot ? (o(), d(n(w), {
|
|
407
|
-
key: l.prop,
|
|
408
|
-
"min-width": l.minWidth,
|
|
409
|
-
prop: l.prop,
|
|
410
|
-
label: l.label
|
|
411
|
-
}, {
|
|
412
|
-
default: s((_) => [
|
|
413
|
-
c("div", xe, [
|
|
414
|
-
f(a.$slots, l.slot, {
|
|
415
|
-
row: _.row,
|
|
416
|
-
column: _.column,
|
|
417
|
-
index: _.$index
|
|
418
|
-
})
|
|
419
|
-
])
|
|
420
|
-
]),
|
|
421
|
-
_: 2
|
|
422
|
-
}, 1032, ["min-width", "prop", "label"])) : l.custom ? (o(), d(n(w), {
|
|
423
|
-
key: `${l.prop}`,
|
|
424
|
-
prop: l.prop,
|
|
425
|
-
label: l.label,
|
|
426
|
-
"min-width": l.minWidth,
|
|
427
|
-
"show-overflow-tooltip": ""
|
|
428
|
-
}, {
|
|
429
|
-
header: s(() => [
|
|
430
|
-
c("span", {
|
|
431
|
-
onClick: () => l.headerClick({ parent: e.label, ...l }),
|
|
432
|
-
style: { color: "#5b9bd1", cursor: "pointer" }
|
|
433
|
-
}, S(l.label), 9, ve)
|
|
434
|
-
]),
|
|
435
|
-
default: s((_) => [
|
|
436
|
-
c("div", _e, [
|
|
437
|
-
f(a.$slots, "custom", {
|
|
438
|
-
data: {
|
|
439
|
-
col: { parent: e.label, ...l },
|
|
440
|
-
row: _.row
|
|
441
|
-
}
|
|
442
|
-
})
|
|
443
|
-
])
|
|
444
|
-
]),
|
|
445
|
-
_: 2
|
|
446
|
-
}, 1032, ["prop", "label", "min-width"])) : (o(), d(n(w), {
|
|
447
|
-
key: `${l.prop}-${l.label}`,
|
|
448
|
-
prop: l.prop,
|
|
449
|
-
label: l.label,
|
|
450
|
-
width: l.width,
|
|
451
|
-
"min-width": l.minWidth,
|
|
452
|
-
"show-overflow-tooltip": "",
|
|
453
|
-
"header-align": l.headerAlign ? l.headerAlign : "left",
|
|
454
|
-
align: l.align ? l.align : "left"
|
|
455
|
-
}, null, 8, ["prop", "label", "width", "min-width", "header-align", "align"]))
|
|
456
|
-
], 64))), 256))
|
|
457
|
-
]),
|
|
458
|
-
_: 2
|
|
459
|
-
}, 1032, ["label", "prop", "width", "min-width", "align", "header-align"])) : e.custom ? (o(), d(n(w), {
|
|
460
|
-
key: `${e.prop}-${e.custom}`,
|
|
461
|
-
prop: e.prop,
|
|
462
|
-
label: e.label,
|
|
463
|
-
"min-width": e.minWidth,
|
|
464
|
-
"show-overflow-tooltip": ""
|
|
465
|
-
}, {
|
|
466
|
-
header: s(() => [
|
|
467
|
-
c("span", {
|
|
468
|
-
onClick: () => e.headerClick({ parent: "", ...e }),
|
|
469
|
-
style: { color: "#5b9bd1", cursor: "pointer" }
|
|
470
|
-
}, S(e.label), 9, Se)
|
|
471
|
-
]),
|
|
472
|
-
default: s((l) => [
|
|
473
|
-
c("div", Te, [
|
|
474
|
-
f(a.$slots, "custom", {
|
|
475
|
-
data: {
|
|
476
|
-
col: { parent: "", ...e },
|
|
477
|
-
row: l.row
|
|
478
|
-
}
|
|
479
|
-
})
|
|
480
|
-
])
|
|
481
|
-
]),
|
|
482
|
-
_: 2
|
|
483
|
-
}, 1032, ["prop", "label", "min-width"])) : e.type === "action" ? (o(), d(n(w), {
|
|
484
|
-
key: `${e.prop - Math.random()}`,
|
|
485
|
-
label: e.label,
|
|
486
|
-
width: e.width,
|
|
487
|
-
type: "action",
|
|
488
|
-
fixed: "right"
|
|
489
|
-
}, {
|
|
490
|
-
default: s((l) => [
|
|
491
|
-
e?.config?.(l.row)?.length ? (o(), d(ue, {
|
|
492
|
-
key: 0,
|
|
493
|
-
"show-nums": t.showHandleNums,
|
|
494
|
-
config: e.config(l.row, l.$index),
|
|
495
|
-
row: l.row
|
|
496
|
-
}, null, 8, ["show-nums", "config", "row"])) : m("", !0)
|
|
497
|
-
]),
|
|
498
|
-
_: 2
|
|
499
|
-
}, 1032, ["label", "width"])) : e.type === "expand" ? (o(), d(n(w), {
|
|
500
|
-
type: "expand",
|
|
501
|
-
key: "expand" + e.prop,
|
|
502
|
-
width: e.width
|
|
503
|
-
}, {
|
|
504
|
-
default: s((l) => [
|
|
505
|
-
c("div", $e, [
|
|
506
|
-
f(a.$slots, "expand", {
|
|
507
|
-
row: l.row,
|
|
508
|
-
column: l.column
|
|
509
|
-
})
|
|
510
|
-
])
|
|
511
|
-
]),
|
|
512
|
-
_: 3
|
|
513
|
-
}, 8, ["width"])) : (o(), d(n(w), {
|
|
514
|
-
key: `${e.prop - e.label}`,
|
|
515
|
-
prop: e.prop,
|
|
516
|
-
label: e.label,
|
|
517
|
-
width: e.width,
|
|
518
|
-
"min-width": e.minWidth,
|
|
519
|
-
fixed: e.fixed,
|
|
520
|
-
sortable: e.sortable,
|
|
521
|
-
"show-overflow-tooltip": "",
|
|
522
|
-
align: e.align || "left"
|
|
523
|
-
}, W({ _: 2 }, [
|
|
524
|
-
e.headerSlot ? {
|
|
525
|
-
name: "header",
|
|
526
|
-
fn: s(() => [
|
|
527
|
-
f(a.$slots, e.headerSlot, {
|
|
528
|
-
item: e,
|
|
529
|
-
minWidth: e.minWidth
|
|
530
|
-
})
|
|
531
|
-
]),
|
|
532
|
-
key: "0"
|
|
533
|
-
} : void 0
|
|
534
|
-
]), 1032, ["prop", "label", "width", "min-width", "fixed", "sortable", "align"]))
|
|
535
|
-
], 64))), 256))
|
|
536
|
-
]),
|
|
537
|
-
_: 3
|
|
538
|
-
}, 8, ["element-loading-text", "tree-props", "header-row-class-name", "data", "border", "height", "default-sort", "span-method", "expand-row-keys", "show-summary", "summary-method", "default-expand-all"])), [
|
|
539
|
-
[v, t.isLoading]
|
|
540
|
-
])
|
|
541
|
-
]),
|
|
542
|
-
g.value > 10 && t.hasPage ? (o(), u("div", {
|
|
543
|
-
key: 1,
|
|
544
|
-
class: O([t.isPagePostion ? "aibox-table__pages" : "aibox-table__page"])
|
|
545
|
-
}, [
|
|
546
|
-
$(n(se), {
|
|
547
|
-
layout: r.value,
|
|
548
|
-
"current-page": t.pages.page,
|
|
549
|
-
"page-sizes": [10, 20, 50, 100],
|
|
550
|
-
"page-size": t.pages.size,
|
|
551
|
-
total: g.value,
|
|
552
|
-
onSizeChange: K,
|
|
553
|
-
onCurrentChange: j
|
|
554
|
-
}, null, 8, ["layout", "current-page", "page-size", "total"])
|
|
555
|
-
], 2)) : m("", !0)
|
|
556
|
-
], 2);
|
|
557
|
-
};
|
|
558
|
-
}
|
|
559
|
-
};
|
|
560
|
-
export {
|
|
561
|
-
ue as T,
|
|
562
|
-
Oe as _
|
|
563
|
-
};
|