xbd-vui 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/xbd-vui.css 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-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:4px;border-bottom-left-radius:4px}.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:4px;border-bottom-right-radius:4px}.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}
@@ -1,6 +1,6 @@
1
- import { resolveComponent as V, createElementBlock as S, openBlock as v, createVNode as m, createElementVNode as a, withCtx as p, createTextVNode as h, toDisplayString as w, ref as x, computed as B, createBlock as M, mergeProps as A, defineComponent as H, unref as N, normalizeProps as U, guardReactiveProps as Z, renderSlot as j } from "vue";
2
- import { ElButton as E } from "element-plus";
3
- const G = { class: "v-popover-handle" }, I = {
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 = {
4
4
  __name: "Handle",
5
5
  props: {
6
6
  value: { type: String, default: "" },
@@ -8,55 +8,55 @@ const G = { class: "v-popover-handle" }, I = {
8
8
  closeText: { type: String, default: "关闭" }
9
9
  },
10
10
  emits: ["close", "submit", "clear"],
11
- setup(e, { emit: n }) {
12
- const s = n;
11
+ setup(e, { emit: o }) {
12
+ const a = o;
13
13
  return (i, t) => {
14
14
  const r = V("el-button");
15
- return v(), S("div", G, [
16
- m(r, {
15
+ return _(), M("div", E, [
16
+ v(r, {
17
17
  size: "small",
18
- onClick: t[0] || (t[0] = (d) => s("clear"))
18
+ onClick: t[0] || (t[0] = (d) => a("clear"))
19
19
  }, {
20
- default: p(() => t[3] || (t[3] = [
21
- h("清空")
20
+ default: u(() => t[3] || (t[3] = [
21
+ y("清空")
22
22
  ])),
23
23
  _: 1,
24
24
  __: [3]
25
25
  }),
26
- a("div", null, "共 " + w(e.value ? e.value.split(`
26
+ s("div", null, "共 " + C(e.value ? e.value.split(`
27
27
  `).length : 0) + " 个", 1),
28
- m(r, {
28
+ v(r, {
29
29
  size: "small",
30
30
  class: "v-popover-handle-right",
31
- onClick: t[1] || (t[1] = (d) => s("close"))
31
+ onClick: t[1] || (t[1] = (d) => a("close"))
32
32
  }, {
33
- default: p(() => [
34
- h(w(e.closeText), 1)
33
+ default: u(() => [
34
+ y(C(e.closeText), 1)
35
35
  ]),
36
36
  _: 1
37
37
  }),
38
- m(r, {
38
+ v(r, {
39
39
  size: "small",
40
40
  type: "primary",
41
- onClick: t[2] || (t[2] = (d) => s("submit"))
41
+ onClick: t[2] || (t[2] = (d) => a("submit"))
42
42
  }, {
43
- default: p(() => [
44
- h(w(e.submitText), 1)
43
+ default: u(() => [
44
+ y(C(e.submitText), 1)
45
45
  ]),
46
46
  _: 1
47
47
  })
48
48
  ]);
49
49
  };
50
50
  }
51
- }, D = { class: "v-batch-input-wrapper" }, y = {
51
+ }, I = { class: "v-batch-input-wrapper" }, S = {
52
52
  __name: "index",
53
53
  props: {
54
54
  modelValue: { type: String, default: () => "" },
55
55
  rows: { type: [Number, String], default: () => 200 }
56
56
  },
57
57
  emits: ["update:modelValue", "search"],
58
- setup(e, { expose: n, emit: s }) {
59
- const i = e, t = s, r = x(!1), d = x(!1), f = x(), c = B({
58
+ setup(e, { expose: o, emit: a }) {
59
+ const i = e, t = a, r = w(!1), d = w(!1), m = w(), p = T({
60
60
  get() {
61
61
  var l;
62
62
  return ((l = i.modelValue) == null ? void 0 : l.replaceAll(",", `
@@ -66,51 +66,51 @@ const G = { class: "v-popover-handle" }, I = {
66
66
  t("update:modelValue", (l == null ? void 0 : l.split(`
67
67
  `).join(",")) || "");
68
68
  }
69
- }), _ = B(
69
+ }), g = T(
70
70
  () => {
71
71
  var l;
72
- return ((l = c.value) == null ? void 0 : l.split(`
72
+ return ((l = p.value) == null ? void 0 : l.split(`
73
73
  `).filter(Boolean).join(",")) || "";
74
74
  }
75
- ), k = async () => {
76
- r.value = !0, await 1, f == null || f.value.focus();
75
+ ), c = async () => {
76
+ r.value = !0, await 1, m == null || m.value.focus();
77
77
  }, b = () => {
78
78
  r.value = !1;
79
- }, O = () => {
79
+ }, $ = () => {
80
80
  var l;
81
81
  t(
82
82
  "update:modelValue",
83
- ((l = c.value) == null ? void 0 : l.split(`
83
+ ((l = p.value) == null ? void 0 : l.split(`
84
84
  `).filter(Boolean).slice(0, i.rows).join(",")) || ""
85
85
  );
86
- }, g = () => {
87
- c.value = "";
88
- }, T = () => {
86
+ }, h = () => {
87
+ p.value = "";
88
+ }, H = () => {
89
89
  b(), t("search");
90
90
  };
91
- return n({ clear: g }), (l, o) => {
92
- const z = V("el-input"), P = V("el-popover");
93
- return v(), M(P, {
91
+ return o({ clear: h }), (l, n) => {
92
+ const O = V("el-input"), P = V("el-popover");
93
+ return _(), x(P, {
94
94
  visible: r.value,
95
- "onUpdate:visible": o[4] || (o[4] = (u) => r.value = u),
95
+ "onUpdate:visible": n[4] || (n[4] = (f) => r.value = f),
96
96
  disabled: d.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: k,
102
+ onShow: c,
103
103
  onHide: b
104
104
  }, {
105
- reference: p(() => [
106
- m(z, A({
107
- modelValue: _.value,
108
- "onUpdate:modelValue": o[2] || (o[2] = (u) => _.value = u),
105
+ reference: u(() => [
106
+ v(O, k({
107
+ modelValue: g.value,
108
+ "onUpdate:modelValue": n[2] || (n[2] = (f) => g.value = f),
109
109
  placeholder: l.$attrs.placeholder || "请输入",
110
- class: ["v-batch-input", _.value && !r.value && "is--value"]
110
+ class: ["v-batch-input", g.value && !r.value && "is--value"]
111
111
  }, l.$attrs), {
112
- suffix: p(() => [
113
- o[6] || (o[6] = a("svg", {
112
+ suffix: u(() => [
113
+ n[6] || (n[6] = s("svg", {
114
114
  class: "v-batch-input-icon",
115
115
  width: "14px",
116
116
  height: "14.00px",
@@ -118,36 +118,36 @@ const G = { class: "v-popover-handle" }, I = {
118
118
  version: "1.1",
119
119
  xmlns: "http://www.w3.org/2000/svg"
120
120
  }, [
121
- a("path", {
121
+ s("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
- a("path", {
125
+ s("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
- a("path", {
129
+ s("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
- a("path", {
133
+ s("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
- a("path", {
137
+ s("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
- a("path", {
141
+ s("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
- (v(), S("svg", {
146
+ (_(), M("svg", {
147
147
  class: "v-batch-input-clear",
148
- onMouseenter: o[0] || (o[0] = (u) => d.value = !0),
149
- onMouseleave: o[1] || (o[1] = (u) => d.value = !1),
150
- onClick: g,
148
+ onMouseenter: n[0] || (n[0] = (f) => d.value = !0),
149
+ onMouseleave: n[1] || (n[1] = (f) => d.value = !1),
150
+ onClick: h,
151
151
  t: "1731313372920",
152
152
  viewBox: "0 0 1024 1024",
153
153
  version: "1.1",
@@ -155,18 +155,18 @@ const G = { class: "v-popover-handle" }, I = {
155
155
  "p-id": "3649",
156
156
  width: "19",
157
157
  height: "19"
158
- }, o[5] || (o[5] = [
159
- a("path", {
158
+ }, n[5] || (n[5] = [
159
+ s("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
- a("path", {
164
+ s("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
- a("path", {
169
+ s("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 G = { class: "v-popover-handle" }, I = {
176
176
  _: 1
177
177
  }, 16, ["modelValue", "placeholder", "class"])
178
178
  ]),
179
- default: p(() => [
180
- a("div", D, [
181
- m(z, {
179
+ default: u(() => [
180
+ s("div", I, [
181
+ v(O, {
182
182
  ref_key: "inputRef",
183
- ref: f,
184
- modelValue: c.value,
185
- "onUpdate:modelValue": o[3] || (o[3] = (u) => c.value = u),
183
+ ref: m,
184
+ modelValue: p.value,
185
+ "onUpdate:modelValue": n[3] || (n[3] = (f) => p.value = f),
186
186
  rows: 12,
187
187
  placeholder: `一行一个(最多支持${e.rows}行)`,
188
188
  type: "textarea",
189
189
  style: { width: "100%" },
190
- onBlur: O
190
+ onBlur: $
191
191
  }, null, 8, ["modelValue", "placeholder"]),
192
- m(I, {
193
- value: c.value,
194
- onClear: g,
192
+ v(D, {
193
+ value: p.value,
194
+ onClear: h,
195
195
  onClose: b,
196
- onSubmit: T
196
+ onSubmit: H
197
197
  }, null, 8, ["value"])
198
198
  ])
199
199
  ]),
@@ -202,55 +202,127 @@ const G = { class: "v-popover-handle" }, I = {
202
202
  };
203
203
  }
204
204
  };
205
- y.install = (e) => {
206
- e.component("VBatchInput", y);
205
+ S.install = (e) => {
206
+ e.component("VBatchInput", S);
207
207
  };
208
- const R = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
208
+ const F = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
209
209
  __proto__: null,
210
- default: y
211
- }, Symbol.toStringTag, { value: "Module" })), $ = /* @__PURE__ */ H({
210
+ default: S
211
+ }, Symbol.toStringTag, { value: "Module" })), q = /* @__PURE__ */ A({
212
212
  __name: "index",
213
213
  setup(e) {
214
- return (n, s) => (v(), M(N(E), U(Z(n.$attrs)), {
215
- default: p(() => [
216
- j(n.$slots, "default")
214
+ return (o, a) => (_(), x(U(Z), k(o.$attrs, { size: "small" }), {
215
+ default: u(() => [
216
+ j(o.$slots, "default")
217
217
  ]),
218
218
  _: 3
219
219
  }, 16));
220
220
  }
221
221
  });
222
- $.install = (e) => {
223
- e.component("VButton", $);
222
+ q.install = (e) => {
223
+ e.component("VButton", q);
224
224
  };
225
- const F = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
225
+ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
226
+ __proto__: null,
227
+ default: q
228
+ }, Symbol.toStringTag, { value: "Module" })), B = /* @__PURE__ */ A({
229
+ __name: "index",
230
+ props: {
231
+ title: { type: String, default: "提示" },
232
+ disabled: { type: Boolean, default: !1 },
233
+ loading: { type: Boolean, default: !1 }
234
+ },
235
+ emits: ["close", "save", "open"],
236
+ setup(e, { expose: o, emit: a }) {
237
+ const i = a, t = w(!1), r = () => {
238
+ t.value = !0;
239
+ }, d = () => {
240
+ t.value = !1, i("close");
241
+ }, m = () => {
242
+ d();
243
+ }, p = () => {
244
+ i("save");
245
+ };
246
+ return o({ open: r, close: d }), (g, c) => {
247
+ const b = V("el-button"), $ = V("el-dialog");
248
+ return _(), x($, k({
249
+ modelValue: t.value,
250
+ "onUpdate:modelValue": c[0] || (c[0] = (h) => t.value = h),
251
+ width: "30%",
252
+ title: e.title,
253
+ "align-center": ""
254
+ }, g.$attrs, {
255
+ draggable: "",
256
+ "close-on-click-modal": !1,
257
+ onClose: m,
258
+ class: "v-dialog"
259
+ }), {
260
+ footer: u(() => [
261
+ e.disabled ? G("", !0) : (_(), x(b, {
262
+ key: 0,
263
+ type: "primary",
264
+ loading: e.loading,
265
+ onClick: p
266
+ }, {
267
+ default: u(() => c[1] || (c[1] = [
268
+ y(" 确定 ")
269
+ ])),
270
+ _: 1,
271
+ __: [1]
272
+ }, 8, ["loading"])),
273
+ v(b, {
274
+ disabled: e.loading,
275
+ onClick: m
276
+ }, {
277
+ default: u(() => c[2] || (c[2] = [
278
+ y(" 取消 ")
279
+ ])),
280
+ _: 1,
281
+ __: [2]
282
+ }, 8, ["disabled"])
283
+ ]),
284
+ default: u(() => [
285
+ s("div", null, [
286
+ j(g.$slots, "content")
287
+ ])
288
+ ]),
289
+ _: 3
290
+ }, 16, ["modelValue", "title"]);
291
+ };
292
+ }
293
+ });
294
+ B.install = (e) => {
295
+ e.component("VGroup", B);
296
+ };
297
+ const K = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
226
298
  __proto__: null,
227
- default: $
228
- }, Symbol.toStringTag, { value: "Module" })), J = (e, n) => {
229
- const s = e.__vccOpts || e;
230
- for (const [i, t] of n)
231
- s[i] = t;
232
- return s;
233
- }, K = {}, L = { class: "v-group" };
234
- function Q(e, n) {
235
- return v(), S("div", L, [
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, [
236
308
  j(e.$slots, "default")
237
309
  ]);
238
310
  }
239
- const q = /* @__PURE__ */ J(K, [["render", Q]]);
240
- q.install = (e) => {
241
- e.component("VGroup", q);
311
+ const z = /* @__PURE__ */ L(Q, [["render", W]]);
312
+ z.install = (e) => {
313
+ e.component("VGroup", z);
242
314
  };
243
- const W = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
315
+ const X = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
244
316
  __proto__: null,
245
- default: q
246
- }, Symbol.toStringTag, { value: "Module" })), C = /* @__PURE__ */ Object.assign({ "./BatchInput/index.ts": R, "./Button/index.ts": F, "./Group/index.ts": W }), ee = {
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 = {
247
319
  install(e) {
248
- for (const n in C) {
249
- const s = C[n].default, i = n.split("/")[1], t = i.charAt(0).toUpperCase() + i.slice(1);
250
- e.component(`V${t}`, s);
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);
251
323
  }
252
324
  }
253
325
  };
254
326
  export {
255
- ee as default
327
+ te as default
256
328
  };
@@ -1,6 +1,6 @@
1
- (function(e,m){typeof exports=="object"&&typeof module<"u"?module.exports=m(require("vue"),require("element-plus")):typeof define=="function"&&define.amd?define(["vue","element-plus"],m):(e=typeof globalThis<"u"?globalThis:e||self,e.XBDVUI=m(e.Vue,e.ElementPlus))})(this,function(e,m){"use strict";const y={class:"v-popover-handle"},N={__name:"Handle",props:{value:{type:String,default:""},submitText:{type:String,default:"搜索"},closeText:{type:String,default:"关闭"}},emits:["close","submit","clear"],setup(t,{emit:a}){const r=a;return(i,l)=>{const s=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",y,[e.createVNode(s,{size:"small",onClick:l[0]||(l[0]=p=>r("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(s,{size:"small",class:"v-popover-handle-right",onClick:l[1]||(l[1]=p=>r("close"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.closeText),1)]),_:1}),e.createVNode(s,{size:"small",type:"primary",onClick:l[2]||(l[2]=p=>r("submit"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.submitText),1)]),_:1})])}}},B={class:"v-batch-input-wrapper"},f={__name:"index",props:{modelValue:{type:String,default:()=>""},rows:{type:[Number,String],default:()=>200}},emits:["update:modelValue","search"],setup(t,{expose:a,emit:r}){const i=t,l=r,s=e.ref(!1),p=e.ref(!1),u=e.ref(),c=e.computed({get(){var o;return((o=i.modelValue)==null?void 0:o.replaceAll(",",`
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
3
  `))||""},set(o){l("update:modelValue",(o==null?void 0:o.split(`
4
- `).join(","))||"")}}),h=e.computed(()=>{var o;return((o=c.value)==null?void 0:o.split(`
5
- `).filter(Boolean).join(","))||""}),v=async()=>{s.value=!0,await 1,u==null||u.value.focus()},g=()=>{s.value=!1},z=()=>{var o;l("update:modelValue",((o=c.value)==null?void 0:o.split(`
6
- `).filter(Boolean).slice(0,i.rows).join(","))||"")},b=()=>{c.value=""},M=()=>{g(),l("search")};return a({clear:b}),(o,n)=>{const w=e.resolveComponent("el-input"),T=e.resolveComponent("el-popover");return e.openBlock(),e.createBlock(T,{visible:s.value,"onUpdate:visible":n[4]||(n[4]=d=>s.value=d),disabled:p.value,trigger:"click",placement:"bottom-end",width:"405px",offset:2,"show-arrow":!1,onShow:v,onHide:g},{reference:e.withCtx(()=>[e.createVNode(w,e.mergeProps({modelValue:h.value,"onUpdate:modelValue":n[2]||(n[2]=d=>h.value=d),placeholder:o.$attrs.placeholder||"请输入",class:["v-batch-input",h.value&&!s.value&&"is--value"]},o.$attrs),{suffix:e.withCtx(()=>[n[6]||(n[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:n[0]||(n[0]=d=>p.value=!0),onMouseleave:n[1]||(n[1]=d=>p.value=!1),onClick:b,t:"1731313372920",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3649",width:"19",height:"19"},n[5]||(n[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",B,[e.createVNode(w,{ref_key:"inputRef",ref:u,modelValue:c.value,"onUpdate:modelValue":n[3]||(n[3]=d=>c.value=d),rows:12,placeholder:`一行一个(最多支持${t.rows}行)`,type:"textarea",style:{width:"100%"},onBlur:z},null,8,["modelValue","placeholder"]),e.createVNode(N,{value:c.value,onClear:b,onClose:g,onSubmit:M},null,8,["value"])])]),_:1},8,["visible","disabled"])}}};f.install=t=>{t.component("VBatchInput",f)};const C=Object.freeze(Object.defineProperty({__proto__:null,default:f},Symbol.toStringTag,{value:"Module"})),_=e.defineComponent({__name:"index",setup(t){return(a,r)=>(e.openBlock(),e.createBlock(e.unref(m.ElButton),e.normalizeProps(e.guardReactiveProps(a.$attrs)),{default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},16))}});_.install=t=>{t.component("VButton",_)};const q=Object.freeze(Object.defineProperty({__proto__:null,default:_},Symbol.toStringTag,{value:"Module"})),S=(t,a)=>{const r=t.__vccOpts||t;for(const[i,l]of a)r[i]=l;return r},k={},E={class:"v-group"};function $(t,a){return e.openBlock(),e.createElementBlock("div",E,[e.renderSlot(t.$slots,"default")])}const V=S(k,[["render",$]]);V.install=t=>{t.component("VGroup",V)};const x=Object.assign({"./BatchInput/index.ts":C,"./Button/index.ts":q,"./Group/index.ts":Object.freeze(Object.defineProperty({__proto__:null,default:V},Symbol.toStringTag,{value:"Module"}))});return{install(t){for(const a in x){const r=x[a].default,i=a.split("/")[1],l=i.charAt(0).toUpperCase()+i.slice(1);t.component(`V${l}`,r)}}}});
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)}}}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xbd-vui",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "type": "module",
5
5
  "main": "dist/xbd-vui.umd.js",
6
6
  "module": "dist/xbd-vui.es.js",