aibox-custom-component-packages 0.0.6 → 0.0.7
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 +786 -0
- package/es/ApplicationTypeTag.mjs +58 -0
- package/es/AuthSection.mjs +199 -0
- package/es/AutoShowTooltip.mjs +90 -0
- package/es/AvailableRangePreview.mjs +1 -1
- package/es/AvailableRangeSetting.mjs +11 -10
- package/es/CodeView.mjs +7 -0
- package/es/CommonTagsList.mjs +4 -4
- package/es/CreateMcpForm.mjs +384 -0
- package/es/CustomSidebar.mjs +712 -0
- package/es/CustomTitle.mjs +7 -0
- package/es/CustomToggle.mjs +170 -0
- package/es/DialogContainer.mjs +21 -21
- package/es/FileDisplay.mjs +6 -0
- package/es/FilePreview.mjs +179 -0
- package/es/FileUploader.mjs +266 -9
- package/es/McpFormDialog.mjs +8 -0
- package/es/McpParamsSet.mjs +630 -0
- package/es/MdEditor.mjs +201 -0
- package/es/PageContainer.mjs +360 -11
- package/es/ParameterTable.mjs +2288 -0
- package/es/PublishRecord.mjs +6 -6
- package/es/RadioGroup.mjs +119 -0
- package/es/SourcePublish.mjs +6 -6
- package/es/Table.mjs +2 -2
- package/es/assets/AddOrEditSupplierDialog.css +1 -0
- package/es/assets/AiboxTable.css +1 -0
- package/es/assets/ApplicationTypeTag.css +1 -0
- package/es/assets/AuthSection.css +1 -0
- package/es/assets/AutoShowTooltip.css +1 -0
- package/es/assets/CreateMcpForm.css +1 -0
- package/es/assets/CustomSidebar.css +1 -0
- package/es/assets/CustomToggle.css +1 -0
- package/es/assets/FilePreview.css +1 -0
- package/es/assets/FileUploader.css +1 -0
- package/es/assets/McpParamsSet.css +1 -0
- package/es/assets/MdEditor.css +1 -0
- package/es/assets/PageContainer.css +1 -0
- package/es/assets/ParameterTable.css +1 -0
- package/es/assets/RadioGroup.css +1 -0
- package/es/assets/index.css +1 -1
- package/es/assets/index2.css +1 -1
- package/es/assets/index3.css +1 -0
- package/es/assets/index4.css +1 -0
- package/es/assets/index5.css +1 -0
- package/es/assets/index6.css +1 -0
- package/es/assets/layout.css +1 -0
- package/es/assets/usePreview.css +1 -0
- package/es/chunks/AiboxTable.DUGBBVXh.js +645 -0
- package/es/chunks/BackBar.B5Er8ZdJ.js +645 -0
- package/es/chunks/config.DPkdwjwD.js +49 -0
- package/es/chunks/config.Dklrsn-B.js +49 -0
- package/es/chunks/config.DqhQdkz7.js +325 -0
- package/es/chunks/config.RrNwuFkQ.js +325 -0
- package/es/chunks/config.gNZ_rT87.js +325 -0
- package/es/chunks/enums.DuBbLcd-.js +83 -0
- package/es/chunks/enums.Dvec-maC.js +62 -0
- package/es/chunks/field-types.CPnMOjle.js +13 -0
- package/es/chunks/files.cduUqjHX.js +16 -0
- package/es/chunks/i18n.DDMVloiU.js +443 -0
- package/es/chunks/i18n.k9Q_HVMs.js +443 -0
- package/es/chunks/index.BSA3IKSF.js +111 -0
- package/es/chunks/index.BT1khSY9.js +111 -0
- package/es/chunks/index.CDvh263l.js +257 -0
- package/es/chunks/index.CLyfh6p1.js +257 -0
- package/es/chunks/index.CSjjAi3w.js +396 -0
- package/es/chunks/index.CdEBk4F_.js +134 -0
- package/es/chunks/index.CgbxJCEU.js +265 -0
- package/es/chunks/index.CuDwuRO7.js +265 -0
- package/es/chunks/index.DWR4lc30.js +203 -0
- package/es/chunks/index.GuEzdh6b.js +257 -0
- package/es/chunks/index.uOZzvHrF.js +135 -0
- package/es/chunks/layout.BREUWPEJ.js +26 -0
- package/es/chunks/publish.DlD0o09n.js +50 -0
- package/es/chunks/request.24c3shPx.js +5 -0
- package/es/chunks/usePreview.B5lboHeg.js +153 -0
- package/es/chunks/usePreview.C36fNlVd.js +153 -0
- package/es/index.mjs +325 -312
- package/index.css +1 -1
- package/lib/AddOrEditSupplierDialog.js +1 -0
- package/lib/ApplicationTypeTag.js +1 -0
- package/lib/AuthSection.js +1 -0
- package/lib/AutoShowTooltip.js +1 -0
- package/lib/AvailableRangePreview.js +1 -1
- package/lib/AvailableRangeSetting.js +1 -1
- package/lib/CodeView.js +1 -0
- package/lib/CommonTagsList.js +1 -1
- package/lib/CreateMcpForm.js +1 -0
- package/lib/CustomSidebar.js +1 -0
- package/lib/CustomTitle.js +1 -0
- package/lib/CustomToggle.js +1 -0
- package/lib/DialogContainer.js +1 -1
- package/lib/FileDisplay.js +1 -0
- package/lib/FilePreview.js +1 -0
- package/lib/FileUploader.js +1 -1
- package/lib/McpFormDialog.js +1 -0
- package/lib/McpParamsSet.js +1 -0
- package/lib/MdEditor.js +1 -0
- package/lib/PageContainer.js +1 -1
- package/lib/ParameterTable.js +1 -0
- package/lib/PublishRecord.js +4 -4
- package/lib/RadioGroup.js +1 -0
- package/lib/SourcePublish.js +1 -1
- package/lib/Table.js +1 -1
- package/lib/assets/AddOrEditSupplierDialog.css +1 -0
- package/lib/assets/AiboxTable.css +1 -0
- package/lib/assets/ApplicationTypeTag.css +1 -0
- package/lib/assets/AuthSection.css +1 -0
- package/lib/assets/AutoShowTooltip.css +1 -0
- package/lib/assets/CreateMcpForm.css +1 -0
- package/lib/assets/CustomSidebar.css +1 -0
- package/lib/assets/CustomToggle.css +1 -0
- package/lib/assets/FilePreview.css +1 -0
- package/lib/assets/FileUploader.css +1 -0
- package/lib/assets/McpParamsSet.css +1 -0
- package/lib/assets/MdEditor.css +1 -0
- package/lib/assets/PageContainer.css +1 -0
- package/lib/assets/ParameterTable.css +1 -0
- package/lib/assets/RadioGroup.css +1 -0
- package/lib/assets/index.css +1 -1
- package/lib/assets/index2.css +1 -1
- package/lib/assets/index3.css +1 -0
- package/lib/assets/index4.css +1 -0
- package/lib/assets/index5.css +1 -0
- package/lib/assets/index6.css +1 -0
- package/lib/assets/layout.css +1 -0
- package/lib/assets/usePreview.css +1 -0
- package/lib/chunks/AiboxTable.BnoHJ7xL.js +1 -0
- package/lib/chunks/BackBar.C8Xrc6qW.js +1 -0
- package/lib/chunks/config.1oaIKLGn.js +1 -0
- package/lib/chunks/config.BF7MO0O5.js +1 -0
- package/lib/chunks/enums.DnuzPZCR.js +1 -0
- package/lib/chunks/field-types.Ch_2yDfg.js +1 -0
- package/lib/chunks/files.B3-8UC0v.js +1 -0
- package/lib/chunks/i18n.DgOp_D7R.js +1 -0
- package/lib/chunks/index.BZcSlgOO.js +1 -0
- package/lib/chunks/index.Bc71XWQn.js +1 -0
- package/lib/chunks/index.CH7XdMru.js +1 -0
- package/lib/chunks/index.CaidDlAx.js +1 -0
- package/lib/chunks/index.D7wBInWr.js +1 -0
- package/lib/chunks/index.DGWHQFdx.js +6 -0
- package/lib/chunks/index.DME62Yfo.js +1 -0
- package/lib/chunks/index.DWohILMv.js +1 -0
- package/lib/chunks/index.LK2ulXTE.js +1 -0
- package/lib/chunks/index.qDAoOzk9.js +1 -0
- package/lib/chunks/index.s8vGOJKG.js +1 -0
- package/lib/chunks/layout.sgE9JoNq.js +1 -0
- package/lib/chunks/publish.3TrK3fZf.js +1 -0
- package/lib/chunks/request.D8T4MgGX.js +1 -0
- package/lib/chunks/usePreview.2PZJSy5w.js +1 -0
- package/lib/chunks/usePreview.E5SeS2uw.js +1 -0
- package/lib/index.js +1 -4
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.viewer-zoom-in:before,.viewer-zoom-out:before,.viewer-one-to-one:before,.viewer-reset:before,.viewer-prev:before,.viewer-play:before,.viewer-next:before,.viewer-rotate-left:before,.viewer-rotate-right:before,.viewer-flip-horizontal:before,.viewer-flip-vertical:before,.viewer-fullscreen:before,.viewer-fullscreen-exit:before,.viewer-close:before{background-image:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 560 40%22%3E%3Cpath fill%3D%22%23fff%22 d%3D%22M49.6 17.9h20.2v3.9H49.6zm123.1 2 10.9-11 2.7 2.8-8.2 8.2 8.2 8.2-2.7 2.7-10.9-10.9zm94 0-10.8-11-2.7 2.8 8.1 8.2-8.1 8.2 2.7 2.7 10.8-10.9zM212 9.3l20.1 10.6L212 30.5V9.3zm161.5 4.6-7.2 6 7.2 5.9v-4h12.4v4l7.3-5.9-7.3-6v4h-12.4v-4zm40.2 12.3 5.9 7.2 5.9-7.2h-4V13.6h4l-5.9-7.3-5.9 7.3h4v12.6h-4zm35.9-16.5h6.3v2h-4.3V16h-2V9.7Zm14 0h6.2V16h-2v-4.3h-4.2v-2Zm6.2 14V30h-6.2v-2h4.2v-4.3h2Zm-14 6.3h-6.2v-6.3h2v4.4h4.3v2Zm-438 .1v-8.3H9.6v-3.9h8.2V9.7h3.9v8.2h8.1v3.9h-8.1v8.3h-3.9zM93.6 9.7h-5.8v3.9h2V30h3.8V9.7zm16.1 0h-5.8v3.9h1.9V30h3.9V9.7zm-11.9 4.1h3.9v3.9h-3.9zm0 8.2h3.9v3.9h-3.9zm244.6-11.7 7.2 5.9-7.2 6v-3.6c-5.4-.4-7.8.8-8.7 2.8-.8 1.7-1.8 4.9 2.8 8.2-6.3-2-7.5-6.9-6-11.3 1.6-4.4 8-5 11.9-4.9v-3.1Zm147.2 13.4h6.3V30h-2v-4.3h-4.3v-2zm14 6.3v-6.3h6.2v2h-4.3V30h-1.9zm6.2-14h-6.2V9.7h1.9V14h4.3v2zm-13.9 0h-6.3v-2h4.3V9.7h2V16zm33.3 12.5 8.6-8.6-8.6-8.7 1.9-1.9 8.6 8.7 8.6-8.7 1.9 1.9-8.6 8.7 8.6 8.6-1.9 2-8.6-8.7-8.6 8.7-1.9-2zM297 10.3l-7.1 5.9 7.2 6v-3.6c5.3-.4 7.7.8 8.7 2.8.8 1.7 1.7 4.9-2.9 8.2 6.3-2 7.5-6.9 6-11.3-1.6-4.4-7.9-5-11.8-4.9v-3.1Zm-157.3-.6c2.3 0 4.4.7 6 2l2.5-3 1.9 9.2h-9.3l2.6-3.1a6.2 6.2 0 0 0-9.9 5.1c0 3.4 2.8 6.3 6.2 6.3 2.8 0 5.1-1.9 6-4.4h4c-1 4.7-5 8.3-10 8.3a10 10 0 0 1-10-10.2 10 10 0 0 1 10-10.2Z%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-size:280px;color:transparent;display:block;font-size:0;height:20px;line-height:0;width:20px}.viewer-zoom-in:before{background-position:0 0;content:"Zoom In"}.viewer-zoom-out:before{background-position:-20px 0;content:"Zoom Out"}.viewer-one-to-one:before{background-position:-40px 0;content:"One to One"}.viewer-reset:before{background-position:-60px 0;content:"Reset"}.viewer-prev:before{background-position:-80px 0;content:"Previous"}.viewer-play:before{background-position:-100px 0;content:"Play"}.viewer-next:before{background-position:-120px 0;content:"Next"}.viewer-rotate-left:before{background-position:-140px 0;content:"Rotate Left"}.viewer-rotate-right:before{background-position:-160px 0;content:"Rotate Right"}.viewer-flip-horizontal:before{background-position:-180px 0;content:"Flip Horizontal"}.viewer-flip-vertical:before{background-position:-200px 0;content:"Flip Vertical"}.viewer-fullscreen:before{background-position:-220px 0;content:"Enter Full Screen"}.viewer-fullscreen-exit:before{background-position:-240px 0;content:"Exit Full Screen"}.viewer-close:before{background-position:-260px 0;content:"Close"}.viewer-container{direction:ltr;font-size:0;inset:0;line-height:0;overflow:hidden;position:absolute;-webkit-tap-highlight-color:transparent;-ms-touch-action:none;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.viewer-container::-moz-selection,.viewer-container *::-moz-selection{background-color:transparent}.viewer-container::selection,.viewer-container *::selection{background-color:transparent}.viewer-container:focus{outline:0}.viewer-container img{display:block;height:auto;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.viewer-canvas{inset:0;overflow:hidden;position:absolute}.viewer-canvas>img{height:auto;margin:15px auto;max-width:90%!important;width:auto}.viewer-footer{bottom:0;left:0;overflow:hidden;position:absolute;right:0;text-align:center}.viewer-navbar{background-color:#00000080;overflow:hidden}.viewer-list{box-sizing:content-box;height:50px;margin:0;overflow:hidden;padding:1px 0}.viewer-list>li{color:transparent;cursor:pointer;float:left;font-size:0;height:50px;line-height:0;opacity:.5;overflow:hidden;transition:opacity .15s;width:30px}.viewer-list>li:focus,.viewer-list>li:hover{opacity:.75}.viewer-list>li:focus{outline:0}.viewer-list>li+li{margin-left:1px}.viewer-list>.viewer-loading{position:relative}.viewer-list>.viewer-loading:after{border-width:2px;height:20px;margin-left:-10px;margin-top:-10px;width:20px}.viewer-list>.viewer-active,.viewer-list>.viewer-active:focus,.viewer-list>.viewer-active:hover{opacity:1}.viewer-player{background-color:#000;cursor:none;display:none;inset:0;position:absolute;z-index:1}.viewer-player>img{left:0;position:absolute;top:0}.viewer-toolbar>ul{display:inline-block;margin:0 auto 5px;overflow:hidden;padding:6px 3px}.viewer-toolbar>ul>li{background-color:#00000080;border-radius:50%;cursor:pointer;float:left;height:24px;overflow:hidden;transition:background-color .15s;width:24px}.viewer-toolbar>ul>li:focus,.viewer-toolbar>ul>li:hover{background-color:#000c}.viewer-toolbar>ul>li:focus{box-shadow:0 0 3px #fff;outline:0;position:relative;z-index:1}.viewer-toolbar>ul>li:before{margin:2px}.viewer-toolbar>ul>li+li{margin-left:1px}.viewer-toolbar>ul>.viewer-small{height:18px;margin-bottom:3px;margin-top:3px;width:18px}.viewer-toolbar>ul>.viewer-small:before{margin:-1px}.viewer-toolbar>ul>.viewer-large{height:30px;margin-bottom:-3px;margin-top:-3px;width:30px}.viewer-toolbar>ul>.viewer-large:before{margin:5px}.viewer-tooltip{background-color:#000c;border-radius:10px;color:#fff;display:none;font-size:12px;height:20px;left:50%;line-height:20px;margin-left:-25px;margin-top:-10px;position:absolute;text-align:center;top:50%;width:50px}.viewer-title{color:#ccc;display:inline-block;font-size:12px;line-height:1.2;margin:5px 5%;max-width:90%;min-height:14px;opacity:.8;overflow:hidden;text-overflow:ellipsis;transition:opacity .15s;white-space:nowrap}.viewer-title:hover{opacity:1}.viewer-button{-webkit-app-region:no-drag;background-color:#00000080;border-radius:50%;cursor:pointer;height:80px;overflow:hidden;position:absolute;right:-40px;top:-40px;transition:background-color .15s;width:80px}.viewer-button:focus,.viewer-button:hover{background-color:#000c}.viewer-button:focus{box-shadow:0 0 3px #fff;outline:0}.viewer-button:before{bottom:15px;left:15px;position:absolute}.viewer-fixed{position:fixed}.viewer-open{overflow:hidden}.viewer-show{display:block}.viewer-hide{display:none}.viewer-backdrop{background-color:#00000080}.viewer-invisible{visibility:hidden}.viewer-move{cursor:move;cursor:grab}.viewer-fade{opacity:0}.viewer-in{opacity:1}.viewer-transition{transition:all .3s}@keyframes viewer-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.viewer-loading:after{animation:viewer-spinner 1s linear infinite;border:4px solid rgba(255,255,255,.1);border-left-color:#ffffff80;border-radius:50%;content:"";display:inline-block;height:40px;left:50%;margin-left:-20px;margin-top:-20px;position:absolute;top:50%;width:40px;z-index:1}@media(max-width:767px){.viewer-hide-xs-down{display:none}}@media(max-width:991px){.viewer-hide-sm-down{display:none}}@media(max-width:1199px){.viewer-hide-md-down{display:none}}
|
|
@@ -0,0 +1,645 @@
|
|
|
1
|
+
import { createElementBlock as c, openBlock as o, normalizeStyle as le, createElementVNode as h, renderSlot as b, createCommentVNode as B, createVNode as w, unref as n, withModifiers as te, withCtx as s, toDisplayString as m, computed as T, Fragment as _, renderList as N, createBlock as i, createTextVNode as A, normalizeClass as z, ref as H, createSlots as W } from "vue";
|
|
2
|
+
import { useRouter as ae } from "vue-router";
|
|
3
|
+
import { IconZuo as oe, IconTip as ne, IconMore as se } from "color-message-aibox-vue";
|
|
4
|
+
import { ElIcon as D, ElTooltip as re, ElButton as L, ElDropdown as de, ElDropdownMenu as ie, ElDropdownItem as ce, ElTable as ue, ElTableColumn as f, ElEmpty as he, ElPagination as pe } from "element-plus";
|
|
5
|
+
import { u as I } from "./i18n.DDMVloiU.js";
|
|
6
|
+
import { _ as F } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
7
|
+
import '../assets/AiboxTable.css';const fe = { class: "back-bar__icon" }, be = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "back-bar__title"
|
|
10
|
+
}, we = {
|
|
11
|
+
key: 1,
|
|
12
|
+
class: "back-bar__tip"
|
|
13
|
+
}, Ve = {
|
|
14
|
+
__name: "BackBar",
|
|
15
|
+
props: {
|
|
16
|
+
goBackFn: {
|
|
17
|
+
type: Function,
|
|
18
|
+
default: null
|
|
19
|
+
},
|
|
20
|
+
backBarStyle: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: "#fff"
|
|
23
|
+
},
|
|
24
|
+
title: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: ""
|
|
27
|
+
},
|
|
28
|
+
tipContent: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: ""
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
setup(a) {
|
|
34
|
+
const k = a, $ = ae(), r = () => {
|
|
35
|
+
k.goBackFn ? k.goBackFn() : $.back();
|
|
36
|
+
};
|
|
37
|
+
return (y, C) => (o(), c("div", {
|
|
38
|
+
class: "back-bar",
|
|
39
|
+
style: le({ "background-color": a.backBarStyle })
|
|
40
|
+
}, [
|
|
41
|
+
h("div", fe, [
|
|
42
|
+
w(n(D), {
|
|
43
|
+
onClick: te(r, ["stop"])
|
|
44
|
+
}, {
|
|
45
|
+
default: s(() => [
|
|
46
|
+
w(n(oe))
|
|
47
|
+
]),
|
|
48
|
+
_: 1
|
|
49
|
+
})
|
|
50
|
+
]),
|
|
51
|
+
b(y.$slots, "default"),
|
|
52
|
+
a.title ? (o(), c("div", be, m(a.title), 1)) : B("", !0),
|
|
53
|
+
a.tipContent ? (o(), c("div", we, [
|
|
54
|
+
w(n(re), {
|
|
55
|
+
content: a.tipContent,
|
|
56
|
+
placement: "right"
|
|
57
|
+
}, {
|
|
58
|
+
default: s(() => [
|
|
59
|
+
w(n(D), { size: "14" }, {
|
|
60
|
+
default: s(() => [
|
|
61
|
+
w(n(ne))
|
|
62
|
+
]),
|
|
63
|
+
_: 1
|
|
64
|
+
})
|
|
65
|
+
]),
|
|
66
|
+
_: 1
|
|
67
|
+
}, 8, ["content"])
|
|
68
|
+
])) : B("", !0)
|
|
69
|
+
], 4));
|
|
70
|
+
}
|
|
71
|
+
}, ye = { class: "table-btns" }, ge = { class: "btn-box" }, ke = {
|
|
72
|
+
__name: "TableBtns",
|
|
73
|
+
props: {
|
|
74
|
+
config: {
|
|
75
|
+
type: Array,
|
|
76
|
+
required: !0,
|
|
77
|
+
default() {
|
|
78
|
+
return [];
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
showNums: {
|
|
82
|
+
type: Number,
|
|
83
|
+
default: 0,
|
|
84
|
+
validator(a) {
|
|
85
|
+
return a % 1 === 0 && a >= 0;
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
row: {
|
|
89
|
+
type: Object,
|
|
90
|
+
default: () => ({})
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
setup(a) {
|
|
94
|
+
const k = a, { t: $ } = I(), r = (p, x) => {
|
|
95
|
+
p && p(x);
|
|
96
|
+
}, y = T(() => k.config.filter((p) => {
|
|
97
|
+
const x = p.permission !== void 0 ? p.permission : !0;
|
|
98
|
+
let d = !0;
|
|
99
|
+
return p.dataPermission && (d = p.dataPermission), x && d;
|
|
100
|
+
})), C = T(() => ({
|
|
101
|
+
show: y.value.slice(0, k.showNums),
|
|
102
|
+
hide: y.value.slice(k.showNums)
|
|
103
|
+
}));
|
|
104
|
+
return (p, x) => (o(), c("div", ye, [
|
|
105
|
+
y.value.length > a.showNums ? (o(), c(_, { key: 0 }, [
|
|
106
|
+
(o(!0), c(_, null, N(C.value.show, (d, v) => (o(), i(n(L), {
|
|
107
|
+
key: v,
|
|
108
|
+
type: "primary",
|
|
109
|
+
link: "",
|
|
110
|
+
onClick: (M) => r(d.fn, d.row)
|
|
111
|
+
}, {
|
|
112
|
+
default: s(() => [
|
|
113
|
+
A(m(d.label), 1)
|
|
114
|
+
]),
|
|
115
|
+
_: 2
|
|
116
|
+
}, 1032, ["onClick"]))), 128)),
|
|
117
|
+
w(n(de), {
|
|
118
|
+
"popper-class": "custom-dropdown",
|
|
119
|
+
trigger: "click"
|
|
120
|
+
}, {
|
|
121
|
+
dropdown: s(() => [
|
|
122
|
+
w(n(ie), { style: { padding: "14px 0" } }, {
|
|
123
|
+
default: s(() => [
|
|
124
|
+
(o(!0), c(_, null, N(C.value.hide, (d, v) => (o(), i(n(ce), {
|
|
125
|
+
key: v,
|
|
126
|
+
class: z({
|
|
127
|
+
"is-delete": d.label === n($)("COMMON_BUTTON.DELETE_TEXT") || d.label === n($)("COMMON_BUTTON.DISABLE_TEXT") || d.isDanger
|
|
128
|
+
}),
|
|
129
|
+
onClick: (M) => r(d.fn, d.row)
|
|
130
|
+
}, {
|
|
131
|
+
default: s(() => [
|
|
132
|
+
A(m(d.label), 1)
|
|
133
|
+
]),
|
|
134
|
+
_: 2
|
|
135
|
+
}, 1032, ["class", "onClick"]))), 128))
|
|
136
|
+
]),
|
|
137
|
+
_: 1
|
|
138
|
+
})
|
|
139
|
+
]),
|
|
140
|
+
default: s(() => [
|
|
141
|
+
h("div", ge, [
|
|
142
|
+
w(n(D), { style: { "font-size": "20px", color: "#999" } }, {
|
|
143
|
+
default: s(() => [
|
|
144
|
+
w(n(se))
|
|
145
|
+
]),
|
|
146
|
+
_: 1
|
|
147
|
+
})
|
|
148
|
+
])
|
|
149
|
+
]),
|
|
150
|
+
_: 1
|
|
151
|
+
})
|
|
152
|
+
], 64)) : (o(!0), c(_, { key: 1 }, N(y.value, (d, v) => (o(), i(n(L), {
|
|
153
|
+
type: "primary",
|
|
154
|
+
link: "",
|
|
155
|
+
key: v,
|
|
156
|
+
onClick: (M) => r(d.fn, d.row)
|
|
157
|
+
}, {
|
|
158
|
+
default: s(() => [
|
|
159
|
+
A(m(d.label), 1)
|
|
160
|
+
]),
|
|
161
|
+
_: 2
|
|
162
|
+
}, 1032, ["onClick"]))), 128))
|
|
163
|
+
]));
|
|
164
|
+
}
|
|
165
|
+
}, Ce = /* @__PURE__ */ F(ke, [["__scopeId", "data-v-a15d8f7e"]]), xe = {
|
|
166
|
+
key: 0,
|
|
167
|
+
class: "aibox-table__handle"
|
|
168
|
+
}, _e = { class: "handle-left" }, ve = { class: "handle-right" }, Se = { class: "aibox-table__content" }, Te = { key: 0 }, me = { class: "aibox-table__slot-wrapper" }, $e = { class: "aibox-table__slot-wrapper" }, Be = ["innerHTML"], Ne = ["innerHTML"], Me = { class: "aibox-table__slot-wrapper" }, Ee = ["onClick"], Ae = { class: "aibox-table__slot-wrapper" }, ze = ["onClick"], De = { class: "aibox-table__slot-wrapper" }, Oe = { class: "flex items-center" }, Pe = { class: "aibox-table__slot-wrapper" }, Re = {
|
|
169
|
+
key: 0,
|
|
170
|
+
class: "aibox-table__slot-wrapper"
|
|
171
|
+
}, He = {
|
|
172
|
+
__name: "AiboxTable",
|
|
173
|
+
props: {
|
|
174
|
+
columns: {
|
|
175
|
+
type: Array,
|
|
176
|
+
default: () => []
|
|
177
|
+
},
|
|
178
|
+
data: {
|
|
179
|
+
type: Array,
|
|
180
|
+
default: () => []
|
|
181
|
+
},
|
|
182
|
+
total: {
|
|
183
|
+
type: [String, Number],
|
|
184
|
+
default: 0
|
|
185
|
+
},
|
|
186
|
+
hasPage: {
|
|
187
|
+
type: Boolean,
|
|
188
|
+
default: !0
|
|
189
|
+
},
|
|
190
|
+
onRowKey: {
|
|
191
|
+
type: Function,
|
|
192
|
+
default: () => {
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
onRowClassName: {
|
|
196
|
+
type: Function,
|
|
197
|
+
default: () => {
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
maxHeight: {
|
|
201
|
+
type: [String, Number],
|
|
202
|
+
default: null
|
|
203
|
+
},
|
|
204
|
+
isLoading: {
|
|
205
|
+
type: Boolean,
|
|
206
|
+
default: !1
|
|
207
|
+
},
|
|
208
|
+
pages: {
|
|
209
|
+
type: Object,
|
|
210
|
+
default: () => ({
|
|
211
|
+
page: 1,
|
|
212
|
+
size: 10
|
|
213
|
+
})
|
|
214
|
+
},
|
|
215
|
+
showChangeSize: {
|
|
216
|
+
type: Boolean,
|
|
217
|
+
default: !0
|
|
218
|
+
},
|
|
219
|
+
isCustomEmpty: {
|
|
220
|
+
type: Boolean,
|
|
221
|
+
default: !1
|
|
222
|
+
},
|
|
223
|
+
hasBorder: {
|
|
224
|
+
type: Boolean,
|
|
225
|
+
default: !1
|
|
226
|
+
},
|
|
227
|
+
hasHeaderHandle: {
|
|
228
|
+
type: Boolean,
|
|
229
|
+
default: !1
|
|
230
|
+
},
|
|
231
|
+
isSecondaryHeader: {
|
|
232
|
+
type: Boolean,
|
|
233
|
+
default: !1
|
|
234
|
+
},
|
|
235
|
+
defaultSort: {
|
|
236
|
+
type: Object
|
|
237
|
+
},
|
|
238
|
+
spanMethod: {
|
|
239
|
+
type: Function,
|
|
240
|
+
default: () => {
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
showSummary: {
|
|
244
|
+
type: Boolean,
|
|
245
|
+
default: !1
|
|
246
|
+
},
|
|
247
|
+
summaryMethod: {
|
|
248
|
+
type: Function,
|
|
249
|
+
default: () => []
|
|
250
|
+
},
|
|
251
|
+
showHandleNums: {
|
|
252
|
+
type: Number,
|
|
253
|
+
default: 0
|
|
254
|
+
},
|
|
255
|
+
selectionType: {
|
|
256
|
+
type: String,
|
|
257
|
+
default: "checkbox"
|
|
258
|
+
},
|
|
259
|
+
expandRowKeys: {
|
|
260
|
+
type: Array,
|
|
261
|
+
default: () => []
|
|
262
|
+
},
|
|
263
|
+
isCanRowClick: {
|
|
264
|
+
type: Boolean,
|
|
265
|
+
default: !1
|
|
266
|
+
},
|
|
267
|
+
isPagePostion: {
|
|
268
|
+
type: Boolean,
|
|
269
|
+
default: !0
|
|
270
|
+
},
|
|
271
|
+
treeProps: {
|
|
272
|
+
type: Object,
|
|
273
|
+
default: () => ({ children: "children", hasChildren: "hasChildren" })
|
|
274
|
+
},
|
|
275
|
+
defaultExpandAll: {
|
|
276
|
+
type: Boolean,
|
|
277
|
+
default: !0
|
|
278
|
+
},
|
|
279
|
+
pagerCount: {
|
|
280
|
+
type: Number,
|
|
281
|
+
default: 7
|
|
282
|
+
},
|
|
283
|
+
size: {
|
|
284
|
+
type: String,
|
|
285
|
+
default: "default"
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
emits: [
|
|
289
|
+
"onPageChange",
|
|
290
|
+
"onMultiSelection",
|
|
291
|
+
"onSortChange",
|
|
292
|
+
"onCellDblclick",
|
|
293
|
+
"onRowClick"
|
|
294
|
+
],
|
|
295
|
+
setup(a, { expose: k, emit: $ }) {
|
|
296
|
+
const r = a, { t: y } = I(), C = H(null), p = H([]), x = T(() => typeof r.total == "string" ? Number(r.total) : r.total), d = T(() => r.showChangeSize ? "total, sizes, prev, pager, next, jumper" : "total, prev, pager, next, jumper"), v = T(() => x.value > 10 && r.hasPage), M = T(() => r.columns?.find?.((u) => u?.type === "selection")?.selectable || O), j = T(() => {
|
|
297
|
+
const t = r.data || [];
|
|
298
|
+
if (!t.length) return !1;
|
|
299
|
+
const u = M.value;
|
|
300
|
+
return !t.some((e, l) => u(e, l));
|
|
301
|
+
}), K = ({ column: t }) => t?.type === "selection" && j.value ? "aibox-table__select-all-disabled" : "", g = $, O = () => !0, V = (t) => r.onRowKey(t, (u) => u), X = (t) => r.onRowClassName(t), U = (t) => {
|
|
302
|
+
g("onPageChange", { ...r.pages, page: t });
|
|
303
|
+
}, G = (t) => {
|
|
304
|
+
g("onPageChange", { page: 1, size: t });
|
|
305
|
+
}, q = (t) => {
|
|
306
|
+
r.selectionType !== "radio" && g("onMultiSelection", t);
|
|
307
|
+
}, P = (t) => {
|
|
308
|
+
if (r.selectionType === "radio") {
|
|
309
|
+
const u = p.value;
|
|
310
|
+
if (R(), u.length == 1) {
|
|
311
|
+
const [e] = u, l = e.id !== t.id;
|
|
312
|
+
l ? (p.value = [t], g("onMultiSelection", [t])) : (p.value = [], g("onMultiSelection", [])), E(t, l);
|
|
313
|
+
} else
|
|
314
|
+
E(t, !0), p.value = [t], g("onMultiSelection", [t]);
|
|
315
|
+
}
|
|
316
|
+
}, R = () => {
|
|
317
|
+
C.value?.clearSelection(), g("onMultiSelection", []);
|
|
318
|
+
}, Y = () => {
|
|
319
|
+
C.value?.clearSort();
|
|
320
|
+
}, Z = (t) => {
|
|
321
|
+
g("onSortChange", t);
|
|
322
|
+
}, J = (t, u, e, l) => {
|
|
323
|
+
g("onCellDblclick", t, u, e, l);
|
|
324
|
+
}, Q = (t) => {
|
|
325
|
+
r.selectionType === "radio" && P(t);
|
|
326
|
+
}, ee = (t, u, e) => {
|
|
327
|
+
u?.type === "action" || !r.isCanRowClick || g("onRowClick", t, u, e);
|
|
328
|
+
}, E = (t, u) => {
|
|
329
|
+
C.value?.toggleRowSelection(t, u);
|
|
330
|
+
};
|
|
331
|
+
return k({
|
|
332
|
+
handleClearSelection: R,
|
|
333
|
+
handleToggleRowSelection: E,
|
|
334
|
+
clearSort: Y
|
|
335
|
+
}), (t, u) => (o(), c("div", {
|
|
336
|
+
class: z([{
|
|
337
|
+
"row-click-style": a.isCanRowClick,
|
|
338
|
+
"no-pagination": !v.value
|
|
339
|
+
}, "aibox-table"])
|
|
340
|
+
}, [
|
|
341
|
+
a.hasHeaderHandle ? (o(), c("div", xe, [
|
|
342
|
+
h("div", _e, [
|
|
343
|
+
b(t.$slots, "handleLeft", {}, void 0, !0)
|
|
344
|
+
]),
|
|
345
|
+
h("div", ve, [
|
|
346
|
+
b(t.$slots, "handleRight", {}, void 0, !0)
|
|
347
|
+
])
|
|
348
|
+
])) : B("", !0),
|
|
349
|
+
h("div", Se, [
|
|
350
|
+
w(n(ue), {
|
|
351
|
+
ref_key: "aiboxTable",
|
|
352
|
+
ref: C,
|
|
353
|
+
"element-loading-text": n(y)("COMMON_DATA.LOADING_SUFFIX"),
|
|
354
|
+
"tree-props": a.treeProps,
|
|
355
|
+
"header-row-class-name": a.isSecondaryHeader ? "aibox-table__header secondary-header" : "aibox-table__header",
|
|
356
|
+
"header-cell-class-name": K,
|
|
357
|
+
"row-class-name": X,
|
|
358
|
+
data: a.data,
|
|
359
|
+
border: a.hasBorder,
|
|
360
|
+
style: { width: "100%" },
|
|
361
|
+
"row-key": V,
|
|
362
|
+
height: a.maxHeight,
|
|
363
|
+
"default-sort": a.defaultSort,
|
|
364
|
+
"span-method": a.spanMethod,
|
|
365
|
+
"expand-row-keys": a.expandRowKeys,
|
|
366
|
+
onSelectionChange: q,
|
|
367
|
+
onSortChange: Z,
|
|
368
|
+
onCellDblclick: J,
|
|
369
|
+
onCurrentChange: P,
|
|
370
|
+
"show-summary": a.showSummary,
|
|
371
|
+
"summary-method": a.summaryMethod,
|
|
372
|
+
onSelect: Q,
|
|
373
|
+
onRowClick: ee,
|
|
374
|
+
"default-expand-all": a.defaultExpandAll
|
|
375
|
+
}, {
|
|
376
|
+
empty: s(() => [
|
|
377
|
+
a.isCustomEmpty ? (o(), c("div", Re, [
|
|
378
|
+
b(t.$slots, "customEmpty", {}, void 0, !0)
|
|
379
|
+
])) : (o(), i(n(he), {
|
|
380
|
+
key: 1,
|
|
381
|
+
description: n(y)("COMMON_DATA.EMPTY"),
|
|
382
|
+
"image-size": 80
|
|
383
|
+
}, null, 8, ["description"]))
|
|
384
|
+
]),
|
|
385
|
+
default: s(() => [
|
|
386
|
+
(o(!0), c(_, null, N(a.columns, (e) => (o(), c(_, null, [
|
|
387
|
+
e.type === "selection" ? (o(), i(n(f), {
|
|
388
|
+
key: e.type,
|
|
389
|
+
type: "selection",
|
|
390
|
+
fixed: "left",
|
|
391
|
+
width: e.width || "50px",
|
|
392
|
+
"reserve-selection": !0,
|
|
393
|
+
selectable: e.selectable || O
|
|
394
|
+
}, null, 8, ["width", "selectable"])) : e.type === "index" ? (o(), i(n(f), {
|
|
395
|
+
key: `${e.type - e.label}`,
|
|
396
|
+
type: "index",
|
|
397
|
+
label: n(y)("COMMON_DATA.SNO_INDEX"),
|
|
398
|
+
fixed: "left",
|
|
399
|
+
width: e.width || "100px"
|
|
400
|
+
}, {
|
|
401
|
+
default: s((l) => [
|
|
402
|
+
a.isLoading ? B("", !0) : (o(), c("span", Te, m((a.pages.page - 1) * a.pages.size + l.$index + 1), 1))
|
|
403
|
+
]),
|
|
404
|
+
_: 1
|
|
405
|
+
}, 8, ["label", "width"])) : e.slot ? (o(), i(n(f), {
|
|
406
|
+
align: e.align || "left",
|
|
407
|
+
key: e.prop,
|
|
408
|
+
prop: e.prop,
|
|
409
|
+
label: e.label,
|
|
410
|
+
width: e.width,
|
|
411
|
+
"min-width": e.minWidth,
|
|
412
|
+
"label-class-name": "label-space-style",
|
|
413
|
+
"class-name": "multi-row",
|
|
414
|
+
fixed: e.fixed,
|
|
415
|
+
sortable: e.sortable,
|
|
416
|
+
"show-overflow-tooltip": e.showOverflowTooltip
|
|
417
|
+
}, W({
|
|
418
|
+
default: s((l) => [
|
|
419
|
+
h("div", $e, [
|
|
420
|
+
b(t.$slots, e.slot, {
|
|
421
|
+
row: l.row,
|
|
422
|
+
index: l.$index,
|
|
423
|
+
minWidth: e.minWidth
|
|
424
|
+
}, void 0, !0)
|
|
425
|
+
])
|
|
426
|
+
]),
|
|
427
|
+
_: 2
|
|
428
|
+
}, [
|
|
429
|
+
e.headerSlot ? {
|
|
430
|
+
name: "header",
|
|
431
|
+
fn: s(() => [
|
|
432
|
+
h("div", me, [
|
|
433
|
+
b(t.$slots, e.headerSlot, {
|
|
434
|
+
item: e,
|
|
435
|
+
minWidth: e.minWidth
|
|
436
|
+
}, void 0, !0)
|
|
437
|
+
])
|
|
438
|
+
]),
|
|
439
|
+
key: "0"
|
|
440
|
+
} : void 0
|
|
441
|
+
]), 1032, ["align", "prop", "label", "width", "min-width", "fixed", "sortable", "show-overflow-tooltip"])) : e.callback ? (o(), i(n(f), {
|
|
442
|
+
align: e.align || "left",
|
|
443
|
+
key: e.callback,
|
|
444
|
+
prop: e.prop,
|
|
445
|
+
label: e.label,
|
|
446
|
+
width: e.width,
|
|
447
|
+
"min-width": e.minWidth,
|
|
448
|
+
"show-overflow-tooltip": "",
|
|
449
|
+
fixed: e.fixed,
|
|
450
|
+
sortable: e.sortable
|
|
451
|
+
}, {
|
|
452
|
+
default: s((l) => [
|
|
453
|
+
h("span", {
|
|
454
|
+
innerHTML: e.callback && e.callback(l.row)
|
|
455
|
+
}, null, 8, Be)
|
|
456
|
+
]),
|
|
457
|
+
_: 2
|
|
458
|
+
}, 1032, ["align", "prop", "label", "width", "min-width", "fixed", "sortable"])) : e.type === "multistage" ? (o(), i(n(f), {
|
|
459
|
+
key: `${e.prop}`,
|
|
460
|
+
label: e.label,
|
|
461
|
+
prop: e.prop,
|
|
462
|
+
width: e.width,
|
|
463
|
+
"min-width": e.minWidth,
|
|
464
|
+
"show-overflow-tooltip": "",
|
|
465
|
+
align: e.align || "left",
|
|
466
|
+
"header-align": e.headerAlign || "left"
|
|
467
|
+
}, {
|
|
468
|
+
default: s(() => [
|
|
469
|
+
(o(!0), c(_, null, N(e.children, (l) => (o(), c(_, null, [
|
|
470
|
+
l.callback ? (o(), i(n(f), {
|
|
471
|
+
key: l.callback,
|
|
472
|
+
prop: l.prop,
|
|
473
|
+
label: l.label,
|
|
474
|
+
"min-width": l.minWidth,
|
|
475
|
+
"show-overflow-tooltip": ""
|
|
476
|
+
}, {
|
|
477
|
+
default: s((S) => [
|
|
478
|
+
h("span", {
|
|
479
|
+
innerHTML: l.callback && l.callback(S.row)
|
|
480
|
+
}, null, 8, Ne)
|
|
481
|
+
]),
|
|
482
|
+
_: 2
|
|
483
|
+
}, 1032, ["prop", "label", "min-width"])) : l.slot ? (o(), i(n(f), {
|
|
484
|
+
key: l.prop,
|
|
485
|
+
"min-width": l.minWidth,
|
|
486
|
+
prop: l.prop,
|
|
487
|
+
label: l.label
|
|
488
|
+
}, {
|
|
489
|
+
default: s((S) => [
|
|
490
|
+
h("div", Me, [
|
|
491
|
+
b(t.$slots, l.slot, {
|
|
492
|
+
row: S.row,
|
|
493
|
+
column: S.column,
|
|
494
|
+
index: S.$index
|
|
495
|
+
}, void 0, !0)
|
|
496
|
+
])
|
|
497
|
+
]),
|
|
498
|
+
_: 2
|
|
499
|
+
}, 1032, ["min-width", "prop", "label"])) : l.custom ? (o(), i(n(f), {
|
|
500
|
+
key: `${l.prop}`,
|
|
501
|
+
prop: l.prop,
|
|
502
|
+
label: l.label,
|
|
503
|
+
"min-width": l.minWidth,
|
|
504
|
+
"show-overflow-tooltip": ""
|
|
505
|
+
}, {
|
|
506
|
+
header: s(() => [
|
|
507
|
+
h("span", {
|
|
508
|
+
onClick: () => l.headerClick({ parent: e.label, ...l }),
|
|
509
|
+
style: { color: "#5b9bd1", cursor: "pointer" }
|
|
510
|
+
}, m(l.label), 9, Ee)
|
|
511
|
+
]),
|
|
512
|
+
default: s((S) => [
|
|
513
|
+
h("div", Ae, [
|
|
514
|
+
b(t.$slots, "custom", {
|
|
515
|
+
data: {
|
|
516
|
+
col: { parent: e.label, ...l },
|
|
517
|
+
row: S.row
|
|
518
|
+
}
|
|
519
|
+
}, void 0, !0)
|
|
520
|
+
])
|
|
521
|
+
]),
|
|
522
|
+
_: 2
|
|
523
|
+
}, 1032, ["prop", "label", "min-width"])) : (o(), i(n(f), {
|
|
524
|
+
key: `${l.prop}-${l.label}`,
|
|
525
|
+
prop: l.prop,
|
|
526
|
+
label: l.label,
|
|
527
|
+
width: l.width,
|
|
528
|
+
"min-width": l.minWidth,
|
|
529
|
+
"show-overflow-tooltip": "",
|
|
530
|
+
"header-align": l.headerAlign ? l.headerAlign : "left",
|
|
531
|
+
align: l.align ? l.align : "left"
|
|
532
|
+
}, null, 8, ["prop", "label", "width", "min-width", "header-align", "align"]))
|
|
533
|
+
], 64))), 256))
|
|
534
|
+
]),
|
|
535
|
+
_: 2
|
|
536
|
+
}, 1032, ["label", "prop", "width", "min-width", "align", "header-align"])) : e.custom ? (o(), i(n(f), {
|
|
537
|
+
key: `${e.prop}-${e.custom}`,
|
|
538
|
+
prop: e.prop,
|
|
539
|
+
label: e.label,
|
|
540
|
+
"min-width": e.minWidth,
|
|
541
|
+
"show-overflow-tooltip": ""
|
|
542
|
+
}, {
|
|
543
|
+
header: s(() => [
|
|
544
|
+
h("span", {
|
|
545
|
+
onClick: () => e.headerClick({ parent: "", ...e }),
|
|
546
|
+
style: { color: "#5b9bd1", cursor: "pointer" }
|
|
547
|
+
}, m(e.label), 9, ze)
|
|
548
|
+
]),
|
|
549
|
+
default: s((l) => [
|
|
550
|
+
h("div", De, [
|
|
551
|
+
b(t.$slots, "custom", {
|
|
552
|
+
data: {
|
|
553
|
+
col: { parent: "", ...e },
|
|
554
|
+
row: l.row
|
|
555
|
+
}
|
|
556
|
+
}, void 0, !0)
|
|
557
|
+
])
|
|
558
|
+
]),
|
|
559
|
+
_: 2
|
|
560
|
+
}, 1032, ["prop", "label", "min-width"])) : e.type === "action" ? (o(), i(n(f), {
|
|
561
|
+
key: `${e.prop - Math.random()}`,
|
|
562
|
+
label: e.label,
|
|
563
|
+
width: e.width,
|
|
564
|
+
type: "action",
|
|
565
|
+
fixed: "right"
|
|
566
|
+
}, {
|
|
567
|
+
default: s((l) => [
|
|
568
|
+
h("div", Oe, [
|
|
569
|
+
b(t.$slots, "goto", {
|
|
570
|
+
row: l.row
|
|
571
|
+
}, void 0, !0),
|
|
572
|
+
e?.config?.(l.row)?.length ? (o(), i(Ce, {
|
|
573
|
+
key: 0,
|
|
574
|
+
"show-nums": a.showHandleNums,
|
|
575
|
+
config: e.config(l.row, l.$index),
|
|
576
|
+
row: l.row
|
|
577
|
+
}, null, 8, ["show-nums", "config", "row"])) : B("", !0)
|
|
578
|
+
])
|
|
579
|
+
]),
|
|
580
|
+
_: 2
|
|
581
|
+
}, 1032, ["label", "width"])) : e.type === "expand" ? (o(), i(n(f), {
|
|
582
|
+
type: "expand",
|
|
583
|
+
key: "expand" + e.prop,
|
|
584
|
+
width: e.width
|
|
585
|
+
}, {
|
|
586
|
+
default: s((l) => [
|
|
587
|
+
h("div", Pe, [
|
|
588
|
+
b(t.$slots, "expand", {
|
|
589
|
+
row: l.row,
|
|
590
|
+
column: l.column
|
|
591
|
+
}, void 0, !0)
|
|
592
|
+
])
|
|
593
|
+
]),
|
|
594
|
+
_: 3
|
|
595
|
+
}, 8, ["width"])) : (o(), i(n(f), {
|
|
596
|
+
key: `${e.prop - e.label}`,
|
|
597
|
+
prop: e.prop,
|
|
598
|
+
label: e.label,
|
|
599
|
+
width: e.width,
|
|
600
|
+
"min-width": e.minWidth,
|
|
601
|
+
fixed: e.fixed,
|
|
602
|
+
sortable: e.sortable,
|
|
603
|
+
"show-overflow-tooltip": "",
|
|
604
|
+
align: e.align || "left"
|
|
605
|
+
}, W({ _: 2 }, [
|
|
606
|
+
e.headerSlot ? {
|
|
607
|
+
name: "header",
|
|
608
|
+
fn: s(() => [
|
|
609
|
+
b(t.$slots, e.headerSlot, {
|
|
610
|
+
item: e,
|
|
611
|
+
minWidth: e.minWidth
|
|
612
|
+
}, void 0, !0)
|
|
613
|
+
]),
|
|
614
|
+
key: "0"
|
|
615
|
+
} : void 0
|
|
616
|
+
]), 1032, ["prop", "label", "width", "min-width", "fixed", "sortable", "align"]))
|
|
617
|
+
], 64))), 256))
|
|
618
|
+
]),
|
|
619
|
+
_: 3
|
|
620
|
+
}, 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"])
|
|
621
|
+
]),
|
|
622
|
+
x.value > 10 && a.hasPage ? (o(), c("div", {
|
|
623
|
+
key: 1,
|
|
624
|
+
class: z([a.isPagePostion ? "aibox-table__pages" : "aibox-table__page"])
|
|
625
|
+
}, [
|
|
626
|
+
w(n(pe), {
|
|
627
|
+
layout: d.value,
|
|
628
|
+
"current-page": a.pages.page,
|
|
629
|
+
"page-sizes": [10, 20, 50, 100],
|
|
630
|
+
"page-size": a.pages.size,
|
|
631
|
+
total: x.value,
|
|
632
|
+
"pager-count": a.pagerCount,
|
|
633
|
+
size: a.size,
|
|
634
|
+
onSizeChange: G,
|
|
635
|
+
onCurrentChange: U
|
|
636
|
+
}, null, 8, ["layout", "current-page", "page-size", "total", "pager-count", "size"])
|
|
637
|
+
], 2)) : B("", !0)
|
|
638
|
+
], 2));
|
|
639
|
+
}
|
|
640
|
+
}, Xe = /* @__PURE__ */ F(He, [["__scopeId", "data-v-1e856800"]]);
|
|
641
|
+
export {
|
|
642
|
+
Xe as A,
|
|
643
|
+
Ce as T,
|
|
644
|
+
Ve as _
|
|
645
|
+
};
|