wx-screen-ui 1.0.3 → 1.0.5

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.
@@ -1,4 +1,4 @@
1
- import { Fragment, TransitionGroup, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, markRaw, mergeModels, mergeProps, nextTick, normalizeClass, normalizeStyle, onMounted, onUnmounted, openBlock, ref, renderList, renderSlot, toDisplayString, unref, useModel, watch, withCtx } from "vue";
1
+ import { Fragment, TransitionGroup, computed, createApp, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, markRaw, mergeModels, mergeProps, nextTick, normalizeClass, normalizeStyle, onMounted, onUnmounted, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, useModel, watch, withCtx } from "vue";
2
2
  var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __commonJSMin = (t, n) => () => (n || t((n = { exports: {} }).exports, n), n.exports), __export = (t) => {
3
3
  let n = {};
4
4
  for (var r in t) __defProp(n, r, {
@@ -8291,7 +8291,7 @@ originalDts: ${M} ms, curRefDts: ${I} ms, dtsCorrection: ${Math.round(l)} ms, ge
8291
8291
  let n = t;
8292
8292
  watch(() => n.url, (t) => {
8293
8293
  nextTick(() => {
8294
- t ? o() : c();
8294
+ t ? o() : s();
8295
8295
  });
8296
8296
  }, { immediate: !0 });
8297
8297
  let r = null, a = ref(), o = () => {
@@ -8299,11 +8299,11 @@ originalDts: ${M} ms, curRefDts: ${I} ms, dtsCorrection: ${Math.round(l)} ms, ge
8299
8299
  type: "flv",
8300
8300
  url: n.url
8301
8301
  }, { cors: !0 }), r.attachMediaElement(a.value), r.load(), r.play());
8302
- }, c = () => {
8302
+ }, s = () => {
8303
8303
  r &&= (r.pause(), r.unload(), r.detachMediaElement(), r.destroy(), null);
8304
8304
  };
8305
8305
  return onUnmounted(() => {
8306
- c();
8306
+ s();
8307
8307
  }), (t, n) => (openBlock(), createElementBlock("video", {
8308
8308
  class: "com-full",
8309
8309
  autoplay: "",
@@ -26754,7 +26754,7 @@ var PlaylistLoader = class {
26754
26754
  }
26755
26755
  };
26756
26756
  Hls.defaultConfig = void 0;
26757
- var _hoisted_1$6 = ["controls"], VideoFromHls_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
26757
+ var _hoisted_1$8 = ["controls"], VideoFromHls_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
26758
26758
  __name: "index",
26759
26759
  props: {
26760
26760
  url: {
@@ -26779,7 +26779,7 @@ var _hoisted_1$6 = ["controls"], VideoFromHls_default = /* @__PURE__ */ __plugin
26779
26779
  }
26780
26780
  },
26781
26781
  setup(t) {
26782
- let n = t, r = ref(null), a = ref(null), o = null, l = () => {
26782
+ let n = t, r = ref(null), a = ref(null), o = null, s = () => {
26783
26783
  n.autoplay && r.value?.play().catch((t) => {
26784
26784
  console.warn("自动播放被阻止:", t);
26785
26785
  });
@@ -26787,8 +26787,8 @@ var _hoisted_1$6 = ["controls"], VideoFromHls_default = /* @__PURE__ */ __plugin
26787
26787
  Hls.isSupported() ? (o = new Hls(), o.attachMedia(r.value)) : r.value?.canPlayType("application/vnd.apple.mpegurl") ? (r.value.autoplay = n.autoplay, r.value.muted = n.muted) : console.error("当前浏览器不支持 HLS 播放");
26788
26788
  }, d = (t) => {
26789
26789
  console.log("hls播放流", t), t && (o && (o.destroy(), o = new Hls(), o.attachMedia(r.value)), Hls.isSupported() && o ? (o.loadSource(t), o.on(Hls.Events.MANIFEST_PARSED, () => {
26790
- l();
26791
- })) : r.value?.canPlayType("application/vnd.apple.mpegurl") && (r.value.src = t, r.value.addEventListener("loadedmetadata", l)));
26790
+ s();
26791
+ })) : r.value?.canPlayType("application/vnd.apple.mpegurl") && (r.value.src = t, r.value.addEventListener("loadedmetadata", s)));
26792
26792
  }, f = new ResizeObserver(() => {
26793
26793
  a.value && r.value && (r.value.style.width = "100%", r.value.style.height = "100%", r.value.style.objectFit = n.objectFit);
26794
26794
  });
@@ -26797,11 +26797,11 @@ var _hoisted_1$6 = ["controls"], VideoFromHls_default = /* @__PURE__ */ __plugin
26797
26797
  }), watch(() => n.url, (t) => {
26798
26798
  d(t);
26799
26799
  }), watch(() => n.autoplay, (t) => {
26800
- r.value.autoplay = t, t && l();
26800
+ r.value.autoplay = t, t && s();
26801
26801
  }), watch(() => n.muted, (t) => {
26802
26802
  r.value.muted = t;
26803
26803
  }), onUnmounted(() => {
26804
- o &&= (o.destroy(), null), a.value && f.unobserve(a.value), r.value?.removeEventListener("loadedmetadata", l);
26804
+ o &&= (o.destroy(), null), a.value && f.unobserve(a.value), r.value?.removeEventListener("loadedmetadata", s);
26805
26805
  }), (n, o) => (openBlock(), createElementBlock("div", {
26806
26806
  ref_key: "videoContainer",
26807
26807
  ref: a,
@@ -26812,7 +26812,7 @@ var _hoisted_1$6 = ["controls"], VideoFromHls_default = /* @__PURE__ */ __plugin
26812
26812
  muted: "",
26813
26813
  autoplay: "",
26814
26814
  controls: t.controls
26815
- }, null, 8, _hoisted_1$6)], 512));
26815
+ }, null, 8, _hoisted_1$8)], 512));
26816
26816
  }
26817
26817
  }, [["__scopeId", "data-v-e27925c4"]]), extendStatics$1 = function(t, n) {
26818
26818
  return extendStatics$1 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, n) {
@@ -70633,10 +70633,10 @@ var echarts_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
70633
70633
  },
70634
70634
  emits: ["chartfinished"],
