@xto/form 1.3.7 → 1.3.9

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.
Files changed (3) hide show
  1. package/es/index.mjs +110 -110
  2. package/lib/index.cjs +1 -1
  3. package/package.json +1 -1
package/es/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as le, computed as M, openBlock as i, createElementBlock as c, normalizeStyle as te, normalizeClass as u, createElementVNode as d, renderSlot as se, createTextVNode as de, toDisplayString as U, ref as L, useSlots as Fe, watch as ie, unref as n, createCommentVNode as N, withDirectives as ue, vModelDynamic as Ke, createVNode as Z, vModelText as Me, inject as Ve, withModifiers as oe, provide as Ce, toRef as We, onMounted as pe, onUnmounted as $e, Fragment as J, renderList as _, createBlock as fe, Teleport as Ie, Transition as Pe, withCtx as He, vModelSelect as we, vShow as ge, nextTick as De, defineAsyncComponent as Ee, shallowRef as qe, onBeforeUnmount as je } from "vue";
1
+ import { defineComponent as le, computed as M, openBlock as i, createElementBlock as c, normalizeStyle as te, normalizeClass as u, createElementVNode as d, renderSlot as se, createTextVNode as de, toDisplayString as U, ref as L, useSlots as Fe, watch as ie, unref as n, createCommentVNode as N, withDirectives as oe, vModelDynamic as Ke, createVNode as Q, vModelText as Me, inject as Ve, withModifiers as ue, provide as Ce, toRef as We, onMounted as pe, onUnmounted as $e, Fragment as J, renderList as _, createBlock as fe, Teleport as Ie, Transition as Pe, withCtx as He, vModelSelect as we, vShow as ge, nextTick as De, defineAsyncComponent as Ee, shallowRef as qe, onBeforeUnmount as je } from "vue";
2
2
  import { useNamespace as ae, useZIndex as Oe } from "@xto/core";
3
3
  const Ue = {
4
4
  // 箭头类
@@ -331,7 +331,7 @@ const Je = ["aria-hidden", "aria-label"], Ze = ["stroke-width"], Qe = ["d"], ee
331
331
  }, U(s.prefixIcon), 3)
332
332
  ])
333
333
  ], 2)) : N("", !0),
