xbd-vui 0.0.5 → 0.0.6
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/dist/xbd-vui.css +1 -1
- package/dist/xbd-vui.es.js +503 -224
- package/dist/xbd-vui.umd.js +6 -6
- package/package.json +2 -2
package/dist/xbd-vui.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.v-popover-handle{display:flex;align-items:center;gap:8px;margin-top:8px}.v-popover-handle-right{margin-left:auto}.v-popover-handle .el-button+.el-button{margin:0}.v-batch-input-wrapper{width:380px}.v-batch-input .v-batch-input-clear{color:#888;display:none}.v-batch-input .v-batch-input-clear:hover{color:var(--base-icon-color);cursor:pointer}.v-batch-input:hover.is--value .v-batch-input-icon{display:none}.v-batch-input:hover.is--value .v-batch-input-clear{display:block;z-index:1}.v-batch-input.is--focus{box-shadow:0 0 0 1px var(--el-input-border-color, var(--el-color-primary)) inset;z-index:1}.el-button{border-radius:8px;font-size:12px;padding:5px 11px}.v-dialog{border-radius:16px}.v-dialog .el-dialog__header{border-bottom:1px solid var(--base-brder-color)}.v-dialog .el-dialog__body{margin-top:16px}.v-group{display:flex}.v-group>*{margin-right:-1px}.v-group .el-input__wrapper,.v-group .el-select__wrapper,.v-group .el-button,.v-group .el-select-v2__wrapper,.v-group .v-group-item{position:relative;border-radius:0}.v-group .el-input__wrapper:hover.el-input__wrapper,.v-group .el-input__wrapper:hover .el-input__wrapper,.v-group .el-input__wrapper:hover .el-select__wrapper,.v-group .el-input__wrapper:hover .el-input__suffix,.v-group .el-input__wrapper.is-focus.el-input__wrapper,.v-group .el-input__wrapper.is-focus .el-input__wrapper,.v-group .el-input__wrapper.is-focus .el-select__wrapper,.v-group .el-input__wrapper.is-focus .el-input__suffix,.v-group .el-input__wrapper.is-active.el-input__wrapper,.v-group .el-input__wrapper.is-active .el-input__wrapper,.v-group .el-input__wrapper.is-active .el-select__wrapper,.v-group .el-input__wrapper.is-active .el-input__suffix,.v-group .el-select__wrapper:hover.el-input__wrapper,.v-group .el-select__wrapper:hover .el-input__wrapper,.v-group .el-select__wrapper:hover .el-select__wrapper,.v-group .el-select__wrapper:hover .el-input__suffix,.v-group .el-select__wrapper.is-focus.el-input__wrapper,.v-group .el-select__wrapper.is-focus .el-input__wrapper,.v-group .el-select__wrapper.is-focus .el-select__wrapper,.v-group .el-select__wrapper.is-focus .el-input__suffix,.v-group .el-select__wrapper.is-active.el-input__wrapper,.v-group .el-select__wrapper.is-active .el-input__wrapper,.v-group .el-select__wrapper.is-active .el-select__wrapper,.v-group .el-select__wrapper.is-active .el-input__suffix,.v-group .el-button:hover.el-input__wrapper,.v-group .el-button:hover .el-input__wrapper,.v-group .el-button:hover .el-select__wrapper,.v-group .el-button:hover .el-input__suffix,.v-group .el-button.is-focus.el-input__wrapper,.v-group .el-button.is-focus .el-input__wrapper,.v-group .el-button.is-focus .el-select__wrapper,.v-group .el-button.is-focus .el-input__suffix,.v-group .el-button.is-active.el-input__wrapper,.v-group .el-button.is-active .el-input__wrapper,.v-group .el-button.is-active .el-select__wrapper,.v-group .el-button.is-active .el-input__suffix,.v-group .el-select-v2__wrapper:hover.el-input__wrapper,.v-group .el-select-v2__wrapper:hover .el-input__wrapper,.v-group .el-select-v2__wrapper:hover .el-select__wrapper,.v-group .el-select-v2__wrapper:hover .el-input__suffix,.v-group .el-select-v2__wrapper.is-focus.el-input__wrapper,.v-group .el-select-v2__wrapper.is-focus .el-input__wrapper,.v-group .el-select-v2__wrapper.is-focus .el-select__wrapper,.v-group .el-select-v2__wrapper.is-focus .el-input__suffix,.v-group .el-select-v2__wrapper.is-active.el-input__wrapper,.v-group .el-select-v2__wrapper.is-active .el-input__wrapper,.v-group .el-select-v2__wrapper.is-active .el-select__wrapper,.v-group .el-select-v2__wrapper.is-active .el-input__suffix,.v-group .v-group-item:hover.el-input__wrapper,.v-group .v-group-item:hover .el-input__wrapper,.v-group .v-group-item:hover .el-select__wrapper,.v-group .v-group-item:hover .el-input__suffix,.v-group .v-group-item.is-focus.el-input__wrapper,.v-group .v-group-item.is-focus .el-input__wrapper,.v-group .v-group-item.is-focus .el-select__wrapper,.v-group .v-group-item.is-focus .el-input__suffix,.v-group .v-group-item.is-active.el-input__wrapper,.v-group .v-group-item.is-active .el-input__wrapper,.v-group .v-group-item.is-active .el-select__wrapper,.v-group .v-group-item.is-active .el-input__suffix{z-index:1}.v-group .el-input__wrapper:hover .el-input-number__decrease,.v-group .el-input__wrapper:hover .el-input-number__increase,.v-group .el-select__wrapper:hover .el-input-number__decrease,.v-group .el-select__wrapper:hover .el-input-number__increase,.v-group .el-button:hover .el-input-number__decrease,.v-group .el-button:hover .el-input-number__increase,.v-group .el-select-v2__wrapper:hover .el-input-number__decrease,.v-group .el-select-v2__wrapper:hover .el-input-number__increase,.v-group .v-group-item:hover .el-input-number__decrease,.v-group .v-group-item:hover .el-input-number__increase{z-index:2}.v-group>:first-child.el-input__wrapper,.v-group>:first-child .el-input__wrapper,.v-group>:first-child .el-select__wrapper,.v-group>:first-child.el-button,.v-group>:first-child .el-select-v2__wrapper,.v-group>:first-child.v-group-item{border-top-left-radius:var(--border-size-sm);border-bottom-left-radius:var(--border-size-sm)}.v-group>:first-child.el-button{padding:0 10px}.v-group>:last-child{margin-right:0}.v-group>:last-child.el-input__wrapper,.v-group>:last-child .el-input__wrapper,.v-group>:last-child .el-select__wrapper,.v-group>:last-child.el-button,.v-group>:last-child .el-select-v2__wrapper,.v-group>:last-child.v-group-item{border-top-right-radius:var(--border-size-sm);border-bottom-right-radius:var(--border-size-sm)}.v-group>:last-child.el-button{padding:0 10px}.v-group .v-group-item{display:flex;align-items:center;padding:0 10px;font-size:var(--el-font-size-base);color:var(--base-sub-text-color);white-space:nowrap;box-shadow:0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset}.v-group .el-button-group{display:flex}.v-group .el-select__tags,.v-group .el-input-number__decrease,.v-group .el-input-number__increase{z-index:2}.v-page{position:relative;height:100%;overflow-x:hidden;overflow-y:auto;padding:8px 8px 0;background-color:var(--el-bg-color)}.v-page.is--full{overflow:hidden}.v-page.is--edit{padding-bottom:0}.v-page__body{position:relative;height:100%;border-radius:8px 8px 0 0;background-color:var(--el-bg-color);display:flex}.v-page__body-left{width:var(--left-width);position:absolute;left:0;top:0;bottom:0;overflow-x:hidden;overflow-y:auto;z-index:1;transition:width .3s ease;background:#fff;border-radius:8px 8px 0 0}.v-page__body-main{background:#fff;width:100%;border-radius:8px 8px 0 0}.v-page__body-collapse{position:absolute;top:50%;transform:translate(2px,-50%);height:30px;line-height:30px;border-radius:4px;overflow:hidden;display:flex;align-items:center;justify-content:center;z-index:10;cursor:pointer}.v-page__body-collapse .el-button{width:16px;padding:0}.v-page__edit{height:100%;border-radius:8px 8px 0 0}
|
|
1
|
+
.v-popover-handle{display:flex;align-items:center;gap:8px;margin-top:8px}.v-popover-handle-right{margin-left:auto}.v-popover-handle .el-button+.el-button{margin:0}.v-batch-input-wrapper{width:380px}.v-batch-input .v-batch-input-clear{color:#888;display:none}.v-batch-input .v-batch-input-clear:hover{color:var(--base-icon-color);cursor:pointer}.v-batch-input:hover.is--value .v-batch-input-icon{display:none}.v-batch-input:hover.is--value .v-batch-input-clear{display:block;z-index:1}.v-batch-input.is--focus{box-shadow:0 0 0 1px var(--el-input-border-color, var(--el-color-primary)) inset;z-index:1}.el-button{border-radius:8px;font-size:12px;padding:5px 11px}.v-dialog{border-radius:16px}.v-dialog .el-dialog__header{border-bottom:1px solid var(--base-brder-color)}.v-dialog .el-dialog__body{margin-top:16px}.v-group{display:flex}.v-group>*{margin-right:-1px}.v-group .el-input__wrapper,.v-group .el-select__wrapper,.v-group .el-button,.v-group .el-select-v2__wrapper,.v-group .v-group-item{position:relative;border-radius:0}.v-group .el-input__wrapper:hover.el-input__wrapper,.v-group .el-input__wrapper:hover .el-input__wrapper,.v-group .el-input__wrapper:hover .el-select__wrapper,.v-group .el-input__wrapper:hover .el-input__suffix,.v-group .el-input__wrapper.is-focus.el-input__wrapper,.v-group .el-input__wrapper.is-focus .el-input__wrapper,.v-group .el-input__wrapper.is-focus .el-select__wrapper,.v-group .el-input__wrapper.is-focus .el-input__suffix,.v-group .el-input__wrapper.is-active.el-input__wrapper,.v-group .el-input__wrapper.is-active .el-input__wrapper,.v-group .el-input__wrapper.is-active .el-select__wrapper,.v-group .el-input__wrapper.is-active .el-input__suffix,.v-group .el-select__wrapper:hover.el-input__wrapper,.v-group .el-select__wrapper:hover .el-input__wrapper,.v-group .el-select__wrapper:hover .el-select__wrapper,.v-group .el-select__wrapper:hover .el-input__suffix,.v-group .el-select__wrapper.is-focus.el-input__wrapper,.v-group .el-select__wrapper.is-focus .el-input__wrapper,.v-group .el-select__wrapper.is-focus .el-select__wrapper,.v-group .el-select__wrapper.is-focus .el-input__suffix,.v-group .el-select__wrapper.is-active.el-input__wrapper,.v-group .el-select__wrapper.is-active .el-input__wrapper,.v-group .el-select__wrapper.is-active .el-select__wrapper,.v-group .el-select__wrapper.is-active .el-input__suffix,.v-group .el-button:hover.el-input__wrapper,.v-group .el-button:hover .el-input__wrapper,.v-group .el-button:hover .el-select__wrapper,.v-group .el-button:hover .el-input__suffix,.v-group .el-button.is-focus.el-input__wrapper,.v-group .el-button.is-focus .el-input__wrapper,.v-group .el-button.is-focus .el-select__wrapper,.v-group .el-button.is-focus .el-input__suffix,.v-group .el-button.is-active.el-input__wrapper,.v-group .el-button.is-active .el-input__wrapper,.v-group .el-button.is-active .el-select__wrapper,.v-group .el-button.is-active .el-input__suffix,.v-group .el-select-v2__wrapper:hover.el-input__wrapper,.v-group .el-select-v2__wrapper:hover .el-input__wrapper,.v-group .el-select-v2__wrapper:hover .el-select__wrapper,.v-group .el-select-v2__wrapper:hover .el-input__suffix,.v-group .el-select-v2__wrapper.is-focus.el-input__wrapper,.v-group .el-select-v2__wrapper.is-focus .el-input__wrapper,.v-group .el-select-v2__wrapper.is-focus .el-select__wrapper,.v-group .el-select-v2__wrapper.is-focus .el-input__suffix,.v-group .el-select-v2__wrapper.is-active.el-input__wrapper,.v-group .el-select-v2__wrapper.is-active .el-input__wrapper,.v-group .el-select-v2__wrapper.is-active .el-select__wrapper,.v-group .el-select-v2__wrapper.is-active .el-input__suffix,.v-group .v-group-item:hover.el-input__wrapper,.v-group .v-group-item:hover .el-input__wrapper,.v-group .v-group-item:hover .el-select__wrapper,.v-group .v-group-item:hover .el-input__suffix,.v-group .v-group-item.is-focus.el-input__wrapper,.v-group .v-group-item.is-focus .el-input__wrapper,.v-group .v-group-item.is-focus .el-select__wrapper,.v-group .v-group-item.is-focus .el-input__suffix,.v-group .v-group-item.is-active.el-input__wrapper,.v-group .v-group-item.is-active .el-input__wrapper,.v-group .v-group-item.is-active .el-select__wrapper,.v-group .v-group-item.is-active .el-input__suffix{z-index:1}.v-group .el-input__wrapper:hover .el-input-number__decrease,.v-group .el-input__wrapper:hover .el-input-number__increase,.v-group .el-select__wrapper:hover .el-input-number__decrease,.v-group .el-select__wrapper:hover .el-input-number__increase,.v-group .el-button:hover .el-input-number__decrease,.v-group .el-button:hover .el-input-number__increase,.v-group .el-select-v2__wrapper:hover .el-input-number__decrease,.v-group .el-select-v2__wrapper:hover .el-input-number__increase,.v-group .v-group-item:hover .el-input-number__decrease,.v-group .v-group-item:hover .el-input-number__increase{z-index:2}.v-group>:first-child.el-input__wrapper,.v-group>:first-child .el-input__wrapper,.v-group>:first-child .el-select__wrapper,.v-group>:first-child.el-button,.v-group>:first-child .el-select-v2__wrapper,.v-group>:first-child.v-group-item{border-top-left-radius:var(--border-size-sm);border-bottom-left-radius:var(--border-size-sm)}.v-group>:first-child.el-button{padding:0 10px}.v-group>:last-child{margin-right:0}.v-group>:last-child.el-input__wrapper,.v-group>:last-child .el-input__wrapper,.v-group>:last-child .el-select__wrapper,.v-group>:last-child.el-button,.v-group>:last-child .el-select-v2__wrapper,.v-group>:last-child.v-group-item{border-top-right-radius:var(--border-size-sm);border-bottom-right-radius:var(--border-size-sm)}.v-group>:last-child.el-button{padding:0 10px}.v-group .v-group-item{display:flex;align-items:center;padding:0 10px;font-size:var(--el-font-size-base);color:var(--base-sub-text-color);white-space:nowrap;box-shadow:0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset}.v-group .el-button-group{display:flex}.v-group .el-select__tags,.v-group .el-input-number__decrease,.v-group .el-input-number__increase{z-index:2}.v-page{position:relative;height:100%;overflow-x:hidden;overflow-y:auto;padding:8px 8px 0;background-color:var(--el-bg-color)}.v-page.is--full{overflow:hidden}.v-page.is--edit{padding-bottom:0}.v-page__body{position:relative;height:100%;border-radius:8px 8px 0 0;background-color:var(--el-bg-color);display:flex}.v-page__body-left{width:var(--left-width);position:absolute;left:0;top:0;bottom:0;overflow-x:hidden;overflow-y:auto;z-index:1;transition:width .3s ease;background:#fff;border-radius:8px 8px 0 0}.v-page__body-main{background:#fff;width:100%;border-radius:8px 8px 0 0}.v-page__body-collapse{position:absolute;top:50%;transform:translate(2px,-50%);height:30px;line-height:30px;border-radius:4px;overflow:hidden;display:flex;align-items:center;justify-content:center;z-index:10;cursor:pointer}.v-page__body-collapse .el-button{width:16px;padding:0}.v-page__edit{height:100%;border-radius:8px 8px 0 0}.vxe-pager[data-v-242732de]{position:relative;height:40px;z-index:0}.vx-table{--vxe-table-row-height-default: 40px;width:100%;height:100%;display:flex;flex-direction:column;position:relative}.vx-table-title{display:flex;align-items:center;gap:1px}.vx-table__header{overflow:hidden}.vx-table__form{display:flex;gap:8px;padding:10px}.vx-table__form-content{display:flex;flex-wrap:wrap;gap:8px;width:100%}.vx-table__form-handle{display:flex;gap:8px;margin-left:auto}.vx-table__form .el-button+.el-button{margin:0}.vx-table__toolbar{width:100%;padding:8px;display:flex;flex-wrap:wrap;gap:10px}.vx-table__toolbar .el-button{margin:0}.vx-table__toolbar .el-button+.el-button{margin-left:0}.vx-table__border{width:100%;height:8px;background:#e7e7e9}.vx-table__content{flex:1;display:flex;min-height:0;flex-direction:column;margin-top:0;padding:0 10px;position:relative;box-sizing:border-box}.vx-table__footer{display:flex;flex-direction:row-reverse;padding:5px 10px;border:1px solid #e6e8eb;border-top:0;margin-bottom:10px}.vx-table--toTop{position:absolute;right:10px;bottom:50px;width:30px;display:flex;flex-direction:column;gap:5px;z-index:10}.vx-table--toTop-item{display:flex;align-items:center;justify-content:center;width:30px;height:30px;background-color:#999;border-radius:20px;cursor:pointer;transition:all .2s;opacity:.4}.vx-table--toTop-item>*{color:#fff}.vx-table--toTop-item:hover{opacity:.8}.vx-table .v-pagination-container{position:relative;display:flex;align-items:center;justify-content:space-between;height:40px}
|
package/dist/xbd-vui.es.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { resolveComponent as
|
|
2
|
-
import { ElButton as
|
|
3
|
-
|
|
1
|
+
import { resolveComponent as $, createElementBlock as y, openBlock as d, createVNode as x, createElementVNode as r, withCtx as f, createTextVNode as k, toDisplayString as H, ref as h, computed as N, createBlock as j, mergeProps as q, defineComponent as R, unref as C, renderSlot as V, createCommentVNode as A, toRefs as ye, watch as te, normalizeStyle as T, normalizeClass as he, Fragment as re, withDirectives as U, vShow as xe, resolveDynamicComponent as Se, createSlots as de, renderList as ce, reactive as le, useAttrs as ze, useSlots as Ce, resolveDirective as oe, normalizeProps as ae, guardReactiveProps as ne, nextTick as se } from "vue";
|
|
2
|
+
import { ElButton as K } from "element-plus";
|
|
3
|
+
import { VxePager as ke } from "vxe-table";
|
|
4
|
+
const we = { class: "v-popover-handle" }, Ve = {
|
|
4
5
|
__name: "Handle",
|
|
5
6
|
props: {
|
|
6
7
|
value: { type: String, default: "" },
|
|
@@ -8,109 +9,109 @@ const oe = { class: "v-popover-handle" }, ae = {
|
|
|
8
9
|
closeText: { type: String, default: "关闭" }
|
|
9
10
|
},
|
|
10
11
|
emits: ["close", "submit", "clear"],
|
|
11
|
-
setup(e, { emit:
|
|
12
|
-
const
|
|
13
|
-
return (
|
|
14
|
-
const
|
|
15
|
-
return d(),
|
|
16
|
-
|
|
12
|
+
setup(e, { emit: l }) {
|
|
13
|
+
const o = l;
|
|
14
|
+
return (s, t) => {
|
|
15
|
+
const a = $("el-button");
|
|
16
|
+
return d(), y("div", we, [
|
|
17
|
+
x(a, {
|
|
17
18
|
size: "small",
|
|
18
|
-
onClick:
|
|
19
|
+
onClick: t[0] || (t[0] = (p) => o("clear"))
|
|
19
20
|
}, {
|
|
20
|
-
default: f(() =>
|
|
21
|
-
|
|
21
|
+
default: f(() => t[3] || (t[3] = [
|
|
22
|
+
k("清空")
|
|
22
23
|
])),
|
|
23
24
|
_: 1,
|
|
24
25
|
__: [3]
|
|
25
26
|
}),
|
|
26
|
-
r("div", null, "共 " +
|
|
27
|
+
r("div", null, "共 " + H(e.value ? e.value.split(`
|
|
27
28
|
`).length : 0) + " 个", 1),
|
|
28
|
-
|
|
29
|
+
x(a, {
|
|
29
30
|
size: "small",
|
|
30
31
|
class: "v-popover-handle-right",
|
|
31
|
-
onClick:
|
|
32
|
+
onClick: t[1] || (t[1] = (p) => o("close"))
|
|
32
33
|
}, {
|
|
33
34
|
default: f(() => [
|
|
34
|
-
|
|
35
|
+
k(H(e.closeText), 1)
|
|
35
36
|
]),
|
|
36
37
|
_: 1
|
|
37
38
|
}),
|
|
38
|
-
|
|
39
|
+
x(a, {
|
|
39
40
|
size: "small",
|
|
40
41
|
type: "primary",
|
|
41
|
-
onClick:
|
|
42
|
+
onClick: t[2] || (t[2] = (p) => o("submit"))
|
|
42
43
|
}, {
|
|
43
44
|
default: f(() => [
|
|
44
|
-
|
|
45
|
+
k(H(e.submitText), 1)
|
|
45
46
|
]),
|
|
46
47
|
_: 1
|
|
47
48
|
})
|
|
48
49
|
]);
|
|
49
50
|
};
|
|
50
51
|
}
|
|
51
|
-
},
|
|
52
|
+
}, $e = { class: "v-batch-input-wrapper" }, Z = {
|
|
52
53
|
__name: "index",
|
|
53
54
|
props: {
|
|
54
55
|
modelValue: { type: String, default: () => "" },
|
|
55
56
|
rows: { type: [Number, String], default: () => 200 }
|
|
56
57
|
},
|
|
57
58
|
emits: ["update:modelValue", "search"],
|
|
58
|
-
setup(e, { expose:
|
|
59
|
-
const
|
|
59
|
+
setup(e, { expose: l, emit: o }) {
|
|
60
|
+
const s = e, t = o, a = h(!1), p = h(!1), i = h(), u = N({
|
|
60
61
|
get() {
|
|
61
|
-
var
|
|
62
|
-
return ((
|
|
62
|
+
var m;
|
|
63
|
+
return ((m = s.modelValue) == null ? void 0 : m.replaceAll(",", `
|
|
63
64
|
`)) || "";
|
|
64
65
|
},
|
|
65
|
-
set(
|
|
66
|
-
|
|
66
|
+
set(m) {
|
|
67
|
+
t("update:modelValue", (m == null ? void 0 : m.split(`
|
|
67
68
|
`).join(",")) || "");
|
|
68
69
|
}
|
|
69
|
-
}),
|
|
70
|
+
}), n = N(
|
|
70
71
|
() => {
|
|
71
|
-
var
|
|
72
|
-
return ((
|
|
72
|
+
var m;
|
|
73
|
+
return ((m = u.value) == null ? void 0 : m.split(`
|
|
73
74
|
`).filter(Boolean).join(",")) || "";
|
|
74
75
|
}
|
|
75
|
-
),
|
|
76
|
-
|
|
77
|
-
},
|
|
78
|
-
|
|
79
|
-
},
|
|
80
|
-
var
|
|
81
|
-
|
|
76
|
+
), g = async () => {
|
|
77
|
+
a.value = !0, await 1, i == null || i.value.focus();
|
|
78
|
+
}, S = () => {
|
|
79
|
+
a.value = !1;
|
|
80
|
+
}, b = () => {
|
|
81
|
+
var m;
|
|
82
|
+
t(
|
|
82
83
|
"update:modelValue",
|
|
83
|
-
((
|
|
84
|
-
`).filter(Boolean).slice(0,
|
|
84
|
+
((m = u.value) == null ? void 0 : m.split(`
|
|
85
|
+
`).filter(Boolean).slice(0, s.rows).join(",")) || ""
|
|
85
86
|
);
|
|
86
|
-
},
|
|
87
|
-
|
|
88
|
-
},
|
|
89
|
-
|
|
87
|
+
}, B = () => {
|
|
88
|
+
u.value = "";
|
|
89
|
+
}, L = () => {
|
|
90
|
+
S(), t("search");
|
|
90
91
|
};
|
|
91
|
-
return
|
|
92
|
-
const
|
|
93
|
-
return d(),
|
|
94
|
-
visible:
|
|
95
|
-
"onUpdate:visible":
|
|
96
|
-
disabled:
|
|
92
|
+
return l({ clear: B }), (m, _) => {
|
|
93
|
+
const z = $("el-input"), D = $("el-popover");
|
|
94
|
+
return d(), j(D, {
|
|
95
|
+
visible: a.value,
|
|
96
|
+
"onUpdate:visible": _[4] || (_[4] = (w) => a.value = w),
|
|
97
|
+
disabled: p.value,
|
|
97
98
|
trigger: "click",
|
|
98
99
|
placement: "bottom-end",
|
|
99
100
|
width: "405px",
|
|
100
101
|
offset: 2,
|
|
101
102
|
"show-arrow": !1,
|
|
102
|
-
onShow:
|
|
103
|
-
onHide:
|
|
103
|
+
onShow: g,
|
|
104
|
+
onHide: S
|
|
104
105
|
}, {
|
|
105
106
|
reference: f(() => [
|
|
106
|
-
|
|
107
|
-
modelValue:
|
|
108
|
-
"onUpdate:modelValue":
|
|
109
|
-
placeholder:
|
|
110
|
-
class: ["v-batch-input",
|
|
111
|
-
},
|
|
107
|
+
x(z, q({
|
|
108
|
+
modelValue: n.value,
|
|
109
|
+
"onUpdate:modelValue": _[2] || (_[2] = (w) => n.value = w),
|
|
110
|
+
placeholder: m.$attrs.placeholder || "请输入",
|
|
111
|
+
class: ["v-batch-input", n.value && !a.value && "is--value"]
|
|
112
|
+
}, m.$attrs), {
|
|
112
113
|
suffix: f(() => [
|
|
113
|
-
|
|
114
|
+
_[6] || (_[6] = r("svg", {
|
|
114
115
|
class: "v-batch-input-icon",
|
|
115
116
|
width: "14px",
|
|
116
117
|
height: "14.00px",
|
|
@@ -143,11 +144,11 @@ const oe = { class: "v-popover-handle" }, ae = {
|
|
|
143
144
|
d: "M670.72 449.097143a192.365714 192.365714 0 1 0 191.634286 192.365714 192.365714 192.365714 0 0 0-191.634286-192.365714z m0 320.365714a128 128 0 1 1 128-128 128 128 0 0 1-128 128z"
|
|
144
145
|
})
|
|
145
146
|
], -1)),
|
|
146
|
-
(d(),
|
|
147
|
+
(d(), y("svg", {
|
|
147
148
|
class: "v-batch-input-clear",
|
|
148
|
-
onMouseenter:
|
|
149
|
-
onMouseleave:
|
|
150
|
-
onClick:
|
|
149
|
+
onMouseenter: _[0] || (_[0] = (w) => p.value = !0),
|
|
150
|
+
onMouseleave: _[1] || (_[1] = (w) => p.value = !1),
|
|
151
|
+
onClick: B,
|
|
151
152
|
t: "1731313372920",
|
|
152
153
|
viewBox: "0 0 1024 1024",
|
|
153
154
|
version: "1.1",
|
|
@@ -155,7 +156,7 @@ const oe = { class: "v-popover-handle" }, ae = {
|
|
|
155
156
|
"p-id": "3649",
|
|
156
157
|
width: "19",
|
|
157
158
|
height: "19"
|
|
158
|
-
},
|
|
159
|
+
}, _[5] || (_[5] = [
|
|
159
160
|
r("path", {
|
|
160
161
|
d: "M512 96a416 416 0 1 1 0 832 416 416 0 0 1 0-832z m0 64a352 352 0 1 0 0 704 352 352 0 0 0 0-704z",
|
|
161
162
|
"p-id": "3650",
|
|
@@ -177,23 +178,23 @@ const oe = { class: "v-popover-handle" }, ae = {
|
|
|
177
178
|
}, 16, ["modelValue", "placeholder", "class"])
|
|
178
179
|
]),
|
|
179
180
|
default: f(() => [
|
|
180
|
-
r("div",
|
|
181
|
-
|
|
181
|
+
r("div", $e, [
|
|
182
|
+
x(z, {
|
|
182
183
|
ref_key: "inputRef",
|
|
183
184
|
ref: i,
|
|
184
|
-
modelValue:
|
|
185
|
-
"onUpdate:modelValue":
|
|
185
|
+
modelValue: u.value,
|
|
186
|
+
"onUpdate:modelValue": _[3] || (_[3] = (w) => u.value = w),
|
|
186
187
|
rows: 12,
|
|
187
188
|
placeholder: `一行一个(最多支持${e.rows}行)`,
|
|
188
189
|
type: "textarea",
|
|
189
190
|
style: { width: "100%" },
|
|
190
|
-
onBlur:
|
|
191
|
+
onBlur: b
|
|
191
192
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
192
|
-
|
|
193
|
-
value:
|
|
194
|
-
onClear:
|
|
195
|
-
onClose:
|
|
196
|
-
onSubmit:
|
|
193
|
+
x(Ve, {
|
|
194
|
+
value: u.value,
|
|
195
|
+
onClear: B,
|
|
196
|
+
onClose: S,
|
|
197
|
+
onSubmit: L
|
|
197
198
|
}, null, 8, ["value"])
|
|
198
199
|
])
|
|
199
200
|
]),
|
|
@@ -202,30 +203,30 @@ const oe = { class: "v-popover-handle" }, ae = {
|
|
|
202
203
|
};
|
|
203
204
|
}
|
|
204
205
|
};
|
|
205
|
-
|
|
206
|
-
e.component("VBatchInput",
|
|
206
|
+
Z.install = (e) => {
|
|
207
|
+
e.component("VBatchInput", Z);
|
|
207
208
|
};
|
|
208
|
-
const
|
|
209
|
+
const Pe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
209
210
|
__proto__: null,
|
|
210
|
-
default:
|
|
211
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
211
|
+
default: Z
|
|
212
|
+
}, Symbol.toStringTag, { value: "Module" })), E = /* @__PURE__ */ R({
|
|
212
213
|
__name: "index",
|
|
213
214
|
setup(e) {
|
|
214
|
-
return (
|
|
215
|
+
return (l, o) => (d(), j(C(K), q(l.$attrs, { size: "small" }), {
|
|
215
216
|
default: f(() => [
|
|
216
|
-
|
|
217
|
+
V(l.$slots, "default")
|
|
217
218
|
]),
|
|
218
219
|
_: 3
|
|
219
220
|
}, 16));
|
|
220
221
|
}
|
|
221
222
|
});
|
|
222
|
-
|
|
223
|
-
e.component("VButton",
|
|
223
|
+
E.install = (e) => {
|
|
224
|
+
e.component("VButton", E);
|
|
224
225
|
};
|
|
225
|
-
const
|
|
226
|
+
const je = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
226
227
|
__proto__: null,
|
|
227
|
-
default:
|
|
228
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
228
|
+
default: E
|
|
229
|
+
}, Symbol.toStringTag, { value: "Module" })), I = /* @__PURE__ */ R({
|
|
229
230
|
__name: "index",
|
|
230
231
|
props: {
|
|
231
232
|
title: { type: String, default: "提示" },
|
|
@@ -233,49 +234,49 @@ const ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
233
234
|
loading: { type: Boolean, default: !1 }
|
|
234
235
|
},
|
|
235
236
|
emits: ["close", "save", "open"],
|
|
236
|
-
setup(e, { expose:
|
|
237
|
-
const
|
|
238
|
-
|
|
239
|
-
},
|
|
240
|
-
|
|
237
|
+
setup(e, { expose: l, emit: o }) {
|
|
238
|
+
const s = o, t = h(!1), a = () => {
|
|
239
|
+
t.value = !0;
|
|
240
|
+
}, p = () => {
|
|
241
|
+
t.value = !1, s("close");
|
|
241
242
|
}, i = () => {
|
|
242
|
-
|
|
243
|
-
},
|
|
244
|
-
|
|
243
|
+
p();
|
|
244
|
+
}, u = () => {
|
|
245
|
+
s("save");
|
|
245
246
|
};
|
|
246
|
-
return
|
|
247
|
-
const
|
|
248
|
-
return d(),
|
|
249
|
-
modelValue:
|
|
250
|
-
"onUpdate:modelValue":
|
|
247
|
+
return l({ open: a, close: p }), (n, g) => {
|
|
248
|
+
const S = $("el-button"), b = $("el-dialog");
|
|
249
|
+
return d(), j(b, q({
|
|
250
|
+
modelValue: t.value,
|
|
251
|
+
"onUpdate:modelValue": g[0] || (g[0] = (B) => t.value = B),
|
|
251
252
|
width: "30%",
|
|
252
253
|
title: e.title,
|
|
253
254
|
"align-center": ""
|
|
254
|
-
},
|
|
255
|
+
}, n.$attrs, {
|
|
255
256
|
draggable: "",
|
|
256
257
|
"close-on-click-modal": !1,
|
|
257
258
|
onClose: i,
|
|
258
259
|
class: "v-dialog"
|
|
259
260
|
}), {
|
|
260
261
|
footer: f(() => [
|
|
261
|
-
e.disabled ?
|
|
262
|
+
e.disabled ? A("", !0) : (d(), j(S, {
|
|
262
263
|
key: 0,
|
|
263
264
|
type: "primary",
|
|
264
265
|
loading: e.loading,
|
|
265
|
-
onClick:
|
|
266
|
+
onClick: u
|
|
266
267
|
}, {
|
|
267
|
-
default: f(() =>
|
|
268
|
-
|
|
268
|
+
default: f(() => g[1] || (g[1] = [
|
|
269
|
+
k(" 确定 ")
|
|
269
270
|
])),
|
|
270
271
|
_: 1,
|
|
271
272
|
__: [1]
|
|
272
273
|
}, 8, ["loading"])),
|
|
273
|
-
|
|
274
|
+
x(S, {
|
|
274
275
|
disabled: e.loading,
|
|
275
276
|
onClick: i
|
|
276
277
|
}, {
|
|
277
|
-
default: f(() =>
|
|
278
|
-
|
|
278
|
+
default: f(() => g[2] || (g[2] = [
|
|
279
|
+
k(" 取消 ")
|
|
279
280
|
])),
|
|
280
281
|
_: 1,
|
|
281
282
|
__: [2]
|
|
@@ -283,7 +284,7 @@ const ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
283
284
|
]),
|
|
284
285
|
default: f(() => [
|
|
285
286
|
r("div", null, [
|
|
286
|
-
|
|
287
|
+
V(n.$slots, "content")
|
|
287
288
|
])
|
|
288
289
|
]),
|
|
289
290
|
_: 3
|
|
@@ -291,37 +292,37 @@ const ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
291
292
|
};
|
|
292
293
|
}
|
|
293
294
|
});
|
|
294
|
-
|
|
295
|
-
e.component("VGroup",
|
|
295
|
+
I.install = (e) => {
|
|
296
|
+
e.component("VGroup", I);
|
|
296
297
|
};
|
|
297
|
-
const
|
|
298
|
+
const Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
298
299
|
__proto__: null,
|
|
299
|
-
default:
|
|
300
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
301
|
-
const
|
|
302
|
-
for (const [
|
|
303
|
-
|
|
304
|
-
return
|
|
305
|
-
},
|
|
306
|
-
function
|
|
307
|
-
return d(),
|
|
308
|
-
|
|
300
|
+
default: I
|
|
301
|
+
}, Symbol.toStringTag, { value: "Module" })), ee = (e, l) => {
|
|
302
|
+
const o = e.__vccOpts || e;
|
|
303
|
+
for (const [s, t] of l)
|
|
304
|
+
o[s] = t;
|
|
305
|
+
return o;
|
|
306
|
+
}, Oe = {}, Ne = { class: "v-group" };
|
|
307
|
+
function Me(e, l) {
|
|
308
|
+
return d(), y("div", Ne, [
|
|
309
|
+
V(e.$slots, "default")
|
|
309
310
|
]);
|
|
310
311
|
}
|
|
311
|
-
const
|
|
312
|
-
|
|
313
|
-
e.component("VGroup",
|
|
312
|
+
const J = /* @__PURE__ */ ee(Oe, [["render", Me]]);
|
|
313
|
+
J.install = (e) => {
|
|
314
|
+
e.component("VGroup", J);
|
|
314
315
|
};
|
|
315
|
-
const
|
|
316
|
+
const Te = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
316
317
|
__proto__: null,
|
|
317
|
-
default:
|
|
318
|
+
default: J
|
|
318
319
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
319
320
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
320
|
-
var
|
|
321
|
+
var qe = /* @__PURE__ */ R({
|
|
321
322
|
name: "ArrowLeftBold",
|
|
322
323
|
__name: "arrow-left-bold",
|
|
323
324
|
setup(e) {
|
|
324
|
-
return (
|
|
325
|
+
return (l, o) => (d(), y("svg", {
|
|
325
326
|
xmlns: "http://www.w3.org/2000/svg",
|
|
326
327
|
viewBox: "0 0 1024 1024"
|
|
327
328
|
}, [
|
|
@@ -331,11 +332,11 @@ var _e = /* @__PURE__ */ M({
|
|
|
331
332
|
})
|
|
332
333
|
]));
|
|
333
334
|
}
|
|
334
|
-
}),
|
|
335
|
+
}), Ae = qe, Re = /* @__PURE__ */ R({
|
|
335
336
|
name: "ArrowRightBold",
|
|
336
337
|
__name: "arrow-right-bold",
|
|
337
338
|
setup(e) {
|
|
338
|
-
return (
|
|
339
|
+
return (l, o) => (d(), y("svg", {
|
|
339
340
|
xmlns: "http://www.w3.org/2000/svg",
|
|
340
341
|
viewBox: "0 0 1024 1024"
|
|
341
342
|
}, [
|
|
@@ -345,12 +346,12 @@ var _e = /* @__PURE__ */ M({
|
|
|
345
346
|
})
|
|
346
347
|
]));
|
|
347
348
|
}
|
|
348
|
-
}),
|
|
349
|
-
const
|
|
349
|
+
}), He = Re;
|
|
350
|
+
const Ue = {
|
|
350
351
|
key: 0,
|
|
351
352
|
class: "v-page__edit",
|
|
352
353
|
style: { background: "#fff" }
|
|
353
|
-
},
|
|
354
|
+
}, Le = { class: "v-page__body-left" }, F = {
|
|
354
355
|
__name: "index",
|
|
355
356
|
props: {
|
|
356
357
|
edit: { type: Boolean, default: !0 },
|
|
@@ -359,49 +360,49 @@ const ge = {
|
|
|
359
360
|
// 可v-model绑定折叠状态
|
|
360
361
|
},
|
|
361
362
|
emits: ["update:modelCollapse"],
|
|
362
|
-
setup(e, { emit:
|
|
363
|
-
const
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
}),
|
|
367
|
-
|
|
363
|
+
setup(e, { emit: l }) {
|
|
364
|
+
const o = e, s = l, { modelCollapse: t } = ye(o), a = h(t.value);
|
|
365
|
+
te(t, (i) => {
|
|
366
|
+
a.value = i;
|
|
367
|
+
}), te(a, (i) => {
|
|
368
|
+
s("update:modelCollapse", i);
|
|
368
369
|
});
|
|
369
|
-
const
|
|
370
|
-
|
|
370
|
+
const p = () => {
|
|
371
|
+
a.value = !a.value;
|
|
371
372
|
};
|
|
372
|
-
return (i,
|
|
373
|
-
const
|
|
374
|
-
return d(),
|
|
373
|
+
return (i, u) => {
|
|
374
|
+
const n = $("el-button");
|
|
375
|
+
return d(), y("div", {
|
|
375
376
|
ref: "pageRef",
|
|
376
|
-
class:
|
|
377
|
-
style:
|
|
377
|
+
class: he(["v-page", { "is--full": !e.edit, "is--edit": e.edit }]),
|
|
378
|
+
style: T({ "--left-width": e.leftWidth })
|
|
378
379
|
}, [
|
|
379
|
-
e.edit ? (d(),
|
|
380
|
-
|
|
381
|
-
])) : (d(),
|
|
380
|
+
e.edit ? (d(), y("div", Ue, [
|
|
381
|
+
V(i.$slots, "default")
|
|
382
|
+
])) : (d(), y(re, { key: 1 }, [
|
|
382
383
|
r("div", {
|
|
383
384
|
class: "v-page__body",
|
|
384
|
-
style:
|
|
385
|
+
style: T({ paddingLeft: a.value ? 0 : e.leftWidth })
|
|
385
386
|
}, [
|
|
386
|
-
|
|
387
|
-
|
|
387
|
+
U(r("div", Le, [
|
|
388
|
+
V(i.$slots, "left")
|
|
388
389
|
], 512), [
|
|
389
|
-
[
|
|
390
|
+
[xe, !a.value]
|
|
390
391
|
]),
|
|
391
392
|
r("div", {
|
|
392
393
|
class: "v-page__body-main",
|
|
393
|
-
style:
|
|
394
|
+
style: T({ marginLeft: a.value ? 0 : "8px" })
|
|
394
395
|
}, [
|
|
395
|
-
|
|
396
|
+
V(i.$slots, "default")
|
|
396
397
|
], 4)
|
|
397
398
|
], 4),
|
|
398
399
|
r("div", {
|
|
399
400
|
class: "v-page__body-collapse",
|
|
400
|
-
style:
|
|
401
|
-
onClick:
|
|
401
|
+
style: T({ left: a.value ? "0px" : e.leftWidth }),
|
|
402
|
+
onClick: p
|
|
402
403
|
}, [
|
|
403
|
-
|
|
404
|
-
icon:
|
|
404
|
+
x(n, {
|
|
405
|
+
icon: a.value ? C(He) : C(Ae),
|
|
405
406
|
type: "primary",
|
|
406
407
|
size: "small"
|
|
407
408
|
}, null, 8, ["icon"])
|
|
@@ -411,13 +412,13 @@ const ge = {
|
|
|
411
412
|
};
|
|
412
413
|
}
|
|
413
414
|
};
|
|
414
|
-
|
|
415
|
-
e.component("VPage",
|
|
415
|
+
F.install = (e) => {
|
|
416
|
+
e.component("VPage", F);
|
|
416
417
|
};
|
|
417
|
-
const
|
|
418
|
+
const De = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
418
419
|
__proto__: null,
|
|
419
|
-
default:
|
|
420
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
420
|
+
default: F
|
|
421
|
+
}, Symbol.toStringTag, { value: "Module" })), Y = {
|
|
421
422
|
__name: "index",
|
|
422
423
|
props: {
|
|
423
424
|
modelValue: [String, Number, Array],
|
|
@@ -430,59 +431,59 @@ const ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
430
431
|
placeholder: { type: String, default: "请选择" }
|
|
431
432
|
},
|
|
432
433
|
emits: ["update:modelValue"],
|
|
433
|
-
setup(e, { emit:
|
|
434
|
-
const
|
|
435
|
-
() =>
|
|
436
|
-
label:
|
|
437
|
-
value:
|
|
434
|
+
setup(e, { emit: l }) {
|
|
435
|
+
const o = e, s = l, t = N(
|
|
436
|
+
() => o.options.map((u) => ({
|
|
437
|
+
label: u[o.labelKey],
|
|
438
|
+
value: u[o.valueKey]
|
|
438
439
|
}))
|
|
439
|
-
),
|
|
440
|
-
get: () =>
|
|
441
|
-
set: (
|
|
442
|
-
}),
|
|
440
|
+
), a = N({
|
|
441
|
+
get: () => o.modelValue,
|
|
442
|
+
set: (u) => s("update:modelValue", u)
|
|
443
|
+
}), p = N({
|
|
443
444
|
get: () => {
|
|
444
|
-
const
|
|
445
|
-
return
|
|
445
|
+
const u = Array.isArray(a.value) ? a.value : [], n = t.value.map((g) => g.value);
|
|
446
|
+
return n.length && n.every((g) => u.includes(g));
|
|
446
447
|
},
|
|
447
|
-
set: (
|
|
448
|
-
|
|
448
|
+
set: (u) => {
|
|
449
|
+
u ? s("update:modelValue", t.value.map((n) => n.value)) : s("update:modelValue", []);
|
|
449
450
|
}
|
|
450
451
|
}), i = () => {
|
|
451
|
-
if (!
|
|
452
|
-
|
|
452
|
+
if (!p.value)
|
|
453
|
+
s("update:modelValue", []);
|
|
453
454
|
else {
|
|
454
|
-
const
|
|
455
|
-
|
|
455
|
+
const u = t.value.map((n) => n.value);
|
|
456
|
+
s("update:modelValue", u);
|
|
456
457
|
}
|
|
457
458
|
};
|
|
458
|
-
return (
|
|
459
|
-
const
|
|
460
|
-
return d(),
|
|
461
|
-
modelValue:
|
|
462
|
-
"onUpdate:modelValue":
|
|
459
|
+
return (u, n) => {
|
|
460
|
+
const g = $("el-checkbox"), S = $("el-option");
|
|
461
|
+
return d(), j(Se(e.select ? "el-select-v2" : "el-select"), q({
|
|
462
|
+
modelValue: a.value,
|
|
463
|
+
"onUpdate:modelValue": n[1] || (n[1] = (b) => a.value = b),
|
|
463
464
|
placeholder: e.placeholder
|
|
464
|
-
},
|
|
465
|
-
options: e.select ?
|
|
466
|
-
}),
|
|
465
|
+
}, u.$attrs, {
|
|
466
|
+
options: e.select ? t.value : void 0
|
|
467
|
+
}), de({
|
|
467
468
|
default: f(() => [
|
|
468
|
-
e.select ?
|
|
469
|
-
key:
|
|
470
|
-
label:
|
|
471
|
-
value:
|
|
469
|
+
e.select ? A("", !0) : (d(!0), y(re, { key: 0 }, ce(t.value, (b) => (d(), j(S, {
|
|
470
|
+
key: b.value,
|
|
471
|
+
label: b.label,
|
|
472
|
+
value: b.value
|
|
472
473
|
}, null, 8, ["label", "value"]))), 128))
|
|
473
474
|
]),
|
|
474
475
|
_: 2
|
|
475
476
|
}, [
|
|
476
|
-
e.checkAll &&
|
|
477
|
+
e.checkAll && t.value.length ? {
|
|
477
478
|
name: "header",
|
|
478
479
|
fn: f(() => [
|
|
479
|
-
|
|
480
|
-
modelValue:
|
|
481
|
-
"onUpdate:modelValue":
|
|
480
|
+
x(g, {
|
|
481
|
+
modelValue: p.value,
|
|
482
|
+
"onUpdate:modelValue": n[0] || (n[0] = (b) => p.value = b),
|
|
482
483
|
onChange: i
|
|
483
484
|
}, {
|
|
484
|
-
default: f(() =>
|
|
485
|
-
|
|
485
|
+
default: f(() => n[2] || (n[2] = [
|
|
486
|
+
k(" 全选 ")
|
|
486
487
|
])),
|
|
487
488
|
_: 1,
|
|
488
489
|
__: [2]
|
|
@@ -494,42 +495,320 @@ const ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
494
495
|
};
|
|
495
496
|
}
|
|
496
497
|
};
|
|
497
|
-
|
|
498
|
-
e.component("VSelect",
|
|
498
|
+
Y.install = (e) => {
|
|
499
|
+
e.component("VSelect", Y);
|
|
499
500
|
};
|
|
500
|
-
const
|
|
501
|
+
const We = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
501
502
|
__proto__: null,
|
|
502
|
-
default:
|
|
503
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
503
|
+
default: Y
|
|
504
|
+
}, Symbol.toStringTag, { value: "Module" })), Ge = {
|
|
505
|
+
__name: "Pagination",
|
|
506
|
+
props: {
|
|
507
|
+
total: {
|
|
508
|
+
required: !0,
|
|
509
|
+
type: Number
|
|
510
|
+
},
|
|
511
|
+
pageNum: {
|
|
512
|
+
type: Number,
|
|
513
|
+
default: 1
|
|
514
|
+
},
|
|
515
|
+
pageSize: {
|
|
516
|
+
type: Number,
|
|
517
|
+
default: 20
|
|
518
|
+
},
|
|
519
|
+
pageSizes: {
|
|
520
|
+
type: Array,
|
|
521
|
+
default() {
|
|
522
|
+
return [20, 50, 100, 200, 500];
|
|
523
|
+
}
|
|
524
|
+
},
|
|
525
|
+
// 移动端页码按钮的数量端默认值5
|
|
526
|
+
pagerCount: {
|
|
527
|
+
type: Number,
|
|
528
|
+
default: document.body.clientWidth < 992 ? 5 : 7
|
|
529
|
+
},
|
|
530
|
+
layouts: {
|
|
531
|
+
type: Array,
|
|
532
|
+
default: [
|
|
533
|
+
"PrevJump",
|
|
534
|
+
"PrevPage",
|
|
535
|
+
"Jump",
|
|
536
|
+
"PageCount",
|
|
537
|
+
"NextPage",
|
|
538
|
+
"NextJump",
|
|
539
|
+
"Sizes",
|
|
540
|
+
"Total"
|
|
541
|
+
]
|
|
542
|
+
},
|
|
543
|
+
background: {
|
|
544
|
+
type: Boolean,
|
|
545
|
+
default: !1
|
|
546
|
+
}
|
|
547
|
+
},
|
|
548
|
+
emits: ["update:pageNum", "update:pageSize", "change"],
|
|
549
|
+
setup(e, { emit: l }) {
|
|
550
|
+
const o = e, s = l, t = N({
|
|
551
|
+
get() {
|
|
552
|
+
return o.pageNum;
|
|
553
|
+
},
|
|
554
|
+
set(i) {
|
|
555
|
+
s("update:pageNum", i);
|
|
556
|
+
}
|
|
557
|
+
}), a = N({
|
|
558
|
+
get() {
|
|
559
|
+
return o.pageSize;
|
|
560
|
+
},
|
|
561
|
+
set(i) {
|
|
562
|
+
s("update:pageSize", i);
|
|
563
|
+
}
|
|
564
|
+
});
|
|
565
|
+
function p({ type: i, currentPage: u, pageSize: n, $event: g }) {
|
|
566
|
+
s("change", { type: i, pageNum: u, pageSize: n, $event: g });
|
|
567
|
+
}
|
|
568
|
+
return (i, u) => (d(), j(C(ke), {
|
|
569
|
+
background: e.background,
|
|
570
|
+
"current-page": t.value,
|
|
571
|
+
"onUpdate:currentPage": u[0] || (u[0] = (n) => t.value = n),
|
|
572
|
+
"page-size": a.value,
|
|
573
|
+
"onUpdate:pageSize": u[1] || (u[1] = (n) => a.value = n),
|
|
574
|
+
layouts: e.layouts,
|
|
575
|
+
"page-sizes": e.pageSizes,
|
|
576
|
+
"pager-count": e.pagerCount,
|
|
577
|
+
total: e.total,
|
|
578
|
+
onPageChange: p
|
|
579
|
+
}, null, 8, ["background", "current-page", "page-size", "layouts", "page-sizes", "pager-count", "total"]));
|
|
580
|
+
}
|
|
581
|
+
}, Ke = /* @__PURE__ */ ee(Ge, [["__scopeId", "data-v-242732de"]]), Ze = {
|
|
582
|
+
key: 0,
|
|
583
|
+
class: "vx-table__form"
|
|
584
|
+
}, Ee = { class: "vx-table__form-content" }, Ie = { class: "vx-table__form-handle" }, Je = { class: "v-pagination-container" }, Fe = {
|
|
585
|
+
key: 0,
|
|
586
|
+
class: "v-text-title"
|
|
587
|
+
}, Ye = { style: { color: "var(--base-text-color)" } }, Q = /* @__PURE__ */ R({
|
|
588
|
+
__name: "index",
|
|
589
|
+
props: {
|
|
590
|
+
pageHidden: {}
|
|
591
|
+
},
|
|
592
|
+
emits: [
|
|
593
|
+
"query",
|
|
594
|
+
"pageChange",
|
|
595
|
+
"checkbox-change",
|
|
596
|
+
"checkbox-all"
|
|
597
|
+
],
|
|
598
|
+
setup(e, { emit: l }) {
|
|
599
|
+
const o = h(null), s = h(null), t = h(), a = h(0), p = h(0), i = h(400), u = le({}), n = h(0), g = Object.assign({}, ze(), {
|
|
600
|
+
toolbarConfig: {
|
|
601
|
+
slots: {
|
|
602
|
+
buttons: "toolbar_buttons"
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
}), S = Object.keys(Ce()), b = l;
|
|
606
|
+
function B() {
|
|
607
|
+
b("query");
|
|
608
|
+
}
|
|
609
|
+
function L() {
|
|
610
|
+
}
|
|
611
|
+
const { pageSize: m, pageNum: _ } = g.pagerConfig || {}, z = le({
|
|
612
|
+
pageSize: m || 20,
|
|
613
|
+
pageNum: _ || 1,
|
|
614
|
+
total: 0
|
|
615
|
+
}), D = ({ type: c, pageNum: v, pageSize: M }) => {
|
|
616
|
+
var O;
|
|
617
|
+
c === "current" && (isChange.value = !0), z.pageNum = c === "size" ? 1 : v, z.pageSize = M, (O = t == null ? void 0 : t.value) == null || O.commitProxy("query");
|
|
618
|
+
};
|
|
619
|
+
function w({ records: c }) {
|
|
620
|
+
n.value = c.length, b("checkbox-change", c);
|
|
621
|
+
}
|
|
622
|
+
function ge({ records: c }) {
|
|
623
|
+
n.value = c.length, b("checkbox-all", c);
|
|
624
|
+
}
|
|
625
|
+
function ve(c) {
|
|
626
|
+
a.value = c.offsetHeight;
|
|
627
|
+
}
|
|
628
|
+
function fe(c) {
|
|
629
|
+
p.value = c.offsetHeight, W();
|
|
630
|
+
}
|
|
631
|
+
function me() {
|
|
632
|
+
se(() => {
|
|
633
|
+
W();
|
|
634
|
+
});
|
|
635
|
+
}
|
|
636
|
+
function W() {
|
|
637
|
+
const c = o.value, v = s.value;
|
|
638
|
+
if (!c || !v) return;
|
|
639
|
+
const M = c.getBoundingClientRect(), O = v.getBoundingClientRect(), G = M.height - (O.top - M.top);
|
|
640
|
+
i.value = G;
|
|
641
|
+
}
|
|
642
|
+
function _e() {
|
|
643
|
+
se(() => {
|
|
644
|
+
W();
|
|
645
|
+
});
|
|
646
|
+
}
|
|
647
|
+
return (c, v) => {
|
|
648
|
+
const M = $("vxe-grid"), O = oe("dom-resize"), G = oe("dom-load");
|
|
649
|
+
return U((d(), y("div", {
|
|
650
|
+
ref_key: "tableRef",
|
|
651
|
+
ref: o,
|
|
652
|
+
class: "vx-table"
|
|
653
|
+
}, [
|
|
654
|
+
r("div", {
|
|
655
|
+
class: "vx-table__header",
|
|
656
|
+
style: T({
|
|
657
|
+
height: `${a.value ? p.value - a.value + "px" : "auto"}`
|
|
658
|
+
})
|
|
659
|
+
}, [
|
|
660
|
+
U((d(), y("div", {
|
|
661
|
+
style: T({ transform: `translateY(${-a.value + "px"})` })
|
|
662
|
+
}, [
|
|
663
|
+
C(S).includes("form") ? (d(), y("div", Ze, [
|
|
664
|
+
r("div", Ee, [
|
|
665
|
+
V(c.$slots, "form", ae(ne({ form: u }))),
|
|
666
|
+
r("div", Ie, [
|
|
667
|
+
V(c.$slots, "form_handle", {}, () => [
|
|
668
|
+
x(C(K), {
|
|
669
|
+
type: "primary",
|
|
670
|
+
onClick: B
|
|
671
|
+
}, {
|
|
672
|
+
default: f(() => v[2] || (v[2] = [
|
|
673
|
+
k("查询")
|
|
674
|
+
])),
|
|
675
|
+
_: 1,
|
|
676
|
+
__: [2]
|
|
677
|
+
}),
|
|
678
|
+
x(C(K), { onClick: L }, {
|
|
679
|
+
default: f(() => v[3] || (v[3] = [
|
|
680
|
+
k("重置")
|
|
681
|
+
])),
|
|
682
|
+
_: 1,
|
|
683
|
+
__: [3]
|
|
684
|
+
})
|
|
685
|
+
])
|
|
686
|
+
])
|
|
687
|
+
])
|
|
688
|
+
])) : A("", !0)
|
|
689
|
+
], 4)), [
|
|
690
|
+
[O, ve]
|
|
691
|
+
]),
|
|
692
|
+
v[4] || (v[4] = r("div", { class: "vx-table__border" }, null, -1))
|
|
693
|
+
], 4),
|
|
694
|
+
U((d(), y("div", {
|
|
695
|
+
ref_key: "contentRef",
|
|
696
|
+
ref: s,
|
|
697
|
+
class: "vx-table__content"
|
|
698
|
+
}, [
|
|
699
|
+
x(M, q({
|
|
700
|
+
ref_key: "gridRef",
|
|
701
|
+
ref: t
|
|
702
|
+
}, C(g), {
|
|
703
|
+
height: i.value,
|
|
704
|
+
onResizableChange: _e,
|
|
705
|
+
onCheckboxChange: w,
|
|
706
|
+
onCheckboxAll: ge
|
|
707
|
+
}), de({ _: 2 }, [
|
|
708
|
+
ce(C(S).filter((P) => !["form"].includes(P)), (P) => ({
|
|
709
|
+
name: P,
|
|
710
|
+
fn: f((be) => [
|
|
711
|
+
V(c.$slots, P, ae(ne(be)))
|
|
712
|
+
])
|
|
713
|
+
})),
|
|
714
|
+
c.pageHidden ? void 0 : {
|
|
715
|
+
name: "pager",
|
|
716
|
+
fn: f(() => [
|
|
717
|
+
r("div", Je, [
|
|
718
|
+
r("div", null, [
|
|
719
|
+
n.value ? (d(), y("span", Fe, [
|
|
720
|
+
v[5] || (v[5] = k(" 已选中 ")),
|
|
721
|
+
r("span", Ye, H(n.value), 1),
|
|
722
|
+
v[6] || (v[6] = k(" 条 "))
|
|
723
|
+
])) : A("", !0)
|
|
724
|
+
]),
|
|
725
|
+
c.pageHidden ? A("", !0) : (d(), j(Ke, q({ key: 0 }, C(g).pagerConfig, {
|
|
726
|
+
pageSize: z.pageSize,
|
|
727
|
+
"onUpdate:pageSize": v[0] || (v[0] = (P) => z.pageSize = P),
|
|
728
|
+
pageNum: z.pageNum,
|
|
729
|
+
"onUpdate:pageNum": v[1] || (v[1] = (P) => z.pageNum = P),
|
|
730
|
+
total: z.total,
|
|
731
|
+
onChange: D
|
|
732
|
+
}), null, 16, ["pageSize", "pageNum", "total"]))
|
|
733
|
+
])
|
|
734
|
+
]),
|
|
735
|
+
key: "0"
|
|
736
|
+
}
|
|
737
|
+
]), 1040, ["height"])
|
|
738
|
+
])), [
|
|
739
|
+
[G, me]
|
|
740
|
+
])
|
|
741
|
+
])), [
|
|
742
|
+
[O, fe]
|
|
743
|
+
]);
|
|
744
|
+
};
|
|
745
|
+
}
|
|
746
|
+
});
|
|
747
|
+
Q.install = (e) => {
|
|
748
|
+
e.component("VTable", Q);
|
|
510
749
|
};
|
|
511
|
-
const
|
|
750
|
+
const Qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
512
751
|
__proto__: null,
|
|
513
|
-
default:
|
|
514
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
515
|
-
function
|
|
516
|
-
return d(),
|
|
752
|
+
default: Q
|
|
753
|
+
}, Symbol.toStringTag, { value: "Module" })), Xe = {};
|
|
754
|
+
function et(e, l) {
|
|
755
|
+
return d(), y("div", null, "1111");
|
|
517
756
|
}
|
|
518
|
-
const
|
|
519
|
-
|
|
520
|
-
e.component("VTablePro",
|
|
757
|
+
const X = /* @__PURE__ */ ee(Xe, [["render", et]]);
|
|
758
|
+
X.install = (e) => {
|
|
759
|
+
e.component("VTablePro", X);
|
|
521
760
|
};
|
|
522
|
-
const
|
|
761
|
+
const tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
762
|
+
__proto__: null,
|
|
763
|
+
default: X
|
|
764
|
+
}, Symbol.toStringTag, { value: "Module" })), ue = /* @__PURE__ */ Object.assign({ "./BatchInput/index.ts": Pe, "./Button/index.ts": je, "./Dialog/index.ts": Be, "./Group/index.ts": Te, "./Page/index.ts": De, "./Select/index.ts": We, "./Table/index.ts": Qe, "./TablePro/index.ts": tt });
|
|
765
|
+
function lt(e) {
|
|
766
|
+
for (const l in ue) {
|
|
767
|
+
const o = ue[l].default, s = l.split("/")[1], t = s.charAt(0).toUpperCase() + s.slice(1);
|
|
768
|
+
e.component(`V${t}`, o);
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
const ot = {
|
|
772
|
+
mounted(e, l) {
|
|
773
|
+
const o = l.value, s = e.getBoundingClientRect();
|
|
774
|
+
o && o(s, e);
|
|
775
|
+
}
|
|
776
|
+
}, at = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
777
|
+
__proto__: null,
|
|
778
|
+
default: ot
|
|
779
|
+
}, Symbol.toStringTag, { value: "Module" })), pe = /* @__PURE__ */ new WeakMap(), ie = new ResizeObserver((e) => {
|
|
780
|
+
for (const l of e) {
|
|
781
|
+
const o = pe.get(l.target);
|
|
782
|
+
o && o(l.contentRect, l.target);
|
|
783
|
+
}
|
|
784
|
+
}), nt = {
|
|
785
|
+
mounted(e, l) {
|
|
786
|
+
pe.set(e, l.value), ie.observe(e);
|
|
787
|
+
},
|
|
788
|
+
unmounted(e) {
|
|
789
|
+
ie.unobserve(e);
|
|
790
|
+
}
|
|
791
|
+
}, st = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
523
792
|
__proto__: null,
|
|
524
|
-
default:
|
|
525
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
793
|
+
default: nt
|
|
794
|
+
}, Symbol.toStringTag, { value: "Module" })), ut = /* @__PURE__ */ Object.assign({ "./dom-load/index.ts": at, "./dom-resize/index.ts": st });
|
|
795
|
+
function it(e) {
|
|
796
|
+
for (const [l, o] of Object.entries(ut)) {
|
|
797
|
+
const s = l.replace("./", "").replace("/index.ts", "");
|
|
798
|
+
if (s) {
|
|
799
|
+
const t = o.default;
|
|
800
|
+
e.directive(s, t);
|
|
530
801
|
}
|
|
531
802
|
}
|
|
803
|
+
}
|
|
804
|
+
const rt = (e, l) => {
|
|
805
|
+
it(e), lt(e);
|
|
806
|
+
}, gt = {
|
|
807
|
+
install: rt
|
|
532
808
|
};
|
|
533
809
|
export {
|
|
534
|
-
|
|
810
|
+
gt as default,
|
|
811
|
+
rt as install,
|
|
812
|
+
lt as registerComponents,
|
|
813
|
+
it as registerDirectives
|
|
535
814
|
};
|
package/dist/xbd-vui.umd.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
(function(e
|
|
2
|
-
`).length:0)+" 个",1),e.createVNode(
|
|
3
|
-
`))||""},set(
|
|
4
|
-
`).join(","))||"")}}),
|
|
5
|
-
`).filter(Boolean).join(","))||""}),m=async()=>{
|
|
6
|
-
`).filter(Boolean).slice(0,d.rows).join(","))||"")},y=()=>{r.value=""},Y=()=>{_(),l("search")};return n({clear:y}),(p,u)=>{const $=e.resolveComponent("el-input"),ee=e.resolveComponent("el-popover");return e.openBlock(),e.createBlock(ee,{visible:o.value,"onUpdate:visible":u[4]||(u[4]=g=>o.value=g),disabled:c.value,trigger:"click",placement:"bottom-end",width:"405px",offset:2,"show-arrow":!1,onShow:m,onHide:_},{reference:e.withCtx(()=>[e.createVNode($,e.mergeProps({modelValue:s.value,"onUpdate:modelValue":u[2]||(u[2]=g=>s.value=g),placeholder:p.$attrs.placeholder||"请输入",class:["v-batch-input",s.value&&!o.value&&"is--value"]},p.$attrs),{suffix:e.withCtx(()=>[u[6]||(u[6]=e.createElementVNode("svg",{class:"v-batch-input-icon",width:"14px",height:"14.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{fill:"#909399",d:"M765.932181 720.345605m22.756717 22.756717l226.015571 226.015571q22.756717 22.756717 0 45.513433l0 0q-22.756717 22.756717-45.513433 0l-226.015571-226.015571q-22.756717-22.756717 0-45.513433l0 0q22.756717-22.756717 45.513433 0Z"}),e.createElementVNode("path",{fill:"#909399",d:"M192.365714 236.982857m32.182857 0l575.634286 0q32.182857 0 32.182857 32.182857l0 0q0 32.182857-32.182857 32.182857l-575.634286 0q-32.182857 0-32.182857-32.182857l0 0q0-32.182857 32.182857-32.182857Z"}),e.createElementVNode("path",{fill:"#909399",d:"M192.365714 479.817143m32.182857 0l191.634286 0q32.182857 0 32.182857 32.182857l0-0.731429q0 32.182857-32.182857 32.182858l-191.634286 0q-32.182857 0-32.182857-32.182858l0 0.731429q0-32.182857 32.182857-32.182857Z"}),e.createElementVNode("path",{fill:"#909399",d:"M192.365714 722.651429m32.182857 0l63.634286 0q32.182857 0 32.182857 32.182857l0-0.731429q0 32.182857-32.182857 32.182857l-63.634286 0q-32.182857 0-32.182857-32.182857l0 0.731429q0-32.182857 32.182857-32.182857Z"}),e.createElementVNode("path",{fill:"#909399",d:"M896 0H128A128 128 0 0 0 0 128v768A128 128 0 0 0 128 1024h576.365714v-63.634286H128a64.365714 64.365714 0 0 1-63.634286-64.365714V128a63.634286 63.634286 0 0 1 63.634286-63.634286h768a64.365714 64.365714 0 0 1 64.365714 63.634286v448.365714H1024V128A128 128 0 0 0 896 0z"}),e.createElementVNode("path",{fill:"#909399",d:"M670.72 449.097143a192.365714 192.365714 0 1 0 191.634286 192.365714 192.365714 192.365714 0 0 0-191.634286-192.365714z m0 320.365714a128 128 0 1 1 128-128 128 128 0 0 1-128 128z"})],-1)),(e.openBlock(),e.createElementBlock("svg",{class:"v-batch-input-clear",onMouseenter:u[0]||(u[0]=g=>c.value=!0),onMouseleave:u[1]||(u[1]=g=>c.value=!1),onClick:y,t:"1731313372920",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3649",width:"19",height:"19"},u[5]||(u[5]=[e.createElementVNode("path",{d:"M512 96a416 416 0 1 1 0 832 416 416 0 0 1 0-832z m0 64a352 352 0 1 0 0 704 352 352 0 0 0 0-704z","p-id":"3650",fill:"currentColor"},null,-1),e.createElementVNode("path",{d:"M365.12 387.328a32 32 0 0 1 44.864-45.248l4.096 4.032 244.8 290.56a32 32 0 0 1-44.864 45.248l-4.096-4.032-244.8-290.56z","p-id":"3651",fill:"currentColor"},null,-1),e.createElementVNode("path",{d:"M365.12 636.672a32 32 0 0 0 44.864 45.248l4.096-4.032 244.8-290.56a32 32 0 0 0-44.864-45.248l-4.096 4.032-244.8 290.56z","p-id":"3652",fill:"currentColor"},null,-1)]),32))]),_:1},16,["modelValue","placeholder","class"])]),default:e.withCtx(()=>[e.createElementVNode("div",T,[e.createVNode($,{ref_key:"inputRef",ref:i,modelValue:r.value,"onUpdate:modelValue":u[3]||(u[3]=g=>r.value=g),rows:12,placeholder:`一行一个(最多支持${t.rows}行)`,type:"textarea",style:{width:"100%"},onBlur:f},null,8,["modelValue","placeholder"]),e.createVNode(v,{value:r.value,onClear:y,onClose:_,onSubmit:Y},null,8,["value"])])]),_:1},8,["visible","disabled"])}}};V.install=t=>{t.component("VBatchInput",V)};const j=Object.freeze(Object.defineProperty({__proto__:null,default:V},Symbol.toStringTag,{value:"Module"})),h=e.defineComponent({__name:"index",setup(t){return(n,a)=>(e.openBlock(),e.createBlock(e.unref(b.ElButton),e.mergeProps(n.$attrs,{size:"small"}),{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3},16))}});h.install=t=>{t.component("VButton",h)};const M=Object.freeze(Object.defineProperty({__proto__:null,default:h},Symbol.toStringTag,{value:"Module"})),w=e.defineComponent({__name:"index",props:{title:{type:String,default:"提示"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["close","save","open"],setup(t,{expose:n,emit:a}){const d=a,l=e.ref(!1),o=()=>{l.value=!0},c=()=>{l.value=!1,d("close")},i=()=>{c()},r=()=>{d("save")};return n({open:o,close:c}),(s,m)=>{const _=e.resolveComponent("el-button"),f=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(f,e.mergeProps({modelValue:l.value,"onUpdate:modelValue":m[0]||(m[0]=y=>l.value=y),width:"30%",title:t.title,"align-center":""},s.$attrs,{draggable:"","close-on-click-modal":!1,onClose:i,class:"v-dialog"}),{footer:e.withCtx(()=>[t.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(_,{key:0,type:"primary",loading:t.loading,onClick:r},{default:e.withCtx(()=>m[1]||(m[1]=[e.createTextVNode(" 确定 ")])),_:1,__:[1]},8,["loading"])),e.createVNode(_,{disabled:t.loading,onClick:i},{default:e.withCtx(()=>m[2]||(m[2]=[e.createTextVNode(" 取消 ")])),_:1,__:[2]},8,["disabled"])]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(s.$slots,"content")])]),_:3},16,["modelValue","title"])}}});w.install=t=>{t.component("VGroup",w)};const O=Object.freeze(Object.defineProperty({__proto__:null,default:w},Symbol.toStringTag,{value:"Module"})),x=(t,n)=>{const a=t.__vccOpts||t;for(const[d,l]of n)a[d]=l;return a},P={},q={class:"v-group"};function A(t,n){return e.openBlock(),e.createElementBlock("div",q,[e.renderSlot(t.$slots,"default")])}const k=x(P,[["render",A]]);k.install=t=>{t.component("VGroup",k)};const U=Object.freeze(Object.defineProperty({__proto__:null,default:k},Symbol.toStringTag,{value:"Module"}));/*! Element Plus Icons Vue v2.3.1 */var D=e.defineComponent({name:"ArrowLeftBold",__name:"arrow-left-bold",setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0z"})]))}}),L=D,H=e.defineComponent({name:"ArrowRightBold",__name:"arrow-right-bold",setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0z"})]))}}),G=H;const K={key:0,class:"v-page__edit",style:{background:"#fff"}},W={class:"v-page__body-left"},B={__name:"index",props:{edit:{type:Boolean,default:!0},leftWidth:{type:String,default:"240px"},modelCollapse:{type:Boolean,default:!1}},emits:["update:modelCollapse"],setup(t,{emit:n}){const a=t,d=n,{modelCollapse:l}=e.toRefs(a),o=e.ref(l.value);e.watch(l,i=>{o.value=i}),e.watch(o,i=>{d("update:modelCollapse",i)});const c=()=>{o.value=!o.value};return(i,r)=>{const s=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",{ref:"pageRef",class:e.normalizeClass(["v-page",{"is--full":!t.edit,"is--edit":t.edit}]),style:e.normalizeStyle({"--left-width":t.leftWidth})},[t.edit?(e.openBlock(),e.createElementBlock("div",K,[e.renderSlot(i.$slots,"default")])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",{class:"v-page__body",style:e.normalizeStyle({paddingLeft:o.value?0:t.leftWidth})},[e.withDirectives(e.createElementVNode("div",W,[e.renderSlot(i.$slots,"left")],512),[[e.vShow,!o.value]]),e.createElementVNode("div",{class:"v-page__body-main",style:e.normalizeStyle({marginLeft:o.value?0:"8px"})},[e.renderSlot(i.$slots,"default")],4)],4),e.createElementVNode("div",{class:"v-page__body-collapse",style:e.normalizeStyle({left:o.value?"0px":t.leftWidth}),onClick:c},[e.createVNode(s,{icon:o.value?e.unref(G):e.unref(L),type:"primary",size:"small"},null,8,["icon"])],4)],64))],6)}}};B.install=t=>{t.component("VPage",B)};const Z=Object.freeze(Object.defineProperty({__proto__:null,default:B},Symbol.toStringTag,{value:"Module"})),C={__name:"index",props:{modelValue:[String,Number,Array],options:{type:Array,default:()=>[]},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},select:{type:Boolean,default:!1},checkAll:{type:Boolean,default:!1},placeholder:{type:String,default:"请选择"}},emits:["update:modelValue"],setup(t,{emit:n}){const a=t,d=n,l=e.computed(()=>a.options.map(r=>({label:r[a.labelKey],value:r[a.valueKey]}))),o=e.computed({get:()=>a.modelValue,set:r=>d("update:modelValue",r)}),c=e.computed({get:()=>{const r=Array.isArray(o.value)?o.value:[],s=l.value.map(m=>m.value);return s.length&&s.every(m=>r.includes(m))},set:r=>{r?d("update:modelValue",l.value.map(s=>s.value)):d("update:modelValue",[])}}),i=()=>{if(!c.value)d("update:modelValue",[]);else{const r=l.value.map(s=>s.value);d("update:modelValue",r)}};return(r,s)=>{const m=e.resolveComponent("el-checkbox"),_=e.resolveComponent("el-option");return e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.select?"el-select-v2":"el-select"),e.mergeProps({modelValue:o.value,"onUpdate:modelValue":s[1]||(s[1]=f=>o.value=f),placeholder:t.placeholder},r.$attrs,{options:t.select?l.value:void 0}),e.createSlots({default:e.withCtx(()=>[t.select?e.createCommentVNode("",!0):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(l.value,f=>(e.openBlock(),e.createBlock(_,{key:f.value,label:f.label,value:f.value},null,8,["label","value"]))),128))]),_:2},[t.checkAll&&l.value.length?{name:"header",fn:e.withCtx(()=>[e.createVNode(m,{modelValue:c.value,"onUpdate:modelValue":s[0]||(s[0]=f=>c.value=f),onChange:i},{default:e.withCtx(()=>s[2]||(s[2]=[e.createTextVNode(" 全选 ")])),_:1,__:[2]},8,["modelValue"])]),key:"0"}:void 0]),1040,["modelValue","placeholder","options"])}}};C.install=t=>{t.component("VSelect",C)};const I=Object.freeze(Object.defineProperty({__proto__:null,default:C},Symbol.toStringTag,{value:"Module"})),R={};function F(t,n){return e.openBlock(),e.createElementBlock("div",null,"1111")}const S=x(R,[["render",F]]);S.install=t=>{t.component("VTable",S)};const X=Object.freeze(Object.defineProperty({__proto__:null,default:S},Symbol.toStringTag,{value:"Module"})),J={};function Q(t,n){return e.openBlock(),e.createElementBlock("div",null,"1111")}const N=x(J,[["render",Q]]);N.install=t=>{t.component("VTablePro",N)};const E=Object.assign({"./BatchInput/index.ts":j,"./Button/index.ts":M,"./Dialog/index.ts":O,"./Group/index.ts":U,"./Page/index.ts":Z,"./Select/index.ts":I,"./Table/index.ts":X,"./TablePro/index.ts":Object.freeze(Object.defineProperty({__proto__:null,default:N},Symbol.toStringTag,{value:"Module"}))});return{install(t){for(const n in E){const a=E[n].default,d=n.split("/")[1],l=d.charAt(0).toUpperCase()+d.slice(1);t.component(`V${l}`,a)}}}});
|
|
1
|
+
(function(b,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("element-plus"),require("vxe-table")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus","vxe-table"],e):(b=typeof globalThis<"u"?globalThis:b||self,e(b.XBDVUI={},b.Vue,b.ElementPlus,b.VXETable))})(this,function(b,e,N,G){"use strict";const I={class:"v-popover-handle"},K={__name:"Handle",props:{value:{type:String,default:""},submitText:{type:String,default:"搜索"},closeText:{type:String,default:"关闭"}},emits:["close","submit","clear"],setup(t,{emit:o}){const n=o;return(s,l)=>{const a=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",I,[e.createVNode(a,{size:"small",onClick:l[0]||(l[0]=p=>n("clear"))},{default:e.withCtx(()=>l[3]||(l[3]=[e.createTextVNode("清空")])),_:1,__:[3]}),e.createElementVNode("div",null,"共 "+e.toDisplayString(t.value?t.value.split(`
|
|
2
|
+
`).length:0)+" 个",1),e.createVNode(a,{size:"small",class:"v-popover-handle-right",onClick:l[1]||(l[1]=p=>n("close"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.closeText),1)]),_:1}),e.createVNode(a,{size:"small",type:"primary",onClick:l[2]||(l[2]=p=>n("submit"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.submitText),1)]),_:1})])}}},Z={class:"v-batch-input-wrapper"},B={__name:"index",props:{modelValue:{type:String,default:()=>""},rows:{type:[Number,String],default:()=>200}},emits:["update:modelValue","search"],setup(t,{expose:o,emit:n}){const s=t,l=n,a=e.ref(!1),p=e.ref(!1),c=e.ref(),i=e.computed({get(){var u;return((u=s.modelValue)==null?void 0:u.replaceAll(",",`
|
|
3
|
+
`))||""},set(u){l("update:modelValue",(u==null?void 0:u.split(`
|
|
4
|
+
`).join(","))||"")}}),r=e.computed(()=>{var u;return((u=i.value)==null?void 0:u.split(`
|
|
5
|
+
`).filter(Boolean).join(","))||""}),m=async()=>{a.value=!0,await 1,c==null||c.value.focus()},h=()=>{a.value=!1},_=()=>{var u;l("update:modelValue",((u=i.value)==null?void 0:u.split(`
|
|
6
|
+
`).filter(Boolean).slice(0,s.rows).join(","))||"")},k=()=>{i.value=""},v=()=>{h(),l("search")};return o({clear:k}),(u,g)=>{const y=e.resolveComponent("el-input"),M=e.resolveComponent("el-popover");return e.openBlock(),e.createBlock(M,{visible:a.value,"onUpdate:visible":g[4]||(g[4]=x=>a.value=x),disabled:p.value,trigger:"click",placement:"bottom-end",width:"405px",offset:2,"show-arrow":!1,onShow:m,onHide:h},{reference:e.withCtx(()=>[e.createVNode(y,e.mergeProps({modelValue:r.value,"onUpdate:modelValue":g[2]||(g[2]=x=>r.value=x),placeholder:u.$attrs.placeholder||"请输入",class:["v-batch-input",r.value&&!a.value&&"is--value"]},u.$attrs),{suffix:e.withCtx(()=>[g[6]||(g[6]=e.createElementVNode("svg",{class:"v-batch-input-icon",width:"14px",height:"14.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{fill:"#909399",d:"M765.932181 720.345605m22.756717 22.756717l226.015571 226.015571q22.756717 22.756717 0 45.513433l0 0q-22.756717 22.756717-45.513433 0l-226.015571-226.015571q-22.756717-22.756717 0-45.513433l0 0q22.756717-22.756717 45.513433 0Z"}),e.createElementVNode("path",{fill:"#909399",d:"M192.365714 236.982857m32.182857 0l575.634286 0q32.182857 0 32.182857 32.182857l0 0q0 32.182857-32.182857 32.182857l-575.634286 0q-32.182857 0-32.182857-32.182857l0 0q0-32.182857 32.182857-32.182857Z"}),e.createElementVNode("path",{fill:"#909399",d:"M192.365714 479.817143m32.182857 0l191.634286 0q32.182857 0 32.182857 32.182857l0-0.731429q0 32.182857-32.182857 32.182858l-191.634286 0q-32.182857 0-32.182857-32.182858l0 0.731429q0-32.182857 32.182857-32.182857Z"}),e.createElementVNode("path",{fill:"#909399",d:"M192.365714 722.651429m32.182857 0l63.634286 0q32.182857 0 32.182857 32.182857l0-0.731429q0 32.182857-32.182857 32.182857l-63.634286 0q-32.182857 0-32.182857-32.182857l0 0.731429q0-32.182857 32.182857-32.182857Z"}),e.createElementVNode("path",{fill:"#909399",d:"M896 0H128A128 128 0 0 0 0 128v768A128 128 0 0 0 128 1024h576.365714v-63.634286H128a64.365714 64.365714 0 0 1-63.634286-64.365714V128a63.634286 63.634286 0 0 1 63.634286-63.634286h768a64.365714 64.365714 0 0 1 64.365714 63.634286v448.365714H1024V128A128 128 0 0 0 896 0z"}),e.createElementVNode("path",{fill:"#909399",d:"M670.72 449.097143a192.365714 192.365714 0 1 0 191.634286 192.365714 192.365714 192.365714 0 0 0-191.634286-192.365714z m0 320.365714a128 128 0 1 1 128-128 128 128 0 0 1-128 128z"})],-1)),(e.openBlock(),e.createElementBlock("svg",{class:"v-batch-input-clear",onMouseenter:g[0]||(g[0]=x=>p.value=!0),onMouseleave:g[1]||(g[1]=x=>p.value=!1),onClick:k,t:"1731313372920",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3649",width:"19",height:"19"},g[5]||(g[5]=[e.createElementVNode("path",{d:"M512 96a416 416 0 1 1 0 832 416 416 0 0 1 0-832z m0 64a352 352 0 1 0 0 704 352 352 0 0 0 0-704z","p-id":"3650",fill:"currentColor"},null,-1),e.createElementVNode("path",{d:"M365.12 387.328a32 32 0 0 1 44.864-45.248l4.096 4.032 244.8 290.56a32 32 0 0 1-44.864 45.248l-4.096-4.032-244.8-290.56z","p-id":"3651",fill:"currentColor"},null,-1),e.createElementVNode("path",{d:"M365.12 636.672a32 32 0 0 0 44.864 45.248l4.096-4.032 244.8-290.56a32 32 0 0 0-44.864-45.248l-4.096 4.032-244.8 290.56z","p-id":"3652",fill:"currentColor"},null,-1)]),32))]),_:1},16,["modelValue","placeholder","class"])]),default:e.withCtx(()=>[e.createElementVNode("div",Z,[e.createVNode(y,{ref_key:"inputRef",ref:c,modelValue:i.value,"onUpdate:modelValue":g[3]||(g[3]=x=>i.value=x),rows:12,placeholder:`一行一个(最多支持${t.rows}行)`,type:"textarea",style:{width:"100%"},onBlur:_},null,8,["modelValue","placeholder"]),e.createVNode(K,{value:i.value,onClear:k,onClose:h,onSubmit:v},null,8,["value"])])]),_:1},8,["visible","disabled"])}}};B.install=t=>{t.component("VBatchInput",B)};const F=Object.freeze(Object.defineProperty({__proto__:null,default:B},Symbol.toStringTag,{value:"Module"})),w=e.defineComponent({__name:"index",setup(t){return(o,n)=>(e.openBlock(),e.createBlock(e.unref(N.ElButton),e.mergeProps(o.$attrs,{size:"small"}),{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default")]),_:3},16))}});w.install=t=>{t.component("VButton",w)};const J=Object.freeze(Object.defineProperty({__proto__:null,default:w},Symbol.toStringTag,{value:"Module"})),z=e.defineComponent({__name:"index",props:{title:{type:String,default:"提示"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["close","save","open"],setup(t,{expose:o,emit:n}){const s=n,l=e.ref(!1),a=()=>{l.value=!0},p=()=>{l.value=!1,s("close")},c=()=>{p()},i=()=>{s("save")};return o({open:a,close:p}),(r,m)=>{const h=e.resolveComponent("el-button"),_=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(_,e.mergeProps({modelValue:l.value,"onUpdate:modelValue":m[0]||(m[0]=k=>l.value=k),width:"30%",title:t.title,"align-center":""},r.$attrs,{draggable:"","close-on-click-modal":!1,onClose:c,class:"v-dialog"}),{footer:e.withCtx(()=>[t.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(h,{key:0,type:"primary",loading:t.loading,onClick:i},{default:e.withCtx(()=>m[1]||(m[1]=[e.createTextVNode(" 确定 ")])),_:1,__:[1]},8,["loading"])),e.createVNode(h,{disabled:t.loading,onClick:c},{default:e.withCtx(()=>m[2]||(m[2]=[e.createTextVNode(" 取消 ")])),_:1,__:[2]},8,["disabled"])]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(r.$slots,"content")])]),_:3},16,["modelValue","title"])}}});z.install=t=>{t.component("VGroup",z)};const X=Object.freeze(Object.defineProperty({__proto__:null,default:z},Symbol.toStringTag,{value:"Module"})),E=(t,o)=>{const n=t.__vccOpts||t;for(const[s,l]of o)n[s]=l;return n},Y={},Q={class:"v-group"};function ee(t,o){return e.openBlock(),e.createElementBlock("div",Q,[e.renderSlot(t.$slots,"default")])}const $=E(Y,[["render",ee]]);$.install=t=>{t.component("VGroup",$)};const te=Object.freeze(Object.defineProperty({__proto__:null,default:$},Symbol.toStringTag,{value:"Module"}));/*! Element Plus Icons Vue v2.3.1 */var le=e.defineComponent({name:"ArrowLeftBold",__name:"arrow-left-bold",setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0z"})]))}}),oe=le,ne=e.defineComponent({name:"ArrowRightBold",__name:"arrow-right-bold",setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0z"})]))}}),ae=ne;const re={key:0,class:"v-page__edit",style:{background:"#fff"}},se={class:"v-page__body-left"},P={__name:"index",props:{edit:{type:Boolean,default:!0},leftWidth:{type:String,default:"240px"},modelCollapse:{type:Boolean,default:!1}},emits:["update:modelCollapse"],setup(t,{emit:o}){const n=t,s=o,{modelCollapse:l}=e.toRefs(n),a=e.ref(l.value);e.watch(l,c=>{a.value=c}),e.watch(a,c=>{s("update:modelCollapse",c)});const p=()=>{a.value=!a.value};return(c,i)=>{const r=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",{ref:"pageRef",class:e.normalizeClass(["v-page",{"is--full":!t.edit,"is--edit":t.edit}]),style:e.normalizeStyle({"--left-width":t.leftWidth})},[t.edit?(e.openBlock(),e.createElementBlock("div",re,[e.renderSlot(c.$slots,"default")])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",{class:"v-page__body",style:e.normalizeStyle({paddingLeft:a.value?0:t.leftWidth})},[e.withDirectives(e.createElementVNode("div",se,[e.renderSlot(c.$slots,"left")],512),[[e.vShow,!a.value]]),e.createElementVNode("div",{class:"v-page__body-main",style:e.normalizeStyle({marginLeft:a.value?0:"8px"})},[e.renderSlot(c.$slots,"default")],4)],4),e.createElementVNode("div",{class:"v-page__body-collapse",style:e.normalizeStyle({left:a.value?"0px":t.leftWidth}),onClick:p},[e.createVNode(r,{icon:a.value?e.unref(ae):e.unref(oe),type:"primary",size:"small"},null,8,["icon"])],4)],64))],6)}}};P.install=t=>{t.component("VPage",P)};const ie=Object.freeze(Object.defineProperty({__proto__:null,default:P},Symbol.toStringTag,{value:"Module"})),T={__name:"index",props:{modelValue:[String,Number,Array],options:{type:Array,default:()=>[]},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},select:{type:Boolean,default:!1},checkAll:{type:Boolean,default:!1},placeholder:{type:String,default:"请选择"}},emits:["update:modelValue"],setup(t,{emit:o}){const n=t,s=o,l=e.computed(()=>n.options.map(i=>({label:i[n.labelKey],value:i[n.valueKey]}))),a=e.computed({get:()=>n.modelValue,set:i=>s("update:modelValue",i)}),p=e.computed({get:()=>{const i=Array.isArray(a.value)?a.value:[],r=l.value.map(m=>m.value);return r.length&&r.every(m=>i.includes(m))},set:i=>{i?s("update:modelValue",l.value.map(r=>r.value)):s("update:modelValue",[])}}),c=()=>{if(!p.value)s("update:modelValue",[]);else{const i=l.value.map(r=>r.value);s("update:modelValue",i)}};return(i,r)=>{const m=e.resolveComponent("el-checkbox"),h=e.resolveComponent("el-option");return e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.select?"el-select-v2":"el-select"),e.mergeProps({modelValue:a.value,"onUpdate:modelValue":r[1]||(r[1]=_=>a.value=_),placeholder:t.placeholder},i.$attrs,{options:t.select?l.value:void 0}),e.createSlots({default:e.withCtx(()=>[t.select?e.createCommentVNode("",!0):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(l.value,_=>(e.openBlock(),e.createBlock(h,{key:_.value,label:_.label,value:_.value},null,8,["label","value"]))),128))]),_:2},[t.checkAll&&l.value.length?{name:"header",fn:e.withCtx(()=>[e.createVNode(m,{modelValue:p.value,"onUpdate:modelValue":r[0]||(r[0]=_=>p.value=_),onChange:c},{default:e.withCtx(()=>r[2]||(r[2]=[e.createTextVNode(" 全选 ")])),_:1,__:[2]},8,["modelValue"])]),key:"0"}:void 0]),1040,["modelValue","placeholder","options"])}}};T.install=t=>{t.component("VSelect",T)};const ce=Object.freeze(Object.defineProperty({__proto__:null,default:T},Symbol.toStringTag,{value:"Module"})),de={__name:"Pagination",props:{total:{required:!0,type:Number},pageNum:{type:Number,default:1},pageSize:{type:Number,default:20},pageSizes:{type:Array,default(){return[20,50,100,200,500]}},pagerCount:{type:Number,default:document.body.clientWidth<992?5:7},layouts:{type:Array,default:["PrevJump","PrevPage","Jump","PageCount","NextPage","NextJump","Sizes","Total"]},background:{type:Boolean,default:!1}},emits:["update:pageNum","update:pageSize","change"],setup(t,{emit:o}){const n=t,s=o,l=e.computed({get(){return n.pageNum},set(c){s("update:pageNum",c)}}),a=e.computed({get(){return n.pageSize},set(c){s("update:pageSize",c)}});function p({type:c,currentPage:i,pageSize:r,$event:m}){s("change",{type:c,pageNum:i,pageSize:r,$event:m})}return(c,i)=>(e.openBlock(),e.createBlock(e.unref(G.VxePager),{background:t.background,"current-page":l.value,"onUpdate:currentPage":i[0]||(i[0]=r=>l.value=r),"page-size":a.value,"onUpdate:pageSize":i[1]||(i[1]=r=>a.value=r),layouts:t.layouts,"page-sizes":t.pageSizes,"pager-count":t.pagerCount,total:t.total,onPageChange:p},null,8,["background","current-page","page-size","layouts","page-sizes","pager-count","total"]))}},pe=E(de,[["__scopeId","data-v-242732de"]]),me={key:0,class:"vx-table__form"},fe={class:"vx-table__form-content"},ue={class:"vx-table__form-handle"},ge={class:"v-pagination-container"},_e={key:0,class:"v-text-title"},be={style:{color:"var(--base-text-color)"}},j=e.defineComponent({__name:"index",props:{pageHidden:{}},emits:["query","pageChange","checkbox-change","checkbox-all"],setup(t,{emit:o}){const n=e.ref(null),s=e.ref(null),l=e.ref(),a=e.ref(0),p=e.ref(0),c=e.ref(400),i=e.reactive({}),r=e.ref(0),m=Object.assign({},e.useAttrs(),{toolbarConfig:{slots:{buttons:"toolbar_buttons"}}}),h=Object.keys(e.useSlots()),_=o;function k(){_("query")}function v(){}const{pageSize:u,pageNum:g}=m.pagerConfig||{},y=e.reactive({pageSize:u||20,pageNum:g||1,total:0}),M=({type:d,pageNum:f,pageSize:S})=>{var C;d==="current"&&(isChange.value=!0),y.pageNum=d==="size"?1:f,y.pageSize=S,(C=l==null?void 0:l.value)==null||C.commitProxy("query")};function x({records:d}){r.value=d.length,_("checkbox-change",d)}function Se({records:d}){r.value=d.length,_("checkbox-all",d)}function Ne(d){a.value=d.offsetHeight}function Be(d){p.value=d.offsetHeight,q()}function we(){e.nextTick(()=>{q()})}function q(){const d=n.value,f=s.value;if(!d||!f)return;const S=d.getBoundingClientRect(),C=f.getBoundingClientRect(),A=S.height-(C.top-S.top);c.value=A}function ze(){e.nextTick(()=>{q()})}return(d,f)=>{const S=e.resolveComponent("vxe-grid"),C=e.resolveDirective("dom-resize"),A=e.resolveDirective("dom-load");return e.withDirectives((e.openBlock(),e.createElementBlock("div",{ref_key:"tableRef",ref:n,class:"vx-table"},[e.createElementVNode("div",{class:"vx-table__header",style:e.normalizeStyle({height:`${a.value?p.value-a.value+"px":"auto"}`})},[e.withDirectives((e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({transform:`translateY(${-a.value+"px"})`})},[e.unref(h).includes("form")?(e.openBlock(),e.createElementBlock("div",me,[e.createElementVNode("div",fe,[e.renderSlot(d.$slots,"form",e.normalizeProps(e.guardReactiveProps({form:i}))),e.createElementVNode("div",ue,[e.renderSlot(d.$slots,"form_handle",{},()=>[e.createVNode(e.unref(N.ElButton),{type:"primary",onClick:k},{default:e.withCtx(()=>f[2]||(f[2]=[e.createTextVNode("查询")])),_:1,__:[2]}),e.createVNode(e.unref(N.ElButton),{onClick:v},{default:e.withCtx(()=>f[3]||(f[3]=[e.createTextVNode("重置")])),_:1,__:[3]})])])])])):e.createCommentVNode("",!0)],4)),[[C,Ne]]),f[4]||(f[4]=e.createElementVNode("div",{class:"vx-table__border"},null,-1))],4),e.withDirectives((e.openBlock(),e.createElementBlock("div",{ref_key:"contentRef",ref:s,class:"vx-table__content"},[e.createVNode(S,e.mergeProps({ref_key:"gridRef",ref:l},e.unref(m),{height:c.value,onResizableChange:ze,onCheckboxChange:x,onCheckboxAll:Se}),e.createSlots({_:2},[e.renderList(e.unref(h).filter(V=>!["form"].includes(V)),V=>({name:V,fn:e.withCtx(Ee=>[e.renderSlot(d.$slots,V,e.normalizeProps(e.guardReactiveProps(Ee)))])})),d.pageHidden?void 0:{name:"pager",fn:e.withCtx(()=>[e.createElementVNode("div",ge,[e.createElementVNode("div",null,[r.value?(e.openBlock(),e.createElementBlock("span",_e,[f[5]||(f[5]=e.createTextVNode(" 已选中 ")),e.createElementVNode("span",be,e.toDisplayString(r.value),1),f[6]||(f[6]=e.createTextVNode(" 条 "))])):e.createCommentVNode("",!0)]),d.pageHidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(pe,e.mergeProps({key:0},e.unref(m).pagerConfig,{pageSize:y.pageSize,"onUpdate:pageSize":f[0]||(f[0]=V=>y.pageSize=V),pageNum:y.pageNum,"onUpdate:pageNum":f[1]||(f[1]=V=>y.pageNum=V),total:y.total,onChange:M}),null,16,["pageSize","pageNum","total"]))])]),key:"0"}]),1040,["height"])])),[[A,we]])])),[[C,Be]])}}});j.install=t=>{t.component("VTable",j)};const he=Object.freeze(Object.defineProperty({__proto__:null,default:j},Symbol.toStringTag,{value:"Module"})),ye={};function xe(t,o){return e.openBlock(),e.createElementBlock("div",null,"1111")}const O=E(ye,[["render",xe]]);O.install=t=>{t.component("VTablePro",O)};const R=Object.assign({"./BatchInput/index.ts":F,"./Button/index.ts":J,"./Dialog/index.ts":X,"./Group/index.ts":te,"./Page/index.ts":ie,"./Select/index.ts":ce,"./Table/index.ts":he,"./TablePro/index.ts":Object.freeze(Object.defineProperty({__proto__:null,default:O},Symbol.toStringTag,{value:"Module"}))});function D(t){for(const o in R){const n=R[o].default,s=o.split("/")[1],l=s.charAt(0).toUpperCase()+s.slice(1);t.component(`V${l}`,n)}}const Ve=Object.freeze(Object.defineProperty({__proto__:null,default:{mounted(t,o){const n=o.value,s=t.getBoundingClientRect();n&&n(s,t)}}},Symbol.toStringTag,{value:"Module"})),H=new WeakMap,U=new ResizeObserver(t=>{for(const o of t){const n=H.get(o.target);n&&n(o.contentRect,o.target)}}),ke=Object.assign({"./dom-load/index.ts":Ve,"./dom-resize/index.ts":Object.freeze(Object.defineProperty({__proto__:null,default:{mounted(t,o){H.set(t,o.value),U.observe(t)},unmounted(t){U.unobserve(t)}}},Symbol.toStringTag,{value:"Module"}))});function L(t){for(const[o,n]of Object.entries(ke)){const s=o.replace("./","").replace("/index.ts","");if(s){const l=n.default;t.directive(s,l)}}}const W=(t,o)=>{L(t),D(t)},Ce={install:W};b.default=Ce,b.install=W,b.registerComponents=D,b.registerDirectives=L,Object.defineProperties(b,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xbd-vui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/xbd-vui.umd.js",
|
|
6
6
|
"module": "dist/xbd-vui.es.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"element-plus": "^2.9.7",
|
|
22
22
|
"ssh2": "^1.16.0",
|
|
23
23
|
"vue": "^3.5.13",
|
|
24
|
-
"vxe-table": "
|
|
24
|
+
"vxe-table": "4.6.21"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/node": "^22.14.0",
|