70635
70635
  setup(t, { expose: n, emit: a }) {
70636
- let o = t, c = ref(null), l = ref(null), u = null, d = computed(() => ({
70636
+ let o = t, s = ref(null), l = ref(null), u = null, d = computed(() => ({
70637
70637
  width: typeof o.width == "number" ? `${o.width}px` : o.width,
70638
70638
  height: typeof o.height == "number" ? `${o.height}px` : o.height
70639
- })), p = (t) => {
70639
+ })), f = (t) => {
70640
70640
  try {
70641
70641
  return l.value && l.value.dispose(), l.value = markRaw(init$1(t, o.theme, {
70642
70642
  devicePixelRatio: window.devicePixelRatio,
@@ -70651,23 +70651,23 @@ var echarts_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
70651
70651
  }, 300);
70652
70652
  };
70653
70653
  return onMounted(() => {
70654
- c.value && (l.value = p(c.value), setTimeout(() => {
70655
- o.autoResize && l.value && (u = new ResizeObserver(g), u.observe(c.value));
70654
+ s.value && (l.value = f(s.value), setTimeout(() => {
70655
+ o.autoResize && l.value && (u = new ResizeObserver(g), u.observe(s.value));
70656
70656
  }, 1200));
70657
70657
  }), onUnmounted(() => {
70658
70658
  l.value &&= (l.value.dispose(), null), u &&= (u.disconnect(), null);
70659
70659
  }), watch(() => o.options, (t) => {
70660
70660
  l.value && l.value.setOption(t);
70661
70661
  }, { deep: !0 }), watch(() => o.theme, () => {
70662
- console.log("theme"), c.value && (l.value = p(c.value));
70662
+ console.log("theme"), s.value && (l.value = f(s.value));
70663
70663
  }), n({ chartInstance: l }), (t, n) => (openBlock(), createElementBlock("div", {
70664
70664
  ref_key: "chartRef",
70665
- ref: c,
70665
+ ref: s,
70666
70666
  style: normalizeStyle(d.value),
70667
70667
  class: "echarts-container"
70668
70668
  }, null, 4));
70669
70669
  }
70670
- }, [["__scopeId", "data-v-80e0b5bd"]]), 无数据_default$1 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1766108977437'%20class='icon'%20viewBox='0%200%201669%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='12904'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='325.9765625'%20height='200'%3e%3cpath%20d='M1391.243682%20643.887244L1211.740867%20350.186395c-3.450203-6.918857-10.350609-10.36906-17.251016-10.36906H448.784714c-6.909631%200-13.810038%203.459428-17.260241%2010.36906l-179.521266%20293.710074v362.82484c0%2010.36906%206.909631%2017.278691%2017.260241%2017.278691h1108.170197c10.359835%200%2017.260241-6.918857%2017.260241-17.278691v-355.905983c-3.450203%200-3.450203-3.459428-3.450204-6.918857zM459.153773%20377.815695h724.976244l162.251799%20255.711715h-400.463419c-10.350609%200-17.251016%206.909631-17.251016%2017.269466%200%2058.745705-48.339745%20107.12235-107.030098%20107.12235-58.681129%200-107.011649-48.376645-107.011649-107.12235%200-10.359835-6.909631-17.269466-17.260241-17.269466h-400.463419l162.251799-255.711715z%20m897.587878%20615.077126H286.532914V671.534995h393.553788c10.359835%2069.10554%2069.050189%20127.851245%20141.541355%20127.851245%2072.509617%200%20134.640949-55.286277%20141.541356-127.86047h393.563013v321.367051zM165.711228%20823.574562v-20.738119c0-3.450203-3.459428-10.359835-10.359835-10.359835-3.450203%200-10.359835%203.450203-10.359834%2010.359835v20.738119h-17.251016c-3.459428%200-10.36906%203.450203-10.36906%2010.36906%200%206.909631%203.459428%2010.359835%2010.359835%2010.359835h20.710444v20.738119c0%203.450203%203.459428%2010.359835%2010.359834%2010.359835%203.450203%200%2010.359835-3.450203%2010.359835-10.359835v-20.738119h20.710444c3.450203%200%2010.359835-3.450203%2010.359835-10.359835%200-6.918857-3.450203-10.36906-10.359835-10.36906h-24.169872z%20m1294.582643-393.922793h31.070279c6.909631%200%2013.810038%206.909631%2013.810038%2013.819263%200%206.918857-6.900406%2013.819263-13.810038%2013.819263h-31.070279v31.107179c0%206.909631-6.900406%2013.819263-13.810038%2013.819263-6.900406%200-13.810038-6.918857-13.810037-13.819263V457.290295h-31.070279c-6.900406%200-13.800813-6.909631-13.800813-13.819263s6.900406-13.819263%2013.800813-13.819263h31.070279v-31.097954c0-6.918857%206.909631-13.828488%2013.810037-13.828488%206.909631%200%2013.810038%206.918857%2013.810038%2013.828488v31.088729z%20m107.020874%20127.851244h17.260241c3.450203%200%2010.359835%203.459428%2010.359834%2010.36906%200%206.909631-3.450203%2010.359835-10.359834%2010.359835h-17.251016v17.278691c0%203.459428-3.459428%2010.36906-10.36906%2010.36906-3.450203%200-10.350609-3.459428-10.350609-6.918857v-17.269466h-17.260241c-3.459428%200-10.359835-3.459428-10.359835-10.36906%200-6.909631%203.450203-10.359835%2010.359835-10.359834h17.251016V540.224322c0-3.450203%203.459428-10.36906%2010.359834-10.369059%203.459428%200%2010.359835%203.459428%2010.359835%2010.369059v17.278691zM189.871875%20405.463446V374.356267c0-6.918857-6.900406-13.828488-13.810038-13.828488-6.900406%200-13.810038%206.918857-13.810037%2013.828488v27.638526H131.181521c-6.900406%200-13.810038%206.918857-13.810038%2013.828488%200%206.909631%206.909631%2013.819263%2013.810038%2013.819263h27.620075v34.557382c0%206.909631%206.909631%2013.819263%2013.810038%2013.819263%206.900406%200%2013.810038-6.918857%2013.810038-13.819263v-27.647751h27.620075c6.900406%200%2013.810038-6.918857%2013.810038-13.819263%200-6.918857-6.909631-13.828488-13.810038-13.828488%206.900406-3.450203-24.169872-3.450203-24.169872-3.450203zM58.690354%20699.173521C27.620075%20699.173521%200%20671.534995%200%20640.437041s27.620075-58.745705%2058.690354-58.745705%2058.681129%2027.647751%2058.681129%2058.745705c0%2034.548157-27.61085%2058.73648-58.681129%2058.73648z%20m0-27.638526c17.251016%200%2027.620075-13.819263%2027.620076-27.647751%200-17.278691-13.810038-27.638526-27.620076-27.638526-17.260241%200-27.620075%2013.819263-27.620075%2027.638526-3.450203%2013.828488%2010.359835%2027.647751%2027.620075%2027.647751z%20m1574.215151-165.868055c-13.810038%200-27.620075-10.359835-27.620075-27.638526%200-13.819263%2010.359835-27.647751%2027.620075-27.647751%2013.810038%200%2027.620075%2010.36906%2027.620076%2027.647751%200%2017.278691-10.359835%2027.638526-27.620076%2027.638526z%20m0-10.359835c6.909631%200%2013.810038-6.918857%2013.810038-13.828488%200-6.909631-6.900406-13.819263-13.810038-13.819263-6.900406%200-13.810038%206.918857-13.810037%2013.819263%200%206.918857%206.909631%2013.828488%2013.810037%2013.828488zM455.694345%2077.195989c10.359835-10.36906%2024.169872-10.36906%2034.520482%200l86.31043%2086.384231c10.350609%2010.36906%2010.350609%2024.188323%200%2034.557382-10.359835%2010.359835-24.169872%2010.359835-34.520482%200l-86.31043-86.393456c-10.359835-10.359835-10.359835-24.188323%200-34.548157zM821.628057%2018.450284c13.810038%200%2024.169872%2010.36906%2024.169873%2024.188323v120.941613c0%2013.819263-10.359835%2024.188323-24.169873%2024.188323-13.800813%200-24.169872-10.36906-24.169872-24.188323V42.638607c0-10.36906%2010.36906-24.188323%2024.169872-24.188323z%20m362.492735%2055.286277c10.350609%2010.36906%2010.350609%2024.188323%200%2034.557382l-82.860227%2079.4746c-10.350609%2010.36906-24.169872%2010.36906-34.520482%200-10.359835-10.36906-10.359835-24.188323%200-34.557383l82.851002-82.934027c10.359835-6.909631%2027.620075-6.909631%2034.529707%203.459428z'%20fill='%23D0D0D0'%20p-id='12905'%3e%3c/path%3e%3c/svg%3e", _hoisted_1$5 = { class: "wx_empty" }, _hoisted_2$4 = ["src"], empty_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
70670
+ }, [["__scopeId", "data-v-80e0b5bd"]]), 无数据_default$1 = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1766108977437'%20class='icon'%20viewBox='0%200%201669%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='12904'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='325.9765625'%20height='200'%3e%3cpath%20d='M1391.243682%20643.887244L1211.740867%20350.186395c-3.450203-6.918857-10.350609-10.36906-17.251016-10.36906H448.784714c-6.909631%200-13.810038%203.459428-17.260241%2010.36906l-179.521266%20293.710074v362.82484c0%2010.36906%206.909631%2017.278691%2017.260241%2017.278691h1108.170197c10.359835%200%2017.260241-6.918857%2017.260241-17.278691v-355.905983c-3.450203%200-3.450203-3.459428-3.450204-6.918857zM459.153773%20377.815695h724.976244l162.251799%20255.711715h-400.463419c-10.350609%200-17.251016%206.909631-17.251016%2017.269466%200%2058.745705-48.339745%20107.12235-107.030098%20107.12235-58.681129%200-107.011649-48.376645-107.011649-107.12235%200-10.359835-6.909631-17.269466-17.260241-17.269466h-400.463419l162.251799-255.711715z%20m897.587878%20615.077126H286.532914V671.534995h393.553788c10.359835%2069.10554%2069.050189%20127.851245%20141.541355%20127.851245%2072.509617%200%20134.640949-55.286277%20141.541356-127.86047h393.563013v321.367051zM165.711228%20823.574562v-20.738119c0-3.450203-3.459428-10.359835-10.359835-10.359835-3.450203%200-10.359835%203.450203-10.359834%2010.359835v20.738119h-17.251016c-3.459428%200-10.36906%203.450203-10.36906%2010.36906%200%206.909631%203.459428%2010.359835%2010.359835%2010.359835h20.710444v20.738119c0%203.450203%203.459428%2010.359835%2010.359834%2010.359835%203.450203%200%2010.359835-3.450203%2010.359835-10.359835v-20.738119h20.710444c3.450203%200%2010.359835-3.450203%2010.359835-10.359835%200-6.918857-3.450203-10.36906-10.359835-10.36906h-24.169872z%20m1294.582643-393.922793h31.070279c6.909631%200%2013.810038%206.909631%2013.810038%2013.819263%200%206.918857-6.900406%2013.819263-13.810038%2013.819263h-31.070279v31.107179c0%206.909631-6.900406%2013.819263-13.810038%2013.819263-6.900406%200-13.810038-6.918857-13.810037-13.819263V457.290295h-31.070279c-6.900406%200-13.800813-6.909631-13.800813-13.819263s6.900406-13.819263%2013.800813-13.819263h31.070279v-31.097954c0-6.918857%206.909631-13.828488%2013.810037-13.828488%206.909631%200%2013.810038%206.918857%2013.810038%2013.828488v31.088729z%20m107.020874%20127.851244h17.260241c3.450203%200%2010.359835%203.459428%2010.359834%2010.36906%200%206.909631-3.450203%2010.359835-10.359834%2010.359835h-17.251016v17.278691c0%203.459428-3.459428%2010.36906-10.36906%2010.36906-3.450203%200-10.350609-3.459428-10.350609-6.918857v-17.269466h-17.260241c-3.459428%200-10.359835-3.459428-10.359835-10.36906%200-6.909631%203.450203-10.359835%2010.359835-10.359834h17.251016V540.224322c0-3.450203%203.459428-10.36906%2010.359834-10.369059%203.459428%200%2010.359835%203.459428%2010.359835%2010.369059v17.278691zM189.871875%20405.463446V374.356267c0-6.918857-6.900406-13.828488-13.810038-13.828488-6.900406%200-13.810038%206.918857-13.810037%2013.828488v27.638526H131.181521c-6.900406%200-13.810038%206.918857-13.810038%2013.828488%200%206.909631%206.909631%2013.819263%2013.810038%2013.819263h27.620075v34.557382c0%206.909631%206.909631%2013.819263%2013.810038%2013.819263%206.900406%200%2013.810038-6.918857%2013.810038-13.819263v-27.647751h27.620075c6.900406%200%2013.810038-6.918857%2013.810038-13.819263%200-6.918857-6.909631-13.828488-13.810038-13.828488%206.900406-3.450203-24.169872-3.450203-24.169872-3.450203zM58.690354%20699.173521C27.620075%20699.173521%200%20671.534995%200%20640.437041s27.620075-58.745705%2058.690354-58.745705%2058.681129%2027.647751%2058.681129%2058.745705c0%2034.548157-27.61085%2058.73648-58.681129%2058.73648z%20m0-27.638526c17.251016%200%2027.620075-13.819263%2027.620076-27.647751%200-17.278691-13.810038-27.638526-27.620076-27.638526-17.260241%200-27.620075%2013.819263-27.620075%2027.638526-3.450203%2013.828488%2010.359835%2027.647751%2027.620075%2027.647751z%20m1574.215151-165.868055c-13.810038%200-27.620075-10.359835-27.620075-27.638526%200-13.819263%2010.359835-27.647751%2027.620075-27.647751%2013.810038%200%2027.620075%2010.36906%2027.620076%2027.647751%200%2017.278691-10.359835%2027.638526-27.620076%2027.638526z%20m0-10.359835c6.909631%200%2013.810038-6.918857%2013.810038-13.828488%200-6.909631-6.900406-13.819263-13.810038-13.819263-6.900406%200-13.810038%206.918857-13.810037%2013.819263%200%206.918857%206.909631%2013.828488%2013.810037%2013.828488zM455.694345%2077.195989c10.359835-10.36906%2024.169872-10.36906%2034.520482%200l86.31043%2086.384231c10.350609%2010.36906%2010.350609%2024.188323%200%2034.557382-10.359835%2010.359835-24.169872%2010.359835-34.520482%200l-86.31043-86.393456c-10.359835-10.359835-10.359835-24.188323%200-34.548157zM821.628057%2018.450284c13.810038%200%2024.169872%2010.36906%2024.169873%2024.188323v120.941613c0%2013.819263-10.359835%2024.188323-24.169873%2024.188323-13.800813%200-24.169872-10.36906-24.169872-24.188323V42.638607c0-10.36906%2010.36906-24.188323%2024.169872-24.188323z%20m362.492735%2055.286277c10.350609%2010.36906%2010.350609%2024.188323%200%2034.557382l-82.860227%2079.4746c-10.350609%2010.36906-24.169872%2010.36906-34.520482%200-10.359835-10.36906-10.359835-24.188323%200-34.557383l82.851002-82.934027c10.359835-6.909631%2027.620075-6.909631%2034.529707%203.459428z'%20fill='%23D0D0D0'%20p-id='12905'%3e%3c/path%3e%3c/svg%3e", _hoisted_1$7 = { class: "wx_empty" }, _hoisted_2$6 = ["src"], empty_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
70671
70671
  __name: "index",
70672
70672
  props: {
70673
70673
  img: {
@@ -70692,99 +70692,267 @@ var echarts_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
70692
70692
  }
70693
70693
  },
70694
70694
  setup(t) {
70695
- return (n, r) => (openBlock(), createElementBlock("div", _hoisted_1$5, [createElementVNode("div", {
70695
+ return (n, r) => (openBlock(), createElementBlock("div", _hoisted_1$7, [createElementVNode("div", {
70696
70696
  class: "wx_empty_img_box",
70697
70697
  style: normalizeStyle({ width: t.imgSize })
70698
70698
  }, [renderSlot(n.$slots, "img", {}, () => [createElementVNode("img", {
70699
70699
  src: t.img,
70700
70700
  alt: "",
70701
70701
  class: "wx_empty_img"
70702
- }, null, 8, _hoisted_2$4)], !0)], 4), t.showText ? (openBlock(), createElementBlock("div", {
70702
+ }, null, 8, _hoisted_2$6)], !0)], 4), t.showText ? (openBlock(), createElementBlock("div", {
70703
70703
  key: 0,
70704
70704
  class: "wx_empty_text",
70705
70705
  style: normalizeStyle(t.textStyle)
70706
70706
  }, [renderSlot(n.$slots, "text", {}, () => [createTextVNode(toDisplayString(t.text), 1)], !0)], 4)) : createCommentVNode("", !0)]));
70707
70707
  }
70708
- }, [["__scopeId", "data-v-e0f8c317"]]), messageId = 0, _sfc_main$3 = {
70709
- name: "MyMessage",
70710
- setup() {
70711
- let t = ref([]), n = (n, a, o = 3e3) => {
70712
- let s = messageId++, c = {
70713
- id: s,
70714
- type: n,
70715
- content: a,
70716
- duration: o
70717
- };
70718
- return t.value.push(c), n !== "loading" && o > 0 && setTimeout(() => {
70719
- r(s);
70720
- }, o), () => {
70721
- r(s);
70722
- };
70723
- }, r = (n) => {
70724
- let r = t.value.findIndex((t) => t.id === n);
70725
- r !== -1 && t.value.splice(r, 1);
70726
- };
70727
- return {
70728
- messages: t,
70729
- addMessage: n,
70730
- removeMessage: r,
70731
- clearAll: () => {
70732
- t.value = [];
70733
- }
70734
- };
70735
- }
70736
- }, _hoisted_1$4 = { class: "message-container" }, _hoisted_2$3 = {
70708
+ }, [["__scopeId", "data-v-e0f8c317"]]), _hoisted_1$6 = {
70737
70709
  key: 0,
70738
- viewBox: "0 0 16 16",
70739
- fill: "currentColor"
70740
- }, _hoisted_3$2 = {
70710
+ class: "item-icon"
70711
+ }, _hoisted_2$5 = ["viewBox"], _hoisted_3$4 = ["d"], _hoisted_4$4 = { class: "item-content" }, _hoisted_5$3 = {
70712
+ key: 0,
70713
+ class: "item-content-inline"
70714
+ }, _hoisted_6$2 = { key: 1 }, _hoisted_7$1 = {
70741
70715
  key: 1,
70742
- viewBox: "0 0 16 16",
70743
- fill: "currentColor"
70744
- }, _hoisted_4$2 = {
70745
- key: 2,
70746
- viewBox: "0 0 16 16",
70747
- fill: "currentColor"
70748
- }, _hoisted_5$1 = {
70749
- key: 3,
70750
- viewBox: "0 0 16 16",
70751
- fill: "currentColor"
70752
- }, _hoisted_6$1 = {
70753
- key: 4,
70754
- viewBox: "0 0 16 16",
70755
- fill: "currentColor"
70756
- }, _hoisted_7 = { class: "message-content" }, _hoisted_8 = ["onClick"];
70757
- function _sfc_render(r, a, l, d, f, p) {
70758
- return openBlock(), createElementBlock("div", _hoisted_1$4, [createVNode(TransitionGroup, {
70759
- name: "message-fade",
70760
- tag: "div"
70761
- }, {
70762
- default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(d.messages, (t) => (openBlock(), createElementBlock("div", {
70763
- key: t.id,
70764
- class: normalizeClass(["message-item", `message-${t.type}`])
70716
+ class: "item-actions"
70717
+ }, _hoisted_8$1 = ["onClick"], descriptionItem_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
70718
+ __name: "index",
70719
+ props: {
70720
+ item: {
70721
+ type: Object,
70722
+ default: () => ({})
70723
+ },
70724
+ label: {
70725
+ type: String,
70726
+ default: ""
70727
+ },
70728
+ value: {
70729
+ type: [
70730
+ String,
70731
+ Number,
70732
+ Boolean,
70733
+ Object
70734
+ ],
70735
+ default: ""
70736
+ },
70737
+ span: {
70738
+ type: Number,
70739
+ default: 1,
70740
+ validator: (t) => t > 0
70741
+ },
70742
+ labelAlign: {
70743
+ type: String,
70744
+ default: null,
70745
+ validator: (t) => t === null || [
70746
+ "left",
70747
+ "center",
70748
+ "right"
70749
+ ].includes(t)
70750
+ },
70751
+ contentAlign: {
70752
+ type: String,
70753
+ default: null,
70754
+ validator: (t) => t === null || [
70755
+ "left",
70756
+ "center",
70757
+ "right"
70758
+ ].includes(t)
70759
+ },
70760
+ hasDivider: {
70761
+ type: Boolean,
70762
+ default: !1
70763
+ }
70764
+ },
70765
+ emits: ["action"],
70766
+ setup(n, { emit: a }) {
70767
+ let u = n, d = a, f = computed(() => !u.label && !u.value && u.item && Object.keys(u.item).length > 0), p = computed(() => {
70768
+ let t = {};
70769
+ return u.span > 1 && (t.gridColumn = `span ${u.span}`), t;
70770
+ }), h = (t, n) => {
70771
+ try {
70772
+ typeof t.callback == "function" && t.callback(n), d("action", {
70773
+ action: t,
70774
+ item: n
70775
+ });
70776
+ } catch (t) {
70777
+ console.error("处理操作时出错:", t);
70778
+ }
70779
+ };
70780
+ return (r, a) => (openBlock(), createElementBlock("div", {
70781
+ class: normalizeClass(["description-item", { "has-divider": n.hasDivider }]),
70782
+ style: normalizeStyle(p.value)
70765
70783
  }, [
70766
- createElementVNode("span", { class: normalizeClass(["message-icon", `icon-${t.type}`]) }, [t.type === "success" ? (openBlock(), createElementBlock("svg", _hoisted_2$3, [...a[0] ||= [createElementVNode("path", { d: "M6.5 10L3 6.5l1-1 2.5 2.5 5-5 1 1-6 6z" }, null, -1)]])) : t.type === "error" ? (openBlock(), createElementBlock("svg", _hoisted_3$2, [...a[1] ||= [createElementVNode("path", { d: "M8 1a7 7 0 100 14A7 7 0 008 1zm0 13a6 6 0 110-12 6 6 0 010 12zM5 5h6v6H5V5z" }, null, -1)]])) : t.type === "warning" ? (openBlock(), createElementBlock("svg", _hoisted_4$2, [...a[2] ||= [createElementVNode("path", { d: "M8 1a7 7 0 100 14A7 7 0 008 1zm0 13a6 6 0 110-12 6 6 0 010 12zm0-8a1 1 0 100 2 1 1 0 000-2zm0 6a1 1 0 001-1V7a1 1 0 00-2 0v4a1 1 0 001 1z" }, null, -1)]])) : t.type === "loading" ? (openBlock(), createElementBlock("svg", _hoisted_5$1, [...a[3] ||= [createElementVNode("path", {
70767
- d: "M8 1a7 7 0 100 14A7 7 0 008 1zm0 13a6 6 0 110-12 6 6 0 010 12z",
70768
- opacity: "0.3"
70769
- }, null, -1), createElementVNode("path", { d: "M8 1a7 7 0 017 7h-1a6 6 0 00-6-6V1z" }, null, -1)]])) : (openBlock(), createElementBlock("svg", _hoisted_6$1, [...a[4] ||= [createElementVNode("path", { d: "M8 1a7 7 0 100 14A7 7 0 008 1zm0 13a6 6 0 110-12 6 6 0 010 12zm1-9H7v5h2V5z" }, null, -1)]]))], 2),
70770
- createElementVNode("div", _hoisted_7, toDisplayString(t.content), 1),
70771
- t.type === "loading" ? createCommentVNode("", !0) : (openBlock(), createElementBlock("span", {
70784
+ n.item.icon ? (openBlock(), createElementBlock("div", _hoisted_1$6, [typeof n.item.icon == "string" ? (openBlock(), createElementBlock("svg", {
70772
70785
  key: 0,
70773
- class: "message-close",
70774
- onClick: (n) => d.removeMessage(t.id)
70775
- }, [...a[5] ||= [createElementVNode("svg", {
70776
- viewBox: "0 0 16 16",
70786
+ viewBox: n.item.iconViewBox || "0 0 16 16",
70777
70787
  fill: "currentColor"
70778
- }, [createElementVNode("path", { d: "M9.414 8l3.293-3.293a1 1 0 10-1.414-1.414L8 6.586 4.707 3.293a1 1 0 00-1.414 1.414L6.586 8l-3.293 3.293a1 1 0 001.414 1.414L8 9.414l3.293 3.293a1 1 0 001.414-1.414L9.414 8z" })], -1)]], 8, _hoisted_8))
70779
- ], 2))), 128))]),
70780
- _: 1
70781
- })]);
70782
- }
70783
- var message_default = /* @__PURE__ */ __plugin_vue_export_helper_default(_sfc_main$3, [["render", _sfc_render], ["__scopeId", "data-v-b307ec24"]]), _hoisted_1$3 = ["disabled"], _hoisted_2$2 = {
70788
+ }, [createElementVNode("path", { d: n.item.icon }, null, 8, _hoisted_3$4)], 8, _hoisted_2$5)) : (openBlock(), createBlock(resolveDynamicComponent(n.item.icon), { key: 1 }))])) : createCommentVNode("", !0),
70789
+ createElementVNode("div", _hoisted_4$4, [f.value ? (openBlock(), createElementBlock("div", _hoisted_5$3, [n.label || n.item.label ? (openBlock(), createElementBlock("span", {
70790
+ key: 0,
70791
+ class: "item-label",
70792
+ style: normalizeStyle({ textAlign: n.labelAlign || "left" })
70793
+ }, toDisplayString(n.label || n.item.label) + ":", 5)) : createCommentVNode("", !0), r.$slots.default ? (openBlock(), createElementBlock("span", {
70794
+ key: 1,
70795
+ class: "item-value",
70796
+ style: normalizeStyle({ textAlign: n.contentAlign || "left" })
70797
+ }, [renderSlot(r.$slots, "default", {}, void 0, !0)], 4)) : n.value ? (openBlock(), createElementBlock("span", {
70798
+ key: 2,
70799
+ class: "item-value",
70800
+ style: normalizeStyle({ textAlign: n.contentAlign || "left" })
70801
+ }, toDisplayString(n.value), 5)) : n.item.value ? (openBlock(), createElementBlock("span", {
70802
+ key: 3,
70803
+ class: "item-value",
70804
+ style: normalizeStyle({ textAlign: n.contentAlign || "left" })
70805
+ }, toDisplayString(n.item.value), 5)) : createCommentVNode("", !0)])) : (openBlock(), createElementBlock("div", _hoisted_6$2, [n.label || n.item.label ? (openBlock(), createElementBlock("div", {
70806
+ key: 0,
70807
+ class: "item-label",
70808
+ style: normalizeStyle({ textAlign: n.labelAlign || "left" })
70809
+ }, toDisplayString(n.label || n.item.label), 5)) : createCommentVNode("", !0), r.$slots.default ? (openBlock(), createElementBlock("div", {
70810
+ key: 1,
70811
+ class: "item-value",
70812
+ style: normalizeStyle({ textAlign: n.contentAlign || "left" })
70813
+ }, [renderSlot(r.$slots, "default", {}, void 0, !0)], 4)) : n.value ? (openBlock(), createElementBlock("div", {
70814
+ key: 2,
70815
+ class: "item-value",
70816
+ style: normalizeStyle({ textAlign: n.contentAlign || "left" })
70817
+ }, toDisplayString(n.value), 5)) : n.item.value ? (openBlock(), createElementBlock("div", {
70818
+ key: 3,
70819
+ class: "item-value",
70820
+ style: normalizeStyle({ textAlign: n.contentAlign || "left" })
70821
+ }, toDisplayString(n.item.value), 5)) : createCommentVNode("", !0)]))]),
70822
+ n.item.actions ? (openBlock(), createElementBlock("div", _hoisted_7$1, [(openBlock(!0), createElementBlock(Fragment, null, renderList(n.item.actions, (t, r) => (openBlock(), createElementBlock("button", {
70823
+ key: r,
70824
+ class: normalizeClass(["action-btn", t.type || "default"]),
70825
+ onClick: (r) => h(t, n.item)
70826
+ }, toDisplayString(t.text), 11, _hoisted_8$1))), 128))])) : createCommentVNode("", !0)
70827
+ ], 6));
70828
+ }
70829
+ }, [["__scopeId", "data-v-f84ae34f"]]), _hoisted_1$5 = {
70830
+ key: 0,
70831
+ class: "description-header"
70832
+ }, _hoisted_2$4 = {
70833
+ key: 0,
70834
+ class: "description-title"
70835
+ }, _hoisted_3$3 = {
70836
+ key: 1,
70837
+ class: "description-extra"
70838
+ }, _hoisted_4$3 = { class: "description-body" }, _hoisted_5$2 = {
70839
+ key: 0,
70840
+ class: "empty-state"
70841
+ }, description_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
70842
+ __name: "index",
70843
+ props: {
70844
+ title: {
70845
+ type: String,
70846
+ default: ""
70847
+ },
70848
+ showTitle: {
70849
+ type: Boolean,
70850
+ default: !0
70851
+ },
70852
+ items: {
70853
+ type: Array,
70854
+ default: () => []
70855
+ },
70856
+ direction: {
70857
+ type: String,
70858
+ default: "horizontal",
70859
+ validator: (t) => ["horizontal", "vertical"].includes(t)
70860
+ },
70861
+ column: {
70862
+ type: Number,
70863
+ default: 3,
70864
+ validator: (t) => t > 0
70865
+ },
70866
+ border: {
70867
+ type: Boolean,
70868
+ default: !1
70869
+ },
70870
+ size: {
70871
+ type: String,
70872
+ default: "default",
70873
+ validator: (t) => ["default", "small"].includes(t)
70874
+ },
70875
+ extra: {
70876
+ type: String,
70877
+ default: ""
70878
+ },
70879
+ align: {
70880
+ type: String,
70881
+ default: "left",
70882
+ validator: (t) => [
70883
+ "left",
70884
+ "center",
70885
+ "right"
70886
+ ].includes(t)
70887
+ },
70888
+ labelAlign: {
70889
+ type: String,
70890
+ default: "left",
70891
+ validator: (t) => [
70892
+ "left",
70893
+ "center",
70894
+ "right"
70895
+ ].includes(t)
70896
+ },
70897
+ contentAlign: {
70898
+ type: String,
70899
+ default: "left",
70900
+ validator: (t) => [
70901
+ "left",
70902
+ "center",
70903
+ "right"
70904
+ ].includes(t)
70905
+ },
70906
+ emptyText: {
70907
+ type: String,
70908
+ default: "暂无数据"
70909
+ },
70910
+ customClass: {
70911
+ type: String,
70912
+ default: ""
70913
+ }
70914
+ },
70915
+ emits: ["action"],
70916
+ setup(n, { emit: a }) {
70917
+ let d = n, f = a, p = computed(() => ({
70918
+ "my-description": !0,
70919
+ "is-bordered": d.border,
70920
+ "is-small": d.size === "small",
70921
+ "is-horizontal": d.direction === "horizontal",
70922
+ "is-vertical": d.direction === "vertical",
70923
+ [d.customClass]: !!d.customClass
70924
+ })), h = computed(() => d.direction === "horizontal" ? { gridTemplateColumns: `repeat(${d.column}, 1fr)` } : {}), g = (t) => {
70925
+ try {
70926
+ let { action: n, item: r } = t;
70927
+ typeof n.callback == "function" && n.callback(r), f("action", t);
70928
+ } catch (t) {
70929
+ console.error("处理操作时出错:", t);
70930
+ }
70931
+ };
70932
+ return (r, a) => (openBlock(), createElementBlock("div", { class: normalizeClass(["my-description", p.value]) }, [n.title || n.extra ? (openBlock(), createElementBlock("div", _hoisted_1$5, [n.title && n.showTitle ? (openBlock(), createElementBlock("div", _hoisted_2$4, [createElementVNode("h3", null, toDisplayString(n.title), 1), a[0] ||= createElementVNode("div", { class: "title-line" }, null, -1)])) : createCommentVNode("", !0), n.extra ? (openBlock(), createElementBlock("div", _hoisted_3$3, toDisplayString(n.extra), 1)) : createCommentVNode("", !0)])) : createCommentVNode("", !0), createElementVNode("div", _hoisted_4$3, [createElementVNode("div", {
70933
+ class: "description-list",
70934
+ style: normalizeStyle(h.value)
70935
+ }, [renderSlot(r.$slots, "default", {}, () => [(openBlock(!0), createElementBlock(Fragment, null, renderList(n.items, (t, r) => (openBlock(), createBlock(descriptionItem_default, {
70936
+ key: t.key || r,
70937
+ item: t,
70938
+ "has-divider": r < n.items.length - 1 && n.direction !== "vertical",
70939
+ "label-align": t.labelAlign || n.labelAlign,
70940
+ "content-align": t.contentAlign || n.contentAlign,
70941
+ span: t.span || 1,
70942
+ onAction: g
70943
+ }, null, 8, [
70944
+ "item",
70945
+ "has-divider",
70946
+ "label-align",
70947
+ "content-align",
70948
+ "span"
70949
+ ]))), 128))], !0), n.items.length === 0 && r.$slots.default === void 0 ? (openBlock(), createElementBlock("div", _hoisted_5$2, [renderSlot(r.$slots, "empty", {}, () => [createTextVNode(toDisplayString(n.emptyText), 1)], !0)])) : createCommentVNode("", !0)], 4)])], 2));
70950
+ }
70951
+ }, [["__scopeId", "data-v-43d5daef"]]), _hoisted_1$4 = ["disabled"], _hoisted_2$3 = {
70784
70952
  key: 0,
70785
70953
  class: "pagination-item pagination-ellipsis",
70786
70954
  disabled: ""
70787
- }, _hoisted_3$1 = ["disabled", "onClick"], _hoisted_4$1 = ["disabled"], pagination_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
70955
+ }, _hoisted_3$2 = ["disabled", "onClick"], _hoisted_4$2 = ["disabled"], pagination_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
70788
70956
  __name: "index",
