aibox-custom-component-packages 0.0.13 → 0.0.15
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/SourcePublish.mjs +1 -1
- package/es/assets/SourcePublish.css +1 -1
- package/es/chunks/{SourcePublish.BhLjt18i.js → SourcePublish.Dk7O9GzI.js} +2 -6
- package/es/index.mjs +1 -1
- package/lib/SourcePublish.js +1 -1
- package/lib/assets/SourcePublish.css +1 -1
- package/lib/chunks/SourcePublish.OeB6i-Iu.js +1 -0
- package/lib/index.js +1 -1
- package/package.json +2 -2
- package/es/chunks/AddOrEditSupplierDialog.BKR0RsiJ.js +0 -721
- package/es/chunks/AddOrEditSupplierDialog.CjNRipPe.js +0 -721
- package/es/chunks/AddOrEditSupplierDialog.CnsquSx2.js +0 -721
- package/es/chunks/AiboxTable.CDqNvRfJ.js +0 -635
- package/es/chunks/AiboxTable.CrWMAX84.js +0 -635
- package/es/chunks/ApplicationTypeTag.Cbdi0D65.js +0 -47
- package/es/chunks/ApplicationTypeTag.Df4BZxds.js +0 -47
- package/es/chunks/AuthSection.DFfj5MtZ.js +0 -201
- package/es/chunks/AuthSection.DWD_FxtJ.js +0 -201
- package/es/chunks/AvailableRangePreview.Bz9QkkAM.js +0 -194
- package/es/chunks/AvailableRangePreview.WFzbRasx.js +0 -194
- package/es/chunks/AvailableRangeSetting.Bq_K1zar.js +0 -229
- package/es/chunks/AvailableRangeSetting.Cty5Cdmh.js +0 -229
- package/es/chunks/CodeView.CWuSIL_F.js +0 -148
- package/es/chunks/CodeView.Dhxe1PQP.js +0 -148
- package/es/chunks/CommonTagsList.DSPdgjc3.js +0 -156
- package/es/chunks/CommonTagsList.NbXVfvLW.js +0 -156
- package/es/chunks/CommonTagsList.qam_Fp76.js +0 -156
- package/es/chunks/CreateMcpForm.BBVVd2RN.js +0 -308
- package/es/chunks/CreateMcpForm.BWUyeP01.js +0 -308
- package/es/chunks/CreateMcpForm.C8YfDSEM.js +0 -308
- package/es/chunks/CreateMcpForm.DSE5jyiW.js +0 -308
- package/es/chunks/CustomSidebar.BSGAhmVY.js +0 -585
- package/es/chunks/DocSyncSelect.D-WIvZZN.js +0 -2290
- package/es/chunks/DocSyncSelect.Kk88o9gO.js +0 -2290
- package/es/chunks/FileDisplay.B5laA4uX.js +0 -1649
- package/es/chunks/FileDisplay.BCTNdpl9.js +0 -1649
- package/es/chunks/FileDisplay.CBNYrdsK.js +0 -1560
- package/es/chunks/FilePreview.B9u8ODHp.js +0 -123
- package/es/chunks/FileUploader.BaikPGWb.js +0 -216
- package/es/chunks/FileUploader.DD-lopf-.js +0 -216
- package/es/chunks/McpFormDialog.4HDExbTn.js +0 -297
- package/es/chunks/McpFormDialog.CgnC1I7i.js +0 -297
- package/es/chunks/McpFormDialog.D3txmoEF.js +0 -297
- package/es/chunks/McpFormDialog.DNzqqhaX.js +0 -297
- package/es/chunks/McpParamsSet.DlWx6E5S.js +0 -501
- package/es/chunks/McpParamsSet.Tlo_lPn-.js +0 -501
- package/es/chunks/MdEditor.B9-B9aiy.js +0 -163
- package/es/chunks/MdEditor.CeEo0P6j.js +0 -163
- package/es/chunks/MdEditor.DtL0Se7T.js +0 -163
- package/es/chunks/ParameterTable.BCdnj1gW.js +0 -2010
- package/es/chunks/ParameterTable.hUsxEU6F.js +0 -2010
- package/es/chunks/PublishRecord.9PLs9yUj.js +0 -133
- package/es/chunks/PublishRecord.C0841sJ-.js +0 -133
- package/es/chunks/PublishRecord.DEzC7hmP.js +0 -133
- package/es/chunks/SourcePublish.C97G36H2.js +0 -972
- package/es/chunks/SourcePublish.DkyY1KEk.js +0 -972
- package/es/chunks/SourcePublish.Dx-ltk9U.js +0 -956
- package/es/chunks/SourcePublish.FiswtYfr.js +0 -972
- package/es/chunks/SourcePublish.nfXmrVHm.js +0 -972
- package/es/chunks/config.BEZNFeRN.js +0 -35
- package/es/chunks/config.LzgBLhTz.js +0 -270
- package/es/chunks/config.MfNKPMiA.js +0 -35
- package/es/chunks/config.TaUlPTYL.js +0 -270
- package/es/chunks/config.l1J_qxeB.js +0 -270
- package/es/chunks/i18n.CIjLjyDK.js +0 -418
- package/es/chunks/i18n.CxsxtRq_.js +0 -418
- package/es/chunks/usePreview.agdxmOk8.js +0 -126
- package/lib/chunks/AddOrEditSupplierDialog.D0DSQZiS.js +0 -1
- package/lib/chunks/CommonTagsList.DbNcVId5.js +0 -1
- package/lib/chunks/CreateMcpForm.Cm9eHXWg.js +0 -1
- package/lib/chunks/CreateMcpForm.DNijYbgd.js +0 -1
- package/lib/chunks/CustomSidebar.Dojb1xoS.js +0 -1
- package/lib/chunks/FileDisplay.B4gn0Jhp.js +0 -59
- package/lib/chunks/FileDisplay.B7JWIcFg.js +0 -59
- package/lib/chunks/FileDisplay.DjtHza32.js +0 -59
- package/lib/chunks/FilePreview.b1Gine59.js +0 -1
- package/lib/chunks/McpFormDialog.BgNPOGB-.js +0 -6
- package/lib/chunks/McpFormDialog.CL2bInts.js +0 -6
- package/lib/chunks/McpFormDialog.DbhQIwYW.js +0 -6
- package/lib/chunks/MdEditor.rVQbuxCg.js +0 -1
- package/lib/chunks/PublishRecord.B7xYlRKJ.js +0 -5
- package/lib/chunks/SourcePublish.BBsNlnp4.js +0 -1
- package/lib/chunks/SourcePublish.C9JAqJcV.js +0 -1
- package/lib/chunks/SourcePublish.CpeV-UOG.js +0 -1
- package/lib/chunks/SourcePublish.K4tntn9l.js +0 -1
- package/lib/chunks/SourcePublish.tNsaCp3r.js +0 -1
- package/lib/chunks/config.CDNV0bUm.js +0 -1
- package/lib/chunks/usePreview.Dmhz8azZ.js +0 -1
|
@@ -1,635 +0,0 @@
|
|
|
1
|
-
import { m as e } from "./i18n.CIjLjyDK.js";
|
|
2
|
-
import { t } from "./_plugin-vue_export-helper.Ct3qlEzt.js";
|
|
3
|
-
import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createTextVNode as l, createVNode as u, normalizeClass as d, normalizeStyle as f, openBlock as p, ref as m, renderList as h, renderSlot as g, toDisplayString as _, unref as v, withCtx as y, withModifiers as b } from "vue";
|
|
4
|
-
import { ElButton as x, ElDropdown as S, ElDropdownItem as C, ElDropdownMenu as w, ElEmpty as ee, ElIcon as T, ElPagination as te, ElTable as ne, ElTableColumn as E, ElTooltip as D } from "element-plus";
|
|
5
|
-
import { IconMore as O, IconTip as k, IconZuo as A } from "color-message-aibox-vue";
|
|
6
|
-
import { useRouter as j } from "vue-router";
|
|
7
|
-
import '../assets/AiboxTable.css';//#region components/Table/BackBar.vue
|
|
8
|
-
var M = { class: "back-bar__icon" }, N = {
|
|
9
|
-
key: 0,
|
|
10
|
-
class: "back-bar__title"
|
|
11
|
-
}, P = {
|
|
12
|
-
key: 1,
|
|
13
|
-
class: "back-bar__tip"
|
|
14
|
-
}, F = {
|
|
15
|
-
__name: "BackBar",
|
|
16
|
-
props: {
|
|
17
|
-
goBackFn: {
|
|
18
|
-
type: Function,
|
|
19
|
-
default: null
|
|
20
|
-
},
|
|
21
|
-
backBarStyle: {
|
|
22
|
-
type: String,
|
|
23
|
-
default: "#fff"
|
|
24
|
-
},
|
|
25
|
-
title: {
|
|
26
|
-
type: String,
|
|
27
|
-
default: ""
|
|
28
|
-
},
|
|
29
|
-
tipContent: {
|
|
30
|
-
type: String,
|
|
31
|
-
default: ""
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
setup(e) {
|
|
35
|
-
let t = e, n = j(), r = () => {
|
|
36
|
-
t.goBackFn ? t.goBackFn() : n.back();
|
|
37
|
-
};
|
|
38
|
-
return (t, n) => (p(), o("div", {
|
|
39
|
-
class: "back-bar",
|
|
40
|
-
style: f({ "background-color": e.backBarStyle })
|
|
41
|
-
}, [
|
|
42
|
-
s("div", M, [u(v(T), { onClick: b(r, ["stop"]) }, {
|
|
43
|
-
default: y(() => [u(v(A))]),
|
|
44
|
-
_: 1
|
|
45
|
-
})]),
|
|
46
|
-
g(t.$slots, "default"),
|
|
47
|
-
e.title ? (p(), o("div", N, _(e.title), 1)) : a("", !0),
|
|
48
|
-
e.tipContent ? (p(), o("div", P, [u(v(D), {
|
|
49
|
-
content: e.tipContent,
|
|
50
|
-
placement: "right"
|
|
51
|
-
}, {
|
|
52
|
-
default: y(() => [u(v(T), { size: "14" }, {
|
|
53
|
-
default: y(() => [u(v(k))]),
|
|
54
|
-
_: 1
|
|
55
|
-
})]),
|
|
56
|
-
_: 1
|
|
57
|
-
}, 8, ["content"])])) : a("", !0)
|
|
58
|
-
], 4));
|
|
59
|
-
}
|
|
60
|
-
}, I = { class: "table-btns" }, L = { class: "btn-box" }, R = /* @__PURE__ */ t({
|
|
61
|
-
__name: "TableBtns",
|
|
62
|
-
props: {
|
|
63
|
-
config: {
|
|
64
|
-
type: Array,
|
|
65
|
-
required: !0,
|
|
66
|
-
default() {
|
|
67
|
-
return [];
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
showNums: {
|
|
71
|
-
type: Number,
|
|
72
|
-
default: 0,
|
|
73
|
-
validator(e) {
|
|
74
|
-
return e % 1 == 0 && e >= 0;
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
row: {
|
|
78
|
-
type: Object,
|
|
79
|
-
default: () => ({})
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
setup(t) {
|
|
83
|
-
let a = t, { t: c } = e(), f = (e, t) => {
|
|
84
|
-
e && e(t);
|
|
85
|
-
}, m = r(() => a.config.filter((e) => {
|
|
86
|
-
let t = e.permission === void 0 ? !0 : e.permission, n = !0;
|
|
87
|
-
return e.dataPermission && (n = e.dataPermission), t && n;
|
|
88
|
-
})), g = r(() => ({
|
|
89
|
-
show: m.value.slice(0, a.showNums),
|
|
90
|
-
hide: m.value.slice(a.showNums)
|
|
91
|
-
}));
|
|
92
|
-
return (e, r) => (p(), o("div", I, [m.value.length > t.showNums ? (p(), o(n, { key: 0 }, [(p(!0), o(n, null, h(g.value.show, (e, t) => (p(), i(v(x), {
|
|
93
|
-
key: t,
|
|
94
|
-
type: "primary",
|
|
95
|
-
link: "",
|
|
96
|
-
onClick: (t) => f(e.fn, e.row)
|
|
97
|
-
}, {
|
|
98
|
-
default: y(() => [l(_(e.label), 1)]),
|
|
99
|
-
_: 2
|
|
100
|
-
}, 1032, ["onClick"]))), 128)), u(v(S), {
|
|
101
|
-
"popper-class": "custom-dropdown",
|
|
102
|
-
trigger: "click"
|
|
103
|
-
}, {
|
|
104
|
-
dropdown: y(() => [u(v(w), { style: { padding: "14px 0" } }, {
|
|
105
|
-
default: y(() => [(p(!0), o(n, null, h(g.value.hide, (e, t) => (p(), i(v(C), {
|
|
106
|
-
key: t,
|
|
107
|
-
class: d({ "is-delete": e.label === v(c)("COMMON_BUTTON.DELETE_TEXT") || e.label === v(c)("COMMON_BUTTON.DISABLE_TEXT") || e.isDanger }),
|
|
108
|
-
onClick: (t) => f(e.fn, e.row)
|
|
109
|
-
}, {
|
|
110
|
-
default: y(() => [l(_(e.label), 1)]),
|
|
111
|
-
_: 2
|
|
112
|
-
}, 1032, ["class", "onClick"]))), 128))]),
|
|
113
|
-
_: 1
|
|
114
|
-
})]),
|
|
115
|
-
default: y(() => [s("div", L, [u(v(T), { style: {
|
|
116
|
-
"font-size": "20px",
|
|
117
|
-
color: "#999"
|
|
118
|
-
} }, {
|
|
119
|
-
default: y(() => [u(v(O))]),
|
|
120
|
-
_: 1
|
|
121
|
-
})])]),
|
|
122
|
-
_: 1
|
|
123
|
-
})], 64)) : (p(!0), o(n, { key: 1 }, h(m.value, (e, t) => (p(), i(v(x), {
|
|
124
|
-
type: "primary",
|
|
125
|
-
link: "",
|
|
126
|
-
key: t,
|
|
127
|
-
onClick: (t) => f(e.fn, e.row)
|
|
128
|
-
}, {
|
|
129
|
-
default: y(() => [l(_(e.label), 1)]),
|
|
130
|
-
_: 2
|
|
131
|
-
}, 1032, ["onClick"]))), 128))]));
|
|
132
|
-
}
|
|
133
|
-
}, [["__scopeId", "data-v-552341e3"]]), z = {
|
|
134
|
-
key: 0,
|
|
135
|
-
class: "aibox-table__handle"
|
|
136
|
-
}, B = { class: "handle-left" }, V = { class: "handle-right" }, H = { class: "aibox-table__content" }, U = { key: 0 }, W = { class: "aibox-table__slot-wrapper" }, G = { class: "aibox-table__slot-wrapper" }, K = ["innerHTML"], q = ["innerHTML"], J = { class: "aibox-table__slot-wrapper" }, Y = ["onClick"], X = { class: "aibox-table__slot-wrapper" }, re = ["onClick"], ie = { class: "aibox-table__slot-wrapper" }, ae = { class: "flex items-center" }, oe = { class: "aibox-table__slot-wrapper" }, se = {
|
|
137
|
-
key: 0,
|
|
138
|
-
class: "aibox-table__slot-wrapper"
|
|
139
|
-
}, Z = /* @__PURE__ */ t({
|
|
140
|
-
__name: "AiboxTable",
|
|
141
|
-
props: {
|
|
142
|
-
columns: {
|
|
143
|
-
type: Array,
|
|
144
|
-
default: () => []
|
|
145
|
-
},
|
|
146
|
-
data: {
|
|
147
|
-
type: Array,
|
|
148
|
-
default: () => []
|
|
149
|
-
},
|
|
150
|
-
total: {
|
|
151
|
-
type: [String, Number],
|
|
152
|
-
default: 0
|
|
153
|
-
},
|
|
154
|
-
hasPage: {
|
|
155
|
-
type: Boolean,
|
|
156
|
-
default: !0
|
|
157
|
-
},
|
|
158
|
-
onRowKey: {
|
|
159
|
-
type: Function,
|
|
160
|
-
default: () => {}
|
|
161
|
-
},
|
|
162
|
-
onRowClassName: {
|
|
163
|
-
type: Function,
|
|
164
|
-
default: () => {}
|
|
165
|
-
},
|
|
166
|
-
maxHeight: {
|
|
167
|
-
type: [String, Number],
|
|
168
|
-
default: null
|
|
169
|
-
},
|
|
170
|
-
isLoading: {
|
|
171
|
-
type: Boolean,
|
|
172
|
-
default: !1
|
|
173
|
-
},
|
|
174
|
-
pages: {
|
|
175
|
-
type: Object,
|
|
176
|
-
default: () => ({
|
|
177
|
-
page: 1,
|
|
178
|
-
size: 10
|
|
179
|
-
})
|
|
180
|
-
},
|
|
181
|
-
showChangeSize: {
|
|
182
|
-
type: Boolean,
|
|
183
|
-
default: !0
|
|
184
|
-
},
|
|
185
|
-
isCustomEmpty: {
|
|
186
|
-
type: Boolean,
|
|
187
|
-
default: !1
|
|
188
|
-
},
|
|
189
|
-
hasBorder: {
|
|
190
|
-
type: Boolean,
|
|
191
|
-
default: !1
|
|
192
|
-
},
|
|
193
|
-
hasHeaderHandle: {
|
|
194
|
-
type: Boolean,
|
|
195
|
-
default: !1
|
|
196
|
-
},
|
|
197
|
-
isSecondaryHeader: {
|
|
198
|
-
type: Boolean,
|
|
199
|
-
default: !1
|
|
200
|
-
},
|
|
201
|
-
defaultSort: { type: Object },
|
|
202
|
-
spanMethod: {
|
|
203
|
-
type: Function,
|
|
204
|
-
default: () => {}
|
|
205
|
-
},
|
|
206
|
-
showSummary: {
|
|
207
|
-
type: Boolean,
|
|
208
|
-
default: !1
|
|
209
|
-
},
|
|
210
|
-
summaryMethod: {
|
|
211
|
-
type: Function,
|
|
212
|
-
default: () => []
|
|
213
|
-
},
|
|
214
|
-
showHandleNums: {
|
|
215
|
-
type: Number,
|
|
216
|
-
default: 0
|
|
217
|
-
},
|
|
218
|
-
selectionType: {
|
|
219
|
-
type: String,
|
|
220
|
-
default: "checkbox"
|
|
221
|
-
},
|
|
222
|
-
expandRowKeys: {
|
|
223
|
-
type: Array,
|
|
224
|
-
default: () => []
|
|
225
|
-
},
|
|
226
|
-
isCanRowClick: {
|
|
227
|
-
type: Boolean,
|
|
228
|
-
default: !1
|
|
229
|
-
},
|
|
230
|
-
isPagePostion: {
|
|
231
|
-
type: Boolean,
|
|
232
|
-
default: !0
|
|
233
|
-
},
|
|
234
|
-
treeProps: {
|
|
235
|
-
type: Object,
|
|
236
|
-
default: () => ({
|
|
237
|
-
children: "children",
|
|
238
|
-
hasChildren: "hasChildren"
|
|
239
|
-
})
|
|
240
|
-
},
|
|
241
|
-
defaultExpandAll: {
|
|
242
|
-
type: Boolean,
|
|
243
|
-
default: !0
|
|
244
|
-
},
|
|
245
|
-
pagerCount: {
|
|
246
|
-
type: Number,
|
|
247
|
-
default: 7
|
|
248
|
-
},
|
|
249
|
-
size: {
|
|
250
|
-
type: String,
|
|
251
|
-
default: "default"
|
|
252
|
-
}
|
|
253
|
-
},
|
|
254
|
-
emits: [
|
|
255
|
-
"onPageChange",
|
|
256
|
-
"onMultiSelection",
|
|
257
|
-
"onSortChange",
|
|
258
|
-
"onCellDblclick",
|
|
259
|
-
"onRowClick"
|
|
260
|
-
],
|
|
261
|
-
setup(t, { expose: l, emit: f }) {
|
|
262
|
-
let b = t, { t: x } = e(), S = m(null), C = m([]), w = r(() => typeof b.total == "string" ? Number(b.total) : b.total), T = r(() => b.showChangeSize ? "total, sizes, prev, pager, next, jumper" : "total, prev, pager, next, jumper"), D = r(() => w.value > 10 && b.hasPage), O = r(() => b.columns?.find?.((e) => e?.type === "selection")?.selectable || M), k = r(() => {
|
|
263
|
-
let e = b.data || [];
|
|
264
|
-
if (!e.length) return !1;
|
|
265
|
-
let t = O.value;
|
|
266
|
-
return !e.some((e, n) => t(e, n));
|
|
267
|
-
}), A = ({ column: e }) => e?.type === "selection" && k.value ? "aibox-table__select-all-disabled" : "", j = f, M = () => !0, N = (e) => b.onRowKey(e, (e) => e), P = (e) => b.onRowClassName(e), F = (e) => {
|
|
268
|
-
j("onPageChange", {
|
|
269
|
-
...b.pages,
|
|
270
|
-
page: e
|
|
271
|
-
});
|
|
272
|
-
}, I = (e) => {
|
|
273
|
-
j("onPageChange", {
|
|
274
|
-
page: 1,
|
|
275
|
-
size: e
|
|
276
|
-
});
|
|
277
|
-
}, L = (e) => {
|
|
278
|
-
b.selectionType !== "radio" && j("onMultiSelection", e);
|
|
279
|
-
}, Z = (e) => {
|
|
280
|
-
if (b.selectionType === "radio") {
|
|
281
|
-
let t = C.value;
|
|
282
|
-
if (Q(), t.length == 1) {
|
|
283
|
-
let [n] = t, r = n.id !== e.id;
|
|
284
|
-
r ? (C.value = [e], j("onMultiSelection", [e])) : (C.value = [], j("onMultiSelection", [])), $(e, r);
|
|
285
|
-
} else $(e, !0), C.value = [e], j("onMultiSelection", [e]);
|
|
286
|
-
}
|
|
287
|
-
}, Q = () => {
|
|
288
|
-
S.value?.clearSelection(), j("onMultiSelection", []);
|
|
289
|
-
}, ce = () => {
|
|
290
|
-
S.value?.clearSort();
|
|
291
|
-
}, le = (e) => {
|
|
292
|
-
j("onSortChange", e);
|
|
293
|
-
}, ue = (e, t, n, r) => {
|
|
294
|
-
j("onCellDblclick", e, t, n, r);
|
|
295
|
-
}, de = (e) => {
|
|
296
|
-
b.selectionType === "radio" && Z(e);
|
|
297
|
-
}, fe = (e, t, n) => {
|
|
298
|
-
t?.type === "action" || !b.isCanRowClick || j("onRowClick", e, t, n);
|
|
299
|
-
}, $ = (e, t) => {
|
|
300
|
-
S.value?.toggleRowSelection(e, t);
|
|
301
|
-
};
|
|
302
|
-
return l({
|
|
303
|
-
handleClearSelection: Q,
|
|
304
|
-
handleToggleRowSelection: $,
|
|
305
|
-
clearSort: ce
|
|
306
|
-
}), (e, r) => (p(), o("div", { class: d([{
|
|
307
|
-
"row-click-style": t.isCanRowClick,
|
|
308
|
-
"no-pagination": !D.value
|
|
309
|
-
}, "aibox-table"]) }, [
|
|
310
|
-
t.hasHeaderHandle ? (p(), o("div", z, [s("div", B, [g(e.$slots, "handleLeft", {}, void 0, !0)]), s("div", V, [g(e.$slots, "handleRight", {}, void 0, !0)])])) : a("", !0),
|
|
311
|
-
s("div", H, [u(v(ne), {
|
|
312
|
-
ref_key: "aiboxTable",
|
|
313
|
-
ref: S,
|
|
314
|
-
"element-loading-text": v(x)("COMMON_DATA.LOADING_SUFFIX"),
|
|
315
|
-
"tree-props": t.treeProps,
|
|
316
|
-
"header-row-class-name": t.isSecondaryHeader ? "aibox-table__header secondary-header" : "aibox-table__header",
|
|
317
|
-
"header-cell-class-name": A,
|
|
318
|
-
"row-class-name": P,
|
|
319
|
-
data: t.data,
|
|
320
|
-
border: t.hasBorder,
|
|
321
|
-
style: { width: "100%" },
|
|
322
|
-
"row-key": N,
|
|
323
|
-
height: t.maxHeight,
|
|
324
|
-
"default-sort": t.defaultSort,
|
|
325
|
-
"span-method": t.spanMethod,
|
|
326
|
-
"expand-row-keys": t.expandRowKeys,
|
|
327
|
-
onSelectionChange: L,
|
|
328
|
-
onSortChange: le,
|
|
329
|
-
onCellDblclick: ue,
|
|
330
|
-
onCurrentChange: Z,
|
|
331
|
-
"show-summary": t.showSummary,
|
|
332
|
-
"summary-method": t.summaryMethod,
|
|
333
|
-
onSelect: de,
|
|
334
|
-
onRowClick: fe,
|
|
335
|
-
"default-expand-all": t.defaultExpandAll
|
|
336
|
-
}, {
|
|
337
|
-
empty: y(() => [t.isCustomEmpty ? (p(), o("div", se, [g(e.$slots, "customEmpty", {}, void 0, !0)])) : (p(), i(v(ee), {
|
|
338
|
-
key: 1,
|
|
339
|
-
description: v(x)("COMMON_DATA.EMPTY"),
|
|
340
|
-
"image-size": 80
|
|
341
|
-
}, null, 8, ["description"]))]),
|
|
342
|
-
default: y(() => [(p(!0), o(n, null, h(t.columns, (r) => (p(), o(n, null, [r.type === "selection" ? (p(), i(v(E), {
|
|
343
|
-
key: r.type,
|
|
344
|
-
type: "selection",
|
|
345
|
-
fixed: "left",
|
|
346
|
-
width: r.width || "50px",
|
|
347
|
-
"reserve-selection": !0,
|
|
348
|
-
selectable: r.selectable || M
|
|
349
|
-
}, null, 8, ["width", "selectable"])) : r.type === "index" ? (p(), i(v(E), {
|
|
350
|
-
key: `${r.type - r.label}`,
|
|
351
|
-
type: "index",
|
|
352
|
-
label: v(x)("COMMON_DATA.SNO_INDEX"),
|
|
353
|
-
fixed: "left",
|
|
354
|
-
width: r.width || "100px"
|
|
355
|
-
}, {
|
|
356
|
-
default: y((e) => [t.isLoading ? a("", !0) : (p(), o("span", U, _((t.pages.page - 1) * t.pages.size + e.$index + 1), 1))]),
|
|
357
|
-
_: 1
|
|
358
|
-
}, 8, ["label", "width"])) : r.slot ? (p(), i(v(E), {
|
|
359
|
-
align: r.align || "left",
|
|
360
|
-
key: r.prop,
|
|
361
|
-
prop: r.prop,
|
|
362
|
-
label: r.label,
|
|
363
|
-
width: r.width,
|
|
364
|
-
"min-width": r.minWidth,
|
|
365
|
-
"label-class-name": "label-space-style",
|
|
366
|
-
"class-name": "multi-row",
|
|
367
|
-
fixed: r.fixed,
|
|
368
|
-
sortable: r.sortable,
|
|
369
|
-
"show-overflow-tooltip": r.showOverflowTooltip
|
|
370
|
-
}, c({
|
|
371
|
-
default: y((t) => [s("div", G, [g(e.$slots, r.slot, {
|
|
372
|
-
row: t.row,
|
|
373
|
-
index: t.$index,
|
|
374
|
-
minWidth: r.minWidth
|
|
375
|
-
}, void 0, !0)])]),
|
|
376
|
-
_: 2
|
|
377
|
-
}, [r.headerSlot ? {
|
|
378
|
-
name: "header",
|
|
379
|
-
fn: y(() => [s("div", W, [g(e.$slots, r.headerSlot, {
|
|
380
|
-
item: r,
|
|
381
|
-
minWidth: r.minWidth
|
|
382
|
-
}, void 0, !0)])]),
|
|
383
|
-
key: "0"
|
|
384
|
-
} : void 0]), 1032, [
|
|
385
|
-
"align",
|
|
386
|
-
"prop",
|
|
387
|
-
"label",
|
|
388
|
-
"width",
|
|
389
|
-
"min-width",
|
|
390
|
-
"fixed",
|
|
391
|
-
"sortable",
|
|
392
|
-
"show-overflow-tooltip"
|
|
393
|
-
])) : r.callback ? (p(), i(v(E), {
|
|
394
|
-
align: r.align || "left",
|
|
395
|
-
key: r.callback,
|
|
396
|
-
prop: r.prop,
|
|
397
|
-
label: r.label,
|
|
398
|
-
width: r.width,
|
|
399
|
-
"min-width": r.minWidth,
|
|
400
|
-
"show-overflow-tooltip": "",
|
|
401
|
-
fixed: r.fixed,
|
|
402
|
-
sortable: r.sortable
|
|
403
|
-
}, {
|
|
404
|
-
default: y((e) => [s("span", { innerHTML: r.callback && r.callback(e.row) }, null, 8, K)]),
|
|
405
|
-
_: 2
|
|
406
|
-
}, 1032, [
|
|
407
|
-
"align",
|
|
408
|
-
"prop",
|
|
409
|
-
"label",
|
|
410
|
-
"width",
|
|
411
|
-
"min-width",
|
|
412
|
-
"fixed",
|
|
413
|
-
"sortable"
|
|
414
|
-
])) : r.type === "multistage" ? (p(), i(v(E), {
|
|
415
|
-
key: `${r.prop}`,
|
|
416
|
-
label: r.label,
|
|
417
|
-
prop: r.prop,
|
|
418
|
-
width: r.width,
|
|
419
|
-
"min-width": r.minWidth,
|
|
420
|
-
"show-overflow-tooltip": "",
|
|
421
|
-
align: r.align || "left",
|
|
422
|
-
"header-align": r.headerAlign || "left"
|
|
423
|
-
}, {
|
|
424
|
-
default: y(() => [(p(!0), o(n, null, h(r.children, (t) => (p(), o(n, null, [t.callback ? (p(), i(v(E), {
|
|
425
|
-
key: t.callback,
|
|
426
|
-
prop: t.prop,
|
|
427
|
-
label: t.label,
|
|
428
|
-
"min-width": t.minWidth,
|
|
429
|
-
"show-overflow-tooltip": ""
|
|
430
|
-
}, {
|
|
431
|
-
default: y((e) => [s("span", { innerHTML: t.callback && t.callback(e.row) }, null, 8, q)]),
|
|
432
|
-
_: 2
|
|
433
|
-
}, 1032, [
|
|
434
|
-
"prop",
|
|
435
|
-
"label",
|
|
436
|
-
"min-width"
|
|
437
|
-
])) : t.slot ? (p(), i(v(E), {
|
|
438
|
-
key: t.prop,
|
|
439
|
-
"min-width": t.minWidth,
|
|
440
|
-
prop: t.prop,
|
|
441
|
-
label: t.label
|
|
442
|
-
}, {
|
|
443
|
-
default: y((n) => [s("div", J, [g(e.$slots, t.slot, {
|
|
444
|
-
row: n.row,
|
|
445
|
-
column: n.column,
|
|
446
|
-
index: n.$index
|
|
447
|
-
}, void 0, !0)])]),
|
|
448
|
-
_: 2
|
|
449
|
-
}, 1032, [
|
|
450
|
-
"min-width",
|
|
451
|
-
"prop",
|
|
452
|
-
"label"
|
|
453
|
-
])) : t.custom ? (p(), i(v(E), {
|
|
454
|
-
key: `${t.prop}`,
|
|
455
|
-
prop: t.prop,
|
|
456
|
-
label: t.label,
|
|
457
|
-
"min-width": t.minWidth,
|
|
458
|
-
"show-overflow-tooltip": ""
|
|
459
|
-
}, {
|
|
460
|
-
header: y(() => [s("span", {
|
|
461
|
-
onClick: () => t.headerClick({
|
|
462
|
-
parent: r.label,
|
|
463
|
-
...t
|
|
464
|
-
}),
|
|
465
|
-
style: {
|
|
466
|
-
color: "#5b9bd1",
|
|
467
|
-
cursor: "pointer"
|
|
468
|
-
}
|
|
469
|
-
}, _(t.label), 9, Y)]),
|
|
470
|
-
default: y((n) => [s("div", X, [g(e.$slots, "custom", { data: {
|
|
471
|
-
col: {
|
|
472
|
-
parent: r.label,
|
|
473
|
-
...t
|
|
474
|
-
},
|
|
475
|
-
row: n.row
|
|
476
|
-
} }, void 0, !0)])]),
|
|
477
|
-
_: 2
|
|
478
|
-
}, 1032, [
|
|
479
|
-
"prop",
|
|
480
|
-
"label",
|
|
481
|
-
"min-width"
|
|
482
|
-
])) : (p(), i(v(E), {
|
|
483
|
-
key: `${t.prop}-${t.label}`,
|
|
484
|
-
prop: t.prop,
|
|
485
|
-
label: t.label,
|
|
486
|
-
width: t.width,
|
|
487
|
-
"min-width": t.minWidth,
|
|
488
|
-
"show-overflow-tooltip": "",
|
|
489
|
-
"header-align": t.headerAlign ? t.headerAlign : "left",
|
|
490
|
-
align: t.align ? t.align : "left"
|
|
491
|
-
}, null, 8, [
|
|
492
|
-
"prop",
|
|
493
|
-
"label",
|
|
494
|
-
"width",
|
|
495
|
-
"min-width",
|
|
496
|
-
"header-align",
|
|
497
|
-
"align"
|
|
498
|
-
]))], 64))), 256))]),
|
|
499
|
-
_: 2
|
|
500
|
-
}, 1032, [
|
|
501
|
-
"label",
|
|
502
|
-
"prop",
|
|
503
|
-
"width",
|
|
504
|
-
"min-width",
|
|
505
|
-
"align",
|
|
506
|
-
"header-align"
|
|
507
|
-
])) : r.custom ? (p(), i(v(E), {
|
|
508
|
-
key: `${r.prop}-${r.custom}`,
|
|
509
|
-
prop: r.prop,
|
|
510
|
-
label: r.label,
|
|
511
|
-
"min-width": r.minWidth,
|
|
512
|
-
"show-overflow-tooltip": ""
|
|
513
|
-
}, {
|
|
514
|
-
header: y(() => [s("span", {
|
|
515
|
-
onClick: () => r.headerClick({
|
|
516
|
-
parent: "",
|
|
517
|
-
...r
|
|
518
|
-
}),
|
|
519
|
-
style: {
|
|
520
|
-
color: "#5b9bd1",
|
|
521
|
-
cursor: "pointer"
|
|
522
|
-
}
|
|
523
|
-
}, _(r.label), 9, re)]),
|
|
524
|
-
default: y((t) => [s("div", ie, [g(e.$slots, "custom", { data: {
|
|
525
|
-
col: {
|
|
526
|
-
parent: "",
|
|
527
|
-
...r
|
|
528
|
-
},
|
|
529
|
-
row: t.row
|
|
530
|
-
} }, void 0, !0)])]),
|
|
531
|
-
_: 2
|
|
532
|
-
}, 1032, [
|
|
533
|
-
"prop",
|
|
534
|
-
"label",
|
|
535
|
-
"min-width"
|
|
536
|
-
])) : r.type === "action" ? (p(), i(v(E), {
|
|
537
|
-
key: `${r.prop - Math.random()}`,
|
|
538
|
-
label: r.label,
|
|
539
|
-
width: r.width,
|
|
540
|
-
type: "action",
|
|
541
|
-
fixed: "right"
|
|
542
|
-
}, {
|
|
543
|
-
default: y((n) => [s("div", ae, [g(e.$slots, "goto", { row: n.row }, void 0, !0), r?.config?.(n.row)?.length ? (p(), i(R, {
|
|
544
|
-
key: 0,
|
|
545
|
-
"show-nums": t.showHandleNums,
|
|
546
|
-
config: r.config(n.row, n.$index),
|
|
547
|
-
row: n.row
|
|
548
|
-
}, null, 8, [
|
|
549
|
-
"show-nums",
|
|
550
|
-
"config",
|
|
551
|
-
"row"
|
|
552
|
-
])) : a("", !0)])]),
|
|
553
|
-
_: 2
|
|
554
|
-
}, 1032, ["label", "width"])) : r.type === "expand" ? (p(), i(v(E), {
|
|
555
|
-
type: "expand",
|
|
556
|
-
key: "expand" + r.prop,
|
|
557
|
-
width: r.width
|
|
558
|
-
}, {
|
|
559
|
-
default: y((t) => [s("div", oe, [g(e.$slots, "expand", {
|
|
560
|
-
row: t.row,
|
|
561
|
-
column: t.column
|
|
562
|
-
}, void 0, !0)])]),
|
|
563
|
-
_: 3
|
|
564
|
-
}, 8, ["width"])) : (p(), i(v(E), {
|
|
565
|
-
key: `${r.prop - r.label}`,
|
|
566
|
-
prop: r.prop,
|
|
567
|
-
label: r.label,
|
|
568
|
-
width: r.width,
|
|
569
|
-
"min-width": r.minWidth,
|
|
570
|
-
fixed: r.fixed,
|
|
571
|
-
sortable: r.sortable,
|
|
572
|
-
"show-overflow-tooltip": "",
|
|
573
|
-
align: r.align || "left"
|
|
574
|
-
}, c({ _: 2 }, [r.headerSlot ? {
|
|
575
|
-
name: "header",
|
|
576
|
-
fn: y(() => [g(e.$slots, r.headerSlot, {
|
|
577
|
-
item: r,
|
|
578
|
-
minWidth: r.minWidth
|
|
579
|
-
}, void 0, !0)]),
|
|
580
|
-
key: "0"
|
|
581
|
-
} : void 0]), 1032, [
|
|
582
|
-
"prop",
|
|
583
|
-
"label",
|
|
584
|
-
"width",
|
|
585
|
-
"min-width",
|
|
586
|
-
"fixed",
|
|
587
|
-
"sortable",
|
|
588
|
-
"align"
|
|
589
|
-
]))], 64))), 256))]),
|
|
590
|
-
_: 3
|
|
591
|
-
}, 8, [
|
|
592
|
-
"element-loading-text",
|
|
593
|
-
"tree-props",
|
|
594
|
-
"header-row-class-name",
|
|
595
|
-
"data",
|
|
596
|
-
"border",
|
|
597
|
-
"height",
|
|
598
|
-
"default-sort",
|
|
599
|
-
"span-method",
|
|
600
|
-
"expand-row-keys",
|
|
601
|
-
"show-summary",
|
|
602
|
-
"summary-method",
|
|
603
|
-
"default-expand-all"
|
|
604
|
-
])]),
|
|
605
|
-
w.value > 10 && t.hasPage ? (p(), o("div", {
|
|
606
|
-
key: 1,
|
|
607
|
-
class: d([t.isPagePostion ? "aibox-table__pages" : "aibox-table__page"])
|
|
608
|
-
}, [u(v(te), {
|
|
609
|
-
layout: T.value,
|
|
610
|
-
"current-page": t.pages.page,
|
|
611
|
-
"page-sizes": [
|
|
612
|
-
10,
|
|
613
|
-
20,
|
|
614
|
-
50,
|
|
615
|
-
100
|
|
616
|
-
],
|
|
617
|
-
"page-size": t.pages.size,
|
|
618
|
-
total: w.value,
|
|
619
|
-
"pager-count": t.pagerCount,
|
|
620
|
-
size: t.size,
|
|
621
|
-
onSizeChange: I,
|
|
622
|
-
onCurrentChange: F
|
|
623
|
-
}, null, 8, [
|
|
624
|
-
"layout",
|
|
625
|
-
"current-page",
|
|
626
|
-
"page-size",
|
|
627
|
-
"total",
|
|
628
|
-
"pager-count",
|
|
629
|
-
"size"
|
|
630
|
-
])], 2)) : a("", !0)
|
|
631
|
-
], 2));
|
|
632
|
-
}
|
|
633
|
-
}, [["__scopeId", "data-v-1d0bcb93"]]);
|
|
634
|
-
//#endregion
|
|
635
|
-
export { R as n, F as r, Z as t };
|