wx-screen-ui 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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, 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: "",
@@ -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,
@@ -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,18 +70651,18 @@ 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));
@@ -70705,86 +70705,11 @@ var echarts_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
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 = {
70737
- key: 0,
70738
- viewBox: "0 0 16 16",
70739
- fill: "currentColor"
70740
- }, _hoisted_3$2 = {
70741
- 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}`])
70765
- }, [
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", {
70772
- key: 0,
70773
- class: "message-close",
70774
- onClick: (n) => d.removeMessage(t.id)
70775
- }, [...a[5] ||= [createElementVNode("svg", {
70776
- viewBox: "0 0 16 16",
70777
- 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 = {
70708
+ }, [["__scopeId", "data-v-e0f8c317"]]), _hoisted_1$4 = ["disabled"], _hoisted_2$3 = {
70784
70709
  key: 0,
70785
70710
  class: "pagination-item pagination-ellipsis",
70786
70711
  disabled: ""
70787
- }, _hoisted_3$1 = ["disabled", "onClick"], _hoisted_4$1 = ["disabled"], pagination_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
70712
+ }, _hoisted_3$2 = ["disabled", "onClick"], _hoisted_4$2 = ["disabled"], pagination_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
70788
70713
  __name: "index",
70789
70714
  props: {
70790
70715
  current: {
@@ -70811,9 +70736,9 @@ var message_default = /* @__PURE__ */ __plugin_vue_export_helper_default(_sfc_ma
70811
70736
  },
70812
70737
  emits: ["update:current", "change"],
70813
70738
  setup(n, { emit: a }) {
70814
- let o = n, l = a, u = computed(() => Math.ceil(o.total / o.pageSize)), d = computed({
70739
+ let o = n, s = a, u = computed(() => Math.ceil(o.total / o.pageSize)), d = computed({
70815
70740
  get: () => o.current,
70816
- set: (t) => l("update:current", t)
70741
+ set: (t) => s("update:current", t)
70817
70742
  }), f = computed(() => {
70818
70743
  let t = [], n = o.showSize, r = Math.floor(n / 2);
70819
70744
  if (console.log(u.value), u.value <= n) {
@@ -70825,28 +70750,28 @@ var message_default = /* @__PURE__ */ __plugin_vue_export_helper_default(_sfc_ma
70825
70750
  for (let n = a; n <= s; n++) t.push(n);
70826
70751
  return s < u.value && (s < u.value - 1 && t.push("..."), t.push(u.value)), t;
70827
70752
  }), p = (t) => {
70828
- t < 1 || t > u.value || t === d.value || (d.value = t, l("change", t));
70753
+ t < 1 || t > u.value || t === d.value || (d.value = t, s("change", t));
70829
70754
  };
70830
70755
  return (r, a) => (openBlock(), createElementBlock("div", { class: normalizeClass(["pagination-container", { "pagination-disabled": n.disabled }]) }, [
70831
70756
  createElementVNode("button", {
70832
70757
  class: "pagination-item pagination-prev",
70833
70758
  disabled: d.value === 1 || n.disabled,
70834
70759
  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", {
70760
+ }, " < ", 8, _hoisted_1$4),
70761
+ (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
70762
  key: 1,
70838
70763
  class: normalizeClass(["pagination-item", { active: r === d.value }]),
70839
70764
  disabled: n.disabled,
70840
70765
  onClick: (t) => p(r)
70841
- }, toDisplayString(r), 11, _hoisted_3$1))], 64))), 128)),
70766
+ }, toDisplayString(r), 11, _hoisted_3$2))], 64))), 128)),
70842
70767
  createElementVNode("button", {
70843
70768
  class: "pagination-item pagination-next",
70844
70769
  disabled: d.value === u.value || n.disabled,
70845
70770
  onClick: a[1] ||= (t) => p(d.value + 1)
70846
- }, " > ", 8, _hoisted_4$1)
70771
+ }, " > ", 8, _hoisted_4$2)
70847
70772
  ], 2));
70848
70773
  }
70849
- }, [["__scopeId", "data-v-71f2626c"]]), _hoisted_1$2 = { class: "my-radio-box" }, _hoisted_2$1 = ["onClick"], radio_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
70774
+ }, [["__scopeId", "data-v-71f2626c"]]), _hoisted_1$3 = { class: "my-radio-box" }, _hoisted_2$2 = ["onClick"], radio_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
70850
70775
  __name: "index",
70851
70776
  props: /* @__PURE__ */ mergeModels({ options: {
70852
70777
  type: Object,
@@ -70857,14 +70782,14 @@ var message_default = /* @__PURE__ */ __plugin_vue_export_helper_default(_sfc_ma
70857
70782
  }),
70858
70783
  emits: /* @__PURE__ */ mergeModels(["change"], ["update:modelValue"]),
70859
70784
  setup(n, { emit: r }) {
70860
- let a = useModel(n, "modelValue"), o = n, c = r, l = (t) => {
70861
- a.value = t, c("change", t);
70785
+ let a = useModel(n, "modelValue"), o = n, s = r, l = (t) => {
70786
+ a.value = t, s("change", t);
70862
70787
  };
70863
- return (n, r) => (openBlock(), createElementBlock("div", _hoisted_1$2, [(openBlock(!0), createElementBlock(Fragment, null, renderList(o.options, (t, n) => (openBlock(), createElementBlock("div", {
70788
+ return (n, r) => (openBlock(), createElementBlock("div", _hoisted_1$3, [(openBlock(!0), createElementBlock(Fragment, null, renderList(o.options, (t, n) => (openBlock(), createElementBlock("div", {
70864
70789
  class: normalizeClass(["item", { active: t.value === a.value }]),
70865
70790
  key: n,
70866
70791
  onClick: (n) => l(t.value)
70867
- }, toDisplayString(t.label), 11, _hoisted_2$1))), 128))]));
70792
+ }, toDisplayString(t.label), 11, _hoisted_2$2))), 128))]));
70868
70793
  }
70869
70794
  }, [["__scopeId", "data-v-56421a98"]]);
70870
70795
  function throttle(t, n) {
@@ -70944,7 +70869,7 @@ var script$2 = defineComponent({
70944
70869
  }
70945
70870
  },
70946
70871
  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 = () => {
70872
+ 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, j = null, M = !1, N = 0, P = 0, F = !1, I = () => {
70948
70873
  cancelAnimationFrame(j), j = null;
70949
70874
  }, L = () => {
70950
70875
  let t = D + E;
@@ -70968,13 +70893,13 @@ var script$2 = defineComponent({
70968
70893
  if (I(), !F) return;
70969
70894
  let o = () => {
70970
70895
  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(() => {
70896
+ 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
70897
  M = !1, n || z(!1, t.step);
70973
70898
  }, t.singleWaitTime)) : n || z(!1, t.step);
70974
70899
  };
70975
70900
  (f.value && !M || n) && (j = requestAnimationFrame(() => {
70976
70901
  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();
70902
+ l.value = d.value === "up" ? 0 : K() - O, P = 0, R(), o();
70978
70903
  })) : o();
70979
70904
  }));
70980
70905
  }, B = () => {
@@ -70987,13 +70912,13 @@ var script$2 = defineComponent({
70987
70912
  t.hover && t.wheel && (H(n), n.preventDefault(), n.stopPropagation());
70988
70913
  }, W = computed(() => {
70989
70914
  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) => {
70915
+ 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
70916
  t.push(...h.slice(...n));
70992
70917
  })) : c.value.slice(1).forEach((n) => {
70993
70918
  t.push(...h.slice(...n));
70994
70919
  }), d.value !== "up" && t.reverse(), duplicateId(t);
70995
70920
  }), G = () => {
70996
- if (D = _.value + E, D >= h.length) {
70921
+ if (D = g.value + E, D >= h.length) {
70997
70922
  let t = D - h.length, n = [
70998
70923
  "slice",
70999
70924
  [0, D],
@@ -71003,28 +70928,28 @@ var script$2 = defineComponent({
71003
70928
  } else return ["slice", [0, D]];
71004
70929
  }, K = () => Array.from(o.value.children).map((t) => t.offsetHeight).reduce((t, n) => t + n, 0), q = (n) => {
71005
70930
  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(() => {
70931
+ g.value = Math.ceil(O / s.value.offsetHeight) + 2, p.value = h.slice(0, g.value), nextTick(() => {
71007
70932
  n();
71008
70933
  });
71009
- })) : (p.value = h.slice(0, _.value), nextTick(() => {
70934
+ })) : (p.value = h.slice(0, g.value), nextTick(() => {
71010
70935
  n();
71011
70936
  }));
71012
70937
  };
71013
70938
  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(() => {
70939
+ 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(() => {
70940
+ s.value.offsetHeight > O ? (E = Y(), c.value = G(), nextTick(() => {
70941
+ l.value = d.value === "up" ? 0 : K() - O, R(), F = !0, setTimeout(() => {
71017
70942
  z(!1, t.step);
71018
70943
  }, t.delay);
71019
70944
  })) : J(), p.value = [];
71020
70945
  })), v = h.length;
71021
70946
  });
71022
70947
  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;
70948
+ y = 0, S = 0, F = !1, E = 0, c.value = [], nextTick(() => {
70949
+ l.value = d.value === "up" ? 0 : K() - O, P = 0, N = 0;
71025
70950
  });
71026
70951
  }, Y = () => {
71027
- let t = h.length - _.value;
70952
+ let t = h.length - g.value;
71028
70953
  return t = Math.max(1, t), t = Math.min(5, t), t;
71029
70954
  };
71030
70955
  return n({
@@ -71050,13 +70975,13 @@ var script$2 = defineComponent({
71050
70975
  }), u !== E && (E = u);
71051
70976
  else {
71052
70977
  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 = [];
70978
+ s.value.offsetHeight > O ? (E = u, c.value = G(), nextTick(() => {
70979
+ l.value = d.value === "up" ? 0 : K() - O, P = 0, N = 0, R(), F = !0, z(!1, t.step);
70980
+ })) : (t.visibleCount === void 0 && (g.value = 0), J()), p.value = [];
71056
70981
  };
71057
- _.value === 0 && t.visibleCount === void 0 ? q(() => {
70982
+ g.value === 0 && t.visibleCount === void 0 ? q(() => {
71058
70983
  n();
71059
- }) : (p.value = h.slice(0, _.value), nextTick(() => {
70984
+ }) : (p.value = h.slice(0, g.value), nextTick(() => {
71060
70985
  n();
71061
70986
  }));
71062
70987
  }
@@ -71064,8 +70989,8 @@ var script$2 = defineComponent({
71064
70989
  a && typeof a == "function" && a(h), v = h.length;
71065
70990
  },
71066
70991
  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) {
70992
+ t >= 0 && t < h.length && (h.splice(t, n), F ? (p.value = h.slice(0, g.value), nextTick(() => {
70993
+ if (s.value.offsetHeight > O) {
71069
70994
  let t = Y();
71070
70995
  t !== E && (E = t), c.value = G();
71071
70996
  } else J();
@@ -71091,8 +71016,8 @@ var script$2 = defineComponent({
71091
71016
  },
71092
71017
  reset: () => {
71093
71018
  nextTick(() => {
71094
- p.value = h.slice(0, _.value), nextTick(() => {
71095
- s.value.offsetHeight > A ? c.value[0] === "splice" ? (L(), nextTick(() => {
71019
+ p.value = h.slice(0, g.value), nextTick(() => {
71020
+ s.value.offsetHeight > O ? c.value[0] === "splice" ? (L(), nextTick(() => {
71096
71021
  R();
71097
71022
  })) : (c.value = G(), nextTick(() => {
71098
71023
  R();
@@ -71112,14 +71037,14 @@ var script$2 = defineComponent({
71112
71037
  realWrapperHiddenRef: s
71113
71038
  };
71114
71039
  }
71115
- }), _hoisted_1$1 = {
71040
+ }), _hoisted_1$2 = {
71116
71041
  style: {
71117
71042
  position: "absolute !important",
71118
71043
  top: "-999999px !important"
71119
71044
  },
71120
71045
  ref: "realWrapperHiddenRef"
71121
71046
  };
71122
- function render$2(n, r, a, o, l, u) {
71047
+ function render$2(n, r, a, o, s, u) {
71123
71048
  return openBlock(), createElementBlock(Fragment, null, [createElementVNode("div", {
71124
71049
  class: "vue3-seamless-vertical-wrapper",
71125
71050
  ref: "realWrapperRef",
@@ -71131,7 +71056,7 @@ function render$2(n, r, a, o, l, u) {
71131
71056
  key: t.id,
71132
71057
  data: t.data,
71133
71058
  index: t.index
71134
- })), 128))], 4), createElementVNode("div", _hoisted_1$1, [(openBlock(!0), createElementBlock(Fragment, null, renderList(n.testList, (t) => renderSlot(n.$slots, "default", {
71059
+ })), 128))], 4), createElementVNode("div", _hoisted_1$2, [(openBlock(!0), createElementBlock(Fragment, null, renderList(n.testList, (t) => renderSlot(n.$slots, "default", {
71135
71060
  key: t.id,
71136
71061
  data: t.data,
71137
71062
  index: t.index
@@ -71194,18 +71119,18 @@ var script$1 = defineComponent({
71194
71119
  }
71195
71120
  },
71196
71121
  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 = () => {
71122
+ 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, j = null, M = !1, N = 0, P = 0, F = !1, I = () => {
71198
71123
  cancelAnimationFrame(j), j = null;
71199
71124
  }, L = () => {
71200
71125
  let t = D + E;
71201
- if (t >= _.length) {
71202
- let n = t - _.length;
71126
+ if (t >= g.length) {
71127
+ let n = t - g.length;
71203
71128
  c.value = [
71204
71129
  "splice",
71205
71130
  [0, E],
71206
71131
  [D],
71207
71132
  [0, n]
71208
- ], D = n > _.length ? _.length : n;
71133
+ ], D = n > g.length ? g.length : n;
71209
71134
  } else c.value = [
71210
71135
  "splice",
71211
71136
  [0, E],
@@ -71218,13 +71143,13 @@ var script$1 = defineComponent({
71218
71143
  if (I(), !F) return;
71219
71144
  let o = () => {
71220
71145
  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(() => {
71146
+ 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
71147
  M = !1, r || z(!1, t.step);
71223
71148
  }, t.singleWaitTime)) : r || z(!1, t.step);
71224
71149
  };
71225
71150
  (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();
71151
+ P += a, N += a, t ? l.value += a : l.value -= a, P > T ? (n("offset", E, g), L(), nextTick(() => {
71152
+ l.value = d.value === "left" ? 0 : K() - O, P = 0, R(), o();
71228
71153
  })) : o();
71229
71154
  }));
71230
71155
  }, B = () => {
@@ -71237,50 +71162,50 @@ var script$1 = defineComponent({
71237
71162
  t.hover && t.wheel && (H(n), n.preventDefault(), n.stopPropagation());
71238
71163
  }, W = computed(() => {
71239
71164
  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));
71165
+ 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) => {
71166
+ t.push(...g.slice(...n));
71242
71167
  })) : c.value.slice(1).forEach((n) => {
71243
- t.push(..._.slice(...n));
71168
+ t.push(...g.slice(...n));
71244
71169
  }), d.value !== "left" && t.reverse(), duplicateId(t);
71245
71170
  }), G = () => {
71246
- if (D = h.value + E, D >= _.length) {
71247
- let t = D - _.length, n = [
71171
+ if (D = h.value + E, D >= g.length) {
71172
+ let t = D - g.length, n = [
71248
71173
  "slice",
71249
71174
  [0, D],
71250
71175
  [0, t]
71251
71176
  ];
71252
- return D = t > _.length ? _.length : t, n;
71177
+ return D = t > g.length ? g.length : t, n;
71253
71178
  } else return ["slice", [0, D]];
71254
71179
  }, K = () => Array.from(o.value.children).map((t) => t.offsetWidth).reduce((t, n) => t + n, 0), q = (n) => {
71255
71180
  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(() => {
71181
+ h.value = Math.ceil(O / s.value.offsetWidth) + 2, p.value = g.slice(0, h.value), nextTick(() => {
71257
71182
  n();
71258
71183
  });
71259
- })) : (p.value = _.slice(0, h.value), nextTick(() => {
71184
+ })) : (p.value = g.slice(0, h.value), nextTick(() => {
71260
71185
  n();
71261
71186
  }));
71262
71187
  };
71263
71188
  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(() => {
71189
+ 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(() => {
71190
+ s.value.offsetWidth > O ? (E = Y(), c.value = G(), nextTick(() => {
71191
+ l.value = d.value === "left" ? 0 : K() - O, R(), F = !0, setTimeout(() => {
71267
71192
  z(!1, t.step);
71268
71193
  }, t.delay);
71269
71194
  })) : J(), p.value = [];
71270
- })), v = _.length;
71195
+ })), v = g.length;
71271
71196
  });
71272
71197
  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;
71198
+ y = 0, S = 0, F = !1, E = 0, c.value = [], nextTick(() => {
71199
+ l.value = d.value === "left" ? 0 : K() - O, P = 0, N = 0;
71275
71200
  });
71276
71201
  }, Y = () => {
71277
- let t = _.length - h.value;
71202
+ let t = g.length - h.value;
71278
71203
  return t = Math.max(1, t), t = Math.min(5, t), t;
71279
71204
  };
71280
71205
  return a({
71281
71206
  add: (n, r, a) => {
71282
71207
  if (r && r.length > 0) {
71283
- n > _.length && (n = _.length), n < 0 && (n = 0);
71208
+ n > g.length && (n = g.length), n < 0 && (n = 0);
71284
71209
  let a = [];
71285
71210
  r.length === 1 && W.value.forEach((t, r) => {
71286
71211
  t.index === n && a.push(r);
@@ -71291,39 +71216,39 @@ var script$1 = defineComponent({
71291
71216
  id: uuid(),
71292
71217
  data: t
71293
71218
  });
71294
- }), _.splice(n, 0, ...o), _.forEach((t, n) => {
71219
+ }), g.splice(n, 0, ...o), g.forEach((t, n) => {
71295
71220
  t.index = n;
71296
71221
  });
71297
71222
  let u = Y();
71298
- if (F) n < D && (D += 1, D > _.length && (D = 0)), r.length === 1 && a.forEach((t) => {
71223
+ if (F) n < D && (D += 1, D > g.length && (D = 0)), r.length === 1 && a.forEach((t) => {
71299
71224
  W.value[t] = o[0];
71300
71225
  }), u !== E && (E = u);
71301
71226
  else {
71302
71227
  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);
71228
+ s.value.offsetWidth > O ? (E = u, c.value = G(), nextTick(() => {
71229
+ l.value = d.value === "left" ? 0 : K() - O, P = 0, N = 0, R(), F = !0, z(!1, t.step);
71305
71230
  })) : (t.visibleCount === void 0 && (h.value = 0), J()), p.value = [];
71306
71231
  };
71307
71232
  h.value === 0 && t.visibleCount === void 0 ? q(() => {
71308
71233
  n();
71309
- }) : (p.value = _.slice(0, h.value), nextTick(() => {
71234
+ }) : (p.value = g.slice(0, h.value), nextTick(() => {
71310
71235
  n();
71311
71236
  }));
71312
71237
  }
71313
71238
  }
71314
- a && typeof a == "function" && a(_), v = _.length;
71239
+ a && typeof a == "function" && a(g), v = g.length;
71315
71240
  },
71316
71241
  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) {
71242
+ t >= 0 && t < g.length && (g.splice(t, n), F ? (p.value = g.slice(0, h.value), nextTick(() => {
71243
+ if (s.value.offsetWidth > O) {
71319
71244
  let t = Y();
71320
71245
  t !== E && (E = t), c.value = G();
71321
71246
  } else J();
71322
71247
  p.value = [];
71323
- })) : J()), r && typeof r == "function" && r(_), v = _.length;
71248
+ })) : J()), r && typeof r == "function" && r(g), v = g.length;
71324
71249
  },
71325
71250
  update: (t, n, r) => {
71326
- if (t >= 0 && t < _.length) {
71251
+ if (t >= 0 && t < g.length) {
71327
71252
  let r = [];
71328
71253
  W.value.forEach((n, a) => {
71329
71254
  n.index === t && r.push(a);
@@ -71333,16 +71258,16 @@ var script$1 = defineComponent({
71333
71258
  index: t,
71334
71259
  data: n
71335
71260
  };
71336
- _[t] = a, r.length > 0 && r.forEach((t) => {
71261
+ g[t] = a, r.length > 0 && r.forEach((t) => {
71337
71262
  W[t] = a;
71338
71263
  });
71339
71264
  }
71340
- r && typeof r == "function" && r(_);
71265
+ r && typeof r == "function" && r(g);
71341
71266
  },
71342
71267
  reset: () => {
71343
71268
  nextTick(() => {
71344
- p.value = _.slice(0, h.value), nextTick(() => {
71345
- s.value.offsetWidth > A ? c.value[0] === "splice" ? (L(), nextTick(() => {
71269
+ p.value = g.slice(0, h.value), nextTick(() => {
71270
+ s.value.offsetWidth > O ? c.value[0] === "splice" ? (L(), nextTick(() => {
71346
71271
  R();
71347
71272
  })) : (c.value = G(), nextTick(() => {
71348
71273
  R();
@@ -71363,7 +71288,7 @@ var script$1 = defineComponent({
71363
71288
  };
71364
71289
  }
71365
71290
  });
71366
- function render$1(n, r, a, o, l, u) {
71291
+ function render$1(n, r, a, o, s, u) {
71367
71292
  return openBlock(), createElementBlock(Fragment, null, [createElementVNode("div", mergeProps({
71368
71293
  class: "vue3-seamless-horizontal-wrapper",
71369
71294
  ref: "realWrapperRef",
@@ -71437,23 +71362,23 @@ var script = defineComponent({
71437
71362
  }
71438
71363
  },
71439
71364
  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 = () => {
71365
+ 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, 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 = () => {
71441
71366
  cancelAnimationFrame(M), M = null;
71442
71367
  }, z = () => {
71443
- let t = A + D;
71368
+ let t = O + D;
71444
71369
  if (t >= v.length) {
71445
71370
  let n = t - v.length;
71446
71371
  l.value = [
71447
71372
  "splice",
71448
71373
  [0, D],
71449
- [A],
71374
+ [O],
71450
71375
  [0, n]
71451
- ], A = n > v.length ? v.length : n;
71376
+ ], O = n > v.length ? v.length : n;
71452
71377
  } else l.value = [
71453
71378
  "splice",
71454
71379
  [0, D],
71455
- [A, t]
71456
- ], A = t;
71380
+ [O, t]
71381
+ ], O = t;
71457
71382
  }, B = () => {
71458
71383
  let t = Array.from(s.value.children);
71459
71384
  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);
@@ -71463,7 +71388,7 @@ var script = defineComponent({
71463
71388
  if (R(), !I) return;
71464
71389
  let o = () => {
71465
71390
  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(() => {
71391
+ 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
71392
  N = !1, n || H(!1, t.step);
71468
71393
  }, t.singleWaitTime)) : n || H(!1, t.step);
71469
71394
  };
@@ -71482,26 +71407,26 @@ var script = defineComponent({
71482
71407
  t.hover && t.wheel && (G(n), n.preventDefault(), n.stopPropagation());
71483
71408
  }, q = computed(() => {
71484
71409
  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) => {
71410
+ 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
71411
  t.push(...v.slice(...n));
71487
71412
  })) : l.value.slice(1).forEach((n) => {
71488
71413
  t.push(...v.slice(...n));
71489
71414
  }), f.value === "up" || f.value === "left" || t.reverse(), duplicateId(t);
71490
71415
  }), J = () => {
71491
- if (A = _.value + D, A >= v.length) {
71492
- let t = A - v.length, n = [
71416
+ if (O = g.value + D, O >= v.length) {
71417
+ let t = O - v.length, n = [
71493
71418
  "slice",
71494
- [0, A],
71419
+ [0, O],
71495
71420
  [0, t]
71496
71421
  ];
71497
- return A = t > v.length ? v.length : t, n;
71498
- } else return ["slice", [0, A]];
71422
+ return O = t > v.length ? v.length : t, n;
71423
+ } else return ["slice", [0, O]];
71499
71424
  }, 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
71425
  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(() => {
71426
+ f.value === "left" || f.value === "right" ? g.value = Math.ceil(j / c.value.offsetWidth) + 2 : g.value = Math.ceil(j / c.value.offsetHeight) + 2, h.value = v.slice(0, g.value), nextTick(() => {
71502
71427
  n();
71503
71428
  });
71504
- })) : (h.value = v.slice(0, _.value), nextTick(() => {
71429
+ })) : (h.value = v.slice(0, g.value), nextTick(() => {
71505
71430
  n();
71506
71431
  }));
71507
71432
  };
@@ -71513,14 +71438,14 @@ var script = defineComponent({
71513
71438
  H(!1, t.step);
71514
71439
  }, t.delay);
71515
71440
  })) : Z(), h.value = [];
71516
- })), x = v.length;
71441
+ })), y = v.length;
71517
71442
  });
71518
71443
  let Z = () => {
71519
- C = 0, w = 0, I = !1, D = 0, l.value = [], nextTick(() => {
71444
+ S = 0, w = 0, I = !1, D = 0, l.value = [], nextTick(() => {
71520
71445
  V(), F = 0, P = 0;
71521
71446
  });
71522
71447
  }, m9 = () => {
71523
- let t = v.length - _.value;
71448
+ let t = v.length - g.value;
71524
71449
  return t = Math.max(1, t), t = Math.min(5, t), t;
71525
71450
  };
71526
71451
  return n({
@@ -71541,7 +71466,7 @@ var script = defineComponent({
71541
71466
  t.index = n;
71542
71467
  });
71543
71468
  let s = m9();
71544
- if (I) n < A && (A += 1, A > v.length && (A = 0)), r.length === 1 && a.length > 0 && a.forEach((t) => {
71469
+ if (I) n < O && (O += 1, O > v.length && (O = 0)), r.length === 1 && a.length > 0 && a.forEach((t) => {
71545
71470
  q[t] = o[0];
71546
71471
  }), s !== D && (D = s);
71547
71472
  else {
@@ -71549,26 +71474,26 @@ var script = defineComponent({
71549
71474
  let n = c.value.offsetHeight > j;
71550
71475
  (f.value === "left" || f.value === "right") && (n = c.value.offsetWidth > j), n ? (D = s, l.value = J(), nextTick(() => {
71551
71476
  V(), F = 0, P = 0, B(), I = !0, H(!1, t.step);
71552
- })) : (t.visibleCount === void 0 && (_.value = 0), Z()), h.value = [];
71477
+ })) : (t.visibleCount === void 0 && (g.value = 0), Z()), h.value = [];
71553
71478
  };
71554
- _.value === 0 && t.visibleCount === void 0 ? X(() => {
71479
+ g.value === 0 && t.visibleCount === void 0 ? X(() => {
71555
71480
  n();
71556
- }) : (h.value = v.slice(0, _.value), nextTick(() => {
71481
+ }) : (h.value = v.slice(0, g.value), nextTick(() => {
71557
71482
  n();
71558
71483
  }));
71559
71484
  }
71560
71485
  }
71561
- a && typeof a == "function" && a(v), x = v.length;
71486
+ a && typeof a == "function" && a(v), y = v.length;
71562
71487
  },
71563
71488
  remove: (t, n = 1, r) => {
71564
- t >= 0 && t < v.length && (v.splice(t, n), I ? (h.value = v.slice(0, _.value), nextTick(() => {
71489
+ t >= 0 && t < v.length && (v.splice(t, n), I ? (h.value = v.slice(0, g.value), nextTick(() => {
71565
71490
  let t = c.value.offsetHeight > j;
71566
71491
  if ((f.value === "left" || f.value === "right") && (t = c.value.offsetWidth > j), t) {
71567
71492
  let t = m9();
71568
71493
  t !== D && (D = t), l.value = J();
71569
71494
  } else Z();
71570
71495
  h.value = [];
71571
- })) : Z()), r && typeof r == "function" && r(v), x = v.length;
71496
+ })) : Z()), r && typeof r == "function" && r(v), y = v.length;
71572
71497
  },
71573
71498
  update: (t, n, r) => {
71574
71499
  if (t >= 0 && t < v.length) {
@@ -71589,7 +71514,7 @@ var script = defineComponent({
71589
71514
  },
71590
71515
  reset: () => {
71591
71516
  nextTick(() => {
71592
- h.value = v.slice(0, _.value), nextTick(() => {
71517
+ h.value = v.slice(0, g.value), nextTick(() => {
71593
71518
  let t = c.value.offsetHeight > j;
71594
71519
  (f.value === "left" || f.value === "right") && (t = c.value.offsetWidth > j), t ? l.value[0] === "splice" ? (z(), nextTick(() => {
71595
71520
  B();
@@ -71614,7 +71539,7 @@ var script = defineComponent({
71614
71539
  };
71615
71540
  }
71616
71541
  });
71617
- function render(n, r, a, o, l, u) {
71542
+ function render(n, r, a, o, s, u) {
71618
71543
  return openBlock(), createElementBlock(Fragment, null, [createElementVNode("div", mergeProps({
71619
71544
  class: "vue3-seamless-wrapper",
71620
71545
  ref: "realWrapperRef",
@@ -71639,7 +71564,7 @@ function render(n, r, a, o, l, u) {
71639
71564
  })), 128))], 16)], 64);
71640
71565
  }
71641
71566
  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 = {
71567
+ 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
71568
  key: 1,
71644
71569
  class: "no-data"
71645
71570
  }, table_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
@@ -71660,10 +71585,10 @@ var _hoisted_1 = { class: "my-table-box" }, _hoisted_2 = { class: "head-box" },
71660
71585
  },
71661
71586
  emits: ["row-click"],
71662
71587
  setup(n, { emit: r }) {
71663
- let o = n, u = r, d = (t, n) => {
71664
- u("row-click", t, n);
71588
+ let a = n, s = r, d = (t, n) => {
71589
+ s("row-click", t, n);
71665
71590
  };
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", {
71591
+ 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
71592
  class: "head-item",
71668
71593
  key: "head_" + n,
71669
71594
  style: normalizeStyle({
@@ -71675,21 +71600,21 @@ var _hoisted_1 = { class: "my-table-box" }, _hoisted_2 = { class: "head-box" },
71675
71600
  overflow: t.ellipsis ? "hidden" : "visible",
71676
71601
  textOverflow: t.ellipsis ? "ellipsis" : "clip"
71677
71602
  })
71678
- }, toDisplayString(t.label), 5))), 128))]), createElementVNode("div", _hoisted_3, [n.tableData.length ? (openBlock(), createBlock(unref(script), {
71603
+ }, toDisplayString(t.label), 5))), 128))]), createElementVNode("div", _hoisted_3$1, [n.tableData.length ? (openBlock(), createBlock(unref(script), {
71679
71604
  key: 0,
71680
71605
  list: n.tableData,
71681
71606
  hover: "",
71682
71607
  step: n.tableData.length > 4 ? n.step : 0
71683
71608
  }, {
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,
71609
+ default: withCtx(({ data: n, index: o }) => [createElementVNode("div", {
71610
+ class: normalizeClass(["data-row", `data-row_${o}`]),
71611
+ onClick: (t) => d(n, o)
71612
+ }, [(openBlock(!0), createElementBlock(Fragment, null, renderList(a.columns, (t, a) => (openBlock(), createElementBlock("div", {
71613
+ key: "data_row_" + a,
71689
71614
  class: normalizeClass([
71690
71615
  "head-item",
71691
71616
  "data-item",
71692
- `data_column_${o}`
71617
+ `data_column_${a}`
71693
71618
  ]),
71694
71619
  title: n[t.prop],
71695
71620
  style: normalizeStyle({
@@ -71703,27 +71628,110 @@ var _hoisted_1 = { class: "my-table-box" }, _hoisted_2 = { class: "head-box" },
71703
71628
  })
71704
71629
  }, [renderSlot(r.$slots, `column-${t.prop}`, {
71705
71630
  row: n,
71706
- index: a
71707
- }, () => [createTextVNode(toDisplayString(n[t.prop]), 1)], !0)], 14, _hoisted_5))), 128))], 10, _hoisted_4)]),
71631
+ index: o
71632
+ }, () => [createTextVNode(toDisplayString(n[t.prop]), 1)], !0)], 14, _hoisted_5$1))), 128))], 10, _hoisted_4$1)]),
71708
71633
  _: 3
71709
- }, 8, ["list", "step"])) : (openBlock(), createElementBlock("div", _hoisted_6, [...u[0] ||= [createElementVNode("img", {
71634
+ }, 8, ["list", "step"])) : (openBlock(), createElementBlock("div", _hoisted_6$1, [...s[0] ||= [createElementVNode("img", {
71710
71635
  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
71636
  alt: "",
71712
71637
  class: "no-data-img"
71713
71638
  }, null, -1)]]))])]));
71714
71639
  }
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 = [
71640
+ }, [["__scopeId", "data-v-c2bdd967"]]), messageId = 0, _sfc_main = {
71641
+ name: "MyMessage",
71642
+ setup() {
71643
+ let t = ref([]), n = (n, a, o = 3e3) => {
71644
+ let s = messageId++, c = {
71645
+ id: s,
71646
+ type: n,
71647
+ content: a,
71648
+ duration: o
71649
+ };
71650
+ return t.value.push(c), n !== "loading" && o > 0 && setTimeout(() => {
71651
+ r(s);
71652
+ }, o), () => {
71653
+ r(s);
71654
+ };
71655
+ }, r = (n) => {
71656
+ let r = t.value.findIndex((t) => t.id === n);
71657
+ r !== -1 && t.value.splice(r, 1);
71658
+ };
71659
+ return {
71660
+ messages: t,
71661
+ addMessage: n,
71662
+ removeMessage: r,
71663
+ clearAll: () => {
71664
+ t.value = [];
71665
+ }
71666
+ };
71667
+ }
71668
+ }, _hoisted_1 = { class: "message-container" }, _hoisted_2 = {
71669
+ key: 0,
71670
+ viewBox: "0 0 16 16",
71671
+ fill: "currentColor"
71672
+ }, _hoisted_3 = {
71673
+ key: 1,
71674
+ viewBox: "0 0 16 16",
71675
+ fill: "currentColor"
71676
+ }, _hoisted_4 = {
71677
+ key: 2,
71678
+ viewBox: "0 0 16 16",
71679
+ fill: "currentColor"
71680
+ }, _hoisted_5 = {
71681
+ key: 3,
71682
+ viewBox: "0 0 16 16",
71683
+ fill: "currentColor"
71684
+ }, _hoisted_6 = {
71685
+ key: 4,
71686
+ viewBox: "0 0 16 16",
71687
+ fill: "currentColor"
71688
+ }, _hoisted_7 = { class: "message-content" }, _hoisted_8 = ["onClick"];
71689
+ function _sfc_render(r, a, o, u, f, p) {
71690
+ return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(TransitionGroup, {
71691
+ name: "message-fade",
71692
+ tag: "div"
71693
+ }, {
71694
+ default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(u.messages, (t) => (openBlock(), createElementBlock("div", {
71695
+ key: t.id,
71696
+ class: normalizeClass(["message-item", `message-${t.type}`])
71697
+ }, [
71698
+ 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", {
71699
+ d: "M8 1a7 7 0 100 14A7 7 0 008 1zm0 13a6 6 0 110-12 6 6 0 010 12z",
71700
+ opacity: "0.3"
71701
+ }, 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),
71702
+ createElementVNode("div", _hoisted_7, toDisplayString(t.content), 1),
71703
+ t.type === "loading" ? createCommentVNode("", !0) : (openBlock(), createElementBlock("span", {
71704
+ key: 0,
71705
+ class: "message-close",
71706
+ onClick: (n) => u.removeMessage(t.id)
71707
+ }, [...a[5] ||= [createElementVNode("svg", {
71708
+ viewBox: "0 0 16 16",
71709
+ fill: "currentColor"
71710
+ }, [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))
71711
+ ], 2))), 128))]),
71712
+ _: 1
71713
+ })]);
71714
+ }
71715
+ 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 = {
71716
+ success: (t, n) => getMessageInstance().addMessage("success", t, n),
71717
+ error: (t, n) => getMessageInstance().addMessage("error", t, n),
71718
+ warning: (t, n) => getMessageInstance().addMessage("warning", t, n),
71719
+ info: (t, n) => getMessageInstance().addMessage("info", t, n),
71720
+ loading: (t = "加载中...") => getMessageInstance().addMessage("loading", t, 0),
71721
+ clear: () => {
71722
+ messageInstance && messageInstance.clearAll();
71723
+ }
71724
+ }, WxVideoFromFlv = VideoFromFlv_default, WxVideoFromHls = VideoFromHls_default, WxEcharts = echarts_default, WxEmpty = empty_default, WxPagination = pagination_default, WxRadio = radio_default, WxTable = table_default, WxMessage = message_default, components = [
71716
71725
  WxVideoFromFlv,
71717
71726
  WxVideoFromHls,
71718
71727
  WxEcharts,
71719
71728
  WxEmpty,
71720
- WxMessage,
71721
71729
  WxPagination,
71722
71730
  WxRadio,
71723
71731
  WxTable
71724
71732
  ], src_default = { install: (t) => {
71725
71733
  components.forEach((n) => {
71726
71734
  t.component(n.name || n.__name, n);
71727
- });
71735
+ }), t.config.globalProperties.$message = WxMessage;
71728
71736
  } };
71729
71737
  export { WxEcharts, WxEmpty, WxMessage, WxPagination, WxRadio, WxTable, WxVideoFromFlv, WxVideoFromHls, src_default as default };