70789
70957
  props: {
70790
70958
  current: {
@@ -70811,9 +70979,9 @@ var message_default = /* @__PURE__ */ __plugin_vue_export_helper_default(_sfc_ma
70811
70979
  },
70812
70980
  emits: ["update:current", "change"],
70813
70981
  setup(n, { emit: a }) {
70814
- let o = n, l = a, u = computed(() => Math.ceil(o.total / o.pageSize)), d = computed({
70982
+ let o = n, s = a, u = computed(() => Math.ceil(o.total / o.pageSize)), d = computed({
70815
70983
  get: () => o.current,
70816
- set: (t) => l("update:current", t)
70984
+ set: (t) => s("update:current", t)
70817
70985
  }), f = computed(() => {
70818
70986
  let t = [], n = o.showSize, r = Math.floor(n / 2);
70819
70987
  if (console.log(u.value), u.value <= n) {
@@ -70825,28 +70993,28 @@ var message_default = /* @__PURE__ */ __plugin_vue_export_helper_default(_sfc_ma
70825
70993
  for (let n = a; n <= s; n++) t.push(n);
70826
70994
  return s < u.value && (s < u.value - 1 && t.push("..."), t.push(u.value)), t;
70827
70995
  }), p = (t) => {
70828
- t < 1 || t > u.value || t === d.value || (d.value = t, l("change", t));
70996
+ t < 1 || t > u.value || t === d.value || (d.value = t, s("change", t));
70829
70997
  };
70830
70998
  return (r, a) => (openBlock(), createElementBlock("div", { class: normalizeClass(["pagination-container", { "pagination-disabled": n.disabled }]) }, [
70831
70999
  createElementVNode("button", {
70832
71000
  class: "pagination-item pagination-prev",
70833
71001
  disabled: d.value === 1 || n.disabled,
70834
71002
  onClick: a[0] ||= (t) => p(d.value - 1)
70835
- }, " < ", 8, _hoisted_1$3),
70836
- (openBlock(!0), createElementBlock(Fragment, null, renderList(f.value, (r) => (openBlock(), createElementBlock(Fragment, { key: r }, [r === "..." ? (openBlock(), createElementBlock("button", _hoisted_2$2, toDisplayString(r), 1)) : (openBlock(), createElementBlock("button", {
71003
+ }, " < ", 8, _hoisted_1$4),
71004
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(f.value, (r) => (openBlock(), createElementBlock(Fragment, { key: r }, [r === "..." ? (openBlock(), createElementBlock("button", _hoisted_2$3, toDisplayString(r), 1)) : (openBlock(), createElementBlock("button", {
70837
71005
  key: 1,
70838
71006
  class: normalizeClass(["pagination-item", { active: r === d.value }]),
70839
71007
  disabled: n.disabled,
70840
71008
  onClick: (t) => p(r)
70841
- }, toDisplayString(r), 11, _hoisted_3$1))], 64))), 128)),
71009
+ }, toDisplayString(r), 11, _hoisted_3$2))], 64))), 128)),
70842
71010
  createElementVNode("button", {
70843
71011
  class: "pagination-item pagination-next",
70844
71012
  disabled: d.value === u.value || n.disabled,
70845
71013
  onClick: a[1] ||= (t) => p(d.value + 1)
70846
- }, " > ", 8, _hoisted_4$1)
71014
+ }, " > ", 8, _hoisted_4$2)
70847
71015
  ], 2));
70848
71016
  }
