@varlet/ui 2.8.6 → 2.9.0-alpha.1678371604765

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/lib/varlet.cjs.js CHANGED
@@ -457,6 +457,104 @@ function useClickOutside(target, type, listener) {
457
457
  };
458
458
  useEventListener(document, type, handler);
459
459
  }
460
+ var __rest = globalThis && globalThis.__rest || function(s, e) {
461
+ var t = {};
462
+ for (var p in s)
463
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
464
+ t[p] = s[p];
465
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
466
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
467
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
468
+ t[p[i]] = s[p[i]];
469
+ }
470
+ return t;
471
+ };
472
+ function keyInProvides$1(key) {
473
+ const instance = vue.getCurrentInstance();
474
+ return key in instance.provides;
475
+ }
476
+ function useParent$1(key) {
477
+ if (!keyInProvides$1(key)) {
478
+ return {
479
+ index: null,
480
+ parentProvider: null,
481
+ bindParent: null
482
+ };
483
+ }
484
+ const provider = vue.inject(key);
485
+ const { childInstances, collect, clear: clear2 } = provider, parentProvider = __rest(provider, ["childInstances", "collect", "clear"]);
486
+ const childInstance = vue.getCurrentInstance();
487
+ const index = vue.computed(() => childInstances.indexOf(childInstance));
488
+ const bindParent = (childProvider) => {
489
+ vue.onMounted(() => {
490
+ vue.nextTick().then(() => {
491
+ collect(childInstance, childProvider);
492
+ });
493
+ });
494
+ vue.onBeforeUnmount(() => {
495
+ vue.nextTick().then(() => {
496
+ clear2(childInstance, childProvider);
497
+ });
498
+ });
499
+ };
500
+ return {
501
+ index,
502
+ parentProvider,
503
+ bindParent
504
+ };
505
+ }
506
+ function flatVNodes$1(subTree) {
507
+ const vNodes = [];
508
+ const flat = (subTree2) => {
509
+ if (subTree2 === null || subTree2 === void 0 ? void 0 : subTree2.component) {
510
+ flat(subTree2 === null || subTree2 === void 0 ? void 0 : subTree2.component.subTree);
511
+ return;
512
+ }
513
+ if (Array.isArray(subTree2 === null || subTree2 === void 0 ? void 0 : subTree2.children)) {
514
+ subTree2.children.forEach((child) => {
515
+ if (vue.isVNode(child)) {
516
+ vNodes.push(child);
517
+ flat(child);
518
+ }
519
+ });
520
+ }
521
+ };
522
+ flat(subTree);
523
+ return vNodes;
524
+ }
525
+ function useChildren$1(key) {
526
+ const parentInstance = vue.getCurrentInstance();
527
+ const childInstances = vue.reactive([]);
528
+ const childProviders = [];
529
+ const length = vue.computed(() => childInstances.length);
530
+ const sortInstances = () => {
531
+ const vNodes = flatVNodes$1(parentInstance.subTree);
532
+ childInstances.sort((a, b) => {
533
+ return vNodes.indexOf(a.vnode) - vNodes.indexOf(b.vnode);
534
+ });
535
+ };
536
+ const collect = (childInstance, childProvider) => {
537
+ childInstances.push(childInstance);
538
+ childProviders.push(childProvider);
539
+ sortInstances();
540
+ };
541
+ const clear2 = (childInstance, childProvider) => {
542
+ removeItem(childInstances, childInstance);
543
+ removeItem(childProviders, childProvider);
544
+ };
545
+ const bindChildren = (parentProvider) => {
546
+ vue.provide(key, Object.assign({
547
+ childInstances,
548
+ collect,
549
+ clear: clear2
550
+ }, parentProvider));
551
+ };
552
+ return {
553
+ length,
554
+ childProviders,
555
+ bindChildren
556
+ };
557
+ }
460
558
  var _excluded = ["collect", "clear"];
