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