70849
- }, [["__scopeId", "data-v-71f2626c"]]), _hoisted_1$2 = { class: "my-radio-box" }, _hoisted_2$1 = ["onClick"], radio_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
71017
+ }, [["__scopeId", "data-v-71f2626c"]]), _hoisted_1$3 = { class: "my-radio-box" }, _hoisted_2$2 = ["onClick"], radio_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
70850
71018
  __name: "index",
70851
71019
  props: /* @__PURE__ */ mergeModels({ options: {
70852
71020
  type: Object,
@@ -70857,14 +71025,14 @@ var message_default = /* @__PURE__ */ __plugin_vue_export_helper_default(_sfc_ma
70857
71025
  }),
70858
71026
  emits: /* @__PURE__ */ mergeModels(["change"], ["update:modelValue"]),
70859
71027
  setup(n, { emit: r }) {
70860
- let a = useModel(n, "modelValue"), o = n, c = r, l = (t) => {
70861
- a.value = t, c("change", t);
71028
+ let a = useModel(n, "modelValue"), o = n, s = r, l = (t) => {
71029
+ a.value = t, s("change", t);
70862
71030
  };
70863
- return (n, r) => (openBlock(), createElementBlock("div", _hoisted_1$2, [(openBlock(!0), createElementBlock(Fragment, null, renderList(o.options, (t, n) => (openBlock(), createElementBlock("div", {
71031
+ return (n, r) => (openBlock(), createElementBlock("div", _hoisted_1$3, [(openBlock(!0), createElementBlock(Fragment, null, renderList(o.options, (t, n) => (openBlock(), createElementBlock("div", {
70864
71032
  class: normalizeClass(["item", { active: t.value === a.value }]),
70865
71033
  key: n,
70866
71034
  onClick: (n) => l(t.value)
70867
- }, toDisplayString(t.label), 11, _hoisted_2$1))), 128))]));
71035
+ }, toDisplayString(t.label), 11, _hoisted_2$2))), 128))]));
70868
71036
  }
70869
71037
  }, [["__scopeId", "data-v-56421a98"]]);
70870
71038
  function throttle(t, n) {
@@ -70944,8 +71112,8 @@ var script$2 = defineComponent({
70944
71112
  }
70945
71113
  },
70946
71114
  setup(t, { expose: n, emit: a }) {
70947
- let o = ref(null), s = ref(null), c = ref([]), l = ref(0), u = ref(!1), d = ref(t.direction), f = computed(() => t.hover ? !u.value && t.modelValue : t.modelValue), p = ref([]), h = listMap(t.list), _ = ref(t.visibleCount === void 0 ? 0 : t.visibleCount), v = 0, x = 0, C = 0, w = [], T = 0, E = 0, D = -1, A = 0, j = null, M = !1, N = 0, P = 0, F = !1, I = () => {
70948
- cancelAnimationFrame(j), j = null;
71115
+ let o = ref(null), s = ref(null), c = ref([]), l = ref(0), u = ref(!1), d = ref(t.direction), f = computed(() => t.hover ? !u.value && t.modelValue : t.modelValue), p = ref([]), h = listMap(t.list), g = ref(t.visibleCount === void 0 ? 0 : t.visibleCount), v = 0, y = 0, S = 0, w = [], T = 0, E = 0, D = -1, O = 0, A = null, M = !1, N = 0, P = 0, F = !1, I = () => {
71116
+ cancelAnimationFrame(A), A = null;
70949
71117
  }, L = () => {
70950
71118
  let t = D + E;
70951
71119
  if (t >= h.length) {
@@ -70968,13 +71136,13 @@ var script$2 = defineComponent({
70968
71136
  if (I(), !F) return;
70969
71137
  let o = () => {
70970
71138
  let r = w[0], o = !1;
70971
- N >= r && (o = !0), o && (w.shift(), N = 0, x += 1), x === v && (C += 1, a("count", C), x = 0), t.singleLine && o ? (M = !0, setTimeout(() => {
71139
+ N >= r && (o = !0), o && (w.shift(), N = 0, y += 1), y === v && (S += 1, a("count", S), y = 0), t.singleLine && o ? (M = !0, setTimeout(() => {
70972
71140
  M = !1, n || z(!1, t.step);
70973
71141
  }, t.singleWaitTime)) : n || z(!1, t.step);
70974
71142
  };
70975
- (f.value && !M || n) && (j = requestAnimationFrame(() => {
71143
+ (f.value && !M || n) && (A = requestAnimationFrame(() => {
70976
71144
  P += r, N += r, d.value === "up" ? l.value += r : l.value -= r, P > T ? (a("offset", E, h), L(), nextTick(() => {
70977
- l.value = d.value === "up" ? 0 : K() - A, P = 0, R(), o();
71145
+ l.value = d.value === "up" ? 0 : K() - O, P = 0, R(), o();
70978
71146
  })) : o();
70979
71147
  }));
70980
71148
  }, B = () => {
@@ -70987,13 +71155,13 @@ var script$2 = defineComponent({
70987
71155
  t.hover && t.wheel && (H(n), n.preventDefault(), n.stopPropagation());
70988
71156
  }, W = computed(() => {
70989
71157
  let t = [];
70990
- return c.value.length === 0 ? t = h.slice(0, _.value) : c.value[0] === "splice" ? (t = d.value === "up" ? W.value : W.value.reverse(), t.splice(...c.value[1]), c.value.slice(2).forEach((n) => {
71158
+ return c.value.length === 0 ? t = h.slice(0, g.value) : c.value[0] === "splice" ? (t = d.value === "up" ? W.value : W.value.reverse(), t.splice(...c.value[1]), c.value.slice(2).forEach((n) => {
70991
71159
  t.push(...h.slice(...n));
70992
71160
  })) : c.value.slice(1).forEach((n) => {
70993
71161
  t.push(...h.slice(...n));
70994
71162
  }), d.value !== "up" && t.reverse(), duplicateId(t);
70995
71163
  }), G = () => {
70996
- if (D = _.value + E, D >= h.length) {
71164
+ if (D = g.value + E, D >= h.length) {
70997
71165
  let t = D - h.length, n = [
70998
71166
  "slice",
70999
71167
  [0, D],
@@ -71003,28 +71171,28 @@ var script$2 = defineComponent({
71003
71171
  } else return ["slice", [0, D]];
71004
71172
  }, K = () => Array.from(o.value.children).map((t) => t.offsetHeight).reduce((t, n) => t + n, 0), q = (n) => {
71005
71173
  t.visibleCount === void 0 ? (p.value = listMap([t.list[0]]), nextTick(() => {
71006
- _.value = Math.ceil(A / s.value.offsetHeight) + 2, p.value = h.slice(0, _.value), nextTick(() => {
71174
+ g.value = Math.ceil(O / s.value.offsetHeight) + 2, p.value = h.slice(0, g.value), nextTick(() => {
71007
71175
  n();
71008
71176
  });
71009
- })) : (p.value = h.slice(0, _.value), nextTick(() => {
71177
+ })) : (p.value = h.slice(0, g.value), nextTick(() => {
71010
71178
  n();
71011
71179
  }));
71012
71180
  };
71013
71181
  onMounted(() => {
71014
- o.value && (o.value.parentElement.addEventListener("mouseenter", B), o.value.parentElement.addEventListener("mouseleave", V), o.value.parentElement.addEventListener("wheel", U), A = o.value.parentElement.offsetHeight, t.list.length > 0 && q(() => {
71015
- s.value.offsetHeight > A ? (E = Y(), c.value = G(), nextTick(() => {
71016
- l.value = d.value === "up" ? 0 : K() - A, R(), F = !0, setTimeout(() => {
71182
+ o.value && (o.value.parentElement.addEventListener("mouseenter", B), o.value.parentElement.addEventListener("mouseleave", V), o.value.parentElement.addEventListener("wheel", U), O = o.value.parentElement.offsetHeight, t.list.length > 0 && q(() => {
71183
+ s.value.offsetHeight > O ? (E = Y(), c.value = G(), nextTick(() => {
71184
+ l.value = d.value === "up" ? 0 : K() - O, R(), F = !0, setTimeout(() => {
71017
71185
  z(!1, t.step);
71018
71186
  }, t.delay);
71019
71187
  })) : J(), p.value = [];
71020
71188
  })), v = h.length;
71021
71189
  });
71022
71190
  let J = () => {
71023
- x = 0, C = 0, F = !1, E = 0, c.value = [], nextTick(() => {
71024
- l.value = d.value === "up" ? 0 : K() - A, P = 0, N = 0;
71191
+ y = 0, S = 0, F = !1, E = 0, c.value = [], nextTick(() => {
71192
+ l.value = d.value === "up" ? 0 : K() - O, P = 0, N = 0;
71025
71193
  });
71026
71194
  }, Y = () => {
71027
- let t = h.length - _.value;
71195
+ let t = h.length - g.value;
71028
71196
  return t = Math.max(1, t), t = Math.min(5, t), t;
71029
71197
  };
71030
71198
  return n({
@@ -71050,13 +71218,13 @@ var script$2 = defineComponent({
71050
71218
  }), u !== E && (E = u);
71051
71219
  else {
71052
71220
  let n = () => {
71053
- s.value.offsetHeight > A ? (E = u, c.value = G(), nextTick(() => {
71054
- l.value = d.value === "up" ? 0 : K() - A, P = 0, N = 0, R(), F = !0, z(!1, t.step);
71055
- })) : (t.visibleCount === void 0 && (_.value = 0), J()), p.value = [];
71221
+ s.value.offsetHeight > O ? (E = u, c.value = G(), nextTick(() => {
71222
+ l.value = d.value === "up" ? 0 : K() - O, P = 0, N = 0, R(), F = !0, z(!1, t.step);
71223
+ })) : (t.visibleCount === void 0 && (g.value = 0), J()), p.value = [];
71056
71224
  };
71057
- _.value === 0 && t.visibleCount === void 0 ? q(() => {
71225
+ g.value === 0 && t.visibleCount === void 0 ? q(() => {
71058
71226
  n();
71059
- }) : (p.value = h.slice(0, _.value), nextTick(() => {
71227
+ }) : (p.value = h.slice(0, g.value), nextTick(() => {
71060
71228
  n();
71061
71229
  }));
71062
71230
  }
@@ -71064,8 +71232,8 @@ var script$2 = defineComponent({
71064
71232
  a && typeof a == "function" && a(h), v = h.length;
71065
71233
  },
71066
71234
  remove: (t, n = 1, r) => {
71067
- t >= 0 && t < h.length && (h.splice(t, n), F ? (p.value = h.slice(0, _.value), nextTick(() => {
71068
- if (s.value.offsetHeight > A) {
71235
+ t >= 0 && t < h.length && (h.splice(t, n), F ? (p.value = h.slice(0, g.value), nextTick(() => {
71236
+ if (s.value.offsetHeight > O) {
71069
71237
  let t = Y();
71070
71238
  t !== E && (E = t), c.value = G();
71071
71239
  } else J();
@@ -71091,8 +71259,8 @@ var script$2 = defineComponent({
71091
71259
  },
71092
71260
  reset: () => {
71093
71261
  nextTick(() => {
71094
- p.value = h.slice(0, _.value), nextTick(() => {
71095
- s.value.offsetHeight > A ? c.value[0] === "splice" ? (L(), nextTick(() => {
71262
+ p.value = h.slice(0, g.value), nextTick(() => {
71263
+ s.value.offsetHeight > O ? c.value[0] === "splice" ? (L(), nextTick(() => {
71096
71264
  R();
71097
71265
  })) : (c.value = G(), nextTick(() => {
71098
71266
  R();
@@ -71103,7 +71271,7 @@ var script$2 = defineComponent({
71103
71271
  }), watch(() => t.modelValue, (n) => {
71104
71272
  n && z(!1, t.step);
71105
71273
  }), onUnmounted(() => {
71106
- cancelAnimationFrame(j), o.value && (o.value.parentElement.removeEventListener("mouseenter", B), o.value.parentElement.removeEventListener("mouseleave", V), o.value.parentElement.removeEventListener("wheel", U));
71274
+ cancelAnimationFrame(A), o.value && (o.value.parentElement.removeEventListener("mouseenter", B), o.value.parentElement.removeEventListener("mouseleave", V), o.value.parentElement.removeEventListener("wheel", U));
71107
71275
  }), {
71108
71276
  realWrapperRef: o,
71109
71277
  visibleItems: W,
@@ -71112,14 +71280,14 @@ var script$2 = defineComponent({
71112
71280
  realWrapperHiddenRef: s
71113
71281
  };
71114
71282
  }
71115
- }), _hoisted_1$1 = {
71283
+ }), _hoisted_1$2 = {
71116
71284
  style: {
71117
71285
  position: "absolute !important",
71118
71286
  top: "-999999px !important"
71119
71287
  },
71120
71288
  ref: "realWrapperHiddenRef"
71121
71289
  };
71122
- function render$2(n, r, a, o, l, u) {
71290
+ function render$2(n, r, a, o, s, u) {
71123
71291
  return openBlock(), createElementBlock(Fragment, null, [createElementVNode("div", {
71124
71292
  class: "vue3-seamless-vertical-wrapper",
71125
71293
  ref: "realWrapperRef",
@@ -71131,7 +71299,7 @@ function render$2(n, r, a, o, l, u) {
71131
71299
  key: t.id,
71132
71300
  data: t.data,
71133
71301
  index: t.index
71134
- })), 128))], 4), createElementVNode("div", _hoisted_1$1, [(openBlock(!0), createElementBlock(Fragment, null, renderList(n.testList, (t) => renderSlot(n.$slots, "default", {
71302
+ })), 128))], 4), createElementVNode("div", _hoisted_1$2, [(openBlock(!0), createElementBlock(Fragment, null, renderList(n.testList, (t) => renderSlot(n.$slots, "default", {
71135
71303
  key: t.id,
71136
71304
  data: t.data,
71137
71305
  index: t.index
@@ -71194,18 +71362,18 @@ var script$1 = defineComponent({
71194
71362
  }
71195
71363
  },
71196
71364
  setup(t, { emit: n, expose: a }) {
71197
- let o = ref(null), s = ref(null), c = ref([]), l = ref(0), u = ref(!1), d = ref(t.direction), f = computed(() => t.hover ? !u.value && t.modelValue : t.modelValue), p = ref([]), h = ref(t.visibleCount === void 0 ? 0 : t.visibleCount), _ = listMap(t.list), v = 0, x = 0, C = 0, w = [], T = 0, E = 0, D = -1, A = 0, j = null, M = !1, N = 0, P = 0, F = !1, I = () => {
71198
- cancelAnimationFrame(j), j = null;
71365
+ let o = ref(null), s = ref(null), c = ref([]), l = ref(0), u = ref(!1), d = ref(t.direction), f = computed(() => t.hover ? !u.value && t.modelValue : t.modelValue), p = ref([]), h = ref(t.visibleCount === void 0 ? 0 : t.visibleCount), g = listMap(t.list), v = 0, y = 0, S = 0, w = [], T = 0, E = 0, D = -1, O = 0, A = null, M = !1, N = 0, P = 0, F = !1, I = () => {
71366
+ cancelAnimationFrame(A), A = null;
71199
71367
  }, L = () => {
71200
71368
  let t = D + E;
71201
- if (t >= _.length) {
71202
- let n = t - _.length;
71369
+ if (t >= g.length) {
71370
+ let n = t - g.length;
71203
71371
  c.value = [
71204
71372
  "splice",
71205
71373
  [0, E],
71206
71374
  [D],
71207
71375
  [0, n]
71208
- ], D = n > _.length ? _.length : n;
71376
+ ], D = n > g.length ? g.length : n;
71209
71377
  } else c.value = [
71210
71378
  "splice",
71211
71379
  [0, E],
@@ -71218,13 +71386,13 @@ var script$1 = defineComponent({
71218
71386
  if (I(), !F) return;
71219
71387
  let o = () => {
71220
71388
  let a = w[0], o = !1;
71221
- N >= a && (o = !0), o && (w.shift(), N = 0, x += 1), x === v && (C += 1, n("count", C), x = 0), t.singleLine && o ? (M = !0, setTimeout(() => {
71389
+ N >= a && (o = !0), o && (w.shift(), N = 0, y += 1), y === v && (S += 1, n("count", S), y = 0), t.singleLine && o ? (M = !0, setTimeout(() => {
71222
71390
  M = !1, r || z(!1, t.step);
71223
71391
  }, t.singleWaitTime)) : r || z(!1, t.step);
71224
71392
  };
71225
- (f.value && !M || r) && (j = requestAnimationFrame(() => {
71226
- P += a, N += a, t ? l.value += a : l.value -= a, P > T ? (n("offset", E, _), L(), nextTick(() => {
71227
- l.value = d.value === "left" ? 0 : K() - A, P = 0, R(), o();
71393
+ (f.value && !M || r) && (A = requestAnimationFrame(() => {
71394
+ P += a, N += a, t ? l.value += a : l.value -= a, P > T ? (n("offset", E, g), L(), nextTick(() => {
71395
+ l.value = d.value === "left" ? 0 : K() - O, P = 0, R(), o();
71228
71396
  })) : o();
71229
71397
  }));
71230
71398
  }, B = () => {
@@ -71237,50 +71405,50 @@ var script$1 = defineComponent({
71237
71405
  t.hover && t.wheel && (H(n), n.preventDefault(), n.stopPropagation());
71238
71406
  }, W = computed(() => {
71239
71407
  let t = [];
71240
- return c.value.length === 0 ? t = _.slice(0, h.value) : c.value[0] === "splice" ? (t = d.value === "left" ? W.value : W.value.reverse(), t.splice(...c.value[1]), c.value.slice(2).forEach((n) => {
71241
- t.push(..._.slice(...n));
71408
+ return c.value.length === 0 ? t = g.slice(0, h.value) : c.value[0] === "splice" ? (t = d.value === "left" ? W.value : W.value.reverse(), t.splice(...c.value[1]), c.value.slice(2).forEach((n) => {
71409
+ t.push(...g.slice(...n));
71242
71410
  })) : c.value.slice(1).forEach((n) => {
71243
- t.push(..._.slice(...n));
71411
+ t.push(...g.slice(...n));
71244
71412
  }), d.value !== "left" && t.reverse(), duplicateId(t);
71245
71413
  }), G = () => {
71246
- if (D = h.value + E, D >= _.length) {
71247
- let t = D - _.length, n = [
71414
+ if (D = h.value + E, D >= g.length) {
71415
+ let t = D - g.length, n = [
71248
71416
  "slice",
71249
71417
  [0, D],
71250
71418
  [0, t]
71251
71419
  ];
71252
- return D = t > _.length ? _.length : t, n;
71420
+ return D = t > g.length ? g.length : t, n;
71253
71421
  } else return ["slice", [0, D]];
71254
71422
  }, K = () => Array.from(o.value.children).map((t) => t.offsetWidth).reduce((t, n) => t + n, 0), q = (n) => {
71255
71423
  t.visibleCount === void 0 ? (p.value = listMap([t.list[0]]), nextTick(() => {
71256
- h.value = Math.ceil(A / s.value.offsetWidth) + 2, p.value = _.slice(0, h.value), nextTick(() => {
71424
+ h.value = Math.ceil(O / s.value.offsetWidth) + 2, p.value = g.slice(0, h.value), nextTick(() => {
71257
71425
  n();
71258
71426
  });
71259
- })) : (p.value = _.slice(0, h.value), nextTick(() => {
71427
+ })) : (p.value = g.slice(0, h.value), nextTick(() => {
71260
71428
  n();
71261
71429
  }));
71262
71430
  };
71263
71431
  onMounted(() => {
71264
- o.value && (o.value.parentElement.addEventListener("mouseenter", B), o.value.parentElement.addEventListener("mouseleave", V), o.value.parentElement.addEventListener("wheel", U), A = o.value.parentElement.offsetWidth, t.list.length > 0 && q(() => {
71265
- s.value.offsetWidth > A ? (E = Y(), c.value = G(), nextTick(() => {
71266
- l.value = d.value === "left" ? 0 : K() - A, R(), F = !0, setTimeout(() => {
71432
+ o.value && (o.value.parentElement.addEventListener("mouseenter", B), o.value.parentElement.addEventListener("mouseleave", V), o.value.parentElement.addEventListener("wheel", U), O = o.value.parentElement.offsetWidth, t.list.length > 0 && q(() => {
71433
+ s.value.offsetWidth > O ? (E = Y(), c.value = G(), nextTick(() => {
71434
+ l.value = d.value === "left" ? 0 : K() - O, R(), F = !0, setTimeout(() => {
71267
71435
  z(!1, t.step);
71268
71436
  }, t.delay);
71269
71437
  })) : J(), p.value = [];
71270
- })), v = _.length;
71438
+ })), v = g.length;
71271
71439
  });
71272
71440
  let J = () => {
71273
- x = 0, C = 0, F = !1, E = 0, c.value = [], nextTick(() => {
71274
- l.value = d.value === "left" ? 0 : K() - A, P = 0, N = 0;
71441
+ y = 0, S = 0, F = !1, E = 0, c.value = [], nextTick(() => {
71442
+ l.value = d.value === "left" ? 0 : K() - O, P = 0, N = 0;
71275
71443
  });
71276
71444
  }, Y = () => {
71277
- let t = _.length - h.value;
71445
+ let t = g.length - h.value;
71278
71446
  return t = Math.max(1, t), t = Math.min(5, t), t;
71279
71447
  };
71280
71448
  return a({
71281
71449
  add: (n, r, a) => {
71282
71450
  if (r && r.length > 0) {
71283
- n > _.length && (n = _.length), n < 0 && (n = 0);
71451
+ n > g.length && (n = g.length), n < 0 && (n = 0);
71284
71452
  let a = [];
71285
71453
  r.length === 1 && W.value.forEach((t, r) => {
71286
71454
  t.index === n && a.push(r);
@@ -71291,39 +71459,39 @@ var script$1 = defineComponent({
71291
71459
  id: uuid(),
71292
71460
  data: t
71293
71461
  });
71294
- }), _.splice(n, 0, ...o), _.forEach((t, n) => {
71462
+ }), g.splice(n, 0, ...o), g.forEach((t, n) => {
71295
71463
  t.index = n;
71296
71464
  });
71297
71465
  let u = Y();
71298
- if (F) n < D && (D += 1, D > _.length && (D = 0)), r.length === 1 && a.forEach((t) => {
71466
+ if (F) n < D && (D += 1, D > g.length && (D = 0)), r.length === 1 && a.forEach((t) => {
71299
71467
  W.value[t] = o[0];
71300
71468
  }), u !== E && (E = u);
71301
71469
  else {
71302
71470
  let n = () => {
71303
- s.value.offsetWidth > A ? (E = u, c.value = G(), nextTick(() => {
71304
- l.value = d.value === "left" ? 0 : K() - A, P = 0, N = 0, R(), F = !0, z(!1, t.step);
71471
+ s.value.offsetWidth > O ? (E = u, c.value = G(), nextTick(() => {
71472
+ l.value = d.value === "left" ? 0 : K() - O, P = 0, N = 0, R(), F = !0, z(!1, t.step);
71305
71473
  })) : (t.visibleCount === void 0 && (h.value = 0), J()), p.value = [];
71306
71474
  };
71307
71475
  h.value === 0 && t.visibleCount === void 0 ? q(() => {
71308
71476
  n();
71309
- }) : (p.value = _.slice(0, h.value), nextTick(() => {
71477
+ }) : (p.value = g.slice(0, h.value), nextTick(() => {
71310
71478
  n();
71311
71479
  }));
71312
71480
  }
71313
71481
  }
71314
- a && typeof a == "function" && a(_), v = _.length;
71482
+ a && typeof a == "function" && a(g), v = g.length;
71315
71483
  },
71316
71484
  remove: (t, n = 1, r) => {
71317
- t >= 0 && t < _.length && (_.splice(t, n), F ? (p.value = _.slice(0, h.value), nextTick(() => {
71318
- if (s.value.offsetWidth > A) {
71485
+ t >= 0 && t < g.length && (g.splice(t, n), F ? (p.value = g.slice(0, h.value), nextTick(() => {
71486
+ if (s.value.offsetWidth > O) {
71319
71487
  let t = Y();
71320
71488
  t !== E && (E = t), c.value = G();
71321
71489
  } else J();
71322
71490
  p.value = [];
71323
- })) : J()), r && typeof r == "function" && r(_), v = _.length;
71491
+ })) : J()), r && typeof r == "function" && r(g), v = g.length;
71324
71492
  },
71325
71493
  update: (t, n, r) => {
71326
- if (t >= 0 && t < _.length) {
71494
+ if (t >= 0 && t < g.length) {
71327
71495
  let r = [];
71328
71496
  W.value.forEach((n, a) => {
71329
71497
  n.index === t && r.push(a);
@@ -71333,16 +71501,16 @@ var script$1 = defineComponent({
71333
71501
  index: t,
71334
71502
  data: n
71335
71503
  };
71336
- _[t] = a, r.length > 0 && r.forEach((t) => {
71504
+ g[t] = a, r.length > 0 && r.forEach((t) => {
71337
71505
  W[t] = a;
71338
71506
  });
71339
71507
  }
71340
- r && typeof r == "function" && r(_);
71508
+ r && typeof r == "function" && r(g);
71341
71509
  },
71342
71510
  reset: () => {
71343
71511
  nextTick(() => {
71344
- p.value = _.slice(0, h.value), nextTick(() => {
71345
- s.value.offsetWidth > A ? c.value[0] === "splice" ? (L(), nextTick(() => {
71512
+ p.value = g.slice(0, h.value), nextTick(() => {
71513
+ s.value.offsetWidth > O ? c.value[0] === "splice" ? (L(), nextTick(() => {
71346
71514
  R();
71347
71515
  })) : (c.value = G(), nextTick(() => {
71348
71516
  R();
@@ -71353,7 +71521,7 @@ var script$1 = defineComponent({
71353
71521
  }), watch(() => t.modelValue, (n) => {
71354
71522
  n && z(!1, t.step);
71355
71523
  }), onUnmounted(() => {
71356
- cancelAnimationFrame(j), o.value && (o.value.parentElement.removeEventListener("mouseenter", B), o.value.parentElement.removeEventListener("mouseleave", V), o.value.parentElement.removeEventListener("wheel", U));
71524
+ cancelAnimationFrame(A), o.value && (o.value.parentElement.removeEventListener("mouseenter", B), o.value.parentElement.removeEventListener("mouseleave", V), o.value.parentElement.removeEventListener("wheel", U));
71357
71525
  }), {
71358
71526
  visibleItems: W,
71359
71527
  offset: l,
@@ -71363,7 +71531,7 @@ var script$1 = defineComponent({
71363
71531
  };
71364
71532
  }
71365
71533
  });
71366
- function render$1(n, r, a, o, l, u) {
71534
+ function render$1(n, r, a, o, s, u) {
71367
71535
  return openBlock(), createElementBlock(Fragment, null, [createElementVNode("div", mergeProps({
71368
71536
  class: "vue3-seamless-horizontal-wrapper",
71369
71537
  ref: "realWrapperRef",
@@ -71437,33 +71605,33 @@ var script = defineComponent({
71437
71605
  }
71438
71606
  },
71439
71607
  setup(t, { expose: n, emit: a }) {
71440
- let o = ref(null), s = ref(null), c = ref(null), l = ref([]), u = ref(0), d = ref(!1), f = ref(t.direction), p = computed(() => t.hover ? !d.value && t.modelValue : t.modelValue), h = ref([]), _ = ref(t.visibleCount === void 0 ? 0 : t.visibleCount), v = listMap(t.list), x = 0, C = 0, w = 0, T = [], E = 0, D = 0, A = -1, j = 0, M = null, N = !1, P = 0, F = 0, I = !1, L = computed(() => f.value === "up" || f.value === "down" ? `translateY(-${u.value}px)` : `translateX(-${u.value}px)`), R = () => {
71608
+ let o = ref(null), s = ref(null), c = ref(null), l = ref([]), u = ref(0), d = ref(!1), f = ref(t.direction), p = computed(() => t.hover ? !d.value && t.modelValue : t.modelValue), h = ref([]), g = ref(t.visibleCount === void 0 ? 0 : t.visibleCount), v = listMap(t.list), y = 0, S = 0, w = 0, T = [], E = 0, D = 0, O = -1, A = 0, M = null, N = !1, P = 0, F = 0, I = !1, L = computed(() => f.value === "up" || f.value === "down" ? `translateY(-${u.value}px)` : `translateX(-${u.value}px)`), R = () => {
71441
71609
  cancelAnimationFrame(M), M = null;
71442
71610
  }, z = () => {
71443
- let t = A + D;
71611
+ let t = O + D;
71444
71612
  if (t >= v.length) {
71445
71613
  let n = t - v.length;
71446
71614
  l.value = [
71447
71615
  "splice",
71448
71616
  [0, D],
71449
- [A],
71617
+ [O],
71450
71618
  [0, n]
71451
- ], A = n > v.length ? v.length : n;
71619
+ ], O = n > v.length ? v.length : n;
71452
71620
  } else l.value = [
71453
71621
  "splice",
71454
71622
  [0, D],
71455
- [A, t]
71456
- ], A = t;
71623
+ [O, t]
71624
+ ], O = t;
71457
71625
  }, B = () => {
71458
71626
  let t = Array.from(s.value.children);
71459
71627
  T = (f.value === "up" || f.value === "left" ? t.slice(0, D) : t.slice(q.value.length - D, q.value.length)).map((t) => f.value === "left" || f.value === "right" ? t.offsetWidth : t.offsetHeight), E = T.reduce((t, n) => t + n, 0);
71460
71628
  }, V = () => {
71461
- f.value === "up" || f.value === "left" ? u.value = 0 : u.value = Y() - j;
71629
+ f.value === "up" || f.value === "left" ? u.value = 0 : u.value = Y() - A;
71462
71630
  }, H = (n, r) => {
71463
71631
  if (R(), !I) return;
71464
71632
  let o = () => {
71465
71633
  let r = T[0], o = !1;
71466
- P >= r && (o = !0), o && (T.shift(), P = 0, C += 1), C === x && (w += 1, a("count", w), C = 0), t.singleLine && o ? (N = !0, setTimeout(() => {
71634
+ P >= r && (o = !0), o && (T.shift(), P = 0, S += 1), S === y && (w += 1, a("count", w), S = 0), t.singleLine && o ? (N = !0, setTimeout(() => {
71467
71635
  N = !1, n || H(!1, t.step);
71468
71636
  }, t.singleWaitTime)) : n || H(!1, t.step);
71469
71637
  };
@@ -71482,45 +71650,45 @@ var script = defineComponent({
71482
71650
  t.hover && t.wheel && (G(n), n.preventDefault(), n.stopPropagation());
71483
71651
  }, q = computed(() => {
71484
71652
  let t = [];
71485
- return l.value.length === 0 ? t = v.slice(0, _.value) : l.value[0] === "splice" ? (t = f.value === "up" || f.value === "left" ? q.value : q.value.reverse(), t.splice(...l.value[1]), l.value.slice(2).forEach((n) => {
71653
+ return l.value.length === 0 ? t = v.slice(0, g.value) : l.value[0] === "splice" ? (t = f.value === "up" || f.value === "left" ? q.value : q.value.reverse(), t.splice(...l.value[1]), l.value.slice(2).forEach((n) => {
71486
71654
  t.push(...v.slice(...n));
71487
71655
  })) : l.value.slice(1).forEach((n) => {
71488
71656
  t.push(...v.slice(...n));
71489
71657
  }), f.value === "up" || f.value === "left" || t.reverse(), duplicateId(t);
71490
71658
  }), J = () => {
71491
- if (A = _.value + D, A >= v.length) {
71492
- let t = A - v.length, n = [
71659
+ if (O = g.value + D, O >= v.length) {
71660
+ let t = O - v.length, n = [
71493
71661
  "slice",
71494
- [0, A],
71662
+ [0, O],
71495
71663
  [0, t]
71496
71664
  ];
71497
- return A = t > v.length ? v.length : t, n;
71498
- } else return ["slice", [0, A]];
71665
+ return O = t > v.length ? v.length : t, n;
71666
+ } else return ["slice", [0, O]];
71499
71667
  }, Y = () => Array.from(s.value.children).map((t) => f.value === "left" || f.value === "right" ? t.offsetWidth : t.offsetHeight).reduce((t, n) => t + n, 0), X = (n) => {
71500
71668
  t.visibleCount === void 0 ? (h.value = listMap([t.list[0]]), nextTick(() => {
71501
- f.value === "left" || f.value === "right" ? _.value = Math.ceil(j / c.value.offsetWidth) + 2 : _.value = Math.ceil(j / c.value.offsetHeight) + 2, h.value = v.slice(0, _.value), nextTick(() => {
71669
+ f.value === "left" || f.value === "right" ? g.value = Math.ceil(A / c.value.offsetWidth) + 2 : g.value = Math.ceil(A / c.value.offsetHeight) + 2, h.value = v.slice(0, g.value), nextTick(() => {
71502
71670
  n();
71503
71671
  });
71504
- })) : (h.value = v.slice(0, _.value), nextTick(() => {
71672
+ })) : (h.value = v.slice(0, g.value), nextTick(() => {
71505
71673
  n();
71506
71674
  }));
71507
71675
  };
71508
71676
  onMounted(() => {
71509
- s.value && (s.value.parentElement.addEventListener("mouseenter", U), s.value.parentElement.addEventListener("mouseleave", W), s.value.parentElement.addEventListener("wheel", K), j = s.value.parentElement.offsetHeight, (f.value === "left" || f.value === "right") && (j = s.value.parentElement.offsetWidth), X(() => {
71510
- let n = c.value.offsetHeight > j;
71511
- (f.value === "left" || f.value === "right") && (n = c.value.offsetWidth > j), n ? (D = m9(), l.value = J(), nextTick(() => {
71677
+ s.value && (s.value.parentElement.addEventListener("mouseenter", U), s.value.parentElement.addEventListener("mouseleave", W), s.value.parentElement.addEventListener("wheel", K), A = s.value.parentElement.offsetHeight, (f.value === "left" || f.value === "right") && (A = s.value.parentElement.offsetWidth), X(() => {
71678
+ let n = c.value.offsetHeight > A;
71679
+ (f.value === "left" || f.value === "right") && (n = c.value.offsetWidth > A), n ? (D = m9(), l.value = J(), nextTick(() => {
71512
71680
  V(), B(), I = !0, setTimeout(() => {
71513
71681
  H(!1, t.step);
71514
71682
  }, t.delay);
71515
71683
  })) : Z(), h.value = [];
71516
- })), x = v.length;
71684
+ })), y = v.length;
71517
71685
  });
71518
71686
  let Z = () => {
71519
- C = 0, w = 0, I = !1, D = 0, l.value = [], nextTick(() => {
71687
+ S = 0, w = 0, I = !1, D = 0, l.value = [], nextTick(() => {
71520
71688
  V(), F = 0, P = 0;
71521
71689
  });
71522
71690
  }, m9 = () => {
71523
- let t = v.length - _.value;
71691
+ let t = v.length - g.value;
71524
71692
  return t = Math.max(1, t), t = Math.min(5, t), t;
71525
71693
  };
71526
71694
  return n({
@@ -71541,34 +71709,34 @@ var script = defineComponent({
71541
71709
  t.index = n;
71542
71710
  });
71543
71711
  let s = m9();
71544
- if (I) n < A && (A += 1, A > v.length && (A = 0)), r.length === 1 && a.length > 0 && a.forEach((t) => {
71712
+ if (I) n < O && (O += 1, O > v.length && (O = 0)), r.length === 1 && a.length > 0 && a.forEach((t) => {
71545
71713
  q[t] = o[0];
71546
71714
  }), s !== D && (D = s);
71547
71715
  else {
71548
71716
  let n = () => {
71549
- let n = c.value.offsetHeight > j;
71550
- (f.value === "left" || f.value === "right") && (n = c.value.offsetWidth > j), n ? (D = s, l.value = J(), nextTick(() => {
71717
+ let n = c.value.offsetHeight > A;
71718
+ (f.value === "left" || f.value === "right") && (n = c.value.offsetWidth > A), n ? (D = s, l.value = J(), nextTick(() => {
71551
71719
  V(), F = 0, P = 0, B(), I = !0, H(!1, t.step);
71552
- })) : (t.visibleCount === void 0 && (_.value = 0), Z()), h.value = [];
71720
+ })) : (t.visibleCount === void 0 && (g.value = 0), Z()), h.value = [];
71553
71721
  };
71554
- _.value === 0 && t.visibleCount === void 0 ? X(() => {
71722
+ g.value === 0 && t.visibleCount === void 0 ? X(() => {
71555
71723
  n();
71556
- }) : (h.value = v.slice(0, _.value), nextTick(() => {
71724
+ }) : (h.value = v.slice(0, g.value), nextTick(() => {
71557
71725
  n();
71558
71726
  }));
71559
71727
  }
71560
71728
  }
71561
- a && typeof a == "function" && a(v), x = v.length;
71729
+ a && typeof a == "function" && a(v), y = v.length;
71562
71730
  },
71563
71731
  remove: (t, n = 1, r) => {
71564
- t >= 0 && t < v.length && (v.splice(t, n), I ? (h.value = v.slice(0, _.value), nextTick(() => {
71565
- let t = c.value.offsetHeight > j;
71566
- if ((f.value === "left" || f.value === "right") && (t = c.value.offsetWidth > j), t) {
71732
+ t >= 0 && t < v.length && (v.splice(t, n), I ? (h.value = v.slice(0, g.value), nextTick(() => {
71733
+ let t = c.value.offsetHeight > A;
71734
+ if ((f.value === "left" || f.value === "right") && (t = c.value.offsetWidth > A), t) {
71567
71735
  let t = m9();
71568
71736
  t !== D && (D = t), l.value = J();
71569
71737
  } else Z();
71570
71738
  h.value = [];
71571
- })) : Z()), r && typeof r == "function" && r(v), x = v.length;
71739
+ })) : Z()), r && typeof r == "function" && r(v), y = v.length;
71572
71740
  },
71573
71741
  update: (t, n, r) => {
71574
71742
  if (t >= 0 && t < v.length) {
@@ -71589,9 +71757,9 @@ var script = defineComponent({
71589
71757
  },
71590
71758
  reset: () => {
71591
71759
  nextTick(() => {
71592
- h.value = v.slice(0, _.value), nextTick(() => {
71593
- let t = c.value.offsetHeight > j;
71594
- (f.value === "left" || f.value === "right") && (t = c.value.offsetWidth > j), t ? l.value[0] === "splice" ? (z(), nextTick(() => {
71760
+ h.value = v.slice(0, g.value), nextTick(() => {
71761
+ let t = c.value.offsetHeight > A;
71762
+ (f.value === "left" || f.value === "right") && (t = c.value.offsetWidth > A), t ? l.value[0] === "splice" ? (z(), nextTick(() => {
71595
71763
  B();
71596
71764
  })) : (l.value = J(), nextTick(() => {
71597
71765
  B();
@@ -71614,7 +71782,7 @@ var script = defineComponent({
71614
71782
  };
71615
71783
  }
71616
71784
  });
71617
- function render(n, r, a, o, l, u) {
71785
+ function render(n, r, a, o, s, u) {
71618
71786
  return openBlock(), createElementBlock(Fragment, null, [createElementVNode("div", mergeProps({
71619
71787
  class: "vue3-seamless-wrapper",
71620
71788
  ref: "realWrapperRef",
@@ -71639,7 +71807,7 @@ function render(n, r, a, o, l, u) {
71639
71807
  })), 128))], 16)], 64);
71640
71808
  }
71641
71809
  styleInject("\n.vue3-seamless-wrapper[data-v-b156a416] {\r\n width: 100%;\r\n height: 100%;\n}\r\n"), script.render = render, script.__scopeId = "data-v-b156a416", script.__file = "packages/Vue3SeamlessScroll.vue";
71642
- var _hoisted_1 = { class: "my-table-box" }, _hoisted_2 = { class: "head-box" }, _hoisted_3 = { class: "data-box" }, _hoisted_4 = ["onClick"], _hoisted_5 = ["title"], _hoisted_6 = {
71810
+ var _hoisted_1$1 = { class: "my-table-box" }, _hoisted_2$1 = { class: "head-box" }, _hoisted_3$1 = { class: "data-box" }, _hoisted_4$1 = ["onClick"], _hoisted_5$1 = ["title"], _hoisted_6$1 = {
71643
71811
  key: 1,
71644
71812
  class: "no-data"
71645
71813
  }, table_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
@@ -71660,10 +71828,10 @@ var _hoisted_1 = { class: "my-table-box" }, _hoisted_2 = { class: "head-box" },
71660
71828
  },
71661
71829
  emits: ["row-click"],
71662
71830
  setup(n, { emit: r }) {
71663
- let o = n, u = r, d = (t, n) => {
71664
- u("row-click", t, n);
71831
+ let a = n, s = r, d = (t, n) => {
71832
+ s("row-click", t, n);
71665
71833
  };
71666
- return (r, u) => (openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [(openBlock(!0), createElementBlock(Fragment, null, renderList(o.columns, (t, n) => (openBlock(), createElementBlock("div", {
71834
+ return (r, s) => (openBlock(), createElementBlock("div", _hoisted_1$1, [createElementVNode("div", _hoisted_2$1, [(openBlock(!0), createElementBlock(Fragment, null, renderList(a.columns, (t, n) => (openBlock(), createElementBlock("div", {
71667
71835
  class: "head-item",
71668
71836
  key: "head_" + n,
71669
71837
  style: normalizeStyle({
@@ -71675,21 +71843,21 @@ var _hoisted_1 = { class: "my-table-box" }, _hoisted_2 = { class: "head-box" },
71675
71843
  overflow: t.ellipsis ? "hidden" : "visible",
71676
71844
  textOverflow: t.ellipsis ? "ellipsis" : "clip"
71677
71845
  })
71678
- }, toDisplayString(t.label), 5))), 128))]), createElementVNode("div", _hoisted_3, [n.tableData.length ? (openBlock(), createBlock(unref(script), {
71846
+ }, toDisplayString(t.label), 5))), 128))]), createElementVNode("div", _hoisted_3$1, [n.tableData.length ? (openBlock(), createBlock(unref(script), {
71679
71847
  key: 0,
71680
71848
  list: n.tableData,
71681
71849
  hover: "",
71682
71850
  step: n.tableData.length > 4 ? n.step : 0
71683
71851
  }, {
71684
- default: withCtx(({ data: n, index: a }) => [createElementVNode("div", {
71685
- class: normalizeClass(["data-row", `data-row_${a}`]),
71686
- onClick: (t) => d(n, a)
71687
- }, [(openBlock(!0), createElementBlock(Fragment, null, renderList(o.columns, (t, o) => (openBlock(), createElementBlock("div", {
71688
- key: "data_row_" + o,
71852
+ default: withCtx(({ data: n, index: o }) => [createElementVNode("div", {
71853
+ class: normalizeClass(["data-row", `data-row_${o}`]),
71854
+ onClick: (t) => d(n, o)
71855
+ }, [(openBlock(!0), createElementBlock(Fragment, null, renderList(a.columns, (t, a) => (openBlock(), createElementBlock("div", {
71856
+ key: "data_row_" + a,
71689
71857
  class: normalizeClass([
71690
71858
  "head-item",
71691
71859
  "data-item",
71692
- `data_column_${o}`
71860
+ `data_column_${a}`
71693
71861
  ]),
71694
71862
  title: n[t.prop],
71695
71863
  style: normalizeStyle({
@@ -71703,27 +71871,112 @@ var _hoisted_1 = { class: "my-table-box" }, _hoisted_2 = { class: "head-box" },
71703
71871
  })
71704
71872
  }, [renderSlot(r.$slots, `column-${t.prop}`, {
71705
71873
  row: n,
71706
- index: a
71707
- }, () => [createTextVNode(toDisplayString(n[t.prop]), 1)], !0)], 14, _hoisted_5))), 128))], 10, _hoisted_4)]),
71874
+ index: o
71875
+ }, () => [createTextVNode(toDisplayString(n[t.prop]), 1)], !0)], 14, _hoisted_5$1))), 128))], 10, _hoisted_4$1)]),
71708
71876
  _: 3
71709
- }, 8, ["list", "step"])) : (openBlock(), createElementBlock("div", _hoisted_6, [...u[0] ||= [createElementVNode("img", {
71877
+ }, 8, ["list", "step"])) : (openBlock(), createElementBlock("div", _hoisted_6$1, [...s[0] ||= [createElementVNode("img", {
71710
71878
  src: "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1766108977437'%20class='icon'%20viewBox='0%200%201669%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='12904'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='325.9765625'%20height='200'%3e%3cpath%20d='M1391.243682%20643.887244L1211.740867%20350.186395c-3.450203-6.918857-10.350609-10.36906-17.251016-10.36906H448.784714c-6.909631%200-13.810038%203.459428-17.260241%2010.36906l-179.521266%20293.710074v362.82484c0%2010.36906%206.909631%2017.278691%2017.260241%2017.278691h1108.170197c10.359835%200%2017.260241-6.918857%2017.260241-17.278691v-355.905983c-3.450203%200-3.450203-3.459428-3.450204-6.918857zM459.153773%20377.815695h724.976244l162.251799%20255.711715h-400.463419c-10.350609%200-17.251016%206.909631-17.251016%2017.269466%200%2058.745705-48.339745%20107.12235-107.030098%20107.12235-58.681129%200-107.011649-48.376645-107.011649-107.12235%200-10.359835-6.909631-17.269466-17.260241-17.269466h-400.463419l162.251799-255.711715z%20m897.587878%20615.077126H286.532914V671.534995h393.553788c10.359835%2069.10554%2069.050189%20127.851245%20141.541355%20127.851245%2072.509617%200%20134.640949-55.286277%20141.541356-127.86047h393.563013v321.367051zM165.711228%20823.574562v-20.738119c0-3.450203-3.459428-10.359835-10.359835-10.359835-3.450203%200-10.359835%203.450203-10.359834%2010.359835v20.738119h-17.251016c-3.459428%200-10.36906%203.450203-10.36906%2010.36906%200%206.909631%203.459428%2010.359835%2010.359835%2010.359835h20.710444v20.738119c0%203.450203%203.459428%2010.359835%2010.359834%2010.359835%203.450203%200%2010.359835-3.450203%2010.359835-10.359835v-20.738119h20.710444c3.450203%200%2010.359835-3.450203%2010.359835-10.359835%200-6.918857-3.450203-10.36906-10.359835-10.36906h-24.169872z%20m1294.582643-393.922793h31.070279c6.909631%200%2013.810038%206.909631%2013.810038%2013.819263%200%206.918857-6.900406%2013.819263-13.810038%2013.819263h-31.070279v31.107179c0%206.909631-6.900406%2013.819263-13.810038%2013.819263-6.900406%200-13.810038-6.918857-13.810037-13.819263V457.290295h-31.070279c-6.900406%200-13.800813-6.909631-13.800813-13.819263s6.900406-13.819263%2013.800813-13.819263h31.070279v-31.097954c0-6.918857%206.909631-13.828488%2013.810037-13.828488%206.909631%200%2013.810038%206.918857%2013.810038%2013.828488v31.088729z%20m107.020874%20127.851244h17.260241c3.450203%200%2010.359835%203.459428%2010.359834%2010.36906%200%206.909631-3.450203%2010.359835-10.359834%2010.359835h-17.251016v17.278691c0%203.459428-3.459428%2010.36906-10.36906%2010.36906-3.450203%200-10.350609-3.459428-10.350609-6.918857v-17.269466h-17.260241c-3.459428%200-10.359835-3.459428-10.359835-10.36906%200-6.909631%203.450203-10.359835%2010.359835-10.359834h17.251016V540.224322c0-3.450203%203.459428-10.36906%2010.359834-10.369059%203.459428%200%2010.359835%203.459428%2010.359835%2010.369059v17.278691zM189.871875%20405.463446V374.356267c0-6.918857-6.900406-13.828488-13.810038-13.828488-6.900406%200-13.810038%206.918857-13.810037%2013.828488v27.638526H131.181521c-6.900406%200-13.810038%206.918857-13.810038%2013.828488%200%206.909631%206.909631%2013.819263%2013.810038%2013.819263h27.620075v34.557382c0%206.909631%206.909631%2013.819263%2013.810038%2013.819263%206.900406%200%2013.810038-6.918857%2013.810038-13.819263v-27.647751h27.620075c6.900406%200%2013.810038-6.918857%2013.810038-13.819263%200-6.918857-6.909631-13.828488-13.810038-13.828488%206.900406-3.450203-24.169872-3.450203-24.169872-3.450203zM58.690354%20699.173521C27.620075%20699.173521%200%20671.534995%200%20640.437041s27.620075-58.745705%2058.690354-58.745705%2058.681129%2027.647751%2058.681129%2058.745705c0%2034.548157-27.61085%2058.73648-58.681129%2058.73648z%20m0-27.638526c17.251016%200%2027.620075-13.819263%2027.620076-27.647751%200-17.278691-13.810038-27.638526-27.620076-27.638526-17.260241%200-27.620075%2013.819263-27.620075%2027.638526-3.450203%2013.828488%2010.359835%2027.647751%2027.620075%2027.647751z%20m1574.215151-165.868055c-13.810038%200-27.620075-10.359835-27.620075-27.638526%200-13.819263%2010.359835-27.647751%2027.620075-27.647751%2013.810038%200%2027.620075%2010.36906%2027.620076%2027.647751%200%2017.278691-10.359835%2027.638526-27.620076%2027.638526z%20m0-10.359835c6.909631%200%2013.810038-6.918857%2013.810038-13.828488%200-6.909631-6.900406-13.819263-13.810038-13.819263-6.900406%200-13.810038%206.918857-13.810037%2013.819263%200%206.918857%206.909631%2013.828488%2013.810037%2013.828488zM455.694345%2077.195989c10.359835-10.36906%2024.169872-10.36906%2034.520482%200l86.31043%2086.384231c10.350609%2010.36906%2010.350609%2024.188323%200%2034.557382-10.359835%2010.359835-24.169872%2010.359835-34.520482%200l-86.31043-86.393456c-10.359835-10.359835-10.359835-24.188323%200-34.548157zM821.628057%2018.450284c13.810038%200%2024.169872%2010.36906%2024.169873%2024.188323v120.941613c0%2013.819263-10.359835%2024.188323-24.169873%2024.188323-13.800813%200-24.169872-10.36906-24.169872-24.188323V42.638607c0-10.36906%2010.36906-24.188323%2024.169872-24.188323z%20m362.492735%2055.286277c10.350609%2010.36906%2010.350609%2024.188323%200%2034.557382l-82.860227%2079.4746c-10.350609%2010.36906-24.169872%2010.36906-34.520482%200-10.359835-10.36906-10.359835-24.188323%200-34.557383l82.851002-82.934027c10.359835-6.909631%2027.620075-6.909631%2034.529707%203.459428z'%20fill='%23D0D0D0'%20p-id='12905'%3e%3c/path%3e%3c/svg%3e",
71711
71879
  alt: "",
71712
71880
  class: "no-data-img"
71713
71881
  }, null, -1)]]))])]));
71714
71882
  }
71715
- }, [["__scopeId", "data-v-c2bdd967"]]), WxVideoFromFlv = VideoFromFlv_default, WxVideoFromHls = VideoFromHls_default, WxEcharts = echarts_default, WxEmpty = empty_default, WxMessage = message_default, WxPagination = pagination_default, WxRadio = radio_default, WxTable = table_default, components = [
71883
+ }, [["__scopeId", "data-v-c2bdd967"]]), messageId = 0, _sfc_main = {
71884
+ name: "MyMessage",
71885
+ setup() {
71886
+ let t = ref([]), n = (n, a, o = 3e3) => {
71887
+ let s = messageId++, c = {
71888
+ id: s,
71889
+ type: n,
71890
+ content: a,
71891
+ duration: o
71892
+ };
71893
+ return t.value.push(c), n !== "loading" && o > 0 && setTimeout(() => {
71894
+ r(s);
71895
+ }, o), () => {
71896
+ r(s);
71897
+ };
71898
+ }, r = (n) => {
71899
+ let r = t.value.findIndex((t) => t.id === n);
71900
+ r !== -1 && t.value.splice(r, 1);
71901
+ };
71902
+ return {
71903
+ messages: t,
71904
+ addMessage: n,
71905
+ removeMessage: r,
71906
+ clearAll: () => {
71907
+ t.value = [];
71908
+ }
71909
+ };
71910
+ }
71911
+ }, _hoisted_1 = { class: "message-container" }, _hoisted_2 = {
71912
+ key: 0,
71913
+ viewBox: "0 0 16 16",
71914
+ fill: "currentColor"
71915
+ }, _hoisted_3 = {
71916
+ key: 1,
71917
+ viewBox: "0 0 16 16",
71918
+ fill: "currentColor"
71919
+ }, _hoisted_4 = {
71920
+ key: 2,
71921
+ viewBox: "0 0 16 16",
71922
+ fill: "currentColor"
71923
+ }, _hoisted_5 = {
71924
+ key: 3,
71925
+ viewBox: "0 0 16 16",
71926
+ fill: "currentColor"
71927
+ }, _hoisted_6 = {
71928
+ key: 4,
71929
+ viewBox: "0 0 16 16",
71930
+ fill: "currentColor"
71931
+ }, _hoisted_7 = { class: "message-content" }, _hoisted_8 = ["onClick"];
71932
+ function _sfc_render(r, a, o, u, f, p) {
71933
+ return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(TransitionGroup, {
71934
+ name: "message-fade",
71935
+ tag: "div"
71936
+ }, {
71937
+ default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(u.messages, (t) => (openBlock(), createElementBlock("div", {
71938
+ key: t.id,
71939
+ class: normalizeClass(["message-item", `message-${t.type}`])
71940
+ }, [
71941
+ createElementVNode("span", { class: normalizeClass(["message-icon", `icon-${t.type}`]) }, [t.type === "success" ? (openBlock(), createElementBlock("svg", _hoisted_2, [...a[0] ||= [createElementVNode("path", { d: "M6.5 10L3 6.5l1-1 2.5 2.5 5-5 1 1-6 6z" }, null, -1)]])) : t.type === "error" ? (openBlock(), createElementBlock("svg", _hoisted_3, [...a[1] ||= [createElementVNode("path", { d: "M8 1a7 7 0 100 14A7 7 0 008 1zm0 13a6 6 0 110-12 6 6 0 010 12zM5 5h6v6H5V5z" }, null, -1)]])) : t.type === "warning" ? (openBlock(), createElementBlock("svg", _hoisted_4, [...a[2] ||= [createElementVNode("path", { d: "M8 1a7 7 0 100 14A7 7 0 008 1zm0 13a6 6 0 110-12 6 6 0 010 12zm0-8a1 1 0 100 2 1 1 0 000-2zm0 6a1 1 0 001-1V7a1 1 0 00-2 0v4a1 1 0 001 1z" }, null, -1)]])) : t.type === "loading" ? (openBlock(), createElementBlock("svg", _hoisted_5, [...a[3] ||= [createElementVNode("path", {
71942
+ d: "M8 1a7 7 0 100 14A7 7 0 008 1zm0 13a6 6 0 110-12 6 6 0 010 12z",
71943
+ opacity: "0.3"
71944
+ }, null, -1), createElementVNode("path", { d: "M8 1a7 7 0 017 7h-1a6 6 0 00-6-6V1z" }, null, -1)]])) : (openBlock(), createElementBlock("svg", _hoisted_6, [...a[4] ||= [createElementVNode("path", { d: "M8 1a7 7 0 100 14A7 7 0 008 1zm0 13a6 6 0 110-12 6 6 0 010 12zm1-9H7v5h2V5z" }, null, -1)]]))], 2),
71945
+ createElementVNode("div", _hoisted_7, toDisplayString(t.content), 1),
71946
+ t.type === "loading" ? createCommentVNode("", !0) : (openBlock(), createElementBlock("span", {
71947
+ key: 0,
71948
+ class: "message-close",
71949
+ onClick: (n) => u.removeMessage(t.id)
71950
+ }, [...a[5] ||= [createElementVNode("svg", {
71951
+ viewBox: "0 0 16 16",
71952
+ fill: "currentColor"
71953
+ }, [createElementVNode("path", { d: "M9.414 8l3.293-3.293a1 1 0 10-1.414-1.414L8 6.586 4.707 3.293a1 1 0 00-1.414 1.414L6.586 8l-3.293 3.293a1 1 0 001.414 1.414L8 9.414l3.293 3.293a1 1 0 001.414-1.414L9.414 8z" })], -1)]], 8, _hoisted_8))
71954
+ ], 2))), 128))]),
71955
+ _: 1
71956
+ })]);
71957
+ }
71958
+ var message_default$1 = /* @__PURE__ */ __plugin_vue_export_helper_default(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-b307ec24"]]), messageInstance = null, mountNode = null, createMessage = () => messageInstance || (mountNode = document.createElement("div"), document.body.appendChild(mountNode), messageInstance = createApp(message_default$1).mount(mountNode), messageInstance), getMessageInstance = () => messageInstance || createMessage(), message_default = {
71959
+ success: (t, n) => getMessageInstance().addMessage("success", t, n),
71960
+ error: (t, n) => getMessageInstance().addMessage("error", t, n),
71961
+ warning: (t, n) => getMessageInstance().addMessage("warning", t, n),
71962
+ info: (t, n) => getMessageInstance().addMessage("info", t, n),
71963
+ loading: (t = "加载中...") => getMessageInstance().addMessage("loading", t, 0),
71964
+ clear: () => {
71965
+ messageInstance && messageInstance.clearAll();
71966
+ }
71967
+ }, WxVideoFromFlv = VideoFromFlv_default, WxVideoFromHls = VideoFromHls_default, WxEcharts = echarts_default, WxEmpty = empty_default, WxDescription = description_default, WxDescriptionItem = descriptionItem_default, WxPagination = pagination_default, WxRadio = radio_default, WxTable = table_default, WxMessage = message_default, components = [
71716
71968
  WxVideoFromFlv,
71717
71969
  WxVideoFromHls,
71718
71970
  WxEcharts,
71719
71971
  WxEmpty,
71720
- WxMessage,
71972
+ WxDescription,
71973
+ WxDescriptionItem,
71721
71974
  WxPagination,
71722
71975
  WxRadio,
71723
71976
  WxTable
71724
71977
  ], src_default = { install: (t) => {
71725
71978
  components.forEach((n) => {
71726
71979
  t.component(n.name || n.__name, n);
71727
- });
71980
+ }), t.config.globalProperties.$message = WxMessage;
71728
71981
  } };
71729
- export { WxEcharts, WxEmpty, WxMessage, WxPagination, WxRadio, WxTable, WxVideoFromFlv, WxVideoFromHls, src_default as default };
71982
+ export { WxDescription, WxDescriptionItem, WxEcharts, WxEmpty, WxMessage, WxPagination, WxRadio, WxTable, WxVideoFromFlv, WxVideoFromHls, src_default as default };