461
559
  function asyncGeneratorStep$d(gen, resolve, reject, _next, _throw, key, arg) {
462
560
  try {
@@ -552,6 +650,22 @@ function mountInstance(component, props2, eventListener) {
552
650
  unmountInstance: unmount2
553
651
  };
554
652
  }
653
+ function flatFragment(vNodes) {
654
+ var result2 = [];
655
+ vNodes.forEach((vNode) => {
656
+ if (vNode.type === vue.Comment) {
657
+ return;
658
+ }
659
+ if (vNode.type === vue.Fragment && isArray(vNode.children)) {
660
+ vNode.children.forEach((item) => {
661
+ result2.push(item);
662
+ });
663
+ return;
664
+ }
665
+ result2.push(vNode);
666
+ });
667
+ return result2;
668
+ }
555
669
  function flatVNodes(subTree) {
556
670
  var vNodes = [];
557
671
  var flat = (subTree2) => {
@@ -781,7 +895,7 @@ function _extends$l() {
781
895
  return _extends$l.apply(this, arguments);
782
896
  }
783
897
  var {
784
- n: n$1f
898
+ n: n$1g
785
899
  } = createNamespace("ripple");
786
900
  var ANIMATION_DURATION$1 = 250;
787
901
  function setStyles(element) {
@@ -836,7 +950,7 @@ function createRipple(event) {
836
950
  size
837
951
  } = computeRippleStyles(this, event);
838
952
  var ripple2 = document.createElement("div");
839
- ripple2.classList.add(n$1f());
953
+ ripple2.classList.add(n$1g());
840
954
  ripple2.style.opacity = "0";
841
955
  ripple2.style.transform = "translate(" + x + "px, " + y + "px) scale3d(.3, .3, .3)";
842
956
  ripple2.style.width = size + "px";
@@ -855,7 +969,7 @@ function createRipple(event) {
855
969
  function removeRipple() {
856
970
  var _ripple = this._ripple;
857
971
  var task = () => {
858
- var ripples = this.querySelectorAll("." + n$1f());
972
+ var ripples = this.querySelectorAll("." + n$1g());
859
973
  if (!ripples.length) {
860
974
  return;
861
975
  }
@@ -939,10 +1053,10 @@ var Ripple = {
939
1053
  };
940
1054
  var _RippleComponent = Ripple;
941
1055
  const Ripple$1 = Ripple;
942
- function positionValidator$3(position) {
1056
+ function positionValidator$4(position) {
943
1057
  return ["top", "bottom", "right", "left", "center"].includes(position);
944
1058
  }
945
- var props$17 = {
1059
+ var props$18 = {
946
1060
  show: {
947
1061
  type: Boolean,
948
1062
  default: false
@@ -950,7 +1064,7 @@ var props$17 = {
950
1064
  position: {
951
1065
  type: String,
952
1066
  default: "center",
953
- validator: positionValidator$3
1067
+ validator: positionValidator$4
954
1068
  },
955
1069
  transition: {
956
1070
  type: String
@@ -1085,17 +1199,17 @@ function _extends$k() {
1085
1199
  };
1086
1200
  return _extends$k.apply(this, arguments);
1087
1201
  }
1088
- function _isSlot$2(s) {
1202
+ function _isSlot$3(s) {
1089
1203
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
1090
1204
  }
1091
1205
  var {
1092
- n: n$1e,
1093
- classes: classes$11
1206
+ n: n$1f,
1207
+ classes: classes$12
1094
1208
  } = createNamespace("popup");
1095
1209
  const Popup = vue.defineComponent({
1096
1210
  name: "VarPopup",
1097
1211
  inheritAttrs: false,
1098
- props: props$17,
1212
+ props: props$18,
1099
1213
  setup(props2, _ref) {
1100
1214
  var {
1101
1215
  slots,
@@ -1129,7 +1243,7 @@ const Popup = vue.defineComponent({
1129
1243
  overlayStyle
1130
1244
  } = props2;
1131
1245
  return vue.createVNode("div", {
1132
- "class": classes$11(n$1e("overlay"), overlayClass),
1246
+ "class": classes$12(n$1f("overlay"), overlayClass),
1133
1247
  "style": _extends$k({
1134
1248
  zIndex: zIndex.value - 1
1135
1249
  }, overlayStyle),
@@ -1138,7 +1252,7 @@ const Popup = vue.defineComponent({
1138
1252
  };
1139
1253
  var renderContent = () => {
1140
1254
  return vue.createVNode("div", vue.mergeProps({
1141
- "class": classes$11(n$1e("content"), n$1e("--" + props2.position), [props2.defaultStyle, n$1e("--content-background-color")], [props2.defaultStyle, n$1e("$-elevation--3")]),
1255
+ "class": classes$12(n$1f("content"), n$1f("--" + props2.position), [props2.defaultStyle, n$1f("--content-background-color")], [props2.defaultStyle, n$1f("$-elevation--3")]),
1142
1256
  "style": {
1143
1257
  zIndex: zIndex.value
1144
1258
  }
@@ -1154,17 +1268,17 @@ const Popup = vue.defineComponent({
1154
1268
  position
1155
1269
  } = props2;
1156
1270
  return vue.createVNode(vue.Transition, {
1157
- "name": n$1e("$-fade"),
1271
+ "name": n$1f("$-fade"),
1158
1272
  "onAfterEnter": onOpened,
1159
1273
  "onAfterLeave": onClosed
1160
1274
  }, {
1161
1275
  default: () => [vue.withDirectives(vue.createVNode("div", {
1162
- "class": classes$11(n$1e("$--box"), n$1e()),
1276
+ "class": classes$12(n$1f("$--box"), n$1f()),
1163
1277
  "style": {
1164
1278
  zIndex: zIndex.value - 2
1165
1279
  }
1166
1280
  }, [overlay2 && renderOverlay(), vue.createVNode(vue.Transition, {
1167
- "name": transition || n$1e("$-pop-" + position)
1281
+ "name": transition || n$1f("$-pop-" + position)
1168
1282
  }, {
1169
1283
  default: () => [show && renderContent()]
1170
1284
  })]), [[vue.vShow, show]])]
@@ -1179,7 +1293,7 @@ const Popup = vue.defineComponent({
1179
1293
  return vue.createVNode(vue.Teleport, {
1180
1294
  "to": teleport,
1181
1295
  "disabled": disabled.value
1182
- }, _isSlot$2(_slot = renderPopup()) ? _slot : {
1296
+ }, _isSlot$3(_slot = renderPopup()) ? _slot : {
1183
1297
  default: () => [_slot]
1184
1298
  });
1185
1299
  }
@@ -1191,7 +1305,7 @@ Popup.install = function(app) {
1191
1305
  app.component(Popup.name, Popup);
1192
1306
  };
1193
1307
  var _PopupComponent = Popup;
1194
- var props$16 = {
1308
+ var props$17 = {
1195
1309
  name: {
1196
1310
  type: String
1197
1311
  },
@@ -1209,6 +1323,9 @@ var props$16 = {
1209
1323
  type: [Number, String],
1210
1324
  default: 0
1211
1325
  },
1326
+ animationClass: {
1327
+ type: String
1328
+ },
1212
1329
  onClick: defineListenerProp()
1213
1330
  };
1214
1331
  function asyncGeneratorStep$c(gen, resolve, reject, _next, _throw, key, arg) {
@@ -1241,17 +1358,17 @@ function _asyncToGenerator$c(fn2) {
1241
1358
  };
1242
1359
  }
1243
1360
  var {
1244
- n: n$1d,
1245
- classes: classes$10
1361
+ n: n$1e,
1362
+ classes: classes$11
1246
1363
  } = createNamespace("icon");
1247
1364
  function __render__$1e(_ctx, _cache) {
1248
1365
  return vue.openBlock(), vue.createBlock(
1249
1366
  vue.resolveDynamicComponent(_ctx.isURL(_ctx.name) ? "img" : "i"),
1250
1367
  {
1251
- class: vue.normalizeClass(_ctx.classes(_ctx.n(), [_ctx.namespace !== _ctx.n(), _ctx.namespace], _ctx.namespace + "--set", [_ctx.isURL(_ctx.name), _ctx.n("image"), _ctx.namespace + "-" + _ctx.nextName], [_ctx.shrinking, _ctx.n("--shrinking")])),
1368
+ class: vue.normalizeClass(_ctx.classes(_ctx.n(), [_ctx.namespace !== _ctx.n(), _ctx.namespace], _ctx.namespace + "--set", [_ctx.isURL(_ctx.name), _ctx.n("image"), _ctx.namespace + "-" + _ctx.nextName], [_ctx.animateInProgress, _ctx.animationClass == null ? _ctx.n("--shrinking") : _ctx.animationClass])),
1252
1369
  style: vue.normalizeStyle({
1253
1370
  color: _ctx.color,
1254
- transition: "transform " + _ctx.toNumber(_ctx.transition) + "ms",
1371
+ "transition-duration": _ctx.toNumber(_ctx.transition) + "ms",
1255
1372
  width: _ctx.isURL(_ctx.name) ? _ctx.toSizeUnit(_ctx.size) : null,
1256
1373
  height: _ctx.isURL(_ctx.name) ? _ctx.toSizeUnit(_ctx.size) : null,
1257
1374
  fontSize: _ctx.toSizeUnit(_ctx.size)
@@ -1266,10 +1383,10 @@ function __render__$1e(_ctx, _cache) {
1266
1383
  }
1267
1384
  var __sfc__$1f = vue.defineComponent({
1268
1385
  name: "VarIcon",
1269
- props: props$16,
1386
+ props: props$17,
1270
1387
  setup(props2) {
1271
1388
  var nextName = vue.ref("");
1272
- var shrinking = vue.ref(false);
1389
+ var animateInProgress = vue.ref(false);
1273
1390
  var handleNameChange = /* @__PURE__ */ function() {
1274
1391
  var _ref = _asyncToGenerator$c(function* (newName, oldName) {
1275
1392
  var {
@@ -1279,11 +1396,13 @@ var __sfc__$1f = vue.defineComponent({
1279
1396
  nextName.value = newName;
1280
1397
  return;
1281
1398
  }
1282
- shrinking.value = true;
1399
+ animateInProgress.value = true;
1283
1400
  yield vue.nextTick();
1284
1401
  setTimeout(() => {
1285
- oldName != null && (nextName.value = newName);
1286
- shrinking.value = false;
1402
+ if (oldName != null) {
1403
+ nextName.value = newName;
1404
+ }
1405
+ animateInProgress.value = false;
1287
1406
  }, toNumber(transition));
1288
1407
  });
1289
1408
  return function handleNameChange2(_x, _x2) {
@@ -1294,10 +1413,10 @@ var __sfc__$1f = vue.defineComponent({
1294
1413
  immediate: true
1295
1414
  });
1296
1415
  return {
1297
- n: n$1d,
1298
- classes: classes$10,
1416
+ n: n$1e,
1417
+ classes: classes$11,
1299
1418
  nextName,
1300
- shrinking,
1419
+ animateInProgress,
1301
1420
  isURL,
1302
1421
  toNumber,
1303
1422
  toSizeUnit
@@ -1324,7 +1443,7 @@ function _extends$j() {
1324
1443
  };
1325
1444
  return _extends$j.apply(this, arguments);
1326
1445
  }
1327
- var props$15 = _extends$j({
1446
+ var props$16 = _extends$j({
1328
1447
  show: {
1329
1448
  type: Boolean,
1330
1449
  default: false
@@ -1342,7 +1461,7 @@ var props$15 = _extends$j({
1342
1461
  },
1343
1462
  onSelect: defineListenerProp(),
1344
1463
  "onUpdate:show": defineListenerProp()
1345
- }, pickProps(props$17, [
1464
+ }, pickProps(props$18, [
1346
1465
  "overlay",
1347
1466
  "overlayClass",
1348
1467
  "overlayStyle",
@@ -1635,8 +1754,8 @@ const Locale = {
1635
1754
  useLocale
1636
1755
  };
1637
1756
  var {
1638
- n: n$1c,
1639
- classes: classes$$
1757
+ n: n$1d,
1758
+ classes: classes$10
1640
1759
  } = createNamespace("action-sheet");
1641
1760
  var _hoisted_1$s = ["onClick"];
1642
1761
  function __render__$1d(_ctx, _cache) {
@@ -1742,7 +1861,7 @@ var __sfc__$1e = vue.defineComponent({
1742
1861
  VarIcon: Icon
1743
1862
  },
1744
1863
  inheritAttrs: false,
1745
- props: props$15,
1864
+ props: props$16,
1746
1865
  setup(props2) {
1747
1866
  var popupShow = vue.ref(false);
1748
1867
  var handleSelect = (action) => {
@@ -1763,8 +1882,8 @@ var __sfc__$1e = vue.defineComponent({
1763
1882
  immediate: true
1764
1883
  });
1765
1884
  return {
1766
- n: n$1c,
1767
- classes: classes$$,
1885
+ n: n$1d,
1886
+ classes: classes$10,
1768
1887
  handlePopupUpdateShow,
1769
1888
  popupShow,
1770
1889
  pack,
@@ -1861,11 +1980,11 @@ Object.assign(ActionSheet, {
1861
1980
  close: close$1
1862
1981
  });
1863
1982
  var _ActionSheetComponent = VarActionSheet;
1864
- function positionValidator$2(position) {
1983
+ function positionValidator$3(position) {
1865
1984
  var validPositions = ["left", "center", "right"];
1866
1985
  return validPositions.includes(position);
1867
1986
  }
1868
- var props$14 = {
1987
+ var props$15 = {
1869
1988
  color: {
1870
1989
  type: String
1871
1990
  },
@@ -1878,7 +1997,7 @@ var props$14 = {
1878
1997
  titlePosition: {
1879
1998
  type: String,
1880
1999
  default: "left",
1881
- validator: positionValidator$2
2000
+ validator: positionValidator$3
1882
2001
  },
1883
2002
  elevation: {
1884
2003
  type: Boolean,
@@ -1896,8 +2015,8 @@ var props$14 = {
1896
2015
  }
1897
2016
  };
1898
2017
  var {
1899
- n: n$1b,
1900
- classes: classes$_
2018
+ n: n$1c,
2019
+ classes: classes$$
1901
2020
  } = createNamespace("app-bar");
1902
2021
  function __render__$1c(_ctx, _cache) {
1903
2022
  return vue.openBlock(), vue.createElementBlock(
@@ -1982,7 +2101,7 @@ function __render__$1c(_ctx, _cache) {
1982
2101
  }
1983
2102
  var __sfc__$1d = vue.defineComponent({
1984
2103
  name: "VarAppBar",
1985
- props: props$14,
2104
+ props: props$15,
1986
2105
  setup(props2, _ref) {
1987
2106
  var {
1988
2107
  slots
@@ -2016,8 +2135,8 @@ var __sfc__$1d = vue.defineComponent({
2016
2135
  useMounted(computePadding);
2017
2136
  vue.onUpdated(computePadding);
2018
2137
  return {
2019
- n: n$1b,
2020
- classes: classes$_,
2138
+ n: n$1c,
2139
+ classes: classes$$,
2021
2140
  rootStyles,
2022
2141
  paddingLeft,
2023
2142
  paddingRight
@@ -2277,7 +2396,7 @@ var internalSizeValidator$1 = (size) => ["mini", "small", "normal", "large"].inc
2277
2396
  function sizeValidator$5(size) {
2278
2397
  return internalSizeValidator$1(size) || isNumber(size) || isString(size);
2279
2398
  }
2280
- var props$13 = {
2399
+ var props$14 = {
2281
2400
  round: {
2282
2401
  type: Boolean,
2283
2402
  default: true
@@ -2320,8 +2439,8 @@ var props$13 = {
2320
2439
  onError: defineListenerProp()
2321
2440
  };
2322
2441
  var {
2323
- n: n$1a,
2324
- classes: classes$Z
2442
+ n: n$1b,
2443
+ classes: classes$_
2325
2444
  } = createNamespace("avatar");
2326
2445
  var _hoisted_1$r = ["src", "lazy-loading", "lazy-error"];
2327
2446
  var _hoisted_2$d = ["src"];
@@ -2410,7 +2529,7 @@ var __sfc__$1c = vue.defineComponent({
2410
2529
  directives: {
2411
2530
  Lazy: Lazy$1
2412
2531
  },
2413
- props: props$13,
2532
+ props: props$14,
2414
2533
  setup(props2) {
2415
2534
  var avatarElement = vue.ref(null);
2416
2535
  var textElement = vue.ref(null);
@@ -2454,8 +2573,8 @@ var __sfc__$1c = vue.defineComponent({
2454
2573
  internalSizeValidator: internalSizeValidator$1,
2455
2574
  sizeValidator: sizeValidator$5,
2456
2575
  toSizeUnit,
2457
- n: n$1a,
2458
- classes: classes$Z,
2576
+ n: n$1b,
2577
+ classes: classes$_,
2459
2578
  avatarElement,
2460
2579
  textElement,
2461
2580
  scale,
@@ -2471,7 +2590,7 @@ Avatar.install = function(app) {
2471
2590
  app.component(Avatar.name, Avatar);
2472
2591
  };
2473
2592
  var _AvatarComponent = Avatar;
2474
- var props$12 = {
2593
+ var props$13 = {
2475
2594
  offset: {
2476
2595
  type: [Number, String]
2477
2596
  },
@@ -2481,8 +2600,8 @@ var props$12 = {
2481
2600
  }
2482
2601
  };
2483
2602
  var {
2484
- n: n$19,
2485
- classes: classes$Y
2603
+ n: n$1a,
2604
+ classes: classes$Z
2486
2605
  } = createNamespace("avatar-group");
2487
2606
  function __render__$1a(_ctx, _cache) {
2488
2607
  return vue.openBlock(), vue.createElementBlock(
@@ -2498,7 +2617,7 @@ function __render__$1a(_ctx, _cache) {
2498
2617
  }
2499
2618
  var __sfc__$1b = vue.defineComponent({
2500
2619
  name: "VarAvatarGroup",
2501
- props: props$12,
2620
+ props: props$13,
2502
2621
  setup(props2) {
2503
2622
  var rootStyles = vue.computed(() => {
2504
2623
  if (props2.offset == null) {
@@ -2509,8 +2628,8 @@ var __sfc__$1b = vue.defineComponent({
2509
2628
  };
2510
2629
  });
2511
2630
  return {
2512
- n: n$19,
2513
- classes: classes$Y,
2631
+ n: n$1a,
2632
+ classes: classes$Z,
2514
2633
  toSizeUnit,
2515
2634
  rootStyles
2516
2635
  };
@@ -2528,7 +2647,7 @@ function typeValidator$a(type) {
2528
2647
  function sizeValidator$4(size) {
2529
2648
  return ["normal", "mini", "small", "large"].includes(size);
2530
2649
  }
2531
- var props$11 = {
2650
+ var props$12 = {
2532
2651
  // loading类型
2533
2652
  type: {
2534
2653
  type: String,
@@ -2557,8 +2676,8 @@ var props$11 = {
2557
2676
  }
2558
2677
  };
2559
2678
  var {
2560
- n: n$18,
2561
- classes: classes$X
2679
+ n: n$19,
2680
+ classes: classes$Y
2562
2681
  } = createNamespace("loading");
2563
2682
  var _withScopeId$6 = (n2) => (vue.pushScopeId(""), n2 = n2(), vue.popScopeId(), n2);
2564
2683
  var _hoisted_1$q = /* @__PURE__ */ _withScopeId$6(() => /* @__PURE__ */ vue.createElementVNode(
@@ -2699,7 +2818,7 @@ function __render__$19(_ctx, _cache) {
2699
2818
  }
2700
2819
  var __sfc__$1a = vue.defineComponent({
2701
2820
  name: "VarLoading",
2702
- props: props$11,
2821
+ props: props$12,
2703
2822
  setup(props2, _ref) {
2704
2823
  var {
2705
2824
  slots
@@ -2716,8 +2835,8 @@ var __sfc__$1a = vue.defineComponent({
2716
2835
  return props2.loading;
2717
2836
  });
2718
2837
  return {
2719
- n: n$18,
2720
- classes: classes$X,
2838
+ n: n$19,
2839
+ classes: classes$Y,
2721
2840
  multiplySizeUnit,
2722
2841
  loadingTypeDict,
2723
2842
  isShow
@@ -2753,7 +2872,7 @@ function sizeValidator$3(size) {
2753
2872
  function nativeTypeValidator(nativeType) {
2754
2873
  return ["button", "reset", "submit"].includes(nativeType);
2755
2874
  }
2756
- var props$10 = {
2875
+ var props$11 = {
2757
2876
  type: {
2758
2877
  type: String,
2759
2878
  validator: typeValidator$9
@@ -2808,9 +2927,9 @@ var props$10 = {
2808
2927
  loadingRadius: {
2809
2928
  type: [Number, String]
2810
2929
  },
2811
- loadingType: pickProps(props$11, "type"),
2812
- loadingSize: pickProps(props$11, "size"),
2813
- loadingColor: _extends$f({}, pickProps(props$11, "color"), {
2930
+ loadingType: pickProps(props$12, "type"),
2931
+ loadingSize: pickProps(props$12, "size"),
2932
+ loadingColor: _extends$f({}, pickProps(props$12, "color"), {
2814
2933
  default: "currentColor"
2815
2934
  }),
2816
2935
  onClick: defineListenerProp(),
@@ -2846,14 +2965,139 @@ function useButtonGroup() {
2846
2965
  bindButtonGroup: bindParent
2847
2966
  };
2848
2967
  }
2968
+ function shouldDisabled(arg) {
2969
+ if (!arg) {
2970
+ return false;
2971
+ }
2972
+ var isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
2973
+ if (arg === "desktop" && isMobile) {
2974
+ return true;
2975
+ }
2976
+ if (arg === "mobile" && !isMobile) {
2977
+ return true;
2978
+ }
2979
+ return false;
2980
+ }
2981
+ function getStyle(element) {
2982
+ var style = element.getAttribute("style");
2983
+ if (!style)
2984
+ return {};
2985
+ return style.split(";").filter(Boolean).reduce((style2, item) => {
2986
+ var [key, value] = item.split(":").map((item2) => item2.trim());
2987
+ style2[camelize(key)] = value;
2988
+ return style2;
2989
+ }, {});
2990
+ }
2991
+ function updateRawStyle(element) {
2992
+ var {
2993
+ value
2994
+ } = element._hover;
2995
+ var style = getStyle(element);
2996
+ Object.keys(value).forEach((key) => {
2997
+ var camelizedKey = camelize(key);
2998
+ var styleValue = value[camelizedKey];
2999
+ if (styleValue != null && style[camelizedKey]) {
3000
+ element._hover.rawStyle[camelizedKey] = style[camelizedKey];
3001
+ }
3002
+ });
3003
+ }
3004
+ function updateStyle(element, styleValue) {
3005
+ Object.keys(styleValue).forEach((key) => {
3006
+ var value = styleValue[key];
3007
+ if (value != null) {
3008
+ element.style[key] = value;
3009
+ }
3010
+ });
3011
+ }
3012
+ function clearStyle(element) {
3013
+ Object.keys(element._hover.value).forEach((key) => {
3014
+ var value = element._hover.value[key];
3015
+ if (value != null) {
3016
+ element.style[key] = "";
3017
+ }
3018
+ });
3019
+ }
3020
+ function restoreStyle(element) {
3021
+ clearStyle(element);
3022
+ updateStyle(element, element._hover.rawStyle);
3023
+ }
3024
+ function createHover() {
3025
+ var {
3026
+ value
3027
+ } = this._hover;
3028
+ this._hover.hovering = true;
3029
+ if (isFunction(value)) {
3030
+ value(this._hover.hovering);
3031
+ return;
3032
+ }
3033
+ updateStyle(this, value);
3034
+ }
3035
+ function removeHover() {
3036
+ this._hover.hovering = false;
3037
+ if (isFunction(this._hover.value)) {
3038
+ this._hover.value(this._hover.hovering);
3039
+ return;
3040
+ }
3041
+ restoreStyle(this);
3042
+ }
3043
+ function mounted(element, binding) {
3044
+ var _element$_hover$hover, _element$_hover;
3045
+ var {
3046
+ arg,
3047
+ value
3048
+ } = binding;
3049
+ if (shouldDisabled(arg)) {
3050
+ return;
3051
+ }
3052
+ element._hover = {
3053
+ value,
3054
+ hovering: (_element$_hover$hover = (_element$_hover = element._hover) == null ? void 0 : _element$_hover.hovering) != null ? _element$_hover$hover : false,
3055
+ rawStyle: {}
3056
+ };
3057
+ updateRawStyle(element);
3058
+ element.addEventListener("mouseenter", createHover);
3059
+ element.addEventListener("mouseleave", removeHover);
3060
+ }
3061
+ function unmounted(element, binding) {
3062
+ if (shouldDisabled(binding.arg)) {
3063
+ return;
3064
+ }
3065
+ restoreStyle(element);
3066
+ element.removeEventListener("mouseenter", createHover);
3067
+ element.removeEventListener("mouseleave", removeHover);
3068
+ }
3069
+ function beforeUpdate(element, binding) {
3070
+ unmounted(element, binding);
3071
+ }
3072
+ function shouldUpdateStyle(element, binding) {
3073
+ return !isFunction(binding.value) && element._hover.hovering;
3074
+ }
3075
+ function updated(element, binding) {
3076
+ mounted(element, binding);
3077
+ if (shouldUpdateStyle(element, binding)) {
3078
+ updateStyle(element, binding.value);
3079
+ }
3080
+ }
3081
+ var Hover = {
3082
+ mounted,
3083
+ unmounted,
3084
+ beforeUpdate,
3085
+ updated,
3086
+ install(app) {
3087
+ app.directive("hover", this);
3088
+ }
3089
+ };
3090
+ var _HoverComponent = Hover;
3091
+ const Hover$1 = Hover;
2849
3092
  var {
2850
- n: n$17,
2851
- classes: classes$W
3093
+ n: n$18,
3094
+ classes: classes$X
2852
3095
  } = createNamespace("button");
2853
3096
  var _hoisted_1$p = ["type", "disabled"];
2854
3097
  function __render__$18(_ctx, _cache) {
2855
3098
  var _component_var_loading = vue.resolveComponent("var-loading");
2856
3099
  var _directive_ripple = vue.resolveDirective("ripple");
3100
+ var _directive_hover = vue.resolveDirective("hover");
2857
3101
  return vue.withDirectives((vue.openBlock(), vue.createElementBlock(
2858
3102
  "button",
2859
3103
  {
@@ -2893,12 +3137,20 @@ function __render__$18(_ctx, _cache) {
2893
3137
  [vue.renderSlot(_ctx.$slots, "default")],
2894
3138
  2
2895
3139
  /* CLASS */
3140
+ ), vue.createElementVNode(
3141
+ "div",
3142
+ {
3143
+ class: vue.normalizeClass(_ctx.classes(_ctx.n("overlay"), [_ctx.hovering, _ctx.n("--hovering")]))
3144
+ },
3145
+ null,
3146
+ 2
3147
+ /* CLASS */
2896
3148
  )],
2897
3149
  46,
2898
3150
  _hoisted_1$p
2899
3151
  )), [[_directive_ripple, {
2900
3152
  disabled: _ctx.disabled || !_ctx.ripple
2901
- }]]);
3153
+ }], [_directive_hover, _ctx.handleHover, "desktop"]]);
2902
3154
  }
2903
3155
  var __sfc__$19 = vue.defineComponent({
2904
3156
  name: "VarButton",
@@ -2906,11 +3158,13 @@ var __sfc__$19 = vue.defineComponent({
2906
3158
  VarLoading: Loading
2907
3159
  },
2908
3160
  directives: {
2909
- Ripple: Ripple$1
3161
+ Ripple: Ripple$1,
3162
+ Hover: Hover$1
2910
3163
  },
2911
- props: props$10,
3164
+ props: props$11,
2912
3165
  setup(props2) {
2913
3166
  var pending = vue.ref(false);
3167
+ var hovering = vue.ref(false);
2914
3168
  var {
2915
3169
  buttonGroup: buttonGroup2
2916
3170
  } = useButtonGroup();
@@ -2976,11 +3230,16 @@ var __sfc__$19 = vue.defineComponent({
2976
3230
  }
2977
3231
  attemptAutoLoading(call(onTouchstart, e));
2978
3232
  };
3233
+ var handleHover = (isHover) => {
3234
+ hovering.value = isHover;
3235
+ };
2979
3236
  return {
2980
- n: n$17,
2981
- classes: classes$W,
3237
+ n: n$18,
3238
+ classes: classes$X,
2982
3239
  pending,
2983
3240
  states,
3241
+ hovering,
3242
+ handleHover,
2984
3243
  handleClick,
2985
3244
  handleTouchstart
2986
3245
  };
@@ -2992,7 +3251,7 @@ Button.install = function(app) {
2992
3251
  app.component(Button.name, Button);
2993
3252
  };
2994
3253
  var _ButtonComponent = Button;
2995
- var props$$ = {
3254
+ var props$10 = {
2996
3255
  visibilityHeight: {
2997
3256
  type: [Number, String],
2998
3257
  default: 200
@@ -3013,8 +3272,8 @@ var props$$ = {
3013
3272
  onClick: defineListenerProp()
3014
3273
  };
3015
3274
  var {
3016
- n: n$16,
3017
- classes: classes$V
3275
+ n: n$17,
3276
+ classes: classes$W
3018
3277
  } = createNamespace("back-top");
3019
3278
  function __render__$17(_ctx, _cache) {
3020
3279
  var _component_var_icon = vue.resolveComponent("var-icon");
@@ -3064,7 +3323,7 @@ var __sfc__$18 = vue.defineComponent({
3064
3323
  VarIcon: Icon
3065
3324
  },
3066
3325
  inheritAttrs: false,
3067
- props: props$$,
3326
+ props: props$10,
3068
3327
  setup(props2) {
3069
3328
  var show = vue.ref(false);
3070
3329
  var backTopEl = vue.ref(null);
@@ -3104,8 +3363,8 @@ var __sfc__$18 = vue.defineComponent({
3104
3363
  show,
3105
3364
  backTopEl,
3106
3365
  toSizeUnit,
3107
- n: n$16,
3108
- classes: classes$V,
3366
+ n: n$17,
3367
+ classes: classes$W,
3109
3368
  handleClick
3110
3369
  };
3111
3370
  }
@@ -3119,10 +3378,10 @@ var _BackTopComponent = BackTop;
3119
3378
  function typeValidator$8(type) {
3120
3379
  return ["default", "primary", "info", "success", "warning", "danger"].includes(type);
3121
3380
  }
3122
- function positionValidator$1(position) {
3381
+ function positionValidator$2(position) {
3123
3382
  return ["right-top", "right-bottom", "left-top", "left-bottom"].includes(position);
3124
3383
  }
3125
- var props$_ = {
3384
+ var props$$ = {
3126
3385
  // 徽标类型
3127
3386
  type: {
3128
3387
  type: String,
@@ -3156,7 +3415,7 @@ var props$_ = {
3156
3415
  position: {
3157
3416
  type: String,
3158
3417
  default: "right-top",
3159
- validator: positionValidator$1
3418
+ validator: positionValidator$2
3160
3419
  },
3161
3420
  // 图标
3162
3421
  icon: {
@@ -3164,8 +3423,8 @@ var props$_ = {
3164
3423
  }
3165
3424
  };
3166
3425
  var {
3167
- n: n$15,
3168
- classes: classes$U
3426
+ n: n$16,
3427
+ classes: classes$V
3169
3428
  } = createNamespace("badge");
3170
3429
  var _hoisted_1$o = {
3171
3430
  key: 1
@@ -3227,7 +3486,7 @@ var __sfc__$17 = vue.defineComponent({
3227
3486
  VarIcon: Icon
3228
3487
  },
3229
3488
  inheritAttrs: false,
3230
- props: props$_,
3489
+ props: props$$,
3231
3490
  setup(props2, _ref) {
3232
3491
  var {
3233
3492
  slots
@@ -3239,11 +3498,11 @@ var __sfc__$17 = vue.defineComponent({
3239
3498
  dot,
3240
3499
  icon: icon2
3241
3500
  } = props2;
3242
- var positionBasic = slots.default && n$15("position") + " " + n$15("--" + position);
3243
- var dotClass = dot ? n$15("dot") : null;
3501
+ var positionBasic = slots.default && n$16("position") + " " + n$16("--" + position);
3502
+ var dotClass = dot ? n$16("dot") : null;
3244
3503
  var positionClass = getPositionClass();
3245
- var iconClass = icon2 ? n$15("icon") : null;
3246
- return [n$15("--" + type), positionBasic, dotClass, positionClass, iconClass];
3504
+ var iconClass = icon2 ? n$16("icon") : null;
3505
+ return [n$16("--" + type), positionBasic, dotClass, positionClass, iconClass];
3247
3506
  });
3248
3507
  var values = vue.computed(() => {
3249
3508
  var {
@@ -3265,13 +3524,13 @@ var __sfc__$17 = vue.defineComponent({
3265
3524
  if (!dot)
3266
3525
  return;
3267
3526
  if (position.includes("right"))
3268
- return n$15("dot--right");
3527
+ return n$16("dot--right");
3269
3528
  if (position.includes("left"))
3270
- return n$15("dot--left");
3529
+ return n$16("dot--left");
3271
3530
  };
3272
3531
  return {
3273
- n: n$15,
3274
- classes: classes$U,
3532
+ n: n$16,
3533
+ classes: classes$V,
3275
3534
  values,
3276
3535
  contentClass
3277
3536
  };
@@ -3283,7 +3542,7 @@ Badge.install = function(app) {
3283
3542
  app.component(Badge.name, Badge);
3284
3543
  };
3285
3544
  var _BadgeComponent = Badge;
3286
- var props$Z = {
3545
+ var props$_ = {
3287
3546
  active: {
3288
3547
  type: [Number, String],
3289
3548
  default: 0
@@ -3349,8 +3608,8 @@ function _extends$e() {
3349
3608
  return _extends$e.apply(this, arguments);
3350
3609
  }
3351
3610
  var {
3352
- n: n$14,
3353
- classes: classes$T
3611
+ n: n$15,
3612
+ classes: classes$U
3354
3613
  } = createNamespace("bottom-navigation");
3355
3614
  var {
3356
3615
  n: nItem
@@ -3397,7 +3656,7 @@ var __sfc__$16 = vue.defineComponent({
3397
3656
  components: {
3398
3657
  VarButton: Button
3399
3658
  },
3400
- props: props$Z,
3659
+ props: props$_,
3401
3660
  setup(props2, _ref) {
3402
3661
  var {
3403
3662
  slots
@@ -3525,8 +3784,8 @@ var __sfc__$16 = vue.defineComponent({
3525
3784
  addMarginClass(length.value);
3526
3785
  });
3527
3786
  return {
3528
- n: n$14,
3529
- classes: classes$T,
3787
+ n: n$15,
3788
+ classes: classes$U,
3530
3789
  length,
3531
3790
  bottomNavigationDom,
3532
3791
  handleFabClick,
@@ -3540,7 +3799,7 @@ BottomNavigation.install = function(app) {
3540
3799
  app.component(BottomNavigation.name, BottomNavigation);
3541
3800
  };
3542
3801
  var _BottomNavigationComponent = BottomNavigation;
3543
- var props$Y = {
3802
+ var props$Z = {
3544
3803
  name: {
3545
3804
  type: String
3546
3805
  },
@@ -3578,8 +3837,8 @@ function useBottomNavigation() {
3578
3837
  };
3579
3838
  }
3580
3839
  var {
3581
- n: n$13,
3582
- classes: classes$S
3840
+ n: n$14,
3841
+ classes: classes$T
3583
3842
  } = createNamespace("bottom-navigation-item");
3584
3843
  var defaultBadgeProps = {
3585
3844
  type: "danger",
@@ -3659,7 +3918,7 @@ var __sfc__$15 = vue.defineComponent({
3659
3918
  directives: {
3660
3919
  Ripple: Ripple$1
3661
3920
  },
3662
- props: props$Y,
3921
+ props: props$Z,
3663
3922
  setup(props2) {
3664
3923
  var name = vue.computed(() => props2.name);
3665
3924
  var badge2 = vue.computed(() => props2.badge);
@@ -3694,8 +3953,8 @@ var __sfc__$15 = vue.defineComponent({
3694
3953
  immediate: true
3695
3954
  });
3696
3955
  return {
3697
- n: n$13,
3698
- classes: classes$S,
3956
+ n: n$14,
3957
+ classes: classes$T,
3699
3958
  index,
3700
3959
  active,
3701
3960
  badge: badge2,
@@ -3711,22 +3970,19 @@ BottomNavigationItem.install = function(app) {
3711
3970
  app.component(BottomNavigationItem.name, BottomNavigationItem);
3712
3971
  };
3713
3972
  var _BottomNavigationItemComponent = BottomNavigationItem;
3714
- var props$X = {
3973
+ var props$Y = {
3715
3974
  separator: {
3716
3975
  type: String
3717
3976
  },
3718
3977
  onClick: defineListenerProp()
3719
3978
  };
3720
3979
  var BREADCRUMBS_BIND_BREADCRUMB_ITEM_KEY = Symbol("BREADCRUMBS_BIND_BREADCRUMB_KEY");
3721
- var BREADCRUMBS_COUNT_BREADCRUMB_ITEM_KEY = Symbol("BREADCRUMBS_COUNT_BREADCRUMB_KEY");
3722
3980
  function useBreadcrumbsList() {
3723
3981
  var {
3724
3982
  childProviders,
3725
- bindChildren
3726
- } = useChildren(BREADCRUMBS_BIND_BREADCRUMB_ITEM_KEY);
3727
- var {
3983
+ bindChildren,
3728
3984
  length
3729
- } = useAtChildrenCounter(BREADCRUMBS_COUNT_BREADCRUMB_ITEM_KEY);
3985
+ } = useChildren$1(BREADCRUMBS_BIND_BREADCRUMB_ITEM_KEY);
3730
3986
  return {
3731
3987
  length,
3732
3988
  breadcrumbList: childProviders,
@@ -3736,11 +3992,9 @@ function useBreadcrumbsList() {
3736
3992
  function useBreadcrumb() {
3737
3993
  var {
3738
3994
  parentProvider,
3739
- bindParent
3740
- } = useParent(BREADCRUMBS_BIND_BREADCRUMB_ITEM_KEY);
3741
- var {
3995
+ bindParent,
3742
3996
  index
3743
- } = useAtParentIndex(BREADCRUMBS_COUNT_BREADCRUMB_ITEM_KEY);
3997
+ } = useParent$1(BREADCRUMBS_BIND_BREADCRUMB_ITEM_KEY);
3744
3998
  if (!parentProvider || !bindParent || !index) {
3745
3999
  throw Error("<var-breadcrumb/> must in <var-breadcrumbs/>");
3746
4000
  }
@@ -3751,8 +4005,8 @@ function useBreadcrumb() {
3751
4005
  };
3752
4006
  }
3753
4007
  var {
3754
- n: n$12,
3755
- classes: classes$R
4008
+ n: n$13,
4009
+ classes: classes$S
3756
4010
  } = createNamespace("breadcrumb");
3757
4011
  function __render__$13(_ctx, _cache) {
3758
4012
  return vue.openBlock(), vue.createElementBlock(
@@ -3791,7 +4045,7 @@ function __render__$13(_ctx, _cache) {
3791
4045
  }
3792
4046
  var __sfc__$14 = vue.defineComponent({
3793
4047
  name: "VarBreadcrumb",
3794
- props: props$X,
4048
+ props: props$Y,
3795
4049
  setup(props2) {
3796
4050
  var {
3797
4051
  index,
@@ -3808,8 +4062,8 @@ var __sfc__$14 = vue.defineComponent({
3808
4062
  };
3809
4063
  bindBreadcrumb(null);
3810
4064
  return {
3811
- n: n$12,
3812
- classes: classes$R,
4065
+ n: n$13,
4066
+ classes: classes$S,
3813
4067
  isLast,
3814
4068
  parentSeparator,
3815
4069
  handleClick
@@ -3822,14 +4076,14 @@ Breadcrumb.install = function(app) {
3822
4076
  app.component(Breadcrumb.name, Breadcrumb);
3823
4077
  };
3824
4078
  var _BreadcrumbComponent = Breadcrumb;
3825
- var props$W = {
4079
+ var props$X = {
3826
4080
  separator: {
3827
4081
  type: String,
3828
4082
  default: "/"
3829
4083
  }
3830
4084
  };
3831
4085
  var {
3832
- n: n$11
4086
+ n: n$12
3833
4087
  } = createNamespace("breadcrumbs");
3834
4088
  function __render__$12(_ctx, _cache) {
3835
4089
  return vue.openBlock(), vue.createElementBlock(
@@ -3844,7 +4098,7 @@ function __render__$12(_ctx, _cache) {
3844
4098
  }
3845
4099
  var __sfc__$13 = vue.defineComponent({
3846
4100
  name: "VarBreadcrumbs",
3847
- props: props$W,
4101
+ props: props$X,
3848
4102
  setup(props2) {
3849
4103
  var separator = vue.computed(() => props2.separator);
3850
4104
  var {
@@ -3857,7 +4111,7 @@ var __sfc__$13 = vue.defineComponent({
3857
4111
  };
3858
4112
  bindBreadcrumbList(breadcrumbsProvider);
3859
4113
  return {
3860
- n: n$11
4114
+ n: n$12
3861
4115
  };
3862
4116
  }
3863
4117
  });
@@ -3876,7 +4130,7 @@ function sizeValidator$2(size) {
3876
4130
  function modeValidator$1(mode) {
3877
4131
  return ["normal", "text", "outline"].includes(mode);
3878
4132
  }
3879
- var props$V = {
4133
+ var props$W = {
3880
4134
  type: {
3881
4135
  type: String,
3882
4136
  default: "default",
@@ -3908,8 +4162,8 @@ var props$V = {
3908
4162
  }
3909
4163
  };
3910
4164
  var {
3911
- n: n$10,
3912
- classes: classes$Q
4165
+ n: n$11,
4166
+ classes: classes$R
3913
4167
  } = createNamespace("button-group");
3914
4168
  function __render__$11(_ctx, _cache) {
3915
4169
  return vue.openBlock(), vue.createElementBlock(
@@ -3924,7 +4178,7 @@ function __render__$11(_ctx, _cache) {
3924
4178
  }
3925
4179
  var __sfc__$12 = vue.defineComponent({
3926
4180
  name: "VarButtonGroup",
3927
- props: props$V,
4181
+ props: props$W,
3928
4182
  setup(props2) {
3929
4183
  var {
3930
4184
  bindButtons
@@ -3939,8 +4193,8 @@ var __sfc__$12 = vue.defineComponent({
3939
4193
  };
3940
4194
  bindButtons(buttonGroupProvider);
3941
4195
  return {
3942
- n: n$10,
3943
- classes: classes$Q
4196
+ n: n$11,
4197
+ classes: classes$R
3944
4198
  };
3945
4199
  }
3946
4200
  });
@@ -3953,7 +4207,7 @@ var _ButtonGroupComponent = ButtonGroup;
3953
4207
  function fitValidator$1(fit) {
3954
4208
  return ["fill", "contain", "cover", "none", "scale-down"].includes(fit);
3955
4209
  }
3956
- var props$U = {
4210
+ var props$V = {
3957
4211
  src: {
3958
4212
  type: String
3959
4213
  },
@@ -4036,8 +4290,8 @@ function _asyncToGenerator$a(fn2) {
4036
4290
  };
4037
4291
  }
4038
4292
  var {
4039
- n: n$$,
4040
- classes: classes$P
4293
+ n: n$10,
4294
+ classes: classes$Q
4041
4295
  } = createNamespace("card");
4042
4296
  var RIPPLE_DELAY = 500;
4043
4297
  var _hoisted_1$n = ["src", "alt"];
@@ -4216,7 +4470,7 @@ var __sfc__$11 = vue.defineComponent({
4216
4470
  VarIcon: Icon,
4217
4471
  VarButton: Button
4218
4472
  },
4219
- props: props$U,
4473
+ props: props$V,
4220
4474
  setup(props2) {
4221
4475
  var card2 = vue.ref(null);
4222
4476
  var cardFloater = vue.ref(null);
@@ -4319,8 +4573,8 @@ var __sfc__$11 = vue.defineComponent({
4319
4573
  immediate: true
4320
4574
  });
4321
4575
  return {
4322
- n: n$$,
4323
- classes: classes$P,
4576
+ n: n$10,
4577
+ classes: classes$Q,
4324
4578
  toSizeUnit,
4325
4579
  card: card2,
4326
4580
  cardFloater,
@@ -4350,7 +4604,7 @@ Card.install = function(app) {
4350
4604
  app.component(Card.name, Card);
4351
4605
  };
4352
4606
  var _CardComponent = Card;
4353
- var props$T = {
4607
+ var props$U = {
4354
4608
  title: {
4355
4609
  type: [Number, String]
4356
4610
  },
@@ -4386,8 +4640,8 @@ var props$T = {
4386
4640
  onClick: defineListenerProp()
4387
4641
  };
4388
4642
  var {
4389
- n: n$_,
4390
- classes: classes$O
4643
+ n: n$$,
4644
+ classes: classes$P
4391
4645
  } = createNamespace("cell");
4392
4646
  function __render__$$(_ctx, _cache) {
4393
4647
  var _component_var_icon = vue.resolveComponent("var-icon");
@@ -4468,7 +4722,7 @@ var __sfc__$10 = vue.defineComponent({
4468
4722
  directives: {
4469
4723
  Ripple: Ripple$1
4470
4724
  },
4471
- props: props$T,
4725
+ props: props$U,
4472
4726
  setup(props2) {
4473
4727
  var borderOffsetStyles = vue.computed(() => {
4474
4728
  if (props2.borderOffset == null) {
@@ -4483,8 +4737,8 @@ var __sfc__$10 = vue.defineComponent({
4483
4737
  call(props2.onClick, e);
4484
4738
  };
4485
4739
  return {
4486
- n: n$_,
4487
- classes: classes$O,
4740
+ n: n$$,
4741
+ classes: classes$P,
4488
4742
  toSizeUnit,
4489
4743
  borderOffsetStyles,
4490
4744
  handleClick
@@ -4497,7 +4751,7 @@ Cell.install = function(app) {
4497
4751
  app.component(Cell.name, Cell);
4498
4752
  };
4499
4753
  var _CellComponent = Cell;
4500
- var props$S = {
4754
+ var props$T = {
4501
4755
  errorMessage: {
4502
4756
  type: String,
4503
4757
  default: ""
@@ -4508,7 +4762,7 @@ var props$S = {
4508
4762
  }
4509
4763
  };
4510
4764
  var {
4511
- n: n$Z
4765
+ n: n$_
4512
4766
  } = createNamespace("form-details");
4513
4767
  var _hoisted_1$m = {
4514
4768
  key: 0
@@ -4594,9 +4848,9 @@ function __render__$_(_ctx, _cache) {
4594
4848
  }
4595
4849
  var __sfc__$$ = vue.defineComponent({
4596
4850
  name: "VarFormDetails",
4597
- props: props$S,
4851
+ props: props$T,
4598
4852
  setup: () => ({
4599
- n: n$Z
4853
+ n: n$_
4600
4854
  })
4601
4855
  });
4602
4856
  __sfc__$$.render = __render__$_;
@@ -4605,7 +4859,7 @@ FormDetails.install = function(app) {
4605
4859
  app.component(FormDetails.name, FormDetails);
4606
4860
  };
4607
4861
  var _FormDetailsComponent = FormDetails;
4608
- var props$R = {
4862
+ var props$S = {
4609
4863
  modelValue: {
4610
4864
  type: [String, Number, Boolean, Object, Array],
4611
4865
  default: false
@@ -4722,8 +4976,8 @@ function useFormItems() {
4722
4976
  };
4723
4977
  }
4724
4978
  var {
4725
- n: n$Y,
4726
- classes: classes$N
4979
+ n: n$Z,
4980
+ classes: classes$O
4727
4981
  } = createNamespace("checkbox");
4728
4982
  function __render__$Z(_ctx, _cache) {
4729
4983
  var _component_var_icon = vue.resolveComponent("var-icon");
@@ -4814,7 +5068,7 @@ var __sfc__$_ = vue.defineComponent({
4814
5068
  VarIcon: Icon,
4815
5069
  VarFormDetails: FormDetails
4816
5070
  },
4817
- props: props$R,
5071
+ props: props$S,
4818
5072
  setup(props2) {
4819
5073
  var value = vue.ref(false);
4820
5074
  var checked = vue.computed(() => value.value === props2.checkedValue);
@@ -4927,8 +5181,8 @@ var __sfc__$_ = vue.defineComponent({
4927
5181
  checkboxGroupErrorMessage: checkboxGroup2 == null ? void 0 : checkboxGroup2.errorMessage,
4928
5182
  formDisabled: form == null ? void 0 : form.disabled,
4929
5183
  formReadonly: form == null ? void 0 : form.readonly,
4930
- n: n$Y,
4931
- classes: classes$N,
5184
+ n: n$Z,
5185
+ classes: classes$O,
4932
5186
  handleClick,
4933
5187
  toggle,
4934
5188
  reset,
@@ -4943,10 +5197,10 @@ Checkbox.install = function(app) {
4943
5197
  app.component(Checkbox.name, Checkbox);
4944
5198
  };
4945
5199
  var _CheckboxComponent = Checkbox;
4946
- function directionValidator$4(direction) {
5200
+ function directionValidator$5(direction) {
4947
5201
  return ["horizontal", "vertical"].includes(direction);
4948
5202
  }
4949
- var props$Q = {
5203
+ var props$R = {
4950
5204
  modelValue: {
4951
5205
  type: Array,
4952
5206
  default: () => []
@@ -4957,7 +5211,7 @@ var props$Q = {
4957
5211
  direction: {
4958
5212
  type: String,
4959
5213
  default: "horizontal",
4960
- validator: directionValidator$4
5214
+ validator: directionValidator$5
4961
5215
  },
4962
5216
  validateTrigger: {
4963
5217
  type: Array,
@@ -4970,8 +5224,8 @@ var props$Q = {
4970
5224
  "onUpdate:modelValue": defineListenerProp()
4971
5225
  };
4972
5226
  var {
4973
- n: n$X,
4974
- classes: classes$M
5227
+ n: n$Y,
5228
+ classes: classes$N
4975
5229
  } = createNamespace("checkbox-group");
4976
5230
  function __render__$Y(_ctx, _cache) {
4977
5231
  var _component_var_form_details = vue.resolveComponent("var-form-details");
@@ -5006,7 +5260,7 @@ var __sfc__$Z = vue.defineComponent({
5006
5260
  components: {
5007
5261
  VarFormDetails: FormDetails
5008
5262
  },
5009
- props: props$Q,
5263
+ props: props$R,
5010
5264
  setup(props2) {
5011
5265
  var max2 = vue.computed(() => props2.max);
5012
5266
  var checkedCount = vue.computed(() => props2.modelValue.length);
@@ -5119,8 +5373,8 @@ var __sfc__$Z = vue.defineComponent({
5119
5373
  call(bindForm, checkboxGroupProvider);
5120
5374
  return {
5121
5375
  errorMessage,
5122
- n: n$X,
5123
- classes: classes$M,
5376
+ n: n$Y,
5377
+ classes: classes$N,
5124
5378
  checkAll: checkAll2,
5125
5379
  inverseAll,
5126
5380
  reset,
@@ -5141,7 +5395,7 @@ function typeValidator$6(type) {
5141
5395
  function sizeValidator$1(size) {
5142
5396
  return ["normal", "mini", "small", "large"].includes(size);
5143
5397
  }
5144
- var props$P = {
5398
+ var props$Q = {
5145
5399
  type: {
5146
5400
  type: String,
5147
5401
  default: "default",
@@ -5158,7 +5412,7 @@ var props$P = {
5158
5412
  textColor: {
5159
5413
  type: String
5160
5414
  },
5161
- iconName: pickProps(props$16, "name"),
5415
+ iconName: pickProps(props$17, "name"),
5162
5416
  plain: {
5163
5417
  type: Boolean,
5164
5418
  default: false
@@ -5178,8 +5432,8 @@ var props$P = {
5178
5432
  onClose: defineListenerProp()
5179
5433
  };
5180
5434
  var {
5181
- n: n$W,
5182
- classes: classes$L
5435
+ n: n$X,
5436
+ classes: classes$M
5183
5437
  } = createNamespace("chip");
5184
5438
  function __render__$X(_ctx, _cache) {
5185
5439
  var _component_var_icon = vue.resolveComponent("var-icon");
@@ -5240,7 +5494,7 @@ var __sfc__$Y = vue.defineComponent({
5240
5494
  VarIcon: Icon
5241
5495
  },
5242
5496
  inheritAttrs: false,
5243
- props: props$P,
5497
+ props: props$Q,
5244
5498
  setup(props2) {
5245
5499
  var chipStyles = vue.computed(() => {
5246
5500
  var {
@@ -5267,17 +5521,17 @@ var __sfc__$Y = vue.defineComponent({
5267
5521
  plain,
5268
5522
  round: round2
5269
5523
  } = props2;
5270
- var blockClass = block ? n$W("$--flex") : n$W("$--inline-flex");
5271
- var plainTypeClass = plain ? n$W("plain") + " " + n$W("plain-" + type) : n$W("--" + type);
5272
- var roundClass = round2 ? n$W("--round") : null;
5273
- return [n$W("--" + size), blockClass, plainTypeClass, roundClass];
5524
+ var blockClass = block ? n$X("$--flex") : n$X("$--inline-flex");
5525
+ var plainTypeClass = plain ? n$X("plain") + " " + n$X("plain-" + type) : n$X("--" + type);
5526
+ var roundClass = round2 ? n$X("--round") : null;
5527
+ return [n$X("--" + size), blockClass, plainTypeClass, roundClass];
5274
5528
  });
5275
5529
  var handleClose = (e) => {
5276
5530
  call(props2.onClose, e);
5277
5531
  };
5278
5532
  return {
5279
- n: n$W,
5280
- classes: classes$L,
5533
+ n: n$X,
5534
+ classes: classes$M,
5281
5535
  chipStyles,
5282
5536
  contentClass,
5283
5537
  handleClose
@@ -5290,7 +5544,7 @@ Chip.install = function(app) {
5290
5544
  app.component(Chip.name, Chip);
5291
5545
  };
5292
5546
  var _ChipComponent = Chip;
5293
- function directionValidator$3(direction) {
5547
+ function directionValidator$4(direction) {
5294
5548
  return ["row", "column"].includes(direction);
5295
5549
  }
5296
5550
  function justifyValidator$2(justify) {
@@ -5299,7 +5553,7 @@ function justifyValidator$2(justify) {
5299
5553
  function alignValidator$2(align) {
5300
5554
  return ["stretch", "center", "start", "end", "baseline", "initial", "inherit", "flex-start", "flex-end"].includes(align);
5301
5555
  }
5302
- var props$O = {
5556
+ var props$P = {
5303
5557
  span: {
5304
5558
  type: [String, Number],
5305
5559
  default: 24
@@ -5311,7 +5565,7 @@ var props$O = {
5311
5565
  direction: {
5312
5566
  type: String,
5313
5567
  default: "row",
5314
- validator: directionValidator$3
5568
+ validator: directionValidator$4
5315
5569
  },
5316
5570
  justify: {
5317
5571
  type: String,
@@ -5372,8 +5626,8 @@ function useRow() {
5372
5626
  };
5373
5627
  }
5374
5628
  var {
5375
- n: n$V,
5376
- classes: classes$K
5629
+ n: n$W,
5630
+ classes: classes$L
5377
5631
  } = createNamespace("col");
5378
5632
  function __render__$W(_ctx, _cache) {
5379
5633
  return vue.openBlock(), vue.createElementBlock(
@@ -5398,7 +5652,7 @@ function __render__$W(_ctx, _cache) {
5398
5652
  }
5399
5653
  var __sfc__$X = vue.defineComponent({
5400
5654
  name: "VarCol",
5401
- props: props$O,
5655
+ props: props$P,
5402
5656
  setup(props2) {
5403
5657
  var padding = vue.ref({
5404
5658
  left: 0,
@@ -5425,10 +5679,10 @@ var __sfc__$X = vue.defineComponent({
5425
5679
  offset: _offset,
5426
5680
  span: _span
5427
5681
  } = size;
5428
- Number(_span) >= 0 && classes2.push(n$V("--span-" + mode + "-" + _span));
5429
- _offset && classes2.push(n$V("--offset-" + mode + "-" + _offset));
5682
+ Number(_span) >= 0 && classes2.push(n$W("--span-" + mode + "-" + _span));
5683
+ _offset && classes2.push(n$W("--offset-" + mode + "-" + _offset));
5430
5684
  } else {
5431
- Number(size) >= 0 && classes2.push(n$V("--span-" + mode + "-" + size));
5685
+ Number(size) >= 0 && classes2.push(n$W("--span-" + mode + "-" + size));
5432
5686
  }
5433
5687
  return classes2;
5434
5688
  };
@@ -5440,8 +5694,8 @@ var __sfc__$X = vue.defineComponent({
5440
5694
  });
5441
5695
  call(bindRow, colProvider);
5442
5696
  return {
5443
- n: n$V,
5444
- classes: classes$K,
5697
+ n: n$W,
5698
+ classes: classes$L,
5445
5699
  padding,
5446
5700
  toNumber,
5447
5701
  toSizeUnit,
@@ -5475,7 +5729,7 @@ function useCollapseItem() {
5475
5729
  bindCollapseItem: bindChildren
5476
5730
  };
5477
5731
  }
5478
- var props$N = {
5732
+ var props$O = {
5479
5733
  modelValue: {
5480
5734
  type: [Array, String, Number]
5481
5735
  },
@@ -5491,7 +5745,7 @@ var props$N = {
5491
5745
  "onUpdate:modelValue": defineListenerProp()
5492
5746
  };
5493
5747
  var {
5494
- n: n$U
5748
+ n: n$V
5495
5749
  } = createNamespace("collapse");
5496
5750
  function __render__$V(_ctx, _cache) {
5497
5751
  return vue.openBlock(), vue.createElementBlock(
@@ -5506,7 +5760,7 @@ function __render__$V(_ctx, _cache) {
5506
5760
  }
5507
5761
  var __sfc__$W = vue.defineComponent({
5508
5762
  name: "VarCollapse",
5509
- props: props$N,
5763
+ props: props$O,
5510
5764
  setup(props2) {
5511
5765
  var {
5512
5766
  length,
@@ -5599,7 +5853,7 @@ var __sfc__$W = vue.defineComponent({
5599
5853
  vue.watch(() => length.value, () => vue.nextTick().then(resize));
5600
5854
  vue.watch(() => props2.modelValue, () => vue.nextTick().then(resize));
5601
5855
  return {
5602
- n: n$U
5856
+ n: n$V
5603
5857
  };
5604
5858
  }
5605
5859
  });
@@ -5626,7 +5880,7 @@ function useCollapse() {
5626
5880
  bindCollapse: bindParent
5627
5881
  };
5628
5882
  }
5629
- var props$M = {
5883
+ var props$N = {
5630
5884
  name: {
5631
5885
  type: [String, Number]
5632
5886
  },
@@ -5643,8 +5897,8 @@ var props$M = {
5643
5897
  }
5644
5898
  };
5645
5899
  var {
5646
- n: n$T,
5647
- classes: classes$J
5900
+ n: n$U,
5901
+ classes: classes$K
5648
5902
  } = createNamespace("collapse-item");
5649
5903
  function __render__$U(_ctx, _cache) {
5650
5904
  var _component_var_icon = vue.resolveComponent("var-icon");
@@ -5725,7 +5979,7 @@ var __sfc__$V = vue.defineComponent({
5725
5979
  components: {
5726
5980
  VarIcon: Icon
5727
5981
  },
5728
- props: props$M,
5982
+ props: props$N,
5729
5983
  setup(props2) {
5730
5984
  var {
5731
5985
  index,
@@ -5809,9 +6063,9 @@ var __sfc__$V = vue.defineComponent({
5809
6063
  closePanel();
5810
6064
  });
5811
6065
  return {
5812
- n: n$T,
6066
+ n: n$U,
5813
6067
  start: start2,
5814
- classes: classes$J,
6068
+ classes: classes$K,
5815
6069
  show,
5816
6070
  isShow,
5817
6071
  offset: offset2,
@@ -5827,7 +6081,7 @@ CollapseItem.install = function(app) {
5827
6081
  app.component(CollapseItem.name, CollapseItem);
5828
6082
  };
5829
6083
  var _CollapseItemComponent = CollapseItem;
5830
- var props$L = {
6084
+ var props$M = {
5831
6085
  time: {
5832
6086
  type: [String, Number],
5833
6087
  default: 0
@@ -5844,7 +6098,7 @@ var props$L = {
5844
6098
  onChange: defineListenerProp()
5845
6099
  };
5846
6100
  var {
5847
- n: n$S
6101
+ n: n$T
5848
6102
  } = createNamespace("countdown");
5849
6103
  var SECOND = 1e3;
5850
6104
  var MINUTE = 60 * SECOND;
@@ -5867,7 +6121,7 @@ function __render__$T(_ctx, _cache) {
5867
6121
  }
5868
6122
  var __sfc__$U = vue.defineComponent({
5869
6123
  name: "VarCountdown",
5870
- props: props$L,
6124
+ props: props$M,
5871
6125
  setup(props2) {
5872
6126
  var showTime = vue.ref("");
5873
6127
  var timeData = vue.ref({
@@ -5990,7 +6244,7 @@ var __sfc__$U = vue.defineComponent({
5990
6244
  return {
5991
6245
  showTime,
5992
6246
  timeData,
5993
- n: n$S,
6247
+ n: n$T,
5994
6248
  start: start2,
5995
6249
  pause,
5996
6250
  reset
@@ -8330,7 +8584,7 @@ P[Symbol.toStringTag] = "Decimal";
8330
8584
  var Decimal = P.constructor = clone(DEFAULTS);
8331
8585
  LN10 = new Decimal(LN10);
8332
8586
  PI = new Decimal(PI);
8333
- var props$K = {
8587
+ var props$L = {
8334
8588
  modelValue: {
8335
8589
  type: [String, Number],
8336
8590
  default: 0
@@ -8414,8 +8668,8 @@ var props$K = {
8414
8668
  "onUpdate:modelValue": defineListenerProp()
8415
8669
  };
8416
8670
  var {
8417
- n: n$R,
8418
- classes: classes$I
8671
+ n: n$S,
8672
+ classes: classes$J
8419
8673
  } = createNamespace("counter");
8420
8674
  var SPEED = 100;
8421
8675
  var DELAY = 600;
@@ -8522,7 +8776,7 @@ var __sfc__$T = vue.defineComponent({
8522
8776
  Ripple: Ripple$1
8523
8777
  },
8524
8778
  inheritAttrs: false,
8525
- props: props$K,
8779
+ props: props$L,
8526
8780
  setup(props2) {
8527
8781
  var inputValue = vue.ref("");
8528
8782
  var incrementTimer;
@@ -8730,8 +8984,8 @@ var __sfc__$T = vue.defineComponent({
8730
8984
  });
8731
8985
  setNormalizedValue(normalizeValue(String(props2.modelValue)));
8732
8986
  return {
8733
- n: n$R,
8734
- classes: classes$I,
8987
+ n: n$S,
8988
+ classes: classes$J,
8735
8989
  inputValue,
8736
8990
  errorMessage,
8737
8991
  formDisabled,
@@ -9226,7 +9480,7 @@ var WEEK_HEADER = [{
9226
9480
  }, {
9227
9481
  index: "6"
9228
9482
  }];
9229
- var props$J = {
9483
+ var props$K = {
9230
9484
  modelValue: {
9231
9485
  type: [String, Array]
9232
9486
  },
@@ -9283,7 +9537,7 @@ var props$J = {
9283
9537
  "onUpdate:modelValue": defineListenerProp()
9284
9538
  };
9285
9539
  var {
9286
- n: n$Q
9540
+ n: n$R
9287
9541
  } = createNamespace("picker-header");
9288
9542
  function __render__$R(_ctx, _cache) {
9289
9543
  var _component_var_icon = vue.resolveComponent("var-icon");
@@ -9420,7 +9674,7 @@ var __sfc__$S = vue.defineComponent({
9420
9674
  forwardOrBackNum.value = 0;
9421
9675
  });
9422
9676
  return {
9423
- n: n$Q,
9677
+ n: n$R,
9424
9678
  reverse,
9425
9679
  showDate,
9426
9680
  checkDate
@@ -9446,8 +9700,8 @@ function _extends$c() {
9446
9700
  dayjs.extend(isSameOrBefore);
9447
9701
  dayjs.extend(isSameOrAfter);
9448
9702
  var {
9449
- n: n$P,
9450
- classes: classes$H
9703
+ n: n$Q,
9704
+ classes: classes$I
9451
9705
  } = createNamespace("month-picker");
9452
9706
  var {
9453
9707
  n: nDate$1
@@ -9682,12 +9936,12 @@ var __sfc__$R = vue.defineComponent({
9682
9936
  color: !computeText() ? color : "",
9683
9937
  textColor: isCover ? "" : textColorOrCover(),
9684
9938
  [nDate$1() + "-color-cover"]: isCover,
9685
- class: classes$H(n$P("button"), [disabled, n$P("button--disabled")])
9939
+ class: classes$I(n$Q("button"), [disabled, n$Q("button--disabled")])
9686
9940
  };
9687
9941
  };
9688
9942
  var chooseMonth = (month, event) => {
9689
9943
  var buttonEl = event.currentTarget;
9690
- if (buttonEl.classList.contains(n$P("button--disabled")))
9944
+ if (buttonEl.classList.contains(n$Q("button--disabled")))
9691
9945
  return;
9692
9946
  emit("choose-month", month);
9693
9947
  };
@@ -9714,7 +9968,7 @@ var __sfc__$R = vue.defineComponent({
9714
9968
  immediate: true
9715
9969
  });
9716
9970
  return {
9717
- n: n$P,
9971
+ n: n$Q,
9718
9972
  nDate: nDate$1,
9719
9973
  pack,
9720
9974
  MONTH_LIST,
@@ -9733,8 +9987,8 @@ var __sfc__$R = vue.defineComponent({
9733
9987
  __sfc__$R.render = __render__$Q;
9734
9988
  const MonthPickerPanel = __sfc__$R;
9735
9989
  var {
9736
- n: n$O,
9737
- classes: classes$G
9990
+ n: n$P,
9991
+ classes: classes$H
9738
9992
  } = createNamespace("year-picker");
9739
9993
  var _hoisted_1$k = ["onClick"];
9740
9994
  function __render__$P(_ctx, _cache) {
@@ -9822,14 +10076,14 @@ var __sfc__$Q = vue.defineComponent({
9822
10076
  emit("choose-year", year);
9823
10077
  };
9824
10078
  useMounted(() => {
9825
- var activeEl = document.querySelector("." + n$O("item--active"));
10079
+ var activeEl = document.querySelector("." + n$P("item--active"));
9826
10080
  activeEl == null ? void 0 : activeEl.scrollIntoView({
9827
10081
  block: "center"
9828
10082
  });
9829
10083
  });
9830
10084
  return {
9831
- n: n$O,
9832
- classes: classes$G,
10085
+ n: n$P,
10086
+ classes: classes$H,
9833
10087
  yearList,
9834
10088
  chooseYear,
9835
10089
  toNumber
@@ -9855,8 +10109,8 @@ function _extends$b() {
9855
10109
  dayjs.extend(isSameOrBefore);
9856
10110
  dayjs.extend(isSameOrAfter);
9857
10111
  var {
9858
- n: n$N,
9859
- classes: classes$F
10112
+ n: n$O,
10113
+ classes: classes$G
9860
10114
  } = createNamespace("day-picker");
9861
10115
  var {
9862
10116
  n: nDate
@@ -10107,7 +10361,7 @@ var __sfc__$P = vue.defineComponent({
10107
10361
  text: true,
10108
10362
  outline: false,
10109
10363
  textColor: "",
10110
- class: n$N("button")
10364
+ class: n$O("button")
10111
10365
  };
10112
10366
  }
10113
10367
  var {
@@ -10172,7 +10426,7 @@ var __sfc__$P = vue.defineComponent({
10172
10426
  outline: computeOutline(),
10173
10427
  textColor: isCover ? "" : textColorOrCover(),
10174
10428
  [nDate() + "-color-cover"]: isCover,
10175
- class: classes$F(n$N("button"), n$N("button--usable"), [disabled, n$N("button--disabled")])
10429
+ class: classes$G(n$O("button"), n$O("button--usable"), [disabled, n$O("button--disabled")])
10176
10430
  };
10177
10431
  };
10178
10432
  var checkDate = (checkType) => {
@@ -10182,7 +10436,7 @@ var __sfc__$P = vue.defineComponent({
10182
10436
  };
10183
10437
  var chooseDay = (day, event) => {
10184
10438
  var buttonEl = event.currentTarget;
10185
- if (buttonEl.classList.contains(n$N("button--disabled")))
10439
+ if (buttonEl.classList.contains(n$O("button--disabled")))
10186
10440
  return;
10187
10441
  emit("choose-day", day);
10188
10442
  };
@@ -10198,7 +10452,7 @@ var __sfc__$P = vue.defineComponent({
10198
10452
  initHeader();
10199
10453
  });
10200
10454
  return {
10201
- n: n$N,
10455
+ n: n$O,
10202
10456
  nDate,
10203
10457
  days,
10204
10458
  reverse,
@@ -10218,8 +10472,8 @@ var __sfc__$P = vue.defineComponent({
10218
10472
  __sfc__$P.render = __render__$O;
10219
10473
  const DayPickerPanel = __sfc__$P;
10220
10474
  var {
10221
- n: n$M,
10222
- classes: classes$E
10475
+ n: n$N,
10476
+ classes: classes$F
10223
10477
  } = createNamespace("date-picker");
10224
10478
  function __render__$N(_ctx, _cache) {
10225
10479
  var _component_year_picker_panel = vue.resolveComponent("year-picker-panel");
@@ -10410,7 +10664,7 @@ var __sfc__$O = vue.defineComponent({
10410
10664
  YearPickerPanel,
10411
10665
  DayPickerPanel
10412
10666
  },
10413
- props: props$J,
10667
+ props: props$K,
10414
10668
  setup(props2) {
10415
10669
  var startX = 0;
10416
10670
  var startY = 0;
@@ -10751,8 +11005,8 @@ var __sfc__$O = vue.defineComponent({
10751
11005
  });
10752
11006
  vue.watch(getPanelType, resetState);
10753
11007
  return {
10754
- n: n$M,
10755
- classes: classes$E,
11008
+ n: n$N,
11009
+ classes: classes$F,
10756
11010
  monthPanelEl,
10757
11011
  dayPanelEl,
10758
11012
  reverse,
@@ -10805,7 +11059,7 @@ function _extends$a() {
10805
11059
  function messageAlignValidator(messageAlign) {
10806
11060
  return ["left", "center", "right"].includes(messageAlign);
10807
11061
  }
10808
- var props$I = _extends$a({
11062
+ var props$J = _extends$a({
10809
11063
  show: {
10810
11064
  type: Boolean,
10811
11065
  default: false
@@ -10860,7 +11114,7 @@ var props$I = _extends$a({
10860
11114
  onConfirm: defineListenerProp(),
10861
11115
  onCancel: defineListenerProp(),
10862
11116
  "onUpdate:show": defineListenerProp()
10863
- }, pickProps(props$17, [
11117
+ }, pickProps(props$18, [
10864
11118
  "overlay",
10865
11119
  "overlayClass",
10866
11120
  "overlayStyle",
@@ -10890,8 +11144,8 @@ function _extends$9() {
10890
11144
  return _extends$9.apply(this, arguments);
10891
11145
  }
10892
11146
  var {
10893
- n: n$L,
10894
- classes: classes$D
11147
+ n: n$M,
11148
+ classes: classes$E
10895
11149
  } = createNamespace("dialog");
10896
11150
  function __render__$M(_ctx, _cache) {
10897
11151
  var _component_var_button = vue.resolveComponent("var-button");
@@ -11021,7 +11275,7 @@ var __sfc__$N = vue.defineComponent({
11021
11275
  VarButton: Button
11022
11276
  },
11023
11277
  inheritAttrs: false,
11024
- props: props$I,
11278
+ props: props$J,
11025
11279
  setup(props2) {
11026
11280
  var popupShow = vue.ref(false);
11027
11281
  var popupCloseOnClickOverlay = vue.ref(false);
@@ -11081,8 +11335,8 @@ var __sfc__$N = vue.defineComponent({
11081
11335
  immediate: true
11082
11336
  });
11083
11337
  return {
11084
- n: n$L,
11085
- classes: classes$D,
11338
+ n: n$M,
11339
+ classes: classes$E,
11086
11340
  pack,
11087
11341
  dt,
11088
11342
  popupShow,
@@ -11192,7 +11446,7 @@ Dialog.install = function(app) {
11192
11446
  };
11193
11447
  Dialog.Component = VarDialog;
11194
11448
  var _DialogComponent = VarDialog;
11195
- var props$H = {
11449
+ var props$I = {
11196
11450
  inset: {
11197
11451
  type: [Boolean, Number, String],
11198
11452
  default: false
@@ -11231,8 +11485,8 @@ function _extends$7() {
11231
11485
  return _extends$7.apply(this, arguments);
11232
11486
  }
11233
11487
  var {
11234
- n: n$K,
11235
- classes: classes$C
11488
+ n: n$L,
11489
+ classes: classes$D
11236
11490
  } = createNamespace("divider");
11237
11491
  function __render__$L(_ctx, _cache) {
11238
11492
  return vue.openBlock(), vue.createElementBlock(
@@ -11257,7 +11511,7 @@ function __render__$L(_ctx, _cache) {
11257
11511
  }
11258
11512
  var __sfc__$M = vue.defineComponent({
11259
11513
  name: "VarDivider",
11260
- props: props$H,
11514
+ props: props$I,
11261
11515
  setup(props2, _ref) {
11262
11516
  var {
11263
11517
  slots
@@ -11299,8 +11553,8 @@ var __sfc__$M = vue.defineComponent({
11299
11553
  checkHasText();
11300
11554
  });
11301
11555
  return _extends$7({
11302
- n: n$K,
11303
- classes: classes$C
11556
+ n: n$L,
11557
+ classes: classes$D
11304
11558
  }, vue.toRefs(state), {
11305
11559
  style,
11306
11560
  isInset
@@ -12847,7 +13101,9 @@ function usePopover(options) {
12847
13101
  });
12848
13102
  vue.watch(() => options.disabled, close2);
12849
13103
  vue.onMounted(() => {
12850
- popoverInstance = createPopper(host.value, popover.value, getPopperOptions());
13104
+ var _host$value;
13105
+ var reference2 = options.reference ? (_host$value = host.value) == null ? void 0 : _host$value.querySelector(options.reference) : host.value;
13106
+ popoverInstance = createPopper(reference2 != null ? reference2 : host.value, popover.value, getPopperOptions());
12851
13107
  });
12852
13108
  vue.onUnmounted(() => {
12853
13109
  popoverInstance.destroy();
@@ -12869,7 +13125,7 @@ function usePopover(options) {
12869
13125
  close: close2
12870
13126
  };
12871
13127
  }
12872
- function triggerValidator$1(trigger) {
13128
+ function triggerValidator$2(trigger) {
12873
13129
  return ["click", "hover"].includes(trigger);
12874
13130
  }
12875
13131
  function placementValidator$1(alignment) {
@@ -12878,7 +13134,7 @@ function placementValidator$1(alignment) {
12878
13134
  function typeValidator$4(type) {
12879
13135
  return ["default", "primary", "info", "success", "warning", "danger"].includes(type);
12880
13136
  }
12881
- var props$G = {
13137
+ var props$H = {
12882
13138
  type: {
12883
13139
  type: String,
12884
13140
  default: "default",
@@ -12901,7 +13157,10 @@ var props$G = {
12901
13157
  trigger: {
12902
13158
  type: String,
12903
13159
  default: "hover",
12904
- validator: triggerValidator$1
13160
+ validator: triggerValidator$2
13161
+ },
13162
+ reference: {
13163
+ type: String
12905
13164
  },
12906
13165
  placement: {
12907
13166
  type: String,
@@ -12931,8 +13190,8 @@ var props$G = {
12931
13190
  "onUpdate:show": defineListenerProp()
12932
13191
  };
12933
13192
  var {
12934
- n: n$J,
12935
- classes: classes$B
13193
+ n: n$K,
13194
+ classes: classes$C
12936
13195
  } = createNamespace("tooltip");
12937
13196
  function __render__$K(_ctx, _cache) {
12938
13197
  return vue.openBlock(), vue.createElementBlock(
@@ -13015,7 +13274,7 @@ function __render__$K(_ctx, _cache) {
13015
13274
  }
13016
13275
  var __sfc__$L = vue.defineComponent({
13017
13276
  name: "VarTooltip",
13018
- props: props$G,
13277
+ props: props$H,
13019
13278
  setup(props2) {
13020
13279
  var {
13021
13280
  popover,
@@ -13043,8 +13302,8 @@ var __sfc__$L = vue.defineComponent({
13043
13302
  hostSize,
13044
13303
  show,
13045
13304
  zIndex,
13046
- n: n$J,
13047
- classes: classes$B,
13305
+ n: n$K,
13306
+ classes: classes$C,
13048
13307
  handleHostClick,
13049
13308
  handlePopoverClose,
13050
13309
  handleHostMouseenter,
@@ -13066,7 +13325,7 @@ var _TooltipComponent = Tooltip;
13066
13325
  function expandTriggerValidator(expandTrigger) {
13067
13326
  return ["click"].includes(expandTrigger);
13068
13327
  }
13069
- var props$F = {
13328
+ var props$G = {
13070
13329
  expandTrigger: {
13071
13330
  type: String,
13072
13331
  validator: expandTriggerValidator
@@ -13094,8 +13353,8 @@ function _extends$5() {
13094
13353
  return _extends$5.apply(this, arguments);
13095
13354
  }
13096
13355
  var {
13097
- n: n$I,
13098
- classes: classes$A
13356
+ n: n$J,
13357
+ classes: classes$B
13099
13358
  } = createNamespace("ellipsis");
13100
13359
  var _hoisted_1$j = {
13101
13360
  key: 0
@@ -13143,54 +13402,295 @@ var __sfc__$K = vue.defineComponent({
13143
13402
  components: {
13144
13403
  VarTooltip: Tooltip
13145
13404
  },
13405
+ props: props$G,
13406
+ setup(props2) {
13407
+ var expanding = vue.ref(false);
13408
+ var rootStyles = vue.computed(() => {
13409
+ if (!props2.lineClamp) {
13410
+ return {};
13411
+ }
13412
+ return {
13413
+ "-webkit-line-clamp": props2.lineClamp
13414
+ };
13415
+ });
13416
+ var tooltip2 = vue.computed(() => {
13417
+ if (props2.tooltip === false) {
13418
+ return {
13419
+ disabled: true
13420
+ };
13421
+ }
13422
+ if (props2.tooltip === true) {
13423
+ return {
13424
+ sameWidth: true
13425
+ };
13426
+ }
13427
+ return _extends$5({
13428
+ sameWidth: true
13429
+ }, props2.tooltip);
13430
+ });
13431
+ var handleClick = () => {
13432
+ if (!props2.expandTrigger) {
13433
+ return;
13434
+ }
13435
+ expanding.value = !expanding.value;
13436
+ };
13437
+ return {
13438
+ n: n$J,
13439
+ classes: classes$B,
13440
+ tooltip: tooltip2,
13441
+ expanding,
13442
+ rootStyles,
13443
+ handleClick
13444
+ };
13445
+ }
13446
+ });
13447
+ __sfc__$K.render = __render__$J;
13448
+ const Ellipsis = __sfc__$K;
13449
+ Ellipsis.install = function(app) {
13450
+ app.component(Ellipsis.name, Ellipsis);
13451
+ };
13452
+ var _EllipsisComponent = Ellipsis;
13453
+ function positionValidator$1(position) {
13454
+ return ["left-top", "right-top", "left-bottom", "right-bottom"].includes(position);
13455
+ }
13456
+ function directionValidator$3(direction) {
13457
+ return ["top", "right", "bottom", "left"].includes(direction);
13458
+ }
13459
+ function triggerValidator$1(trigger) {
13460
+ return ["click", "hover"].includes(trigger);
13461
+ }
13462
+ var props$F = {
13463
+ active: {
13464
+ type: Boolean,
13465
+ default: false
13466
+ },
13467
+ show: {
13468
+ type: Boolean,
13469
+ default: true
13470
+ },
13471
+ type: {
13472
+ type: String,
13473
+ default: "primary",
13474
+ validator: typeValidator$9
13475
+ },
13476
+ position: {
13477
+ type: String,
13478
+ default: "right-bottom",
13479
+ validator: positionValidator$1
13480
+ },
13481
+ direction: {
13482
+ type: String,
13483
+ default: "top",
13484
+ validator: directionValidator$3
13485
+ },
13486
+ trigger: {
13487
+ type: String,
13488
+ default: "click",
13489
+ validator: triggerValidator$1
13490
+ },
13491
+ disabled: {
13492
+ type: Boolean,
13493
+ default: false
13494
+ },
13495
+ color: {
13496
+ type: String
13497
+ },
13498
+ inactiveIcon: {
13499
+ type: String,
13500
+ default: "plus"
13501
+ },
13502
+ activeIcon: {
13503
+ type: String,
13504
+ default: "window-close"
13505
+ },
13506
+ inactiveIconSize: {
13507
+ type: [Number, String]
13508
+ },
13509
+ activeIconSize: {
13510
+ type: [Number, String]
13511
+ },
13512
+ fixed: {
13513
+ type: Boolean,
13514
+ default: true
13515
+ },
13516
+ zIndex: {
13517
+ type: [Number, String],
13518
+ default: 90
13519
+ },
13520
+ top: {
13521
+ type: [Number, String]
13522
+ },
13523
+ bottom: {
13524
+ type: [Number, String]
13525
+ },
13526
+ left: {
13527
+ type: [Number, String]
13528
+ },
13529
+ right: {
13530
+ type: [Number, String]
13531
+ },
13532
+ teleport: {
13533
+ type: String
13534
+ },
13535
+ onClick: defineListenerProp(),
13536
+ onOpen: defineListenerProp(),
13537
+ onOpened: defineListenerProp(),
13538
+ onClose: defineListenerProp(),
13539
+ onClosed: defineListenerProp(),
13540
+ "onUpdate:active": defineListenerProp()
13541
+ };
13542
+ function _isSlot$2(s) {
13543
+ return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
13544
+ }
13545
+ var {
13546
+ classes: classes$A,
13547
+ n: n$I
13548
+ } = createNamespace("fab");
13549
+ const Fab = vue.defineComponent({
13550
+ name: "VarFab",
13551
+ inheritAttrs: false,
13146
13552
  props: props$F,
13147
- setup(props2) {
13148
- var expanding = vue.ref(false);
13149
- var rootStyles = vue.computed(() => {
13150
- if (!props2.lineClamp) {
13151
- return {};
13553
+ setup(props2, _ref) {
13554
+ var {
13555
+ slots,
13556
+ attrs
13557
+ } = _ref;
13558
+ var localActive = vue.ref(false);
13559
+ var host = vue.ref(null);
13560
+ var {
13561
+ disabled
13562
+ } = useTeleport();
13563
+ var isActive = vue.computed({
13564
+ get() {
13565
+ return localActive.value;
13566
+ },
13567
+ set(value) {
13568
+ localActive.value = value;
13569
+ call(props2["onUpdate:active"], value);
13152
13570
  }
13153
- return {
13154
- "-webkit-line-clamp": props2.lineClamp
13155
- };
13156
13571
  });
13157
- var tooltip2 = vue.computed(() => {
13158
- if (props2.tooltip === false) {
13159
- return {
13160
- disabled: true
13161
- };
13572
+ var handleClick = (e, value, childrenLength) => {
13573
+ e.stopPropagation();
13574
+ if (props2.trigger !== "click" || props2.disabled) {
13575
+ return;
13162
13576
  }
13163
- if (props2.tooltip === true) {
13164
- return {
13165
- sameWidth: true
13166
- };
13577
+ if (childrenLength === 0) {
13578
+ call(props2.onClick, isActive.value, e);
13579
+ return;
13167
13580
  }
13168
- return _extends$5({
13169
- sameWidth: true
13170
- }, props2.tooltip);
13171
- });
13172
- var handleClick = () => {
13173
- if (!props2.expandTrigger) {
13581
+ isActive.value = value;
13582
+ call(props2.onClick, isActive.value, e);
13583
+ call(isActive.value ? props2.onOpen : props2.onClose);
13584
+ };
13585
+ var handleMouse = (value, childrenLength) => {
13586
+ if (props2.trigger !== "hover" || props2.disabled || childrenLength === 0) {
13174
13587
  return;
13175
13588
  }
13176
- expanding.value = !expanding.value;
13589
+ isActive.value = value;
13590
+ call(isActive.value ? props2.onOpen : props2.onClose);
13177
13591
  };
13178
- return {
13179
- n: n$I,
13180
- classes: classes$A,
13181
- tooltip: tooltip2,
13182
- expanding,
13183
- rootStyles,
13184
- handleClick
13592
+ var handleClickOutside = () => {
13593
+ if (props2.trigger !== "click" || props2.disabled) {
13594
+ return;
13595
+ }
13596
+ if (isActive.value !== false) {
13597
+ isActive.value = false;
13598
+ call(props2.onClose);
13599
+ }
13600
+ };
13601
+ var renderTrigger = () => {
13602
+ if (slots.trigger) {
13603
+ return props2.show ? slots.trigger({
13604
+ active: isActive.value
13605
+ }) : null;
13606
+ }
13607
+ return vue.withDirectives(vue.createVNode(Button, {
13608
+ "var-fab-cover": true,
13609
+ "class": n$I("trigger"),
13610
+ "type": props2.type,
13611
+ "color": props2.color,
13612
+ "disabled": props2.disabled,
13613
+ "round": true
13614
+ }, {
13615
+ default: () => [vue.createVNode(Icon, {
13616
+ "var-fab-cover": true,
13617
+ "class": classes$A([isActive.value, n$I("trigger-active-icon"), n$I("trigger-inactive-icon")]),
13618
+ "name": isActive.value ? props2.activeIcon : props2.inactiveIcon,
13619
+ "size": isActive.value ? props2.inactiveIconSize : props2.activeIconSize,
13620
+ "transition": 200,
13621
+ "animationClass": n$I("--trigger-icon-animation")
13622
+ }, null)]
13623
+ }), [[vue.vShow, props2.show]]);
13624
+ };
13625
+ var renderFab = () => {
13626
+ var _slot;
13627
+ var _slots$default;
13628
+ var children = flatFragment((_slots$default = slots.default == null ? void 0 : slots.default()) != null ? _slots$default : []);
13629
+ return vue.createVNode("div", vue.mergeProps({
13630
+ "class": classes$A(n$I(), n$I("--position-" + props2.position), n$I("--direction-" + props2.direction), [props2.fixed, n$I("--fixed"), n$I("--absolute")]),
13631
+ "style": {
13632
+ zIndex: toNumber(props2.zIndex),
13633
+ top: toSizeUnit(props2.top),
13634
+ bottom: toSizeUnit(props2.bottom),
13635
+ left: toSizeUnit(props2.left),
13636
+ right: toSizeUnit(props2.right)
13637
+ },
13638
+ "ref": host,
13639
+ "onClick": (e) => handleClick(e, !isActive.value, children.length),
13640
+ "onMouseleave": () => handleMouse(false, children.length),
13641
+ "onMouseenter": () => handleMouse(true, children.length)
13642
+ }, attrs), [vue.createVNode(vue.Transition, {
13643
+ "name": n$I("--active-transition")
13644
+ }, _isSlot$2(_slot = renderTrigger()) ? _slot : {
13645
+ default: () => [_slot]
13646
+ }), vue.createVNode(vue.Transition, {
13647
+ "name": n$I("--actions-transition-" + props2.direction),
13648
+ "onAfterEnter": props2.onOpened,
13649
+ "onAfterLeave": props2.onClosed
13650
+ }, {
13651
+ default: () => [vue.withDirectives(vue.createVNode("div", {
13652
+ "class": n$I("actions"),
13653
+ "onClick": (e) => e.stopPropagation()
13654
+ }, [children.map((child) => {
13655
+ return vue.createVNode("div", {
13656
+ "class": n$I("action")
13657
+ }, [child]);
13658
+ })]), [[vue.vShow, props2.show && isActive.value && children.length]])]
13659
+ })]);
13660
+ };
13661
+ vue.watch(() => props2.active, (value) => {
13662
+ localActive.value = value;
13663
+ }, {
13664
+ immediate: true
13665
+ });
13666
+ vue.watch(() => props2.trigger, () => {
13667
+ isActive.value = false;
13668
+ });
13669
+ vue.watch(() => props2.disabled, () => {
13670
+ isActive.value = false;
13671
+ });
13672
+ useClickOutside(host, "click", handleClickOutside);
13673
+ return () => {
13674
+ var {
13675
+ teleport
13676
+ } = props2;
13677
+ if (teleport) {
13678
+ var _slot2;
13679
+ return vue.createVNode(vue.Teleport, {
13680
+ "to": teleport,
13681
+ "disabled": disabled.value
13682
+ }, _isSlot$2(_slot2 = renderFab()) ? _slot2 : {
13683
+ default: () => [_slot2]
13684
+ });
13685
+ }
13686
+ return renderFab();
13185
13687
  };
13186
13688
  }
13187
13689
  });
13188
- __sfc__$K.render = __render__$J;
13189
- const Ellipsis = __sfc__$K;
13190
- Ellipsis.install = function(app) {
13191
- app.component(Ellipsis.name, Ellipsis);
13690
+ Fab.install = function(app) {
13691
+ app.component(Fab.name, Fab);
13192
13692
  };
13193
- var _EllipsisComponent = Ellipsis;
13693
+ var _FabComponent = Fab;
13194
13694
  function scrollToErrorValidator(status) {
13195
13695
  return ["start", "end"].includes(status);
13196
13696
  }
@@ -13333,128 +13833,6 @@ Form.install = function(app) {
13333
13833
  Form.useValidation = useValidation;
13334
13834
  Form.useForm = useForm;
13335
13835
  var _FormComponent = Form;
13336
- function shouldDisabled(arg) {
13337
- if (!arg) {
13338
- return false;
13339
- }
13340
- var isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
13341
- if (arg === "desktop" && isMobile) {
13342
- return true;
13343
- }
13344
- if (arg === "mobile" && !isMobile) {
13345
- return true;
13346
- }
13347
- return false;
13348
- }
13349
- function getStyle(element) {
13350
- var style = element.getAttribute("style");
13351
- if (!style)
13352
- return {};
13353
- return style.split(";").filter(Boolean).reduce((style2, item) => {
13354
- var [key, value] = item.split(":").map((item2) => item2.trim());
13355
- style2[camelize(key)] = value;
13356
- return style2;
13357
- }, {});
13358
- }
13359
- function updateRawStyle(element) {
13360
- var {
13361
- value
13362
- } = element._hover;
13363
- var style = getStyle(element);
13364
- Object.keys(value).forEach((key) => {
13365
- var camelizedKey = camelize(key);
13366
- var styleValue = value[camelizedKey];
13367
- if (styleValue != null && style[camelizedKey]) {
13368
- element._hover.rawStyle[camelizedKey] = style[camelizedKey];
13369
- }
13370
- });
13371
- }
13372
- function updateStyle(element, styleValue) {
13373
- Object.keys(styleValue).forEach((key) => {
13374
- var value = styleValue[key];
13375
- if (value != null) {
13376
- element.style[key] = value;
13377
- }
13378
- });
13379
- }
13380
- function clearStyle(element) {
13381
- Object.keys(element._hover.value).forEach((key) => {
13382
- element.style[key] = "";
13383
- });
13384
- }
13385
- function restoreStyle(element) {
13386
- clearStyle(element);
13387
- updateStyle(element, element._hover.rawStyle);
13388
- element._hover.rawStyle = {};
13389
- }
13390
- function createHover() {
13391
- var {
13392
- value
13393
- } = this._hover;
13394
- this._hover.hovering = true;
13395
- if (isFunction(value)) {
13396
- value(this._hover.hovering);
13397
- return;
13398
- }
13399
- updateStyle(this, value);
13400
- }
13401
- function removeHover() {
13402
- this._hover.hovering = false;
13403
- if (isFunction(this._hover.value)) {
13404
- this._hover.value(this._hover.hovering);
13405
- return;
13406
- }
13407
- restoreStyle(this);
13408
- }
13409
- function mounted(element, binding) {
13410
- var _element$_hover$hover, _element$_hover;
13411
- var {
13412
- arg,
13413
- value
13414
- } = binding;
13415
- if (shouldDisabled(arg)) {
13416
- return;
13417
- }
13418
- element._hover = {
13419
- value,
13420
- hovering: (_element$_hover$hover = (_element$_hover = element._hover) == null ? void 0 : _element$_hover.hovering) != null ? _element$_hover$hover : false,
13421
- rawStyle: {}
13422
- };
13423
- updateRawStyle(element);
13424
- element.addEventListener("mouseenter", createHover);
13425
- element.addEventListener("mouseleave", removeHover);
13426
- }
13427
- function unmounted(element, binding) {
13428
- if (shouldDisabled(binding.arg)) {
13429
- return;
13430
- }
13431
- restoreStyle(element);
13432
- element.removeEventListener("mouseenter", createHover);
13433
- element.removeEventListener("mouseleave", removeHover);
13434
- }
13435
- function beforeUpdate(element, binding) {
13436
- unmounted(element, binding);
13437
- }
13438
- function shouldUpdateStyle(element, binding) {
13439
- return !isFunction(binding.value) && element._hover.hovering;
13440
- }
13441
- function updated(element, binding) {
13442
- mounted(element, binding);
13443
- if (shouldUpdateStyle(element, binding)) {
13444
- updateStyle(element, binding.value);
13445
- }
13446
- }
13447
- var Hover = {
13448
- mounted,
13449
- unmounted,
13450
- beforeUpdate,
13451
- updated,
13452
- install(app) {
13453
- app.directive("hover", this);
13454
- }
13455
- };
13456
- var _HoverComponent = Hover;
13457
- const Hover$1 = Hover;
13458
13836
  function fitValidator(fit) {
13459
13837
  return ["fill", "contain", "cover", "none", "scale-down"].includes(fit);
13460
13838
  }
@@ -14197,7 +14575,7 @@ var props$B = _extends$4({
14197
14575
  default: false
14198
14576
  },
14199
14577
  "onUpdate:show": defineListenerProp()
14200
- }, pickProps(props$C, ["loop", "indicator", "onChange"]), pickProps(props$17, [
14578
+ }, pickProps(props$C, ["loop", "indicator", "onChange"]), pickProps(props$18, [
14201
14579
  "lockScroll",
14202
14580
  "teleport",
14203
14581
  "onOpen",
@@ -16225,6 +16603,9 @@ var props$s = {
16225
16603
  default: "click",
16226
16604
  validator: triggerValidator
16227
16605
  },
16606
+ reference: {
16607
+ type: String
16608
+ },
16228
16609
  placement: {
16229
16610
  type: String,
16230
16611
  default: "cover-top-start",
@@ -16495,7 +16876,8 @@ var __sfc__$x = vue.defineComponent({
16495
16876
  wrapWidth,
16496
16877
  multiple,
16497
16878
  focusColor,
16498
- onSelect
16879
+ onSelect,
16880
+ computeLabel
16499
16881
  } = select2;
16500
16882
  var handleClick = () => {
16501
16883
  optionSelected.value = !optionSelected.value;
@@ -16511,13 +16893,7 @@ var __sfc__$x = vue.defineComponent({
16511
16893
  selected,
16512
16894
  sync
16513
16895
  };
16514
- vue.watch([() => props2.label, () => props2.value], () => {
16515
- if (props2.label == null && props2.value == null) {
16516
- throw Error("Props label and value can't both be undefined\n");
16517
- }
16518
- }, {
16519
- immediate: true
16520
- });
16896
+ vue.watch([() => props2.label, () => props2.value], computeLabel);
16521
16897
  bindSelect(optionProvider);
16522
16898
  return {
16523
16899
  n: n$u,
@@ -17208,7 +17584,7 @@ var props$n = _extends$3({
17208
17584
  onChange: defineListenerProp(),
17209
17585
  onConfirm: defineListenerProp(),
17210
17586
  onCancel: defineListenerProp()
17211
- }, pickProps(props$17, ["show", "onUpdate:show", "closeOnClickOverlay", "teleport", "onOpen", "onClose", "onOpened", "onClosed", "onClickOverlay", "onRouteChange"]));
17587
+ }, pickProps(props$18, ["show", "onUpdate:show", "closeOnClickOverlay", "teleport", "onOpen", "onClose", "onOpened", "onClosed", "onClickOverlay", "onRouteChange"]));
17212
17588
  var {
17213
17589
  n: n$q,
17214
17590
  classes: classes$l
@@ -19942,6 +20318,7 @@ var __sfc__$g = vue.defineComponent({
19942
20318
  wrapWidth: vue.computed(() => wrapWidth.value),
19943
20319
  multiple,
19944
20320
  focusColor,
20321
+ computeLabel,
19945
20322
  onSelect,
19946
20323
  reset,
19947
20324
  validate,
@@ -20759,10 +21136,10 @@ var props$c = {
20759
21136
  type: Boolean,
20760
21137
  default: false
20761
21138
  },
20762
- loadingType: pickProps(props$11, "type"),
20763
- loadingSize: pickProps(props$11, "size"),
20764
- loadingRadius: pickProps(props$11, "radius"),
20765
- loadingColor: _extends$2({}, pickProps(props$11, "color"), {
21139
+ loadingType: pickProps(props$12, "type"),
21140
+ loadingSize: pickProps(props$12, "size"),
21141
+ loadingRadius: pickProps(props$12, "radius"),
21142
+ loadingColor: _extends$2({}, pickProps(props$12, "color"), {
20766
21143
  default: "currentColor"
20767
21144
  }),
20768
21145
  // 是否禁止滚动穿透
@@ -21315,22 +21692,7 @@ const Space = vue.defineComponent({
21315
21692
  var children = (_call = call(slots.default)) != null ? _call : [];
21316
21693
  var isInternalSize = internalSizeValidator(size);
21317
21694
  var [y, x] = getSize(size, isInternalSize);
21318
- var flatten = (vNodes) => {
21319
- var result2 = [];
21320
- vNodes.forEach((vNode) => {
21321
- if (vNode.type === vue.Comment)
21322
- return;
21323
- if (vNode.type === vue.Fragment && isArray(vNode.children)) {
21324
- vNode.children.forEach((item) => {
21325
- result2.push(item);
21326
- });
21327
- return;
21328
- }
21329
- result2.push(vNode);
21330
- });
21331
- return result2;
21332
- };
21333
- children = flatten(children);
21695
+ children = flatFragment(children);
21334
21696
  var lastIndex = children.length - 1;
21335
21697
  var spacers = children.map((child, index) => {
21336
21698
  var margin = computeMargin(y, x, {
@@ -21948,15 +22310,12 @@ var props$6 = {
21948
22310
  onClick: defineListenerProp()
21949
22311
  };
21950
22312
  var TABS_BIND_TAB_KEY = Symbol("TABS_BIND_TAB_KEY");
21951
- var TABS_COUNT_TAB_KEY = Symbol("TABS_COUNT_TAB_KEY");
21952
22313
  function useTabList() {
21953
22314
  var {
21954
22315
  childProviders,
21955
- bindChildren
21956
- } = useChildren(TABS_BIND_TAB_KEY);
21957
- var {
22316
+ bindChildren,
21958
22317
  length
21959
- } = useAtChildrenCounter(TABS_COUNT_TAB_KEY);
22318
+ } = useChildren$1(TABS_BIND_TAB_KEY);
21960
22319
  return {
21961
22320
  length,
21962
22321
  tabList: childProviders,
@@ -21966,11 +22325,9 @@ function useTabList() {
21966
22325
  function useTabs() {
21967
22326
  var {
21968
22327
  parentProvider,
21969
- bindParent
21970
- } = useParent(TABS_BIND_TAB_KEY);
21971
- var {
22328
+ bindParent,
21972
22329
  index
21973
- } = useAtParentIndex(TABS_COUNT_TAB_KEY);
22330
+ } = useParent$1(TABS_BIND_TAB_KEY);
21974
22331
  if (!parentProvider || !bindParent || !index) {
21975
22332
  throw Error("<var-tab/> must in <var-tabs/>");
21976
22333
  }
@@ -22086,15 +22443,12 @@ Tab.install = function(app) {
22086
22443
  };
22087
22444
  var _TabComponent = Tab;
22088
22445
  var TABS_ITEMS_BIND_TAB_ITEM_KEY = Symbol("TABS_ITEMS_BIND_TAB_ITEM_KEY");
22089
- var TABS_ITEMS_COUNT_TAB_ITEM_KEY = Symbol("TABS_ITEMS_COUNT_TAB_ITEM_KEY");
22090
22446
  function useTabItem() {
22091
22447
  var {
22092
22448
  bindChildren,
22093
- childProviders
22094
- } = useChildren(TABS_ITEMS_BIND_TAB_ITEM_KEY);
22095
- var {
22449
+ childProviders,
22096
22450
  length
22097
- } = useAtChildrenCounter(TABS_ITEMS_COUNT_TAB_ITEM_KEY);
22451
+ } = useChildren$1(TABS_ITEMS_BIND_TAB_ITEM_KEY);
22098
22452
  return {
22099
22453
  length,
22100
22454
  tabItemList: childProviders,
@@ -22104,11 +22458,9 @@ function useTabItem() {
22104
22458
  function useTabsItems() {
22105
22459
  var {
22106
22460
  parentProvider,
22107
- bindParent
22108
- } = useParent(TABS_ITEMS_BIND_TAB_ITEM_KEY);
22109
- var {
22461
+ bindParent,
22110
22462
  index
22111
- } = useAtParentIndex(TABS_ITEMS_COUNT_TAB_ITEM_KEY);
22463
+ } = useParent$1(TABS_ITEMS_BIND_TAB_ITEM_KEY);
22112
22464
  if (!parentProvider || !bindParent || !index) {
22113
22465
  throw Error("<var-tab-item/> must in <var-tabs-items/>");
22114
22466
  }
@@ -24440,6 +24792,7 @@ const DividerSfc = "";
24440
24792
  const tooltip = "";
24441
24793
  const ellipsis = "";
24442
24794
  const EllipsisSfc = "";
24795
+ const fab = "";
24443
24796
  const FormSfc = "";
24444
24797
  const FormDetailsSfc = "";
24445
24798
  const IconSfc = "";
@@ -24492,9 +24845,9 @@ const skeleton = "";
24492
24845
  const SkeletonSfc = "";
24493
24846
  const slider = "";
24494
24847
  const SliderSfc = "";
24495
- const SnackbarSfc = "";
24496
24848
  const snackbar = "";
24497
24849
  const coreSfc = "";
24850
+ const SnackbarSfc = "";
24498
24851
  const space = "";
24499
24852
  const step = "";
24500
24853
  const StepSfc = "";
@@ -24519,7 +24872,7 @@ const TimePickerSfc = "";
24519
24872
  const TooltipSfc = "";
24520
24873
  const uploader = "";
24521
24874
  const UploaderSfc = "";
24522
- const version = "2.8.6";
24875
+ const version = "2.9.0-alpha.1678371604765";
24523
24876
  function install(app) {
24524
24877
  ActionSheet.install && app.use(ActionSheet);
24525
24878
  AppBar.install && app.use(AppBar);
@@ -24548,6 +24901,7 @@ function install(app) {
24548
24901
  Dialog.install && app.use(Dialog);
24549
24902
  Divider.install && app.use(Divider);
24550
24903
  Ellipsis.install && app.use(Ellipsis);
24904
+ Fab.install && app.use(Fab);
24551
24905
  Form.install && app.use(Form);
24552
24906
  FormDetails.install && app.use(FormDetails);
24553
24907
  Hover$1.install && app.use(Hover$1);
@@ -24630,6 +24984,7 @@ const index_bundle = {
24630
24984
  Dialog,
24631
24985
  Divider,
24632
24986
  Ellipsis,
24987
+ Fab,
24633
24988
  Form,
24634
24989
  FormDetails,
24635
24990
  Hover: Hover$1,
@@ -24709,6 +25064,7 @@ exports.DatePicker = DatePicker;
24709
25064
  exports.Dialog = Dialog;
24710
25065
  exports.Divider = Divider;
24711
25066
  exports.Ellipsis = Ellipsis;
25067
+ exports.Fab = Fab;
24712
25068
  exports.Form = Form;
24713
25069
  exports.FormDetails = FormDetails;
24714
25070
  exports.Hover = Hover$1;
@@ -24789,6 +25145,7 @@ exports._DatePickerComponent = _DatePickerComponent;
24789
25145
  exports._DialogComponent = _DialogComponent;
24790
25146
  exports._DividerComponent = _DividerComponent;
24791
25147
  exports._EllipsisComponent = _EllipsisComponent;
25148
+ exports._FabComponent = _FabComponent;
24792
25149
  exports._FormComponent = _FormComponent;
24793
25150
  exports._FormDetailsComponent = _FormDetailsComponent;
24794
25151
  exports._HoverComponent = _HoverComponent;
@@ -24840,37 +25197,37 @@ exports._ThemesComponent = _ThemesComponent;
24840
25197
  exports._TimePickerComponent = _TimePickerComponent;
24841
25198
  exports._TooltipComponent = _TooltipComponent;
24842
25199
  exports._UploaderComponent = _UploaderComponent;
24843
- exports.actionSheetProps = props$15;
25200
+ exports.actionSheetProps = props$16;
24844
25201
  exports.add = add$2;
24845
- exports.appBarProps = props$14;
24846
- exports.avatarGroupProps = props$12;
24847
- exports.avatarProps = props$13;
24848
- exports.backTopProps = props$$;
24849
- exports.badgeProps = props$_;
24850
- exports.bottomNavigationItemProps = props$Y;
24851
- exports.bottomNavigationProps = props$Z;
24852
- exports.breadcrumbProps = props$X;
24853
- exports.breadcrumbsProps = props$W;
24854
- exports.buttonProps = props$10;
24855
- exports.cardProps = props$U;
24856
- exports.cellProps = props$T;
24857
- exports.checkboxGroupProps = props$Q;
24858
- exports.checkboxProps = props$R;
24859
- exports.chipProps = props$P;
24860
- exports.colProps = props$O;
24861
- exports.collapseItemProps = props$M;
24862
- exports.collapseProps = props$N;
24863
- exports.countdownProps = props$L;
24864
- exports.counterProps = props$K;
24865
- exports.datePickerProps = props$J;
25202
+ exports.appBarProps = props$15;
25203
+ exports.avatarGroupProps = props$13;
25204
+ exports.avatarProps = props$14;
25205
+ exports.backTopProps = props$10;
25206
+ exports.badgeProps = props$$;
25207
+ exports.bottomNavigationItemProps = props$Z;
25208
+ exports.bottomNavigationProps = props$_;
25209
+ exports.breadcrumbProps = props$Y;
25210
+ exports.breadcrumbsProps = props$X;
25211
+ exports.buttonProps = props$11;
25212
+ exports.cardProps = props$V;
25213
+ exports.cellProps = props$U;
25214
+ exports.checkboxGroupProps = props$R;
25215
+ exports.checkboxProps = props$S;
25216
+ exports.chipProps = props$Q;
25217
+ exports.colProps = props$P;
25218
+ exports.collapseItemProps = props$N;
25219
+ exports.collapseProps = props$O;
25220
+ exports.countdownProps = props$M;
25221
+ exports.counterProps = props$L;
25222
+ exports.datePickerProps = props$K;
24866
25223
  exports.default = index_bundle;
24867
25224
  exports.defaultLazyOptions = defaultLazyOptions;
24868
- exports.dialogProps = props$I;
24869
- exports.dividerProps = props$H;
25225
+ exports.dialogProps = props$J;
25226
+ exports.dividerProps = props$I;
24870
25227
  exports.enUS = enUS;
24871
- exports.formDetailsProps = props$S;
25228
+ exports.formDetailsProps = props$T;
24872
25229
  exports.formProps = props$E;
24873
- exports.iconProps = props$16;
25230
+ exports.iconProps = props$17;
24874
25231
  exports.imageCache = imageCache;
24875
25232
  exports.imagePreviewProps = props$B;
24876
25233
  exports.imageProps = props$D;
@@ -24881,7 +25238,7 @@ exports.install = install;
24881
25238
  exports.linkProps = props$w;
24882
25239
  exports.listProps = props$v;
24883
25240
  exports.loadingBarProps = props$u;
24884
- exports.loadingProps = props$11;
25241
+ exports.loadingProps = props$12;
24885
25242
  exports.menuProps = props$s;
24886
25243
  exports.merge = merge;
24887
25244
  exports.optionProps = props$r;
@@ -24891,7 +25248,7 @@ exports.packs = packs;
24891
25248
  exports.paginationProps = props$p;
24892
25249
  exports.paperProps = props$o;
24893
25250
  exports.pickerProps = props$n;
24894
- exports.popupProps = props$17;
25251
+ exports.popupProps = props$18;
24895
25252
  exports.progressProps = props$m;
24896
25253
  exports.pullRefreshProps = props$l;
24897
25254
  exports.radioGroupProps = props$j;
@@ -24916,7 +25273,7 @@ exports.tableProps = props$4;
24916
25273
  exports.tabsItemsProps = props$2;
24917
25274
  exports.tabsProps = props$3;
24918
25275
  exports.timePickerProps = props$1;
24919
- exports.tooltipProps = props$G;
25276
+ exports.tooltipProps = props$H;
24920
25277
  exports.uploaderProps = props;
24921
25278
  exports.use = use;
24922
25279
  exports.useLocale = useLocale;