xbd-vui 0.0.3 → 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-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}
@@ -1,6 +1,6 @@
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 O, createBlock as x, mergeProps as P, defineComponent as N, unref as U, normalizeProps as G, guardReactiveProps as Z, renderSlot as k, createCommentVNode as E } from "vue";
2
- import { ElButton as D } from "element-plus";
3
- const I = { class: "v-popover-handle" }, R = {
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: "" },
@@ -12,7 +12,7 @@ const I = { class: "v-popover-handle" }, R = {
12
12
  const a = o;
13
13
  return (i, t) => {
14
14
  const r = V("el-button");
15
- return _(), M("div", I, [
15
+ return _(), M("div", E, [
16
16
  v(r, {
17
17
  size: "small",
18
18
  onClick: t[0] || (t[0] = (d) => a("clear"))
@@ -48,7 +48,7 @@ const I = { class: "v-popover-handle" }, R = {
48
48
  ]);
49
49
  };
50
50
  }
51
- }, F = { class: "v-batch-input-wrapper" }, S = {
51
+ }, I = { class: "v-batch-input-wrapper" }, S = {
52
52
  __name: "index",
53
53
  props: {
54
54
  modelValue: { type: String, default: () => "" },
@@ -56,7 +56,7 @@ const I = { class: "v-popover-handle" }, R = {
56
56
  },
57
57
  emits: ["update:modelValue", "search"],
58
58
  setup(e, { expose: o, emit: a }) {
59
- const i = e, t = a, r = w(!1), d = w(!1), m = w(), p = O({
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,7 +66,7 @@ const I = { class: "v-popover-handle" }, R = {
66
66
  t("update:modelValue", (l == null ? void 0 : l.split(`
67
67
  `).join(",")) || "");
68
68
  }
69
- }), g = O(
69
+ }), g = T(
70
70
  () => {
71
71
  var l;
72
72
  return ((l = p.value) == null ? void 0 : l.split(`
@@ -85,12 +85,12 @@ const I = { class: "v-popover-handle" }, R = {
85
85
  );
86
86
  }, h = () => {
87
87
  p.value = "";
88
- }, A = () => {
88
+ }, H = () => {
89
89
  b(), t("search");
90
90
  };
91
91
  return o({ clear: h }), (l, n) => {
92
- const j = V("el-input"), H = V("el-popover");
93
- return _(), x(H, {
92
+ const O = V("el-input"), P = V("el-popover");
93
+ return _(), x(P, {
94
94
  visible: r.value,
95
95
  "onUpdate:visible": n[4] || (n[4] = (f) => r.value = f),
96
96
  disabled: d.value,
@@ -103,7 +103,7 @@ const I = { class: "v-popover-handle" }, R = {
103
103
  onHide: b
104
104
  }, {
105
105
  reference: u(() => [
106
- v(j, P({
106
+ v(O, k({
107
107
  modelValue: g.value,
108
108
  "onUpdate:modelValue": n[2] || (n[2] = (f) => g.value = f),
109
109
  placeholder: l.$attrs.placeholder || "请输入",
@@ -177,8 +177,8 @@ const I = { class: "v-popover-handle" }, R = {
177
177
  }, 16, ["modelValue", "placeholder", "class"])
178
178
  ]),
179
179
  default: u(() => [
180
- s("div", F, [
181
- v(j, {
180
+ s("div", I, [
181
+ v(O, {
182
182
  ref_key: "inputRef",
183
183
  ref: m,
184
184
  modelValue: p.value,
@@ -189,11 +189,11 @@ const I = { class: "v-popover-handle" }, R = {
189
189
  style: { width: "100%" },
190
190
  onBlur: $
191
191
  }, null, 8, ["modelValue", "placeholder"]),
192
- v(R, {
192
+ v(D, {
193
193
  value: p.value,
194
194
  onClear: h,
195
195
  onClose: b,
196
- onSubmit: A
196
+ onSubmit: H
197
197
  }, null, 8, ["value"])
198
198
  ])
199
199
  ]),
@@ -205,15 +205,15 @@ const I = { class: "v-popover-handle" }, R = {
205
205
  S.install = (e) => {
206
206
  e.component("VBatchInput", S);
207
207
  };
208
- const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
208
+ const F = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
209
209
  __proto__: null,
210
210
  default: S
211
- }, Symbol.toStringTag, { value: "Module" })), q = /* @__PURE__ */ N({
211
+ }, Symbol.toStringTag, { value: "Module" })), q = /* @__PURE__ */ A({
212
212
  __name: "index",
213
213
  setup(e) {
214
- return (o, a) => (_(), x(U(D), G(Z(o.$attrs)), {
214
+ return (o, a) => (_(), x(U(Z), k(o.$attrs, { size: "small" }), {
215
215
  default: u(() => [
216
- k(o.$slots, "default")
216
+ j(o.$slots, "default")
217
217
  ]),
218
218
  _: 3
219
219
  }, 16));
@@ -222,10 +222,10 @@ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
222
222
  q.install = (e) => {
223
223
  e.component("VButton", q);
224
224
  };
225
- const K = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
225
+ const J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
226
226
  __proto__: null,
227
227
  default: q
228
- }, Symbol.toStringTag, { value: "Module" })), B = /* @__PURE__ */ N({
228
+ }, Symbol.toStringTag, { value: "Module" })), B = /* @__PURE__ */ A({
229
229
  __name: "index",
230
230
  props: {
231
231
  title: { type: String, default: "提示" },
@@ -245,7 +245,7 @@ const K = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
245
245
  };
246
246
  return o({ open: r, close: d }), (g, c) => {
247
247
  const b = V("el-button"), $ = V("el-dialog");
248
- return _(), x($, P({
248
+ return _(), x($, k({
249
249
  modelValue: t.value,
250
250
  "onUpdate:modelValue": c[0] || (c[0] = (h) => t.value = h),
251
251
  width: "30%",
@@ -258,7 +258,7 @@ const K = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
258
258
  class: "v-dialog"
259
259
  }), {
260
260
  footer: u(() => [
261
- e.disabled ? E("", !0) : (_(), x(b, {
261
+ e.disabled ? G("", !0) : (_(), x(b, {
262
262
  key: 0,
263
263
  type: "primary",
264
264
  loading: e.loading,
@@ -283,7 +283,7 @@ const K = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
283
283
  ]),
284
284
  default: u(() => [
285
285
  s("div", null, [
286
- k(g.$slots, "content")
286
+ j(g.$slots, "content")
287
287
  ])
288
288
  ]),
289
289
  _: 3
@@ -294,35 +294,35 @@ const K = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
294
294
  B.install = (e) => {
295
295
  e.component("VGroup", B);
296
296
  };
297
- const L = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
297
+ const K = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
298
298
  __proto__: null,
299
299
  default: B
300
- }, Symbol.toStringTag, { value: "Module" })), Q = (e, o) => {
300
+ }, Symbol.toStringTag, { value: "Module" })), L = (e, o) => {
301
301
  const a = e.__vccOpts || e;
302
302
  for (const [i, t] of o)
303
303
  a[i] = t;
304
304
  return a;
305
- }, W = {}, X = { class: "v-group" };
306
- function Y(e, o) {
307
- return _(), M("div", X, [
308
- k(e.$slots, "default")
305
+ }, Q = {}, R = { class: "v-group" };
306
+ function W(e, o) {
307
+ return _(), M("div", R, [
308
+ j(e.$slots, "default")
309
309
  ]);
310
310
  }
311
- const z = /* @__PURE__ */ Q(W, [["render", Y]]);
311
+ const z = /* @__PURE__ */ L(Q, [["render", W]]);
312
312
  z.install = (e) => {
313
313
  e.component("VGroup", z);
314
314
  };
315
- const ee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
315
+ const X = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
316
316
  __proto__: null,
317
317
  default: z
318
- }, Symbol.toStringTag, { value: "Module" })), T = /* @__PURE__ */ Object.assign({ "./BatchInput/index.ts": J, "./Button/index.ts": K, "./Dialog/index.ts": L, "./Group/index.ts": ee }), oe = {
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
319
  install(e) {
320
- for (const o in T) {
321
- const a = T[o].default, i = o.split("/")[1], t = i.charAt(0).toUpperCase() + i.slice(1);
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
322
  e.component(`V${t}`, a);
323
323
  }
324
324
  }
325
325
  };
326
326
  export {
327
- oe as default
327
+ te as default
328
328
  };
@@ -3,4 +3,4 @@
3
3
  `))||""},set(o){l("update:modelValue",(o==null?void 0:o.split(`
4
4
  `).join(","))||"")}}),f=e.computed(()=>{var o;return((o=c.value)==null?void 0:o.split(`
5
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.normalizeProps(e.guardReactiveProps(n.$attrs)),{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3},16))}});h.install=t=>{t.component("VButton",h)};const q=Object.freeze(Object.defineProperty({__proto__:null,default:h},Symbol.toStringTag,{value:"Module"})),x=e.defineComponent({__name:"index",props:{title:{type:String,default:"提示"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["close","save","open"],setup(t,{expose:n,emit:s}){const r=s,l=e.ref(!1),i=()=>{l.value=!0},d=()=>{l.value=!1,r("close")},m=()=>{d()},c=()=>{r("save")};return n({open:i,close:d}),(f,p)=>{const _=e.resolveComponent("el-button"),C=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(C,e.mergeProps({modelValue:l.value,"onUpdate:modelValue":p[0]||(p[0]=V=>l.value=V),width:"30%",title:t.title,"align-center":""},f.$attrs,{draggable:"","close-on-click-modal":!1,onClose:m,class:"v-dialog"}),{footer:e.withCtx(()=>[t.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(_,{key:0,type:"primary",loading:t.loading,onClick:c},{default:e.withCtx(()=>p[1]||(p[1]=[e.createTextVNode(" 确定 ")])),_:1,__:[1]},8,["loading"])),e.createVNode(_,{disabled:t.loading,onClick:m},{default:e.withCtx(()=>p[2]||(p[2]=[e.createTextVNode(" 取消 ")])),_:1,__:[2]},8,["disabled"])]),default:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(f.$slots,"content")])]),_:3},16,["modelValue","title"])}}});x.install=t=>{t.component("VGroup",x)};const E=Object.freeze(Object.defineProperty({__proto__:null,default:x},Symbol.toStringTag,{value:"Module"})),z=(t,n)=>{const s=t.__vccOpts||t;for(const[r,l]of n)s[r]=l;return s},M={},T={class:"v-group"};function j(t,n){return e.openBlock(),e.createElementBlock("div",T,[e.renderSlot(t.$slots,"default")])}const w=z(M,[["render",j]]);w.install=t=>{t.component("VGroup",w)};const y=Object.assign({"./BatchInput/index.ts":$,"./Button/index.ts":q,"./Dialog/index.ts":E,"./Group/index.ts":Object.freeze(Object.defineProperty({__proto__:null,default:w},Symbol.toStringTag,{value:"Module"}))});return{install(t){for(const n in y){const s=y[n].default,r=n.split("/")[1],l=r.charAt(0).toUpperCase()+r.slice(1);t.component(`V${l}`,s)}}}});
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.3",
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",