xbd-vui 0.0.3 → 0.0.5
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/README.en.md +12 -2
- package/README.md +15 -3
- package/dist/xbd-vui.css +1 -1
- package/dist/xbd-vui.es.js +349 -142
- package/dist/xbd-vui.umd.js +6 -6
- package/package.json +1 -1
package/README.en.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# xbd-vui
|
|
2
2
|
|
|
3
3
|
#### Description
|
|
4
|
-
|
|
4
|
+
{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
|
|
5
5
|
|
|
6
6
|
#### Software Architecture
|
|
7
7
|
Software architecture description
|
|
@@ -24,3 +24,13 @@ Software architecture description
|
|
|
24
24
|
2. Create Feat_xxx branch
|
|
25
25
|
3. Commit your code
|
|
26
26
|
4. Create Pull Request
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
#### Gitee Feature
|
|
30
|
+
|
|
31
|
+
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
|
32
|
+
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
|
33
|
+
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
|
34
|
+
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
|
35
|
+
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
|
36
|
+
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
package/README.md
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
#
|
|
1
|
+
# xbd-vui
|
|
2
2
|
|
|
3
3
|
#### 介绍
|
|
4
|
-
|
|
4
|
+
{**以下是 Gitee 平台说明,您可以替换此简介**
|
|
5
|
+
Gitee 是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台
|
|
6
|
+
无论是个人、团队、或是企业,都能够用 Gitee 实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
|
|
5
7
|
|
|
6
8
|
#### 软件架构
|
|
7
9
|
软件架构说明
|
|
@@ -24,4 +26,14 @@ ui仓库
|
|
|
24
26
|
1. Fork 本仓库
|
|
25
27
|
2. 新建 Feat_xxx 分支
|
|
26
28
|
3. 提交代码
|
|
27
|
-
4. 新建 Pull Request
|
|
29
|
+
4. 新建 Pull Request
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
#### 特技
|
|
33
|
+
|
|
34
|
+
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
|
35
|
+
2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)
|
|
36
|
+
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目
|
|
37
|
+
4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
|
|
38
|
+
5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
|
39
|
+
6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
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}.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}
|
|
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}
|
package/dist/xbd-vui.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { resolveComponent as
|
|
2
|
-
import { ElButton as
|
|
3
|
-
const
|
|
1
|
+
import { resolveComponent as h, createElementBlock as g, openBlock as d, createVNode as b, createElementVNode as r, withCtx as f, createTextVNode as V, toDisplayString as j, ref as $, computed as k, createBlock as S, mergeProps as B, defineComponent as M, unref as O, renderSlot as x, createCommentVNode as Z, toRefs as F, watch as K, normalizeStyle as z, normalizeClass as J, Fragment as E, withDirectives as Q, vShow as X, resolveDynamicComponent as Y, createSlots as ee, renderList as le } from "vue";
|
|
2
|
+
import { ElButton as te } from "element-plus";
|
|
3
|
+
const oe = { class: "v-popover-handle" }, ae = {
|
|
4
4
|
__name: "Handle",
|
|
5
5
|
props: {
|
|
6
6
|
value: { type: String, default: "" },
|
|
@@ -10,45 +10,45 @@ const I = { class: "v-popover-handle" }, R = {
|
|
|
10
10
|
emits: ["close", "submit", "clear"],
|
|
11
11
|
setup(e, { emit: o }) {
|
|
12
12
|
const a = o;
|
|
13
|
-
return (
|
|
14
|
-
const
|
|
15
|
-
return
|
|
16
|
-
|
|
13
|
+
return (u, l) => {
|
|
14
|
+
const t = h("el-button");
|
|
15
|
+
return d(), g("div", oe, [
|
|
16
|
+
b(t, {
|
|
17
17
|
size: "small",
|
|
18
|
-
onClick:
|
|
18
|
+
onClick: l[0] || (l[0] = (c) => a("clear"))
|
|
19
19
|
}, {
|
|
20
|
-
default:
|
|
21
|
-
|
|
20
|
+
default: f(() => l[3] || (l[3] = [
|
|
21
|
+
V("清空")
|
|
22
22
|
])),
|
|
23
23
|
_: 1,
|
|
24
24
|
__: [3]
|
|
25
25
|
}),
|
|
26
|
-
|
|
26
|
+
r("div", null, "共 " + j(e.value ? e.value.split(`
|
|
27
27
|
`).length : 0) + " 个", 1),
|
|
28
|
-
|
|
28
|
+
b(t, {
|
|
29
29
|
size: "small",
|
|
30
30
|
class: "v-popover-handle-right",
|
|
31
|
-
onClick:
|
|
31
|
+
onClick: l[1] || (l[1] = (c) => a("close"))
|
|
32
32
|
}, {
|
|
33
|
-
default:
|
|
34
|
-
|
|
33
|
+
default: f(() => [
|
|
34
|
+
V(j(e.closeText), 1)
|
|
35
35
|
]),
|
|
36
36
|
_: 1
|
|
37
37
|
}),
|
|
38
|
-
|
|
38
|
+
b(t, {
|
|
39
39
|
size: "small",
|
|
40
40
|
type: "primary",
|
|
41
|
-
onClick:
|
|
41
|
+
onClick: l[2] || (l[2] = (c) => a("submit"))
|
|
42
42
|
}, {
|
|
43
|
-
default:
|
|
44
|
-
|
|
43
|
+
default: f(() => [
|
|
44
|
+
V(j(e.submitText), 1)
|
|
45
45
|
]),
|
|
46
46
|
_: 1
|
|
47
47
|
})
|
|
48
48
|
]);
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
},
|
|
51
|
+
}, ne = { class: "v-batch-input-wrapper" }, T = {
|
|
52
52
|
__name: "index",
|
|
53
53
|
props: {
|
|
54
54
|
modelValue: { type: String, default: () => "" },
|
|
@@ -56,61 +56,61 @@ const I = { class: "v-popover-handle" }, R = {
|
|
|
56
56
|
},
|
|
57
57
|
emits: ["update:modelValue", "search"],
|
|
58
58
|
setup(e, { expose: o, emit: a }) {
|
|
59
|
-
const
|
|
59
|
+
const u = e, l = a, t = $(!1), c = $(!1), i = $(), n = k({
|
|
60
60
|
get() {
|
|
61
|
-
var
|
|
62
|
-
return ((
|
|
61
|
+
var p;
|
|
62
|
+
return ((p = u.modelValue) == null ? void 0 : p.replaceAll(",", `
|
|
63
63
|
`)) || "";
|
|
64
64
|
},
|
|
65
|
-
set(
|
|
66
|
-
|
|
65
|
+
set(p) {
|
|
66
|
+
l("update:modelValue", (p == null ? void 0 : p.split(`
|
|
67
67
|
`).join(",")) || "");
|
|
68
68
|
}
|
|
69
|
-
}),
|
|
69
|
+
}), s = k(
|
|
70
70
|
() => {
|
|
71
|
-
var
|
|
72
|
-
return ((
|
|
71
|
+
var p;
|
|
72
|
+
return ((p = n.value) == null ? void 0 : p.split(`
|
|
73
73
|
`).filter(Boolean).join(",")) || "";
|
|
74
74
|
}
|
|
75
|
-
),
|
|
76
|
-
|
|
77
|
-
},
|
|
78
|
-
|
|
79
|
-
},
|
|
80
|
-
var
|
|
81
|
-
|
|
75
|
+
), _ = async () => {
|
|
76
|
+
t.value = !0, await 1, i == null || i.value.focus();
|
|
77
|
+
}, y = () => {
|
|
78
|
+
t.value = !1;
|
|
79
|
+
}, m = () => {
|
|
80
|
+
var p;
|
|
81
|
+
l(
|
|
82
82
|
"update:modelValue",
|
|
83
|
-
((
|
|
84
|
-
`).filter(Boolean).slice(0,
|
|
83
|
+
((p = n.value) == null ? void 0 : p.split(`
|
|
84
|
+
`).filter(Boolean).slice(0, u.rows).join(",")) || ""
|
|
85
85
|
);
|
|
86
|
-
},
|
|
87
|
-
|
|
88
|
-
},
|
|
89
|
-
|
|
86
|
+
}, C = () => {
|
|
87
|
+
n.value = "";
|
|
88
|
+
}, R = () => {
|
|
89
|
+
y(), l("search");
|
|
90
90
|
};
|
|
91
|
-
return o({ clear:
|
|
92
|
-
const
|
|
93
|
-
return
|
|
94
|
-
visible:
|
|
95
|
-
"onUpdate:visible":
|
|
96
|
-
disabled:
|
|
91
|
+
return o({ clear: C }), (p, v) => {
|
|
92
|
+
const G = h("el-input"), I = h("el-popover");
|
|
93
|
+
return d(), S(I, {
|
|
94
|
+
visible: t.value,
|
|
95
|
+
"onUpdate:visible": v[4] || (v[4] = (w) => t.value = w),
|
|
96
|
+
disabled: c.value,
|
|
97
97
|
trigger: "click",
|
|
98
98
|
placement: "bottom-end",
|
|
99
99
|
width: "405px",
|
|
100
100
|
offset: 2,
|
|
101
101
|
"show-arrow": !1,
|
|
102
|
-
onShow:
|
|
103
|
-
onHide:
|
|
102
|
+
onShow: _,
|
|
103
|
+
onHide: y
|
|
104
104
|
}, {
|
|
105
|
-
reference:
|
|
106
|
-
|
|
107
|
-
modelValue:
|
|
108
|
-
"onUpdate:modelValue":
|
|
109
|
-
placeholder:
|
|
110
|
-
class: ["v-batch-input",
|
|
111
|
-
},
|
|
112
|
-
suffix:
|
|
113
|
-
|
|
105
|
+
reference: f(() => [
|
|
106
|
+
b(G, B({
|
|
107
|
+
modelValue: s.value,
|
|
108
|
+
"onUpdate:modelValue": v[2] || (v[2] = (w) => s.value = w),
|
|
109
|
+
placeholder: p.$attrs.placeholder || "请输入",
|
|
110
|
+
class: ["v-batch-input", s.value && !t.value && "is--value"]
|
|
111
|
+
}, p.$attrs), {
|
|
112
|
+
suffix: f(() => [
|
|
113
|
+
v[6] || (v[6] = r("svg", {
|
|
114
114
|
class: "v-batch-input-icon",
|
|
115
115
|
width: "14px",
|
|
116
116
|
height: "14.00px",
|
|
@@ -118,36 +118,36 @@ const I = { class: "v-popover-handle" }, R = {
|
|
|
118
118
|
version: "1.1",
|
|
119
119
|
xmlns: "http://www.w3.org/2000/svg"
|
|
120
120
|
}, [
|
|
121
|
-
|
|
121
|
+
r("path", {
|
|
122
122
|
fill: "#909399",
|
|
123
123
|
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"
|
|
124
124
|
}),
|
|
125
|
-
|
|
125
|
+
r("path", {
|
|
126
126
|
fill: "#909399",
|
|
127
127
|
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"
|
|
128
128
|
}),
|
|
129
|
-
|
|
129
|
+
r("path", {
|
|
130
130
|
fill: "#909399",
|
|
131
131
|
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"
|
|
132
132
|
}),
|
|
133
|
-
|
|
133
|
+
r("path", {
|
|
134
134
|
fill: "#909399",
|
|
135
135
|
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"
|
|
136
136
|
}),
|
|
137
|
-
|
|
137
|
+
r("path", {
|
|
138
138
|
fill: "#909399",
|
|
139
139
|
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"
|
|
140
140
|
}),
|
|
141
|
-
|
|
141
|
+
r("path", {
|
|
142
142
|
fill: "#909399",
|
|
143
143
|
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
144
|
})
|
|
145
145
|
], -1)),
|
|
146
|
-
(
|
|
146
|
+
(d(), g("svg", {
|
|
147
147
|
class: "v-batch-input-clear",
|
|
148
|
-
onMouseenter:
|
|
149
|
-
onMouseleave:
|
|
150
|
-
onClick:
|
|
148
|
+
onMouseenter: v[0] || (v[0] = (w) => c.value = !0),
|
|
149
|
+
onMouseleave: v[1] || (v[1] = (w) => c.value = !1),
|
|
150
|
+
onClick: C,
|
|
151
151
|
t: "1731313372920",
|
|
152
152
|
viewBox: "0 0 1024 1024",
|
|
153
153
|
version: "1.1",
|
|
@@ -155,18 +155,18 @@ const I = { class: "v-popover-handle" }, R = {
|
|
|
155
155
|
"p-id": "3649",
|
|
156
156
|
width: "19",
|
|
157
157
|
height: "19"
|
|
158
|
-
},
|
|
159
|
-
|
|
158
|
+
}, v[5] || (v[5] = [
|
|
159
|
+
r("path", {
|
|
160
160
|
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
161
|
"p-id": "3650",
|
|
162
162
|
fill: "currentColor"
|
|
163
163
|
}, null, -1),
|
|
164
|
-
|
|
164
|
+
r("path", {
|
|
165
165
|
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",
|
|
166
166
|
"p-id": "3651",
|
|
167
167
|
fill: "currentColor"
|
|
168
168
|
}, null, -1),
|
|
169
|
-
|
|
169
|
+
r("path", {
|
|
170
170
|
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",
|
|
171
171
|
"p-id": "3652",
|
|
172
172
|
fill: "currentColor"
|
|
@@ -176,24 +176,24 @@ const I = { class: "v-popover-handle" }, R = {
|
|
|
176
176
|
_: 1
|
|
177
177
|
}, 16, ["modelValue", "placeholder", "class"])
|
|
178
178
|
]),
|
|
179
|
-
default:
|
|
180
|
-
|
|
181
|
-
|
|
179
|
+
default: f(() => [
|
|
180
|
+
r("div", ne, [
|
|
181
|
+
b(G, {
|
|
182
182
|
ref_key: "inputRef",
|
|
183
|
-
ref:
|
|
184
|
-
modelValue:
|
|
185
|
-
"onUpdate:modelValue":
|
|
183
|
+
ref: i,
|
|
184
|
+
modelValue: n.value,
|
|
185
|
+
"onUpdate:modelValue": v[3] || (v[3] = (w) => n.value = w),
|
|
186
186
|
rows: 12,
|
|
187
187
|
placeholder: `一行一个(最多支持${e.rows}行)`,
|
|
188
188
|
type: "textarea",
|
|
189
189
|
style: { width: "100%" },
|
|
190
|
-
onBlur:
|
|
190
|
+
onBlur: m
|
|
191
191
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
192
|
-
|
|
193
|
-
value:
|
|
194
|
-
onClear:
|
|
195
|
-
onClose:
|
|
196
|
-
onSubmit:
|
|
192
|
+
b(ae, {
|
|
193
|
+
value: n.value,
|
|
194
|
+
onClear: C,
|
|
195
|
+
onClose: y,
|
|
196
|
+
onSubmit: R
|
|
197
197
|
}, null, 8, ["value"])
|
|
198
198
|
])
|
|
199
199
|
]),
|
|
@@ -202,18 +202,18 @@ const I = { class: "v-popover-handle" }, R = {
|
|
|
202
202
|
};
|
|
203
203
|
}
|
|
204
204
|
};
|
|
205
|
-
|
|
206
|
-
e.component("VBatchInput",
|
|
205
|
+
T.install = (e) => {
|
|
206
|
+
e.component("VBatchInput", T);
|
|
207
207
|
};
|
|
208
|
-
const
|
|
208
|
+
const se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
209
209
|
__proto__: null,
|
|
210
|
-
default:
|
|
211
|
-
}, Symbol.toStringTag, { value: "Module" })), q = /* @__PURE__ */
|
|
210
|
+
default: T
|
|
211
|
+
}, Symbol.toStringTag, { value: "Module" })), q = /* @__PURE__ */ M({
|
|
212
212
|
__name: "index",
|
|
213
213
|
setup(e) {
|
|
214
|
-
return (o, a) => (
|
|
215
|
-
default:
|
|
216
|
-
|
|
214
|
+
return (o, a) => (d(), S(O(te), B(o.$attrs, { size: "small" }), {
|
|
215
|
+
default: f(() => [
|
|
216
|
+
x(o.$slots, "default")
|
|
217
217
|
]),
|
|
218
218
|
_: 3
|
|
219
219
|
}, 16));
|
|
@@ -222,10 +222,10 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
222
222
|
q.install = (e) => {
|
|
223
223
|
e.component("VButton", q);
|
|
224
224
|
};
|
|
225
|
-
const
|
|
225
|
+
const ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
226
226
|
__proto__: null,
|
|
227
227
|
default: q
|
|
228
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
228
|
+
}, Symbol.toStringTag, { value: "Module" })), A = /* @__PURE__ */ M({
|
|
229
229
|
__name: "index",
|
|
230
230
|
props: {
|
|
231
231
|
title: { type: String, default: "提示" },
|
|
@@ -234,56 +234,56 @@ const K = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
234
234
|
},
|
|
235
235
|
emits: ["close", "save", "open"],
|
|
236
236
|
setup(e, { expose: o, emit: a }) {
|
|
237
|
-
const
|
|
238
|
-
|
|
239
|
-
},
|
|
240
|
-
|
|
241
|
-
},
|
|
242
|
-
|
|
243
|
-
},
|
|
244
|
-
|
|
237
|
+
const u = a, l = $(!1), t = () => {
|
|
238
|
+
l.value = !0;
|
|
239
|
+
}, c = () => {
|
|
240
|
+
l.value = !1, u("close");
|
|
241
|
+
}, i = () => {
|
|
242
|
+
c();
|
|
243
|
+
}, n = () => {
|
|
244
|
+
u("save");
|
|
245
245
|
};
|
|
246
|
-
return o({ open:
|
|
247
|
-
const
|
|
248
|
-
return
|
|
249
|
-
modelValue:
|
|
250
|
-
"onUpdate:modelValue":
|
|
246
|
+
return o({ open: t, close: c }), (s, _) => {
|
|
247
|
+
const y = h("el-button"), m = h("el-dialog");
|
|
248
|
+
return d(), S(m, B({
|
|
249
|
+
modelValue: l.value,
|
|
250
|
+
"onUpdate:modelValue": _[0] || (_[0] = (C) => l.value = C),
|
|
251
251
|
width: "30%",
|
|
252
252
|
title: e.title,
|
|
253
253
|
"align-center": ""
|
|
254
|
-
},
|
|
254
|
+
}, s.$attrs, {
|
|
255
255
|
draggable: "",
|
|
256
256
|
"close-on-click-modal": !1,
|
|
257
|
-
onClose:
|
|
257
|
+
onClose: i,
|
|
258
258
|
class: "v-dialog"
|
|
259
259
|
}), {
|
|
260
|
-
footer:
|
|
261
|
-
e.disabled ?
|
|
260
|
+
footer: f(() => [
|
|
261
|
+
e.disabled ? Z("", !0) : (d(), S(y, {
|
|
262
262
|
key: 0,
|
|
263
263
|
type: "primary",
|
|
264
264
|
loading: e.loading,
|
|
265
|
-
onClick:
|
|
265
|
+
onClick: n
|
|
266
266
|
}, {
|
|
267
|
-
default:
|
|
268
|
-
|
|
267
|
+
default: f(() => _[1] || (_[1] = [
|
|
268
|
+
V(" 确定 ")
|
|
269
269
|
])),
|
|
270
270
|
_: 1,
|
|
271
271
|
__: [1]
|
|
272
272
|
}, 8, ["loading"])),
|
|
273
|
-
|
|
273
|
+
b(y, {
|
|
274
274
|
disabled: e.loading,
|
|
275
|
-
onClick:
|
|
275
|
+
onClick: i
|
|
276
276
|
}, {
|
|
277
|
-
default:
|
|
278
|
-
|
|
277
|
+
default: f(() => _[2] || (_[2] = [
|
|
278
|
+
V(" 取消 ")
|
|
279
279
|
])),
|
|
280
280
|
_: 1,
|
|
281
281
|
__: [2]
|
|
282
282
|
}, 8, ["disabled"])
|
|
283
283
|
]),
|
|
284
|
-
default:
|
|
285
|
-
|
|
286
|
-
|
|
284
|
+
default: f(() => [
|
|
285
|
+
r("div", null, [
|
|
286
|
+
x(s.$slots, "content")
|
|
287
287
|
])
|
|
288
288
|
]),
|
|
289
289
|
_: 3
|
|
@@ -291,38 +291,245 @@ const K = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
291
291
|
};
|
|
292
292
|
}
|
|
293
293
|
});
|
|
294
|
-
|
|
295
|
-
e.component("VGroup",
|
|
294
|
+
A.install = (e) => {
|
|
295
|
+
e.component("VGroup", A);
|
|
296
296
|
};
|
|
297
|
-
const
|
|
297
|
+
const re = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
298
298
|
__proto__: null,
|
|
299
|
-
default:
|
|
300
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
299
|
+
default: A
|
|
300
|
+
}, Symbol.toStringTag, { value: "Module" })), D = (e, o) => {
|
|
301
301
|
const a = e.__vccOpts || e;
|
|
302
|
-
for (const [
|
|
303
|
-
a[
|
|
302
|
+
for (const [u, l] of o)
|
|
303
|
+
a[u] = l;
|
|
304
304
|
return a;
|
|
305
|
-
},
|
|
306
|
-
function
|
|
307
|
-
return
|
|
308
|
-
|
|
305
|
+
}, ie = {}, de = { class: "v-group" };
|
|
306
|
+
function ce(e, o) {
|
|
307
|
+
return d(), g("div", de, [
|
|
308
|
+
x(e.$slots, "default")
|
|
309
309
|
]);
|
|
310
310
|
}
|
|
311
|
-
const
|
|
312
|
-
|
|
313
|
-
e.component("VGroup",
|
|
311
|
+
const P = /* @__PURE__ */ D(ie, [["render", ce]]);
|
|
312
|
+
P.install = (e) => {
|
|
313
|
+
e.component("VGroup", P);
|
|
314
|
+
};
|
|
315
|
+
const pe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
316
|
+
__proto__: null,
|
|
317
|
+
default: P
|
|
318
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
319
|
+
/*! Element Plus Icons Vue v2.3.1 */
|
|
320
|
+
var _e = /* @__PURE__ */ M({
|
|
321
|
+
name: "ArrowLeftBold",
|
|
322
|
+
__name: "arrow-left-bold",
|
|
323
|
+
setup(e) {
|
|
324
|
+
return (o, a) => (d(), g("svg", {
|
|
325
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
326
|
+
viewBox: "0 0 1024 1024"
|
|
327
|
+
}, [
|
|
328
|
+
r("path", {
|
|
329
|
+
fill: "currentColor",
|
|
330
|
+
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"
|
|
331
|
+
})
|
|
332
|
+
]));
|
|
333
|
+
}
|
|
334
|
+
}), ve = _e, fe = /* @__PURE__ */ M({
|
|
335
|
+
name: "ArrowRightBold",
|
|
336
|
+
__name: "arrow-right-bold",
|
|
337
|
+
setup(e) {
|
|
338
|
+
return (o, a) => (d(), g("svg", {
|
|
339
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
340
|
+
viewBox: "0 0 1024 1024"
|
|
341
|
+
}, [
|
|
342
|
+
r("path", {
|
|
343
|
+
fill: "currentColor",
|
|
344
|
+
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"
|
|
345
|
+
})
|
|
346
|
+
]));
|
|
347
|
+
}
|
|
348
|
+
}), me = fe;
|
|
349
|
+
const ge = {
|
|
350
|
+
key: 0,
|
|
351
|
+
class: "v-page__edit",
|
|
352
|
+
style: { background: "#fff" }
|
|
353
|
+
}, be = { class: "v-page__body-left" }, L = {
|
|
354
|
+
__name: "index",
|
|
355
|
+
props: {
|
|
356
|
+
edit: { type: Boolean, default: !0 },
|
|
357
|
+
leftWidth: { type: String, default: "240px" },
|
|
358
|
+
modelCollapse: { type: Boolean, default: !1 }
|
|
359
|
+
// 可v-model绑定折叠状态
|
|
360
|
+
},
|
|
361
|
+
emits: ["update:modelCollapse"],
|
|
362
|
+
setup(e, { emit: o }) {
|
|
363
|
+
const a = e, u = o, { modelCollapse: l } = F(a), t = $(l.value);
|
|
364
|
+
K(l, (i) => {
|
|
365
|
+
t.value = i;
|
|
366
|
+
}), K(t, (i) => {
|
|
367
|
+
u("update:modelCollapse", i);
|
|
368
|
+
});
|
|
369
|
+
const c = () => {
|
|
370
|
+
t.value = !t.value;
|
|
371
|
+
};
|
|
372
|
+
return (i, n) => {
|
|
373
|
+
const s = h("el-button");
|
|
374
|
+
return d(), g("div", {
|
|
375
|
+
ref: "pageRef",
|
|
376
|
+
class: J(["v-page", { "is--full": !e.edit, "is--edit": e.edit }]),
|
|
377
|
+
style: z({ "--left-width": e.leftWidth })
|
|
378
|
+
}, [
|
|
379
|
+
e.edit ? (d(), g("div", ge, [
|
|
380
|
+
x(i.$slots, "default")
|
|
381
|
+
])) : (d(), g(E, { key: 1 }, [
|
|
382
|
+
r("div", {
|
|
383
|
+
class: "v-page__body",
|
|
384
|
+
style: z({ paddingLeft: t.value ? 0 : e.leftWidth })
|
|
385
|
+
}, [
|
|
386
|
+
Q(r("div", be, [
|
|
387
|
+
x(i.$slots, "left")
|
|
388
|
+
], 512), [
|
|
389
|
+
[X, !t.value]
|
|
390
|
+
]),
|
|
391
|
+
r("div", {
|
|
392
|
+
class: "v-page__body-main",
|
|
393
|
+
style: z({ marginLeft: t.value ? 0 : "8px" })
|
|
394
|
+
}, [
|
|
395
|
+
x(i.$slots, "default")
|
|
396
|
+
], 4)
|
|
397
|
+
], 4),
|
|
398
|
+
r("div", {
|
|
399
|
+
class: "v-page__body-collapse",
|
|
400
|
+
style: z({ left: t.value ? "0px" : e.leftWidth }),
|
|
401
|
+
onClick: c
|
|
402
|
+
}, [
|
|
403
|
+
b(s, {
|
|
404
|
+
icon: t.value ? O(me) : O(ve),
|
|
405
|
+
type: "primary",
|
|
406
|
+
size: "small"
|
|
407
|
+
}, null, 8, ["icon"])
|
|
408
|
+
], 4)
|
|
409
|
+
], 64))
|
|
410
|
+
], 6);
|
|
411
|
+
};
|
|
412
|
+
}
|
|
413
|
+
};
|
|
414
|
+
L.install = (e) => {
|
|
415
|
+
e.component("VPage", L);
|
|
416
|
+
};
|
|
417
|
+
const ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
418
|
+
__proto__: null,
|
|
419
|
+
default: L
|
|
420
|
+
}, Symbol.toStringTag, { value: "Module" })), N = {
|
|
421
|
+
__name: "index",
|
|
422
|
+
props: {
|
|
423
|
+
modelValue: [String, Number, Array],
|
|
424
|
+
options: { type: Array, default: () => [] },
|
|
425
|
+
labelKey: { type: String, default: "label" },
|
|
426
|
+
valueKey: { type: String, default: "value" },
|
|
427
|
+
select: { type: Boolean, default: !1 },
|
|
428
|
+
// true = el-select-v2
|
|
429
|
+
checkAll: { type: Boolean, default: !1 },
|
|
430
|
+
placeholder: { type: String, default: "请选择" }
|
|
431
|
+
},
|
|
432
|
+
emits: ["update:modelValue"],
|
|
433
|
+
setup(e, { emit: o }) {
|
|
434
|
+
const a = e, u = o, l = k(
|
|
435
|
+
() => a.options.map((n) => ({
|
|
436
|
+
label: n[a.labelKey],
|
|
437
|
+
value: n[a.valueKey]
|
|
438
|
+
}))
|
|
439
|
+
), t = k({
|
|
440
|
+
get: () => a.modelValue,
|
|
441
|
+
set: (n) => u("update:modelValue", n)
|
|
442
|
+
}), c = k({
|
|
443
|
+
get: () => {
|
|
444
|
+
const n = Array.isArray(t.value) ? t.value : [], s = l.value.map((_) => _.value);
|
|
445
|
+
return s.length && s.every((_) => n.includes(_));
|
|
446
|
+
},
|
|
447
|
+
set: (n) => {
|
|
448
|
+
n ? u("update:modelValue", l.value.map((s) => s.value)) : u("update:modelValue", []);
|
|
449
|
+
}
|
|
450
|
+
}), i = () => {
|
|
451
|
+
if (!c.value)
|
|
452
|
+
u("update:modelValue", []);
|
|
453
|
+
else {
|
|
454
|
+
const n = l.value.map((s) => s.value);
|
|
455
|
+
u("update:modelValue", n);
|
|
456
|
+
}
|
|
457
|
+
};
|
|
458
|
+
return (n, s) => {
|
|
459
|
+
const _ = h("el-checkbox"), y = h("el-option");
|
|
460
|
+
return d(), S(Y(e.select ? "el-select-v2" : "el-select"), B({
|
|
461
|
+
modelValue: t.value,
|
|
462
|
+
"onUpdate:modelValue": s[1] || (s[1] = (m) => t.value = m),
|
|
463
|
+
placeholder: e.placeholder
|
|
464
|
+
}, n.$attrs, {
|
|
465
|
+
options: e.select ? l.value : void 0
|
|
466
|
+
}), ee({
|
|
467
|
+
default: f(() => [
|
|
468
|
+
e.select ? Z("", !0) : (d(!0), g(E, { key: 0 }, le(l.value, (m) => (d(), S(y, {
|
|
469
|
+
key: m.value,
|
|
470
|
+
label: m.label,
|
|
471
|
+
value: m.value
|
|
472
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
473
|
+
]),
|
|
474
|
+
_: 2
|
|
475
|
+
}, [
|
|
476
|
+
e.checkAll && l.value.length ? {
|
|
477
|
+
name: "header",
|
|
478
|
+
fn: f(() => [
|
|
479
|
+
b(_, {
|
|
480
|
+
modelValue: c.value,
|
|
481
|
+
"onUpdate:modelValue": s[0] || (s[0] = (m) => c.value = m),
|
|
482
|
+
onChange: i
|
|
483
|
+
}, {
|
|
484
|
+
default: f(() => s[2] || (s[2] = [
|
|
485
|
+
V(" 全选 ")
|
|
486
|
+
])),
|
|
487
|
+
_: 1,
|
|
488
|
+
__: [2]
|
|
489
|
+
}, 8, ["modelValue"])
|
|
490
|
+
]),
|
|
491
|
+
key: "0"
|
|
492
|
+
} : void 0
|
|
493
|
+
]), 1040, ["modelValue", "placeholder", "options"]);
|
|
494
|
+
};
|
|
495
|
+
}
|
|
496
|
+
};
|
|
497
|
+
N.install = (e) => {
|
|
498
|
+
e.component("VSelect", N);
|
|
499
|
+
};
|
|
500
|
+
const he = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
501
|
+
__proto__: null,
|
|
502
|
+
default: N
|
|
503
|
+
}, Symbol.toStringTag, { value: "Module" })), we = {};
|
|
504
|
+
function Ve(e, o) {
|
|
505
|
+
return d(), g("div", null, "1111");
|
|
506
|
+
}
|
|
507
|
+
const U = /* @__PURE__ */ D(we, [["render", Ve]]);
|
|
508
|
+
U.install = (e) => {
|
|
509
|
+
e.component("VTable", U);
|
|
510
|
+
};
|
|
511
|
+
const xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
512
|
+
__proto__: null,
|
|
513
|
+
default: U
|
|
514
|
+
}, Symbol.toStringTag, { value: "Module" })), Se = {};
|
|
515
|
+
function Ce(e, o) {
|
|
516
|
+
return d(), g("div", null, "1111");
|
|
517
|
+
}
|
|
518
|
+
const H = /* @__PURE__ */ D(Se, [["render", Ce]]);
|
|
519
|
+
H.install = (e) => {
|
|
520
|
+
e.component("VTablePro", H);
|
|
314
521
|
};
|
|
315
|
-
const
|
|
522
|
+
const $e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
316
523
|
__proto__: null,
|
|
317
|
-
default:
|
|
318
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
524
|
+
default: H
|
|
525
|
+
}, Symbol.toStringTag, { value: "Module" })), W = /* @__PURE__ */ Object.assign({ "./BatchInput/index.ts": se, "./Button/index.ts": ue, "./Dialog/index.ts": re, "./Group/index.ts": pe, "./Page/index.ts": ye, "./Select/index.ts": he, "./Table/index.ts": xe, "./TablePro/index.ts": $e }), Be = {
|
|
319
526
|
install(e) {
|
|
320
|
-
for (const o in
|
|
321
|
-
const a =
|
|
322
|
-
e.component(`V${
|
|
527
|
+
for (const o in W) {
|
|
528
|
+
const a = W[o].default, u = o.split("/")[1], l = u.charAt(0).toUpperCase() + u.slice(1);
|
|
529
|
+
e.component(`V${l}`, a);
|
|
323
530
|
}
|
|
324
531
|
}
|
|
325
532
|
};
|
|
326
533
|
export {
|
|
327
|
-
|
|
534
|
+
Be as default
|
|
328
535
|
};
|
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(","))||""}),
|
|
6
|
-
`).filter(Boolean).slice(0,r.rows).join(","))||"")},V=()=>{c.value=""},v=()=>{_(),l("search")};return n({clear:V}),(o,a)=>{const B=e.resolveComponent("el-input"),O=e.resolveComponent("el-popover");return e.openBlock(),e.createBlock(O,{visible:i.value,"onUpdate:visible":a[4]||(a[4]=u=>i.value=u),disabled:d.value,trigger:"click",placement:"bottom-end",width:"405px",offset:2,"show-arrow":!1,onShow:p,onHide:_},{reference:e.withCtx(()=>[e.createVNode(B,e.mergeProps({modelValue:f.value,"onUpdate:modelValue":a[2]||(a[2]=u=>f.value=u),placeholder:o.$attrs.placeholder||"请输入",class:["v-batch-input",f.value&&!i.value&&"is--value"]},o.$attrs),{suffix:e.withCtx(()=>[a[6]||(a[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:a[0]||(a[0]=u=>d.value=!0),onMouseleave:a[1]||(a[1]=u=>d.value=!1),onClick:V,t:"1731313372920",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3649",width:"19",height:"19"},a[5]||(a[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",S,[e.createVNode(B,{ref_key:"inputRef",ref:m,modelValue:c.value,"onUpdate:modelValue":a[3]||(a[3]=u=>c.value=u),rows:12,placeholder:`一行一个(最多支持${t.rows}行)`,type:"textarea",style:{width:"100%"},onBlur:C},null,8,["modelValue","placeholder"]),e.createVNode(k,{value:c.value,onClear:V,onClose:_,onSubmit:v},null,8,["value"])])]),_:1},8,["visible","disabled"])}}};b.install=t=>{t.component("VBatchInput",b)};const $=Object.freeze(Object.defineProperty({__proto__:null,default:b},Symbol.toStringTag,{value:"Module"})),h=e.defineComponent({__name:"index",setup(t){return(n,s)=>(e.openBlock(),e.createBlock(e.unref(g.ElButton),e.normalizeProps(e.guardReactiveProps(n.$attrs)),{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3},16))}});h.install=t=>{t.component("VButton",h)};const q=Object.freeze(Object.defineProperty({__proto__:null,default:h},Symbol.toStringTag,{value:"Module"})),x=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:s}){const r=s,l=e.ref(!1),i=()=>{l.value=!0},d=()=>{l.value=!1,r("close")},m=()=>{d()},c=()=>{r("save")};return n({open:i,close:d}),(f,p)=>{const _=e.resolveComponent("el-button"),C=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(C,e.mergeProps({modelValue:l.value,"onUpdate:modelValue":p[0]||(p[0]=V=>l.value=V),width:"30%",title:t.title,"align-center":""},f.$attrs,{draggable:"","close-on-click-modal":!1,onClose:m,class:"v-dialog"}),{footer:e.withCtx(()=>[t.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(_,{key:0,type:"primary",loading:t.loading,onClick:c},{default:e.withCtx(()=>p[1]||(p[1]=[e.createTextVNode(" 确定 ")])),_:1,__:[1]},8,["loading"])),e.createVNode(_,{disabled:t.loading,onClick:m},{default:e.withCtx(()=>p[2]||(p[2]=[e.createTextVNode(" 取消 ")])),_:1,__:[2]},8,["disabled"])]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(f.$slots,"content")])]),_:3},16,["modelValue","title"])}}});x.install=t=>{t.component("VGroup",x)};const E=Object.freeze(Object.defineProperty({__proto__:null,default:x},Symbol.toStringTag,{value:"Module"})),z=(t,n)=>{const s=t.__vccOpts||t;for(const[r,l]of n)s[r]=l;return s},M={},T={class:"v-group"};function j(t,n){return e.openBlock(),e.createElementBlock("div",T,[e.renderSlot(t.$slots,"default")])}const w=z(M,[["render",j]]);w.install=t=>{t.component("VGroup",w)};const y=Object.assign({"./BatchInput/index.ts":$,"./Button/index.ts":q,"./Dialog/index.ts":E,"./Group/index.ts":Object.freeze(Object.defineProperty({__proto__:null,default:w},Symbol.toStringTag,{value:"Module"}))});return{install(t){for(const n in y){const s=y[n].default,r=n.split("/")[1],l=r.charAt(0).toUpperCase()+r.slice(1);t.component(`V${l}`,s)}}}});
|
|
1
|
+
(function(e,b){typeof exports=="object"&&typeof module<"u"?module.exports=b(require("vue"),require("element-plus")):typeof define=="function"&&define.amd?define(["vue","element-plus"],b):(e=typeof globalThis<"u"?globalThis:e||self,e.XBDVUI=b(e.Vue,e.ElementPlus))})(this,function(e,b){"use strict";const z={class:"v-popover-handle"},v={__name:"Handle",props:{value:{type:String,default:""},submitText:{type:String,default:"搜索"},closeText:{type:String,default:"关闭"}},emits:["close","submit","clear"],setup(t,{emit:n}){const a=n;return(d,l)=>{const o=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",z,[e.createVNode(o,{size:"small",onClick:l[0]||(l[0]=c=>a("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(o,{size:"small",class:"v-popover-handle-right",onClick:l[1]||(l[1]=c=>a("close"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.closeText),1)]),_:1}),e.createVNode(o,{size:"small",type:"primary",onClick:l[2]||(l[2]=c=>a("submit"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.submitText),1)]),_:1})])}}},T={class:"v-batch-input-wrapper"},V={__name:"index",props:{modelValue:{type:String,default:()=>""},rows:{type:[Number,String],default:()=>200}},emits:["update:modelValue","search"],setup(t,{expose:n,emit:a}){const d=t,l=a,o=e.ref(!1),c=e.ref(!1),i=e.ref(),r=e.computed({get(){var p;return((p=d.modelValue)==null?void 0:p.replaceAll(",",`
|
|
3
|
+
`))||""},set(p){l("update:modelValue",(p==null?void 0:p.split(`
|
|
4
|
+
`).join(","))||"")}}),s=e.computed(()=>{var p;return((p=r.value)==null?void 0:p.split(`
|
|
5
|
+
`).filter(Boolean).join(","))||""}),m=async()=>{o.value=!0,await 1,i==null||i.value.focus()},_=()=>{o.value=!1},f=()=>{var p;l("update:modelValue",((p=r.value)==null?void 0:p.split(`
|
|
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)}}}});
|