xbd-vui 0.0.4 → 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/README.en.md CHANGED
@@ -1,7 +1,7 @@
1
- # sw-ui
1
+ # xbd-vui
2
2
 
3
3
  #### Description
4
- ui仓库
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
- # sw-ui
1
+ # xbd-vui
2
2
 
3
3
  #### 介绍
4
- ui仓库
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}.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}
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}
@@ -1,6 +1,7 @@
1
- import { resolveComponent as V, createElementBlock as M, openBlock as _, createVNode as v, createElementVNode as s, withCtx as u, createTextVNode as y, toDisplayString as C, ref as w, computed as T, createBlock as x, mergeProps as k, defineComponent as A, unref as U, renderSlot as j, createCommentVNode as G } from "vue";
2
- import { ElButton as Z } from "element-plus";
3
- const E = { class: "v-popover-handle" }, D = {
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 E = { class: "v-popover-handle" }, D = {
8
9
  closeText: { type: String, default: "关闭" }
9
10
  },
10
11
  emits: ["close", "submit", "clear"],
11
- setup(e, { emit: o }) {
12
- const a = o;
13
- return (i, t) => {
14
- const r = V("el-button");
15
- return _(), M("div", E, [
16
- v(r, {
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: t[0] || (t[0] = (d) => a("clear"))
19
+ onClick: t[0] || (t[0] = (p) => o("clear"))
19
20
  }, {
20
- default: u(() => t[3] || (t[3] = [
21
- y("清空")
21
+ default: f(() => t[3] || (t[3] = [
22
+ k("清空")
22
23
  ])),
23
24
  _: 1,
24
25
  __: [3]
25
26
  }),
26
- s("div", null, "共 " + C(e.value ? e.value.split(`
27
+ r("div", null, "共 " + H(e.value ? e.value.split(`
27
28
  `).length : 0) + " 个", 1),
28
- v(r, {
29
+ x(a, {
29
30
  size: "small",
30
31
  class: "v-popover-handle-right",
31
- onClick: t[1] || (t[1] = (d) => a("close"))
32
+ onClick: t[1] || (t[1] = (p) => o("close"))
32
33
  }, {
33
- default: u(() => [
34
- y(C(e.closeText), 1)
34
+ default: f(() => [
35
+ k(H(e.closeText), 1)
35
36
  ]),
36
37
  _: 1
37
38
  }),
38
- v(r, {
39
+ x(a, {
39
40
  size: "small",
40
41
  type: "primary",
41
- onClick: t[2] || (t[2] = (d) => a("submit"))
42
+ onClick: t[2] || (t[2] = (p) => o("submit"))
42
43
  }, {
43
- default: u(() => [
44
- y(C(e.submitText), 1)
44
+ default: f(() => [
45
+ k(H(e.submitText), 1)
45
46
  ]),
46
47
  _: 1
47
48
  })
48
49
  ]);
49
50
  };
50
51
  }
51
- }, I = { class: "v-batch-input-wrapper" }, S = {
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: o, emit: a }) {
59
- const i = e, t = a, r = w(!1), d = w(!1), m = w(), p = T({
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 l;
62
- return ((l = i.modelValue) == null ? void 0 : l.replaceAll(",", `
62
+ var m;
63
+ return ((m = s.modelValue) == null ? void 0 : m.replaceAll(",", `
63
64
  `)) || "";
64
65
  },
65
- set(l) {
66
- t("update:modelValue", (l == null ? void 0 : l.split(`
66
+ set(m) {
67
+ t("update:modelValue", (m == null ? void 0 : m.split(`
67
68
  `).join(",")) || "");
68
69
  }
69
- }), g = T(
70
+ }), n = N(
70
71
  () => {
71
- var l;
72
- return ((l = p.value) == null ? void 0 : l.split(`
72
+ var m;
73
+ return ((m = u.value) == null ? void 0 : m.split(`
73
74
  `).filter(Boolean).join(",")) || "";
74
75
  }
75
- ), c = async () => {
76
- r.value = !0, await 1, m == null || m.value.focus();
76
+ ), g = async () => {
77
+ a.value = !0, await 1, i == null || i.value.focus();
78
+ }, S = () => {
79
+ a.value = !1;
77
80
  }, b = () => {
78
- r.value = !1;
79
- }, $ = () => {
80
- var l;
81
+ var m;
81
82
  t(
82
83
  "update:modelValue",
83
- ((l = p.value) == null ? void 0 : l.split(`
84
- `).filter(Boolean).slice(0, i.rows).join(",")) || ""
84
+ ((m = u.value) == null ? void 0 : m.split(`
85
+ `).filter(Boolean).slice(0, s.rows).join(",")) || ""
85
86
  );
86
- }, h = () => {
87
- p.value = "";
88
- }, H = () => {
89
- b(), t("search");
87
+ }, B = () => {
88
+ u.value = "";
89
+ }, L = () => {
90
+ S(), t("search");
90
91
  };
91
- return o({ clear: h }), (l, n) => {
92
- const O = V("el-input"), P = V("el-popover");
93
- return _(), x(P, {
94
- visible: r.value,
95
- "onUpdate:visible": n[4] || (n[4] = (f) => r.value = f),
96
- disabled: d.value,
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: c,
103
- onHide: b
103
+ onShow: g,
104
+ onHide: S
104
105
  }, {
105
- reference: u(() => [
106
- v(O, k({
107
- modelValue: g.value,
108
- "onUpdate:modelValue": n[2] || (n[2] = (f) => g.value = f),
109
- placeholder: l.$attrs.placeholder || "请输入",
110
- class: ["v-batch-input", g.value && !r.value && "is--value"]
111
- }, l.$attrs), {
112
- suffix: u(() => [
113
- n[6] || (n[6] = s("svg", {
106
+ reference: f(() => [
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), {
113
+ suffix: f(() => [
114
+ _[6] || (_[6] = r("svg", {
114
115
  class: "v-batch-input-icon",
115
116
  width: "14px",
116
117
  height: "14.00px",
@@ -118,36 +119,36 @@ const E = { class: "v-popover-handle" }, D = {
118
119
  version: "1.1",
119
120
  xmlns: "http://www.w3.org/2000/svg"
120
121
  }, [
121
- s("path", {
122
+ r("path", {
122
123
  fill: "#909399",
123
124
  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
125
  }),
125
- s("path", {
126
+ r("path", {
126
127
  fill: "#909399",
127
128
  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
129
  }),
129
- s("path", {
130
+ r("path", {
130
131
  fill: "#909399",
131
132
  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
133
  }),
133
- s("path", {
134
+ r("path", {
134
135
  fill: "#909399",
135
136
  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
137
  }),
137
- s("path", {
138
+ r("path", {
138
139
  fill: "#909399",
139
140
  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
141
  }),
141
- s("path", {
142
+ r("path", {
142
143
  fill: "#909399",
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
- (_(), M("svg", {
147
+ (d(), y("svg", {
147
148
  class: "v-batch-input-clear",
148
- onMouseenter: n[0] || (n[0] = (f) => d.value = !0),
149
- onMouseleave: n[1] || (n[1] = (f) => d.value = !1),
150
- onClick: h,
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,18 +156,18 @@ const E = { class: "v-popover-handle" }, D = {
155
156
  "p-id": "3649",
156
157
  width: "19",
157
158
  height: "19"
158
- }, n[5] || (n[5] = [
159
- s("path", {
159
+ }, _[5] || (_[5] = [
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",
162
163
  fill: "currentColor"
163
164
  }, null, -1),
164
- s("path", {
165
+ r("path", {
165
166
  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
167
  "p-id": "3651",
167
168
  fill: "currentColor"
168
169
  }, null, -1),
169
- s("path", {
170
+ r("path", {
170
171
  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
172
  "p-id": "3652",
172
173
  fill: "currentColor"
@@ -176,24 +177,24 @@ const E = { class: "v-popover-handle" }, D = {
176
177
  _: 1
177
178
  }, 16, ["modelValue", "placeholder", "class"])
178
179
  ]),
179
- default: u(() => [
180
- s("div", I, [
181
- v(O, {
180
+ default: f(() => [
181
+ r("div", $e, [
182
+ x(z, {
182
183
  ref_key: "inputRef",
183
- ref: m,
184
- modelValue: p.value,
185
- "onUpdate:modelValue": n[3] || (n[3] = (f) => p.value = f),
184
+ ref: i,
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
- v(D, {
193
- value: p.value,
194
- onClear: h,
195
- onClose: b,
196
- onSubmit: H
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 E = { class: "v-popover-handle" }, D = {
202
203
  };
203
204
  }
204
205
  };
205
- S.install = (e) => {
206
- e.component("VBatchInput", S);
206
+ Z.install = (e) => {
207
+ e.component("VBatchInput", Z);
207
208
  };
208
- const F = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
209
+ const Pe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
209
210
  __proto__: null,
210
- default: S
211
- }, Symbol.toStringTag, { value: "Module" })), q = /* @__PURE__ */ A({
211
+ default: Z
212
+ }, Symbol.toStringTag, { value: "Module" })), E = /* @__PURE__ */ R({
212
213
  __name: "index",
213
214
  setup(e) {
214
- return (o, a) => (_(), x(U(Z), k(o.$attrs, { size: "small" }), {
215
- default: u(() => [
216
- j(o.$slots, "default")
215
+ return (l, o) => (d(), j(C(K), q(l.$attrs, { size: "small" }), {
216
+ default: f(() => [
217
+ V(l.$slots, "default")
217
218
  ]),
218
219
  _: 3
219
220
  }, 16));
220
221
  }
221
222
  });
222
- q.install = (e) => {
223
- e.component("VButton", q);
223
+ E.install = (e) => {
224
+ e.component("VButton", E);
224
225
  };
225
- const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
226
+ const je = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
226
227
  __proto__: null,
227
- default: q
228
- }, Symbol.toStringTag, { value: "Module" })), B = /* @__PURE__ */ A({
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,57 +234,57 @@ const J = /* @__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: o, emit: a }) {
237
- const i = a, t = w(!1), r = () => {
237
+ setup(e, { expose: l, emit: o }) {
238
+ const s = o, t = h(!1), a = () => {
238
239
  t.value = !0;
239
- }, d = () => {
240
- t.value = !1, i("close");
241
- }, m = () => {
242
- d();
243
240
  }, p = () => {
244
- i("save");
241
+ t.value = !1, s("close");
242
+ }, i = () => {
243
+ p();
244
+ }, u = () => {
245
+ s("save");
245
246
  };
246
- return o({ open: r, close: d }), (g, c) => {
247
- const b = V("el-button"), $ = V("el-dialog");
248
- return _(), x($, k({
247
+ return l({ open: a, close: p }), (n, g) => {
248
+ const S = $("el-button"), b = $("el-dialog");
249
+ return d(), j(b, q({
249
250
  modelValue: t.value,
250
- "onUpdate:modelValue": c[0] || (c[0] = (h) => t.value = h),
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
- }, g.$attrs, {
255
+ }, n.$attrs, {
255
256
  draggable: "",
256
257
  "close-on-click-modal": !1,
257
- onClose: m,
258
+ onClose: i,
258
259
  class: "v-dialog"
259
260
  }), {
260
- footer: u(() => [
261
- e.disabled ? G("", !0) : (_(), x(b, {
261
+ footer: f(() => [
262
+ e.disabled ? A("", !0) : (d(), j(S, {
262
263
  key: 0,
263
264
  type: "primary",
264
265
  loading: e.loading,
265
- onClick: p
266
+ onClick: u
266
267
  }, {
267
- default: u(() => c[1] || (c[1] = [
268
- y(" 确定 ")
268
+ default: f(() => g[1] || (g[1] = [
269
+ k(" 确定 ")
269
270
  ])),
270
271
  _: 1,
271
272
  __: [1]
272
273
  }, 8, ["loading"])),
273
- v(b, {
274
+ x(S, {
274
275
  disabled: e.loading,
275
- onClick: m
276
+ onClick: i
276
277
  }, {
277
- default: u(() => c[2] || (c[2] = [
278
- y(" 取消 ")
278
+ default: f(() => g[2] || (g[2] = [
279
+ k(" 取消 ")
279
280
  ])),
280
281
  _: 1,
281
282
  __: [2]
282
283
  }, 8, ["disabled"])
283
284
  ]),
284
- default: u(() => [
285
- s("div", null, [
286
- j(g.$slots, "content")
285
+ default: f(() => [
286
+ r("div", null, [
287
+ V(n.$slots, "content")
287
288
  ])
288
289
  ]),
289
290
  _: 3
@@ -291,38 +292,523 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
291
292
  };
292
293
  }
293
294
  });
294
- B.install = (e) => {
295
- e.component("VGroup", B);
295
+ I.install = (e) => {
296
+ e.component("VGroup", I);
296
297
  };
297
- const K = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
298
+ const Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
298
299
  __proto__: null,
299
- default: B
300
- }, Symbol.toStringTag, { value: "Module" })), L = (e, o) => {
301
- const a = e.__vccOpts || e;
302
- for (const [i, t] of o)
303
- a[i] = t;
304
- return a;
305
- }, Q = {}, R = { class: "v-group" };
306
- function W(e, o) {
307
- return _(), M("div", R, [
308
- j(e.$slots, "default")
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 z = /* @__PURE__ */ L(Q, [["render", W]]);
312
- z.install = (e) => {
313
- e.component("VGroup", z);
312
+ const J = /* @__PURE__ */ ee(Oe, [["render", Me]]);
313
+ J.install = (e) => {
314
+ e.component("VGroup", J);
315
+ };
316
+ const Te = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
317
+ __proto__: null,
318
+ default: J
319
+ }, Symbol.toStringTag, { value: "Module" }));
320
+ /*! Element Plus Icons Vue v2.3.1 */
321
+ var qe = /* @__PURE__ */ R({
322
+ name: "ArrowLeftBold",
323
+ __name: "arrow-left-bold",
324
+ setup(e) {
325
+ return (l, o) => (d(), y("svg", {
326
+ xmlns: "http://www.w3.org/2000/svg",
327
+ viewBox: "0 0 1024 1024"
328
+ }, [
329
+ r("path", {
330
+ fill: "currentColor",
331
+ 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"
332
+ })
333
+ ]));
334
+ }
335
+ }), Ae = qe, Re = /* @__PURE__ */ R({
336
+ name: "ArrowRightBold",
337
+ __name: "arrow-right-bold",
338
+ setup(e) {
339
+ return (l, o) => (d(), y("svg", {
340
+ xmlns: "http://www.w3.org/2000/svg",
341
+ viewBox: "0 0 1024 1024"
342
+ }, [
343
+ r("path", {
344
+ fill: "currentColor",
345
+ 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"
346
+ })
347
+ ]));
348
+ }
349
+ }), He = Re;
350
+ const Ue = {
351
+ key: 0,
352
+ class: "v-page__edit",
353
+ style: { background: "#fff" }
354
+ }, Le = { class: "v-page__body-left" }, F = {
355
+ __name: "index",
356
+ props: {
357
+ edit: { type: Boolean, default: !0 },
358
+ leftWidth: { type: String, default: "240px" },
359
+ modelCollapse: { type: Boolean, default: !1 }
360
+ // 可v-model绑定折叠状态
361
+ },
362
+ emits: ["update:modelCollapse"],
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);
369
+ });
370
+ const p = () => {
371
+ a.value = !a.value;
372
+ };
373
+ return (i, u) => {
374
+ const n = $("el-button");
375
+ return d(), y("div", {
376
+ ref: "pageRef",
377
+ class: he(["v-page", { "is--full": !e.edit, "is--edit": e.edit }]),
378
+ style: T({ "--left-width": e.leftWidth })
379
+ }, [
380
+ e.edit ? (d(), y("div", Ue, [
381
+ V(i.$slots, "default")
382
+ ])) : (d(), y(re, { key: 1 }, [
383
+ r("div", {
384
+ class: "v-page__body",
385
+ style: T({ paddingLeft: a.value ? 0 : e.leftWidth })
386
+ }, [
387
+ U(r("div", Le, [
388
+ V(i.$slots, "left")
389
+ ], 512), [
390
+ [xe, !a.value]
391
+ ]),
392
+ r("div", {
393
+ class: "v-page__body-main",
394
+ style: T({ marginLeft: a.value ? 0 : "8px" })
395
+ }, [
396
+ V(i.$slots, "default")
397
+ ], 4)
398
+ ], 4),
399
+ r("div", {
400
+ class: "v-page__body-collapse",
401
+ style: T({ left: a.value ? "0px" : e.leftWidth }),
402
+ onClick: p
403
+ }, [
404
+ x(n, {
405
+ icon: a.value ? C(He) : C(Ae),
406
+ type: "primary",
407
+ size: "small"
408
+ }, null, 8, ["icon"])
409
+ ], 4)
410
+ ], 64))
411
+ ], 6);
412
+ };
413
+ }
414
+ };
415
+ F.install = (e) => {
416
+ e.component("VPage", F);
314
417
  };
315
- const X = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
418
+ const De = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
316
419
  __proto__: null,
317
- default: z
318
- }, Symbol.toStringTag, { value: "Module" })), N = /* @__PURE__ */ Object.assign({ "./BatchInput/index.ts": F, "./Button/index.ts": J, "./Dialog/index.ts": K, "./Group/index.ts": X }), te = {
319
- install(e) {
320
- for (const o in N) {
321
- const a = N[o].default, i = o.split("/")[1], t = i.charAt(0).toUpperCase() + i.slice(1);
322
- e.component(`V${t}`, a);
420
+ default: F
421
+ }, Symbol.toStringTag, { value: "Module" })), Y = {
422
+ __name: "index",
423
+ props: {
424
+ modelValue: [String, Number, Array],
425
+ options: { type: Array, default: () => [] },
426
+ labelKey: { type: String, default: "label" },
427
+ valueKey: { type: String, default: "value" },
428
+ select: { type: Boolean, default: !1 },
429
+ // true = el-select-v2
430
+ checkAll: { type: Boolean, default: !1 },
431
+ placeholder: { type: String, default: "请选择" }
432
+ },
433
+ emits: ["update:modelValue"],
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]
439
+ }))
440
+ ), a = N({
441
+ get: () => o.modelValue,
442
+ set: (u) => s("update:modelValue", u)
443
+ }), p = N({
444
+ get: () => {
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));
447
+ },
448
+ set: (u) => {
449
+ u ? s("update:modelValue", t.value.map((n) => n.value)) : s("update:modelValue", []);
450
+ }
451
+ }), i = () => {
452
+ if (!p.value)
453
+ s("update:modelValue", []);
454
+ else {
455
+ const u = t.value.map((n) => n.value);
456
+ s("update:modelValue", u);
457
+ }
458
+ };
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),
464
+ placeholder: e.placeholder
465
+ }, u.$attrs, {
466
+ options: e.select ? t.value : void 0
467
+ }), de({
468
+ default: f(() => [
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
473
+ }, null, 8, ["label", "value"]))), 128))
474
+ ]),
475
+ _: 2
476
+ }, [
477
+ e.checkAll && t.value.length ? {
478
+ name: "header",
479
+ fn: f(() => [
480
+ x(g, {
481
+ modelValue: p.value,
482
+ "onUpdate:modelValue": n[0] || (n[0] = (b) => p.value = b),
483
+ onChange: i
484
+ }, {
485
+ default: f(() => n[2] || (n[2] = [
486
+ k(" 全选 ")
487
+ ])),
488
+ _: 1,
489
+ __: [2]
490
+ }, 8, ["modelValue"])
491
+ ]),
492
+ key: "0"
493
+ } : void 0
494
+ ]), 1040, ["modelValue", "placeholder", "options"]);
495
+ };
496
+ }
497
+ };
498
+ Y.install = (e) => {
499
+ e.component("VSelect", Y);
500
+ };
501
+ const We = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
502
+ __proto__: null,
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
323
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);
749
+ };
750
+ const Qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
751
+ __proto__: null,
752
+ default: Q
753
+ }, Symbol.toStringTag, { value: "Module" })), Xe = {};
754
+ function et(e, l) {
755
+ return d(), y("div", null, "1111");
756
+ }
757
+ const X = /* @__PURE__ */ ee(Xe, [["render", et]]);
758
+ X.install = (e) => {
759
+ e.component("VTablePro", X);
760
+ };
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);
324
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({
792
+ __proto__: null,
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);
801
+ }
802
+ }
803
+ }
804
+ const rt = (e, l) => {
805
+ it(e), lt(e);
806
+ }, gt = {
807
+ install: rt
325
808
  };
326
809
  export {
327
- te as default
810
+ gt as default,
811
+ rt as install,
812
+ lt as registerComponents,
813
+ it as registerDirectives
328
814
  };
@@ -1,6 +1,6 @@
1
- (function(e,g){typeof exports=="object"&&typeof module<"u"?module.exports=g(require("vue"),require("element-plus")):typeof define=="function"&&define.amd?define(["vue","element-plus"],g):(e=typeof globalThis<"u"?globalThis:e||self,e.XBDVUI=g(e.Vue,e.ElementPlus))})(this,function(e,g){"use strict";const N={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:n}){const s=n;return(r,l)=>{const i=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",N,[e.createVNode(i,{size:"small",onClick:l[0]||(l[0]=d=>s("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(i,{size:"small",class:"v-popover-handle-right",onClick:l[1]||(l[1]=d=>s("close"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.closeText),1)]),_:1}),e.createVNode(i,{size:"small",type:"primary",onClick:l[2]||(l[2]=d=>s("submit"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.submitText),1)]),_:1})])}}},S={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:n,emit:s}){const r=t,l=s,i=e.ref(!1),d=e.ref(!1),m=e.ref(),c=e.computed({get(){var o;return((o=r.modelValue)==null?void 0:o.replaceAll(",",`
3
- `))||""},set(o){l("update:modelValue",(o==null?void 0:o.split(`
4
- `).join(","))||"")}}),f=e.computed(()=>{var o;return((o=c.value)==null?void 0:o.split(`
5
- `).filter(Boolean).join(","))||""}),p=async()=>{i.value=!0,await 1,m==null||m.value.focus()},_=()=>{i.value=!1},C=()=>{var o;l("update:modelValue",((o=c.value)==null?void 0:o.split(`
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.mergeProps(n.$attrs,{size:"small"}),{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(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.4",
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": "^4.6.21"
24
+ "vxe-table": "4.6.21"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/node": "^22.14.0",