334
- ue(d("input", {
334
+ oe(d("input", {
335
335
  ref_key: "inputRef",
336
336
  ref: v,
337
337
  "onUpdate:modelValue": F[0] || (F[0] = (Y) => D.value = Y),
@@ -359,7 +359,7 @@ const Je = ["aria-hidden", "aria-label"], Ze = ["stroke-width"], Qe = ["d"], ee
359
359
  class: u([n(l).e("icon"), n(l).e("clear")]),
360
360
  onClick: V
361
361
  }, [
362
- Z(n(ee), {
362
+ Q(n(ee), {
363
363
  name: "close",
364
364
  size: 14
365
365
  })
@@ -369,7 +369,7 @@ const Je = ["aria-hidden", "aria-label"], Ze = ["stroke-width"], Qe = ["d"], ee
369
369
  class: u([n(l).e("icon"), n(l).e("password")]),
370
370
  onClick: h
371
371
  }, [
372
- Z(n(ee), {
372
+ Q(n(ee), {
373
373
  name: b.value ? "eye-off" : "eye",
374
374
  size: 14
375
375
  }, null, 8, ["name"])
@@ -613,7 +613,7 @@ const Je = ["aria-hidden", "aria-label"], Ze = ["stroke-width"], Qe = ["d"], ee
613
613
  class: u(D.value),
614
614
  style: te(s.disabled ? void 0 : { cursor: "text" })
615
615
  }, [
616
- ue(d("textarea", {
616
+ oe(d("textarea", {
617
617
  ref_key: "textareaRef",
618
618
  ref: v,
619
619
  "onUpdate:modelValue": h[0] || (h[0] = (r) => b.value = r),
@@ -703,7 +703,7 @@ const Je = ["aria-hidden", "aria-label"], Ze = ["stroke-width"], Qe = ["d"], ee
703
703
  };
704
704
  return (P, y) => (i(), c("label", {
705
705
  class: u(D.value),
706
- onClick: oe(S, ["prevent"])
706
+ onClick: ue(S, ["prevent"])
707
707
  }, [
708
708
  d("span", {
709
709
  class: u(n(a).e("input"))
@@ -772,7 +772,7 @@ const Je = ["aria-hidden", "aria-label"], Ze = ["stroke-width"], Qe = ["d"], ee
772
772
  };
773
773
  return (D, S) => (i(), c("label", {
774
774
  class: u(z.value),
775
- onClick: oe(C, ["prevent"])
775
+ onClick: ue(C, ["prevent"])
776
776
  }, [
777
777
  d("input", {
778
778
  type: "radio",
@@ -831,7 +831,7 @@ const Je = ["aria-hidden", "aria-label"], Ze = ["stroke-width"], Qe = ["d"], ee
831
831
  };
832
832
  return (D, S) => (i(), c("label", {
833
833
  class: u(z.value),
834
- onClick: oe(C, ["prevent"])
834
+ onClick: ue(C, ["prevent"])
835
835
  }, [
836
836
  d("span", {
837
837
  class: u(n(a).e("input"))
@@ -1541,13 +1541,13 @@ const pl = [
1541
1541
  endDate: Array.isArray(V.value) ? V.value[1] : null
1542
1542
  }));
1543
1543
  });
1544
- const Q = (B) => {
1544
+ const Z = (B) => {
1545
1545
  B.key === "Escape" && g();
1546
1546
  };
1547
1547
  return pe(() => {
1548
- document.addEventListener("click", G), document.addEventListener("keydown", Q);
1548
+ document.addEventListener("click", G), document.addEventListener("keydown", Z);
1549
1549
  }), $e(() => {
1550
- document.removeEventListener("click", G), document.removeEventListener("keydown", Q);
1550
+ document.removeEventListener("click", G), document.removeEventListener("keydown", Z);
1551
1551
  }), k({
1552
1552
  focus: () => {
1553
1553
  var B;
@@ -1583,9 +1583,9 @@ const pl = [
1583
1583
  s.clearable && h.value && !s.disabled ? (i(), c("span", {
1584
1584
  key: 0,
1585
1585
  class: u(n(l).e("clear")),
1586
- onClick: oe(E, ["stop"])
1586
+ onClick: ue(E, ["stop"])
1587
1587
  }, [
1588
- Z(n(ee), {
1588
+ Q(n(ee), {
1589
1589
  name: "close",
1590
1590
  size: 14
1591
1591
  })
@@ -1593,7 +1593,7 @@ const pl = [
1593
1593
  key: 1,
1594
1594
  class: u(n(l).e("icon"))
1595
1595
  }, [
1596
- Z(n(ee), {
1596
+ Q(n(ee), {
1597
1597
  name: "calendar",
1598
1598
  size: 14
1599
1599
  })
@@ -1629,9 +1629,9 @@ const pl = [
1629
1629
  s.clearable && (r.value || $.value) && !s.disabled ? (i(), c("span", {
1630
1630
  key: 0,
1631
1631
  class: u(n(l).e("clear")),
1632
- onClick: oe(E, ["stop"])
1632
+ onClick: ue(E, ["stop"])
1633
1633
  }, [
1634
- Z(n(ee), {
1634
+ Q(n(ee), {
1635
1635
  name: "close",
1636
1636
  size: 14
1637
1637
  })
@@ -1639,7 +1639,7 @@ const pl = [
1639
1639
  key: 1,
1640
1640
  class: u(n(l).e("icon"))
1641
1641
  }, [
1642
- Z(n(ee), {
1642
+ Q(n(ee), {
1643
1643
  name: "calendar",
1644
1644
  size: 14
1645
1645
  })
@@ -1647,9 +1647,9 @@ const pl = [
1647
1647
  ], 2)
1648
1648
  ], 2)),
1649
1649
  (i(), fe(Ie, { to: "body" }, [
1650
- Z(Pe, { name: "fade" }, {
1650
+ Q(Pe, { name: "fade" }, {
1651
1651
  default: He(() => [
1652
- ue(d("div", {
1652
+ oe(d("div", {
1653
1653
  ref_key: "popperRef",
1654
1654
  ref: C,
1655
1655
  class: u(n(l).e("popper")),
@@ -1718,7 +1718,7 @@ const pl = [
1718
1718
  d("div", {
1719
1719
  class: u(n(l).e("time-item"))
1720
1720
  }, [
1721
- ue(d("select", {
1721
+ oe(d("select", {
1722
1722
  "onUpdate:modelValue": O[3] || (O[3] = (W) => R.value.hours = W),
1723
1723
  class: u(n(l).e("time-select"))
1724
1724
  }, [
@@ -1739,7 +1739,7 @@ const pl = [
1739
1739
  d("div", {
1740
1740
  class: u(n(l).e("time-item"))
1741
1741
  }, [
1742
- ue(d("select", {
1742
+ oe(d("select", {
1743
1743
  "onUpdate:modelValue": O[4] || (O[4] = (W) => R.value.minutes = W),
1744
1744
  class: u(n(l).e("time-select"))
1745
1745
  }, [
@@ -1760,7 +1760,7 @@ const pl = [
1760
1760
  d("div", {
1761
1761
  class: u(n(l).e("time-item"))
1762
1762
  }, [
1763
- ue(d("select", {
1763
+ oe(d("select", {
1764
1764
  "onUpdate:modelValue": O[5] || (O[5] = (W) => R.value.seconds = W),
1765
1765
  class: u(n(l).e("time-select"))
1766
1766
  }, [
@@ -2140,9 +2140,9 @@ const Tl = ["onClick"], Hl = ["onClick"], Ll = ["onClick"], Rl = /* @__PURE__ */
2140
2140
  s.clearable && T.value && !s.disabled ? (i(), c("span", {
2141
2141
  key: 0,
2142
2142
  class: u(n(l).e("clear")),
2143
- onClick: oe(x, ["stop"])
2143
+ onClick: ue(x, ["stop"])
2144
2144
  }, [
2145
- Z(n(ee), {
2145
+ Q(n(ee), {
2146
2146
  name: "close",
2147
2147
  size: 14
2148
2148
  })
@@ -2150,7 +2150,7 @@ const Tl = ["onClick"], Hl = ["onClick"], Ll = ["onClick"], Rl = /* @__PURE__ */
2150
2150
  key: 1,
2151
2151
  class: u(n(l).e("icon"))
2152
2152
  }, [
2153
- Z(n(ee), {
2153
+ Q(n(ee), {
2154
2154
  name: "clock",
2155
2155
  size: 14
2156
2156
  })
@@ -2168,7 +2168,7 @@ const Tl = ["onClick"], Hl = ["onClick"], Ll = ["onClick"], Rl = /* @__PURE__ */
2168
2168
  readonly: !0,
2169
2169
  value: R.value,
2170
2170
  class: u([n(l).e("input-inner"), n(l).is("active", P.value === "start")]),
2171
- onClick: g[0] || (g[0] = oe((X) => A("start"), ["stop"]))
2171
+ onClick: g[0] || (g[0] = ue((X) => A("start"), ["stop"]))
2172
2172
  }, null, 10, Al),
2173
2173
  d("span", {
2174
2174
  class: u(n(l).e("separator"))
@@ -2180,7 +2180,7 @@ const Tl = ["onClick"], Hl = ["onClick"], Ll = ["onClick"], Rl = /* @__PURE__ */
2180
2180
  readonly: !0,
2181
2181
  value: I.value,
2182
2182
  class: u([n(l).e("input-inner"), n(l).is("active", P.value === "end")]),
2183
- onClick: g[1] || (g[1] = oe((X) => A("end"), ["stop"]))
2183
+ onClick: g[1] || (g[1] = ue((X) => A("end"), ["stop"]))
2184
2184
  }, null, 10, Fl),
2185
2185
  d("span", {
2186
2186
  class: u(n(l).e("suffix"))
@@ -2188,9 +2188,9 @@ const Tl = ["onClick"], Hl = ["onClick"], Ll = ["onClick"], Rl = /* @__PURE__ */
2188
2188
  s.clearable && (R.value || I.value) && !s.disabled ? (i(), c("span", {
2189
2189
  key: 0,
2190
2190
  class: u(n(l).e("clear")),
2191
- onClick: oe(x, ["stop"])
2191
+ onClick: ue(x, ["stop"])
2192
2192
  }, [
2193
- Z(n(ee), {
2193
+ Q(n(ee), {
2194
2194
  name: "close",
2195
2195
  size: 14
2196
2196
  })
@@ -2198,7 +2198,7 @@ const Tl = ["onClick"], Hl = ["onClick"], Ll = ["onClick"], Rl = /* @__PURE__ */
2198
2198
  key: 1,
2199
2199
  class: u(n(l).e("icon"))
2200
2200
  }, [
2201
- Z(n(ee), {
2201
+ Q(n(ee), {
2202
2202
  name: "clock",
2203
2203
  size: 14
2204
2204
  })
@@ -2206,9 +2206,9 @@ const Tl = ["onClick"], Hl = ["onClick"], Ll = ["onClick"], Rl = /* @__PURE__ */
2206
2206
  ], 2)
2207
2207
  ], 2)),
2208
2208
  (i(), fe(Ie, { to: "body" }, [
2209
- Z(Pe, { name: "fade" }, {
2209
+ Q(Pe, { name: "fade" }, {
2210
2210
  default: He(() => [
2211
- ue(d("div", {
2211
+ oe(d("div", {
2212
2212
  ref_key: "popperRef",
2213
2213
  ref: z,
2214
2214
  class: u(n(l).e("popper")),
@@ -2218,7 +2218,7 @@ const Tl = ["onClick"], Hl = ["onClick"], Ll = ["onClick"], Rl = /* @__PURE__ */
2218
2218
  key: 0,
2219
2219
  class: u(n(l).e("popper-header"))
2220
2220
  }, U(P.value === "start" ? "请选择开始时间" : "请选择结束时间"), 3)) : N("", !0),
2221
- Z(Rl, {
2221
+ Q(Rl, {
2222
2222
  "model-value": V.value,
2223
2223
  format: s.format,
2224
2224
  "disabled-hours": s.disabledHours,
@@ -2308,8 +2308,8 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
2308
2308
  const t = le({
2309
2309
  name: "XSelectPopperContent",
2310
2310
  setup(E, { slots: G }) {
2311
- const Q = Ve("select");
2312
- return Q && Ce("select", Q), () => {
2311
+ const Z = Ve("select");
2312
+ return Z && Ce("select", Z), () => {
2313
2313
  var B;
2314
2314
  return (B = G.default) == null ? void 0 : B.call(G);
2315
2315
  };
@@ -2330,15 +2330,15 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
2330
2330
  })), j = M(() => {
2331
2331
  const E = [];
2332
2332
  for (const G of A.value) {
2333
- const Q = Xe(r.value, G, e.valueKey, e.childrenKey);
2334
- Q && E.push(Q);
2333
+ const Z = Xe(r.value, G, e.valueKey, e.childrenKey);
2334
+ Z && E.push(Z);
2335
2335
  }
2336
2336
  return E;
2337
2337
  }), p = M(() => {
2338
2338
  if (I.value)
2339
2339
  return "";
2340
2340
  if (V.value)
2341
- return Ae(r.value, A.value[A.value.length - 1], e.valueKey, e.childrenKey).map((Q) => Q[e.labelKey]).join(e.separator);
2341
+ return Ae(r.value, A.value[A.value.length - 1], e.valueKey, e.childrenKey).map((Z) => Z[e.labelKey]).join(e.separator);
2342
2342
  const E = j.value[0];
2343
2343
  return E ? E[e.labelKey] : "";
2344
2344
  }), x = M(() => I.value ? j.value : []), w = M(() => e.collapseTags ? x.value.slice(0, e.maxCollapseTags) : x.value), o = M(() => e.collapseTags ? Math.max(0, x.value.length - e.maxCollapseTags) : 0), f = M(() => [
@@ -2352,9 +2352,9 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
2352
2352
  ]), g = () => {
2353
2353
  if (!b.value || !z.value || !C.value) return;
2354
2354
  const E = b.value.getBoundingClientRect(), G = z.value.getBoundingClientRect();
2355
- let Q = E.bottom + 4, B = E.left;
2356
- B + G.width > window.innerWidth && (B = window.innerWidth - G.width - 8), Q + G.height > window.innerHeight && (Q = E.top - G.height - 4), y.value = {
2357
- top: `${Q}px`,
2355
+ let Z = E.bottom + 4, B = E.left;
2356
+ B + G.width > window.innerWidth && (B = window.innerWidth - G.width - 8), Z + G.height > window.innerHeight && (Z = E.top - G.height - 4), y.value = {
2357
+ top: `${Z}px`,
2358
2358
  left: `${B}px`
2359
2359
  };
2360
2360
  }, X = () => {
@@ -2366,13 +2366,13 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
2366
2366
  }, K = (E) => {
2367
2367
  if (!E.disabled)
2368
2368
  if (I.value) {
2369
- const G = [...A.value], Q = E[e.valueKey], B = G.indexOf(Q);
2369
+ const G = [...A.value], Z = E[e.valueKey], B = G.indexOf(Z);
2370
2370
  if (B > -1)
2371
- G.splice(B, 1), a("remove-tag", Q);
2371
+ G.splice(B, 1), a("remove-tag", Z);
2372
2372
  else {
2373
2373
  if (e.multipleLimit > 0 && G.length >= e.multipleLimit)
2374
2374
  return;
2375
- G.push(Q);
2375
+ G.push(Z);
2376
2376
  }
2377
2377
  $(G);
2378
2378
  } else if (V.value)
@@ -2380,13 +2380,13 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
2380
2380
  const G = Ae(r.value, E[e.valueKey], e.valueKey, e.childrenKey);
2381
2381
  h.value = G;
2382
2382
  } else {
2383
- const Q = Ae(r.value, E[e.valueKey], e.valueKey, e.childrenKey).map((B) => B[e.valueKey]);
2384
- $(Q), ne();
2383
+ const Z = Ae(r.value, E[e.valueKey], e.valueKey, e.childrenKey).map((B) => B[e.valueKey]);
2384
+ $(Z), ne();
2385
2385
  }
2386
2386
  else
2387
2387
  $(E[e.valueKey]), ne();
2388
2388
  }, re = (E) => {
2389
- const G = A.value.filter((Q) => Q !== E[e.valueKey]);
2389
+ const G = A.value.filter((Z) => Z !== E[e.valueKey]);
2390
2390
  $(G), a("remove-tag", E[e.valueKey]);
2391
2391
  }, q = () => {
2392
2392
  const E = I.value ? [] : "";
@@ -2395,8 +2395,8 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
2395
2395
  S.value = E.target.value;
2396
2396
  }, be = (E) => {
2397
2397
  if (!b.value) return;
2398
- const G = E.target;
2399
- b.value.contains(G) || z.value && z.value.contains(G) || ne();
2398
+ const G = E.target, Z = z.value && z.value.contains(G);
2399
+ b.value.contains(G) || Z || ne();
2400
2400
  }, ze = (E) => {
2401
2401
  if (E.key === "Escape")
2402
2402
  ne();
@@ -2418,9 +2418,9 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
2418
2418
  return E;
2419
2419
  });
2420
2420
  return pe(() => {
2421
- document.addEventListener("click", be), document.addEventListener("keydown", ze);
2421
+ document.addEventListener("mousedown", be), document.addEventListener("keydown", ze);
2422
2422
  }), $e(() => {
2423
- document.removeEventListener("click", be), document.removeEventListener("keydown", ze), document.removeEventListener("scroll", g, !0);
2423
+ document.removeEventListener("mousedown", be), document.removeEventListener("keydown", ze), document.removeEventListener("scroll", g, !0);
2424
2424
  }), ie(C, (E) => {
2425
2425
  E ? document.addEventListener("scroll", g, !0) : document.removeEventListener("scroll", g, !0);
2426
2426
  }), Ce("select", {
@@ -2435,22 +2435,22 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
2435
2435
  }, [
2436
2436
  d("div", {
2437
2437
  class: u(n(l).e("wrapper")),
2438
- onClick: G[0] || (G[0] = (Q) => C.value ? ne() : X())
2438
+ onClick: G[0] || (G[0] = (Z) => C.value ? ne() : X())
2439
2439
  }, [
2440
2440
  I.value && x.value.length > 0 ? (i(), c("div", {
2441
2441
  key: 0,
2442
2442
  class: u(n(l).e("tags"))
2443
2443
  }, [
2444
- (i(!0), c(J, null, _(w.value, (Q) => (i(), c("span", {
2445
- key: Q[s.valueKey],
2444
+ (i(!0), c(J, null, _(w.value, (Z) => (i(), c("span", {
2445
+ key: Z[s.valueKey],
2446
2446
  class: u(n(l).e("tag"))
2447
2447
  }, [
2448
2448
  d("span", {
2449
2449
  class: u(n(l).e("tag-text"))
2450
- }, U(Q[s.labelKey]), 3),
2450
+ }, U(Z[s.labelKey]), 3),
2451
2451
  d("span", {
2452
2452
  class: u(n(l).e("tag-close")),
2453
- onClick: oe((B) => re(Q), ["stop"])
2453
+ onClick: ue((B) => re(Z), ["stop"])
2454
2454
  }, "×", 10, Ol)
2455
2455
  ], 2))), 128)),
2456
2456
  o.value > 0 ? (i(), c("span", {
@@ -2474,12 +2474,12 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
2474
2474
  s.clearable && A.value.length > 0 && !s.disabled ? (i(), c("span", {
2475
2475
  key: 0,
2476
2476
  class: u(n(l).e("clear")),
2477
- onClick: oe(q, ["stop"])
2477
+ onClick: ue(q, ["stop"])
2478
2478
  }, "×", 2)) : (i(), c("span", {
2479
2479
  key: 1,
2480
2480
  class: u([n(l).e("arrow"), n(l).is("reverse", C.value)])
2481
2481
  }, [
2482
- Z(n(ee), {
2482
+ Q(n(ee), {
2483
2483
  name: "chevron-down",
2484
2484
  size: 14
2485
2485
  })
@@ -2487,9 +2487,9 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
2487
2487
  ], 2)
2488
2488
  ], 2),
2489
2489
  (i(), fe(Ie, { to: "body" }, [
2490
- Z(Pe, { name: "fade" }, {
2490
+ Q(Pe, { name: "fade" }, {
2491
2491
  default: He(() => [
2492
- ue(d("div", {
2492
+ oe(d("div", {
2493
2493
  ref_key: "popperRef",
2494
2494
  ref: z,
2495
2495
  class: u([n(l).e("popper"), n(l).is("cascader", V.value)]),
@@ -2499,14 +2499,14 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
2499
2499
  key: 0,
2500
2500
  class: u(n(l).e("cascader-panels"))
2501
2501
  }, [
2502
- (i(!0), c(J, null, _(Le.value, (Q, B) => (i(), c("div", {
2502
+ (i(!0), c(J, null, _(Le.value, (Z, B) => (i(), c("div", {
2503
2503
  key: B,
2504
2504
  class: u(n(l).e("cascader-panel"))
2505
2505
  }, [
2506
- (i(!0), c(J, null, _(Q, (O, W) => (i(), c("div", {
2506
+ (i(!0), c(J, null, _(Z, (O, W) => (i(), c("div", {
2507
2507
  key: O[s.valueKey],
2508
2508
  class: u(Se(O, W)),
2509
- onClick: (Te) => K(O)
2509
+ onClick: ue((Te) => K(O), ["stop", "prevent"])
2510
2510
  }, [
2511
2511
  d("span", {
2512
2512
  class: u(n(l).e("option-label"))
@@ -2526,7 +2526,7 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
2526
2526
  key: 0,
2527
2527
  class: u(n(l).e("options"))
2528
2528
  }, [
2529
- Z(n(t), null, {
2529
+ Q(n(t), null, {
2530
2530
  default: He(() => [
2531
2531
  se(E.$slots, "default")
2532
2532
  ]),
@@ -2536,15 +2536,15 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
2536
2536
  key: 1,
2537
2537
  class: u(n(l).e("options"))
2538
2538
  }, [
2539
- (i(!0), c(J, null, _(Y.value, (Q, B) => (i(), c("div", {
2540
- key: Q[s.valueKey],
2541
- class: u(Se(Q, B)),
2542
- onClick: (O) => K(Q)
2539
+ (i(!0), c(J, null, _(Y.value, (Z, B) => (i(), c("div", {
2540
+ key: Z[s.valueKey],
2541
+ class: u(Se(Z, B)),
2542
+ onClick: ue((O) => K(Z), ["stop", "prevent"])
2543
2543
  }, [
2544
2544
  d("span", {
2545
2545
  class: u(n(l).e("option-label"))
2546
- }, U(Q[s.labelKey]), 3),
2547
- xe(Q) ? (i(), c("span", {
2546
+ }, U(Z[s.labelKey]), 3),
2547
+ xe(Z) ? (i(), c("span", {
2548
2548
  key: 0,
2549
2549
  class: u(n(l).e("option-check"))
2550
2550
  }, "✓", 2)) : N("", !0)
@@ -2695,7 +2695,7 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
2695
2695
  key: 0,
2696
2696
  class: u(n(l).e("filter"))
2697
2697
  }, [
2698
- ue(d("input", {
2698
+ oe(d("input", {
2699
2699
  "onUpdate:modelValue": f[0] || (f[0] = (g) => H.value = g),
2700
2700
  placeholder: s.filterPlaceholder,
2701
2701
  class: u(n(l).e("filter-input"))
@@ -2727,7 +2727,7 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
2727
2727
  type: "checkbox",
2728
2728
  checked: C.value.includes(S(g)),
2729
2729
  disabled: y(g),
2730
- onClick: f[2] || (f[2] = oe(() => {
2730
+ onClick: f[2] || (f[2] = ue(() => {
2731
2731
  }, ["stop"])),
2732
2732
  onChange: (X) => F(S(g))
2733
2733
  }, null, 40, Wl),
@@ -2783,7 +2783,7 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
2783
2783
  key: 0,
2784
2784
  class: u(n(l).e("filter"))
2785
2785
  }, [
2786
- ue(d("input", {
2786
+ oe(d("input", {
2787
2787
  "onUpdate:modelValue": f[3] || (f[3] = (g) => z.value = g),
2788
2788
  placeholder: s.filterPlaceholder,
2789
2789
  class: u(n(l).e("filter-input"))
@@ -2815,7 +2815,7 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
2815
2815
  type: "checkbox",
2816
2816
  checked: D.value.includes(S(g)),
2817
2817
  disabled: y(g),
2818
- onClick: f[5] || (f[5] = oe(() => {
2818
+ onClick: f[5] || (f[5] = ue(() => {
2819
2819
  }, ["stop"])),
2820
2820
  onChange: (X) => Y(S(g))
2821
2821
  }, null, 40, Ql),
@@ -3189,12 +3189,12 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
3189
3189
  d("span", na, U(Math.round(w.percentage || 0)) + "%", 1)
3190
3190
  ])
3191
3191
  ])) : w.status === "error" ? (i(), c("span", sa, [
3192
- Z(n(ee), {
3192
+ Q(n(ee), {
3193
3193
  name: "close",
3194
3194
  size: 16
3195
3195
  })
3196
3196
  ])) : w.status === "success" ? (i(), c("span", ua, [
3197
- Z(n(ee), {
3197
+ Q(n(ee), {
3198
3198
  name: "check",
3199
3199
  size: 16
3200
3200
  })
@@ -3204,7 +3204,7 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
3204
3204
  class: u(n(l).e("file-actions"))
3205
3205
  }, [
3206
3206
  w.url ? (i(), c("span", oa, [
3207
- Z(n(ee), {
3207
+ Q(n(ee), {
3208
3208
  name: "eye",
3209
3209
  size: 14
3210
3210
  })
@@ -3213,7 +3213,7 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
3213
3213
  class: "action-remove",
3214
3214
  onClick: (o) => V(w)
3215
3215
  }, [
3216
- Z(n(ee), {
3216
+ Q(n(ee), {
3217
3217
  name: "delete",
3218
3218
  size: 14
3219
3219
  })
@@ -3279,7 +3279,7 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
3279
3279
  key: 1,
3280
3280
  class: u(n(l).e("file-success"))
3281
3281
  }, [
3282
- Z(n(ee), {
3282
+ Q(n(ee), {
3283
3283
  name: "check",
3284
3284
  size: 14
3285
3285
  })
@@ -3288,7 +3288,7 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
3288
3288
  key: 2,
3289
3289
  class: u(n(l).e("file-error"))
3290
3290
  }, [
3291
- Z(n(ee), {
3291
+ Q(n(ee), {
3292
3292
  name: "close",
3293
3293
  size: 14
3294
3294
  })
@@ -3300,7 +3300,7 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
3300
3300
  class: "action-remove",
3301
3301
  onClick: (o) => V(w)
3302
3302
  }, [
3303
- Z(n(ee), {
3303
+ Q(n(ee), {
3304
3304
  name: "close",
3305
3305
  size: 14
3306
3306
  })
@@ -3335,7 +3335,7 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
3335
3335
  class: u(n(l).e("file-actions"))
3336
3336
  }, [
3337
3337
  w.status === "success" ? (i(), c("span", fa, [
3338
- Z(n(ee), {
3338
+ Q(n(ee), {
3339
3339
  name: "check",
3340
3340
  size: 14
3341
3341
  })
@@ -3344,7 +3344,7 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
3344
3344
  class: "action-remove",
3345
3345
  onClick: (o) => V(w)
3346
3346
  }, [
3347
- Z(n(ee), {
3347
+ Q(n(ee), {
3348
3348
  name: "close",
3349
3349
  size: 14
3350
3350
  })
@@ -3546,7 +3546,7 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
3546
3546
  key: 0,
3547
3547
  class: u(n(a).e("add"))
3548
3548
  }, [
3549
- ue(d("select", {
3549
+ oe(d("select", {
3550
3550
  "onUpdate:modelValue": r[0] || (r[0] = ($) => m.value = $),
3551
3551
  class: u(n(a).e("type-select"))
3552
3552
  }, [
@@ -3587,7 +3587,7 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
3587
3587
  title: "上移",
3588
3588
  onClick: (A) => S($.id)
3589
3589
  }, [
3590
- Z(n(ee), {
3590
+ Q(n(ee), {
3591
3591
  name: "move-up",
3592
3592
  size: 14
3593
3593
  })
@@ -3598,7 +3598,7 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
3598
3598
  title: "下移",
3599
3599
  onClick: (A) => P($.id)
3600
3600
  }, [
3601
- Z(n(ee), {
3601
+ Q(n(ee), {
3602
3602
  name: "move-down",
3603
3603
  size: 14
3604
3604
  })
@@ -3608,7 +3608,7 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
3608
3608
  title: "编辑",
3609
3609
  onClick: (A) => T($)
3610
3610
  }, [
3611
- Z(n(ee), {
3611
+ Q(n(ee), {
3612
3612
  name: "edit",
3613
3613
  size: 14
3614
3614
  })
@@ -3618,7 +3618,7 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
3618
3618
  title: "删除",
3619
3619
  onClick: (A) => D($.id)
3620
3620
  }, [
3621
- Z(n(ee), {
3621
+ Q(n(ee), {
3622
3622
  name: "close",
3623
3623
  size: 14
3624
3624
  })
@@ -3643,7 +3643,7 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
3643
3643
  class: "close-btn",
3644
3644
  onClick: I
3645
3645
  }, [
3646
- Z(n(ee), {
3646
+ Q(n(ee), {
3647
3647
  name: "close",
3648
3648
  size: 16
3649
3649
  })
@@ -3652,7 +3652,7 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
3652
3652
  d("div", za, [
3653
3653
  d("div", Sa, [
3654
3654
  r[8] || (r[8] = d("label", null, "字段名称", -1)),
3655
- ue(d("input", {
3655
+ oe(d("input", {
3656
3656
  "onUpdate:modelValue": r[1] || (r[1] = ($) => v.value.name = $),
3657
3657
  type: "text",
3658
3658
  placeholder: "变量名称"
@@ -3662,7 +3662,7 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
3662
3662
  ]),
3663
3663
  d("div", Ta, [
3664
3664
  r[9] || (r[9] = d("label", null, "字段标签", -1)),
3665
- ue(d("input", {
3665
+ oe(d("input", {
3666
3666
  "onUpdate:modelValue": r[2] || (r[2] = ($) => v.value.label = $),
3667
3667
  type: "text",
3668
3668
  placeholder: "显示标签"
@@ -3672,7 +3672,7 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
3672
3672
  ]),
3673
3673
  d("div", Ha, [
3674
3674
  r[10] || (r[10] = d("label", null, "字段类型", -1)),
3675
- ue(d("select", {
3675
+ oe(d("select", {
3676
3676
  "onUpdate:modelValue": r[3] || (r[3] = ($) => v.value.type = $)
3677
3677
  }, [
3678
3678
  (i(!0), c(J, null, _(s.availableTypes, ($) => (i(), c("option", {
@@ -3692,7 +3692,7 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
3692
3692
  ]),
3693
3693
  d("div", Ba, [
3694
3694
  r[12] || (r[12] = d("label", null, "占位文本", -1)),
3695
- ue(d("input", {
3695
+ oe(d("input", {
3696
3696
  "onUpdate:modelValue": r[5] || (r[5] = ($) => v.value.placeholder = $),
3697
3697
  type: "text",
3698
3698
  placeholder: "输入提示"
@@ -3863,7 +3863,7 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
3863
3863
  mode: s.mode,
3864
3864
  class: "x-rich-editor__toolbar"
3865
3865
  }, null, 8, ["editor", "default-config", "mode"])) : N("", !0),
3866
- Z(n(l), {
3866
+ Q(n(l), {
3867
3867
  modelValue: b.value,
3868
3868
  "onUpdate:modelValue": $[0] || ($[0] = (A) => b.value = A),
3869
3869
  "default-config": D.value,
@@ -3983,7 +3983,7 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
3983
3983
  z.value ? m.value = Array.isArray(p) ? p : [] : Array.isArray(p) ? v.value = p : p !== "" && p !== null && p !== void 0 ? v.value = [p] : v.value = [];
3984
3984
  }, { immediate: !0 }), (p, x) => (i(), c("div", {
3985
3985
  class: u([n(a).b(), n(a).m(s.size), n(a).is("disabled", s.disabled)]),
3986
- onClick: x[2] || (x[2] = oe(() => {
3986
+ onClick: x[2] || (x[2] = ue(() => {
3987
3987
  }, ["stop"]))
3988
3988
  }, [
3989
3989
  d("div", {
@@ -4010,9 +4010,9 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
4010
4010
  s.clearable && D.value ? (i(), c("span", {
4011
4011
  key: 2,
4012
4012
  class: u(n(a).e("clear")),
4013
- onClick: oe(A, ["stop"])
4013
+ onClick: ue(A, ["stop"])
4014
4014
  }, [
4015
- Z(n(ee), {
4015
+ Q(n(ee), {
4016
4016
  name: "close-circle",
4017
4017
  size: 14
4018
4018
  })
@@ -4020,13 +4020,13 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
4020
4020
  d("span", {
4021
4021
  class: u(n(a).e("arrow"))
4022
4022
  }, [
4023
- Z(n(ee), {
4023
+ Q(n(ee), {
4024
4024
  name: "down",
4025
4025
  size: 12
4026
4026
  })
4027
4027
  ], 2)
4028
4028
  ], 2),
4029
- ue(d("div", {
4029
+ oe(d("div", {
4030
4030
  class: u(n(a).e("dropdown"))
4031
4031
  }, [
4032
4032
  P.value ? (i(), c("div", {
@@ -4066,7 +4066,7 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
4066
4066
  z.value ? (i(), c("span", {
4067
4067
  key: 0,
4068
4068
  class: u(n(a).e("checkbox")),
4069
- onClick: x[1] || (x[1] = oe(() => {
4069
+ onClick: x[1] || (x[1] = ue(() => {
4070
4070
  }, ["stop"]))
4071
4071
  }, [
4072
4072
  d("input", {
@@ -4082,7 +4082,7 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
4082
4082
  key: 1,
4083
4083
  class: u(n(a).e("option-arrow"))
4084
4084
  }, [
4085
- Z(n(ee), {
4085
+ Q(n(ee), {
4086
4086
  name: "right",
4087
4087
  size: 12
4088
4088
  })
@@ -4165,7 +4165,7 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
4165
4165
  document.removeEventListener("click", A);
4166
4166
  }), (F, Y) => (i(), c("div", {
4167
4167
  class: u([n(a).b(), n(a).m(s.size), n(a).is("disabled", s.disabled)]),
4168
- onClick: Y[1] || (Y[1] = oe(() => {
4168
+ onClick: Y[1] || (Y[1] = ue(() => {
4169
4169
  }, ["stop"]))
4170
4170
  }, [
4171
4171
  d("div", {
@@ -4183,7 +4183,7 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
4183
4183
  }))
4184
4184
  ], 6)
4185
4185
  ], 2),
4186
- ue(d("div", {
4186
+ oe(d("div", {
4187
4187
  class: u(n(a).e("dropdown"))
4188
4188
  }, [
4189
4189
  d("div", {
@@ -4341,7 +4341,7 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
4341
4341
  v.value = V;
4342
4342
  }), (V, h) => (i(), c("div", {
4343
4343
  class: u([n(a).b(), n(a).m(s.size)]),
4344
- onClick: h[0] || (h[0] = oe(() => {
4344
+ onClick: h[0] || (h[0] = ue(() => {
4345
4345
  }, ["stop"]))
4346
4346
  }, [
4347
4347
  d("div", {
@@ -4363,7 +4363,7 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
4363
4363
  class: u(n(a).e("clear")),
4364
4364
  onClick: R
4365
4365
  }, [
4366
- Z(n(ee), {
4366
+ Q(n(ee), {
4367
4367
  name: "close-circle",
4368
4368
  size: 14
4369
4369
  })
@@ -4372,13 +4372,13 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
4372
4372
  key: 1,
4373
4373
  class: u(n(a).e("loading"))
4374
4374
  }, [
4375
- Z(n(ee), {
4375
+ Q(n(ee), {
4376
4376
  name: "loading",
4377
4377
  size: 14
4378
4378
  })
4379
4379
  ], 2)) : N("", !0)
4380
4380
  ], 2),
4381
- ue(d("div", {
4381
+ oe(d("div", {
4382
4382
  class: u(n(a).e("dropdown"))
4383
4383
  }, [
4384
4384
  d("ul", {
@@ -4516,7 +4516,7 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
4516
4516
  l.value = V;
4517
4517
  }), (V, h) => (i(), c("div", {
4518
4518
  class: u([n(a).b(), n(a).m(s.size)]),
4519
- onClick: h[0] || (h[0] = oe(() => {
4519
+ onClick: h[0] || (h[0] = ue(() => {
4520
4520
  }, ["stop"]))
4521
4521
  }, [
4522
4522
  d("div", {
@@ -4537,13 +4537,13 @@ const Ol = ["onClick"], El = ["placeholder", "disabled", "readonly", "value"], Y
4537
4537
  class: u(n(a).e("clear")),
4538
4538
  onClick: R
4539
4539
  }, [
4540
- Z(n(ee), {
4540
+ Q(n(ee), {
4541
4541
  name: "close-circle",
4542
4542
  size: 14
4543
4543
  })
4544
4544
  ], 2)) : N("", !0)
4545
4545
  ], 2),
4546
- ue(d("div", {
4546
+ oe(d("div", {
4547
4547
  class: u(n(a).e("dropdown"))
4548
4548
  }, [
4549
4549
  d("ul", {