yc-design-vue 1.1.3 → 1.1.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.
Files changed (77) hide show
  1. package/es/Alert/index.vue2.js +2 -2
  2. package/es/Calendar/Calendar.vue2.js +2 -2
  3. package/es/Carousel/Carousel.vue.js +1 -1
  4. package/es/Carousel/Carousel.vue2.js +15 -14
  5. package/es/Carousel/hooks/useContext.js +4 -3
  6. package/es/Cascader/CascaderIcon.vue2.js +2 -2
  7. package/es/Checkbox/Checkbox.vue2.js +2 -2
  8. package/es/Collapse/CollapseItem.vue2.js +2 -2
  9. package/es/Drawer/Drawer.vue2.js +2 -2
  10. package/es/Image/ImagePreview.vue.js +1 -1
  11. package/es/Image/ImagePreview.vue2.js +8 -5
  12. package/es/Input/Input.vue2.js +2 -2
  13. package/es/Input/InputSuffix.vue2.js +2 -2
  14. package/es/InputTag/index.vue2.js +2 -2
  15. package/es/Menu/SubMenu.vue2.js +2 -2
  16. package/es/Message/Message.vue2.js +2 -2
  17. package/es/Modal/Modal.vue2.js +2 -2
  18. package/es/Notification/Notification.vue2.js +2 -2
  19. package/es/PageHeader/index.vue2.js +2 -2
  20. package/es/Radio/Radio.vue2.js +2 -2
  21. package/es/Select/SelectIcon.vue2.js +2 -2
  22. package/es/Tabs/TabButton.vue2.js +2 -2
  23. package/es/Tag/index.vue2.js +2 -2
  24. package/es/Textarea/index.vue2.js +2 -2
  25. package/es/TimePicker/TimePicker.vue2.js +2 -2
  26. package/es/Transfer/TransferPanel.vue2.js +4 -4
  27. package/es/Trigger/index.vue2.js +2 -2
  28. package/es/_shared/components/{ExpandTransition.vue.js → ExpandTransition.vue2.js} +1 -1
  29. package/es/_shared/components/{IconButton.vue2.js → IconButton.vue.js} +1 -1
  30. package/es/_shared/icons/IconDelete.vue.js +1 -16
  31. package/es/_shared/icons/IconDelete.vue2.js +16 -1
  32. package/es/_shared/icons/IconSearch.vue.js +1 -16
  33. package/es/_shared/icons/IconSearch.vue2.js +16 -1
  34. package/es/_shared/utils/dom.js +6 -6
  35. package/es/node_modules/@vueuse/core/index.js +3 -1
  36. package/es/node_modules/@vueuse/shared/index.js +76 -1
  37. package/es/style.css +1 -1
  38. package/lib/Alert/index.vue2.js +1 -1
  39. package/lib/Calendar/Calendar.vue2.js +1 -1
  40. package/lib/Carousel/Carousel.vue.js +1 -1
  41. package/lib/Carousel/Carousel.vue2.js +1 -1
  42. package/lib/Carousel/hooks/useContext.js +1 -1
  43. package/lib/Cascader/CascaderIcon.vue2.js +1 -1
  44. package/lib/Checkbox/Checkbox.vue2.js +1 -1
  45. package/lib/Collapse/CollapseItem.vue2.js +1 -1
  46. package/lib/Drawer/Drawer.vue2.js +1 -1
  47. package/lib/Image/ImagePreview.vue.js +1 -1
  48. package/lib/Image/ImagePreview.vue2.js +1 -1
  49. package/lib/Input/Input.vue2.js +1 -1
  50. package/lib/Input/InputSuffix.vue2.js +1 -1
  51. package/lib/InputTag/index.vue2.js +1 -1
  52. package/lib/Menu/SubMenu.vue2.js +1 -1
  53. package/lib/Message/Message.vue2.js +1 -1
  54. package/lib/Modal/Modal.vue2.js +1 -1
  55. package/lib/Notification/Notification.vue2.js +1 -1
  56. package/lib/PageHeader/index.vue2.js +1 -1
  57. package/lib/Radio/Radio.vue2.js +1 -1
  58. package/lib/Select/SelectIcon.vue2.js +1 -1
  59. package/lib/Tabs/TabButton.vue2.js +1 -1
  60. package/lib/Tag/index.vue2.js +1 -1
  61. package/lib/Textarea/index.vue2.js +1 -1
  62. package/lib/TimePicker/TimePicker.vue2.js +1 -1
  63. package/lib/Transfer/TransferPanel.vue2.js +1 -1
  64. package/lib/Trigger/index.vue2.js +1 -1
  65. package/lib/_shared/components/ExpandTransition.vue2.js +1 -0
  66. package/lib/_shared/components/IconButton.vue.js +1 -0
  67. package/lib/_shared/icons/IconDelete.vue.js +1 -1
  68. package/lib/_shared/icons/IconDelete.vue2.js +1 -1
  69. package/lib/_shared/icons/IconSearch.vue.js +1 -1
  70. package/lib/_shared/icons/IconSearch.vue2.js +1 -1
  71. package/lib/_shared/utils/dom.js +1 -1
  72. package/lib/node_modules/@vueuse/core/index.js +1 -1
  73. package/lib/node_modules/@vueuse/shared/index.js +1 -1
  74. package/lib/style.css +1 -1
  75. package/package.json +1 -1
  76. package/lib/_shared/components/ExpandTransition.vue.js +0 -1
  77. package/lib/_shared/components/IconButton.vue2.js +0 -1
@@ -1,12 +1,12 @@
1
1
  import { defineComponent, ref, createBlock, openBlock, Transition, withCtx, createElementBlock, createCommentVNode, normalizeClass, createElementVNode, renderSlot, resolveDynamicComponent, unref, createTextVNode, toDisplayString, createVNode } from "vue";
2
2
  import { TYPE_ICON_MAP } from "../_shared/constants/index.js";
3
- import IconButton from "../_shared/components/IconButton.vue2.js";
3
+ import IconButton from "../_shared/components/IconButton.vue.js";
4
4
  import "../node_modules/tinycolor2/esm/tinycolor.js";
5
5
  import "../_shared/utils/dom.js";
6
6
  import "../_shared/utils/time.js";
7
7
  import "../Empty/index.js";
8
8
  /* empty css */
9
- /* empty css */
9
+ /* empty css */
10
10
  const _hoisted_1 = {
11
11
  key: 0,
12
12
  class: "yc-alert-icon"
@@ -7,8 +7,8 @@ import "../Empty/index.js";
7
7
  /* empty css */
8
8
  import _sfc_main$1 from "../_shared/icons/IconArrowRight.vue.js";
9
9
  import useControlValue from "../_shared/utils/control.js";
10
- import IconButton from "../_shared/components/IconButton.vue2.js";
11
- /* empty css */
10
+ import IconButton from "../_shared/components/IconButton.vue.js";
11
+ /* empty css */
12
12
  import Button from "../Button/index.js";
13
13
  import "../Radio/index.js";
14
14
  import MonthCalendar from "./CalendarMonth.vue.js";
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./Carousel.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
4
- const _Carousel = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f976facc"]]);
4
+ const _Carousel = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5285806c"]]);
5
5
  export {
6
6
  _Carousel as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent, watch, onBeforeUnmount, createElementBlock, openBlock, normalizeClass, createElementVNode, createCommentVNode, unref, Fragment, renderList, createBlock, resolveDynamicComponent, createVNode } from "vue";
1
+ import { defineComponent, ref, watch, onBeforeUnmount, createElementBlock, openBlock, normalizeClass, createElementVNode, createCommentVNode, unref, Fragment, renderList, createBlock, resolveDynamicComponent, createVNode } from "vue";
2
2
  import "../node_modules/tinycolor2/esm/tinycolor.js";
3
3
  import "../_shared/utils/dom.js";
4
4
  import { isObject } from "../_shared/utils/is.js";
@@ -8,6 +8,7 @@ import "../Empty/index.js";
8
8
  import useContext from "./hooks/useContext.js";
9
9
  import CarouselArrow from "./CarouselArrow.vue.js";
10
10
  import CarouselIndicator from "./CarouselIndicator.vue.js";
11
+ import { useInterval } from "../node_modules/@vueuse/shared/index.js";
11
12
  const _hoisted_1 = {
12
13
  key: 0,
13
14
  class: "yc-carousel-indicator-wrapper"
@@ -41,21 +42,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
41
42
  const props = __props;
42
43
  const emits = __emit;
43
44
  const { slideTo, computedCurrent, autoPlay, carouselItems } = useContext().provide(props, emits);
44
- let autoPlayTimer = null;
45
+ let autoPlayTimer = ref(0);
46
+ const stopAutoPlay = () => {
47
+ clearInterval(autoPlayTimer.value);
48
+ };
45
49
  const setAutoPlay = () => {
46
50
  var _a;
47
51
  if (!autoPlay.value) return;
48
- autoPlayTimer = setInterval(
49
- () => {
50
- slideTo(computedCurrent.value + 1);
51
- },
52
- ((_a = autoPlay.value) == null ? void 0 : _a.interval) ?? 3e3
52
+ autoPlayTimer = useInterval(
53
+ ((_a = autoPlay.value) == null ? void 0 : _a.interval) ?? 3e3,
54
+ {
55
+ callback: () => {
56
+ console.log("定时器触发了");
57
+ slideTo(computedCurrent.value + 1);
58
+ }
59
+ }
53
60
  );
54
61
  };
55
- const stopAutoPlay = () => {
56
- clearInterval(autoPlayTimer);
57
- autoPlayTimer = null;
58
- };
59
62
  const handleChange = async (index) => {
60
63
  stopAutoPlay();
61
64
  await slideTo(index);
@@ -64,9 +67,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
64
67
  watch(
65
68
  () => autoPlay.value,
66
69
  () => {
67
- if (!autoPlay.value) {
68
- return stopAutoPlay();
69
- }
70
+ stopAutoPlay();
70
71
  setAutoPlay();
71
72
  },
72
73
  {
@@ -41,7 +41,7 @@ const useContext = () => {
41
41
  );
42
42
  const moveType = ref("positive");
43
43
  const preIndex = ref(computedCurrent.value);
44
- let timer = null;
44
+ let flag = false;
45
45
  const getValidIndex = (val) => {
46
46
  if (val < 0) {
47
47
  return length.value - 1;
@@ -49,15 +49,16 @@ const useContext = () => {
49
49
  return val > length.value ? val % length.value : val;
50
50
  };
51
51
  const slideTo = async (targetIndex) => {
52
- if (timer || targetIndex == computedCurrent.value) {
52
+ if (flag || targetIndex == computedCurrent.value) {
53
53
  return;
54
54
  }
55
55
  moveType.value = targetIndex > computedCurrent.value ? "positive" : "negative";
56
56
  preIndex.value = computedCurrent.value;
57
57
  computedCurrent.value = getValidIndex(targetIndex);
58
58
  emits("change", computedCurrent.value, preIndex.value, true);
59
+ flag = true;
59
60
  await sleep(moveSpeed.value);
60
- timer = null;
61
+ flag = false;
61
62
  };
62
63
  provide(CAROUSEL_CONTEXT_KEY, {
63
64
  length,
@@ -6,8 +6,8 @@ import "../_shared/utils/dom.js";
6
6
  import "../_shared/utils/time.js";
7
7
  import "../Empty/index.js";
8
8
  /* empty css */
9
- import IconButton from "../_shared/components/IconButton.vue2.js";
10
- /* empty css */
9
+ import IconButton from "../_shared/components/IconButton.vue.js";
10
+ /* empty css */
11
11
  import Spin from "../Spin/index.js";
12
12
  const _hoisted_1 = { class: "yc-cascader-suffix-icon" };
13
13
  const _hoisted_2 = {
@@ -8,8 +8,8 @@ import "../Empty/index.js";
8
8
  import _sfc_main$1 from "../_shared/icons/IconCheckboxChecked.vue.js";
9
9
  import useControlValue from "../_shared/utils/control.js";
10
10
  import useContext from "./hooks/useContext.js";
11
- import IconButton from "../_shared/components/IconButton.vue2.js";
12
- /* empty css */
11
+ import IconButton from "../_shared/components/IconButton.vue.js";
12
+ /* empty css */
13
13
  const _hoisted_1 = ["value", "disabled", "checked"];
14
14
  const _hoisted_2 = { class: "yc-checkbox-icon" };
15
15
  const _hoisted_3 = {
@@ -6,8 +6,8 @@ import "../_shared/utils/time.js";
6
6
  import "../Empty/index.js";
7
7
  /* empty css */
8
8
  import _sfc_main$1 from "../_shared/icons/IconRight.vue.js";
9
- import IconButton from "../_shared/components/IconButton.vue2.js";
10
- import ExpandTransition from "../_shared/components/ExpandTransition.vue.js";
9
+ import IconButton from "../_shared/components/IconButton.vue.js";
10
+ import ExpandTransition from "../_shared/components/ExpandTransition.vue2.js";
11
11
  const _hoisted_1 = { class: "yc-collapse-item-header-title text-ellipsis" };
12
12
  const _hoisted_2 = {
13
13
  key: 1,
@@ -5,8 +5,8 @@ import "../_shared/utils/time.js";
5
5
  import { getGlobalConfig } from "../_shared/utils/global-config.js";
6
6
  import useModalClose from "../Modal/hooks/useModalClose.js";
7
7
  import Button from "../Button/index.js";
8
- import IconButton from "../_shared/components/IconButton.vue2.js";
9
- /* empty css */
8
+ import IconButton from "../_shared/components/IconButton.vue.js";
9
+ /* empty css */
10
10
  /* empty css */
11
11
  const _hoisted_1 = {
12
12
  key: 0,
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./ImagePreview.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
4
- const ImagePreview = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b3306f5d"]]);
4
+ const ImagePreview = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c202e7b9"]]);
5
5
  export {
6
6
  ImagePreview as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent, toRefs, ref, createBlock, openBlock, Teleport, unref, createElementBlock, createCommentVNode, normalizeStyle, normalizeClass, createVNode, Transition, withCtx, withDirectives, createElementVNode, vShow, renderSlot, withModifiers, createSlots } from "vue";
1
+ import { defineComponent, toRefs, ref, createBlock, openBlock, Teleport, unref, createElementBlock, createCommentVNode, normalizeStyle, normalizeClass, createVNode, Transition, withCtx, withDirectives, createElementVNode, vShow, withModifiers, renderSlot, createSlots } from "vue";
2
2
  import "../node_modules/tinycolor2/esm/tinycolor.js";
3
3
  import "../_shared/utils/dom.js";
4
4
  import { isUndefined } from "../_shared/utils/is.js";
@@ -11,8 +11,7 @@ import { useEventListener, onKeyStroke } from "../node_modules/@vueuse/core/inde
11
11
  import useModalClose from "../Modal/hooks/useModalClose.js";
12
12
  import ImagePreviewToolbar from "./ImagePreviewToolbar.vue.js";
13
13
  const _hoisted_1 = { class: "yc-image-preview-mask" };
14
- const _hoisted_2 = { class: "yc-image-preview-wrapper" };
15
- const _hoisted_3 = ["src"];
14
+ const _hoisted_2 = ["src"];
16
15
  const _sfc_main = /* @__PURE__ */ defineComponent({
17
16
  ...{
18
17
  name: "ImagePreview",
@@ -112,6 +111,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
112
111
  if (wheelZoom.value) {
113
112
  useEventListener("wheel", (e) => {
114
113
  e.preventDefault();
114
+ e.stopPropagation();
115
115
  const delta = e.deltaY < 0 ? 1 : -1;
116
116
  scale.value *= Math.pow(zoomRate.value, delta);
117
117
  });
@@ -157,7 +157,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
157
157
  onAfterLeave: unref(handleAfterLeave)
158
158
  }, {
159
159
  default: withCtx(() => [
160
- withDirectives(createElementVNode("div", _hoisted_2, [
160
+ withDirectives(createElementVNode("div", {
161
+ class: "yc-image-preview-wrapper",
162
+ onClick: _cache[2] || (_cache[2] = withModifiers(($event) => unref(handleClose)("mask", $event, false), ["self"]))
163
+ }, [
161
164
  createElementVNode("div", {
162
165
  style: normalizeStyle({
163
166
  transform: `scale(${unref(scale)}, ${unref(scale)})`
@@ -173,7 +176,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
173
176
  class: "yc-image-preview-img",
174
177
  ref_key: "imageRef",
175
178
  ref: imageRef
176
- }, null, 12, _hoisted_3)
179
+ }, null, 12, _hoisted_2)
177
180
  ], 4),
178
181
  createVNode(ImagePreviewToolbar, {
179
182
  actionsLayout: _ctx.actionsLayout,
@@ -5,9 +5,9 @@ import "../_shared/utils/time.js";
5
5
  import { getGlobalConfig } from "../_shared/utils/global-config.js";
6
6
  import useControlValue from "../_shared/utils/control.js";
7
7
  import useLimitedInput from "./hooks/useLimitedInput.js";
8
- import IconButton from "../_shared/components/IconButton.vue2.js";
8
+ import IconButton from "../_shared/components/IconButton.vue.js";
9
9
  import _sfc_main$1 from "../_shared/components/PreventFocus.vue.js";
10
- /* empty css */
10
+ /* empty css */
11
11
  /* empty css */
12
12
  import InputSuffix from "./InputSuffix.vue.js";
13
13
  const _hoisted_1 = ["value", "type", "disabled", "readonly", "placeholder"];
@@ -6,9 +6,9 @@ import "../Empty/index.js";
6
6
  /* empty css */
7
7
  import _sfc_main$3 from "../_shared/icons/IconEyeClose.vue2.js";
8
8
  import _sfc_main$2 from "../_shared/icons/IconEyeOpen.vue2.js";
9
- import IconButton from "../_shared/components/IconButton.vue2.js";
9
+ import IconButton from "../_shared/components/IconButton.vue.js";
10
10
  import _sfc_main$1 from "../_shared/components/PreventFocus.vue.js";
11
- /* empty css */
11
+ /* empty css */
12
12
  const _hoisted_1 = {
13
13
  key: 0,
14
14
  class: "yc-input-word-limit"
@@ -8,9 +8,9 @@ import "../_shared/utils/time.js";
8
8
  import { getGlobalConfig } from "../_shared/utils/global-config.js";
9
9
  import useControlValue from "../_shared/utils/control.js";
10
10
  import Tag from "../Tag/index.js";
11
- import IconButton from "../_shared/components/IconButton.vue2.js";
11
+ import IconButton from "../_shared/components/IconButton.vue.js";
12
12
  import _sfc_main$1 from "../_shared/components/PreventFocus.vue.js";
13
- /* empty css */
13
+ /* empty css */
14
14
  /* empty css */
15
15
  const _hoisted_1 = ["disabled", "readonly", "placeholder"];
16
16
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -6,8 +6,8 @@ import "../_shared/utils/dom.js";
6
6
  import "../_shared/utils/time.js";
7
7
  import "../Empty/index.js";
8
8
  /* empty css */
9
- /* empty css */
10
- import ExpandTransition from "../_shared/components/ExpandTransition.vue.js";
9
+ /* empty css */
10
+ import ExpandTransition from "../_shared/components/ExpandTransition.vue2.js";
11
11
  import "./index.js";
12
12
  import MenuItem from "./MenuItem.vue.js";
13
13
  const _hoisted_1 = { class: "yc-menu-inline" };
@@ -6,8 +6,8 @@ import "../_shared/utils/time.js";
6
6
  import "../Empty/index.js";
7
7
  /* empty css */
8
8
  import { TYPE_ICON_MAP } from "../_shared/constants/index.js";
9
- import IconButton from "../_shared/components/IconButton.vue2.js";
10
- /* empty css */
9
+ import IconButton from "../_shared/components/IconButton.vue.js";
10
+ /* empty css */
11
11
  import { useTimeoutFn } from "../node_modules/@vueuse/shared/index.js";
12
12
  const _hoisted_1 = {
13
13
  key: 0,
@@ -6,8 +6,8 @@ import { getGlobalConfig } from "../_shared/utils/global-config.js";
6
6
  import useModalClose from "./hooks/useModalClose.js";
7
7
  import useModalDraggable from "./hooks/useModalDraggable.js";
8
8
  import Button from "../Button/index.js";
9
- import IconButton from "../_shared/components/IconButton.vue2.js";
10
- /* empty css */
9
+ import IconButton from "../_shared/components/IconButton.vue.js";
10
+ /* empty css */
11
11
  /* empty css */
12
12
  const _hoisted_1 = {
13
13
  key: 0,
@@ -7,8 +7,8 @@ import "../_shared/utils/time.js";
7
7
  import { getSlotFunction } from "../_shared/utils/vue-utils.js";
8
8
  import "../Empty/index.js";
9
9
  /* empty css */
10
- import IconButton from "../_shared/components/IconButton.vue2.js";
11
- /* empty css */
10
+ import IconButton from "../_shared/components/IconButton.vue.js";
11
+ /* empty css */
12
12
  import { useTimeoutFn } from "../node_modules/@vueuse/shared/index.js";
13
13
  const _hoisted_1 = { class: "yc-notification-left" };
14
14
  const _hoisted_2 = {
@@ -6,8 +6,8 @@ import "../Empty/index.js";
6
6
  /* empty css */
7
7
  import _sfc_main$1 from "../_shared/icons/IconArrowRight.vue.js";
8
8
  import Divider from "../Divider/index.js";
9
- import IconButton from "../_shared/components/IconButton.vue2.js";
10
- /* empty css */
9
+ import IconButton from "../_shared/components/IconButton.vue.js";
10
+ /* empty css */
11
11
  const _hoisted_1 = { class: "yc-page-header" };
12
12
  const _hoisted_2 = { class: "yc-page-header-wrapper" };
13
13
  const _hoisted_3 = {
@@ -6,8 +6,8 @@ import "../Empty/index.js";
6
6
  /* empty css */
7
7
  import useControlValue from "../_shared/utils/control.js";
8
8
  import useContext from "./hooks/useContext.js";
9
- import IconButton from "../_shared/components/IconButton.vue2.js";
10
- /* empty css */
9
+ import IconButton from "../_shared/components/IconButton.vue.js";
10
+ /* empty css */
11
11
  const _hoisted_1 = ["value", "checked", "disabled"];
12
12
  const _hoisted_2 = {
13
13
  key: 0,
@@ -6,8 +6,8 @@ import "../_shared/utils/dom.js";
6
6
  import "../_shared/utils/time.js";
7
7
  import "../Empty/index.js";
8
8
  /* empty css */
9
- import IconButton from "../_shared/components/IconButton.vue2.js";
10
- /* empty css */
9
+ import IconButton from "../_shared/components/IconButton.vue.js";
10
+ /* empty css */
11
11
  import Spin from "../Spin/index.js";
12
12
  const _hoisted_1 = { class: "yc-select-suffix-icon" };
13
13
  const _hoisted_2 = {
@@ -1,11 +1,11 @@
1
1
  import { defineComponent, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot, createCommentVNode } from "vue";
2
- import IconButton from "../_shared/components/IconButton.vue2.js";
2
+ import IconButton from "../_shared/components/IconButton.vue.js";
3
3
  import "../node_modules/tinycolor2/esm/tinycolor.js";
4
4
  import "../_shared/utils/dom.js";
5
5
  import "../_shared/utils/time.js";
6
6
  import "../Empty/index.js";
7
7
  /* empty css */
8
- /* empty css */
8
+ /* empty css */
9
9
  const _sfc_main = /* @__PURE__ */ defineComponent({
10
10
  __name: "TabButton",
11
11
  props: {
@@ -6,8 +6,8 @@ import "../_shared/utils/time.js";
6
6
  import { getGlobalConfig } from "../_shared/utils/global-config.js";
7
7
  import useControlValue from "../_shared/utils/control.js";
8
8
  import Spin from "../Spin/index.js";
9
- import IconButton from "../_shared/components/IconButton.vue2.js";
10
- /* empty css */
9
+ import IconButton from "../_shared/components/IconButton.vue.js";
10
+ /* empty css */
11
11
  /* empty css */
12
12
  const _hoisted_1 = {
13
13
  key: 0,
@@ -1,14 +1,14 @@
1
1
  import { defineComponent, toRefs, ref, createElementBlock, openBlock, normalizeClass, unref, createCommentVNode, createElementVNode, createBlock, toDisplayString, normalizeStyle, withCtx, createTextVNode } from "vue";
2
2
  import useTextareaHeight from "./hooks/useTextareaHeight.js";
3
3
  import useLimitedInput from "../Input/hooks/useLimitedInput.js";
4
- import IconButton from "../_shared/components/IconButton.vue2.js";
4
+ import IconButton from "../_shared/components/IconButton.vue.js";
5
5
  import _sfc_main$1 from "../_shared/components/PreventFocus.vue.js";
6
6
  import "../node_modules/tinycolor2/esm/tinycolor.js";
7
7
  import "../_shared/utils/dom.js";
8
8
  import "../_shared/utils/time.js";
9
9
  import "../Empty/index.js";
10
10
  /* empty css */
11
- /* empty css */
11
+ /* empty css */
12
12
  const _hoisted_1 = ["value", "disabled", "readonly", "placeholder"];
13
13
  const _sfc_main = /* @__PURE__ */ defineComponent({
14
14
  ...{
@@ -5,8 +5,8 @@ import { isArray } from "../_shared/utils/is.js";
5
5
  import { isValidTimeRange } from "../_shared/utils/time.js";
6
6
  import { getGlobalConfig } from "../_shared/utils/global-config.js";
7
7
  import useContext from "./hooks/useContext.js";
8
- import IconButton from "../_shared/components/IconButton.vue2.js";
9
- /* empty css */
8
+ import IconButton from "../_shared/components/IconButton.vue.js";
9
+ /* empty css */
10
10
  /* empty css */
11
11
  import _sfc_main$1 from "../_shared/icons/IconTime.vue.js";
12
12
  import Trigger from "../Trigger/index.js";
@@ -5,14 +5,14 @@ import "../_shared/utils/time.js";
5
5
  import { getGlobalConfig } from "../_shared/utils/global-config.js";
6
6
  /* empty css */
7
7
  import _sfc_main$3 from "../_shared/icons/IconClose.vue.js";
8
- import _sfc_main$1 from "../_shared/icons/IconDelete.vue.js";
9
- import _sfc_main$2 from "../_shared/icons/IconSearch.vue.js";
8
+ import _sfc_main$1 from "../_shared/icons/IconDelete.vue2.js";
9
+ import _sfc_main$2 from "../_shared/icons/IconSearch.vue2.js";
10
10
  import useContext from "./hooks/useContext.js";
11
11
  import Checkbox from "../Checkbox/index.js";
12
12
  import Scrollbar from "../Scrollbar/index.js";
13
13
  import Input from "../Input/index.js";
14
- import IconButton from "../_shared/components/IconButton.vue2.js";
15
- /* empty css */
14
+ import IconButton from "../_shared/components/IconButton.vue.js";
15
+ /* empty css */
16
16
  const _hoisted_1 = { class: "yc-transfer-view" };
17
17
  const _hoisted_2 = { class: "yc-transfer-view-header" };
18
18
  const _hoisted_3 = { class: "yc-transfer-view-header-title" };
@@ -8,9 +8,9 @@ import { getGlobalConfig } from "../_shared/utils/global-config.js";
8
8
  import useTriggerVisible from "./hooks/useTriggerVisible.js";
9
9
  import useTriggerPosition from "./hooks/useTriggerPosition.js";
10
10
  /* empty css */
11
- /* empty css */
11
+ /* empty css */
12
12
  import _sfc_main$1 from "../_shared/components/PreventFocus.vue.js";
13
- /* empty css */
13
+ /* empty css */
14
14
  const _sfc_main = /* @__PURE__ */ defineComponent({
15
15
  ...{
16
16
  name: "Trigger",
@@ -1,5 +1,5 @@
1
1
  import _sfc_main from "./ExpandTransition.vue3.js";
2
- /* empty css */
2
+ /* empty css */
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  const ExpandTransition = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6e588238"]]);
5
5
  export {
@@ -1,5 +1,5 @@
1
1
  import _sfc_main from "./IconButton.vue3.js";
2
- /* empty css */
2
+ /* empty css */
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  const IconButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8fb80b1e"]]);
5
5
  export {
@@ -1,19 +1,4 @@
1
- import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
2
- import YcIcon from "../components/Icon.vue2.js";
3
- const _sfc_main = /* @__PURE__ */ defineComponent({
4
- __name: "IconDelete",
5
- setup(__props) {
6
- return (_ctx, _cache) => {
7
- return openBlock(), createBlock(YcIcon, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
8
- default: withCtx(() => _cache[0] || (_cache[0] = [
9
- createElementVNode("path", { d: "M5 11h5.5m0 0v29a1 1 0 0 0 1 1h25a1 1 0 0 0 1-1V11m-27 0H16m21.5 0H43m-5.5 0H32m-16 0V7h16v4m-16 0h16M20 18v15m8-15v15" }, null, -1)
10
- ])),
11
- _: 1,
12
- __: [0]
13
- }, 16);
14
- };
15
- }
16
- });
1
+ import _sfc_main from "./IconDelete.vue2.js";
17
2
  export {
18
3
  _sfc_main as default
19
4
  };
@@ -1,4 +1,19 @@
1
- import _sfc_main from "./IconDelete.vue.js";
1
+ import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
2
+ import YcIcon from "../components/Icon.vue2.js";
3
+ const _sfc_main = /* @__PURE__ */ defineComponent({
4
+ __name: "IconDelete",
5
+ setup(__props) {
6
+ return (_ctx, _cache) => {
7
+ return openBlock(), createBlock(YcIcon, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
8
+ default: withCtx(() => _cache[0] || (_cache[0] = [
9
+ createElementVNode("path", { d: "M5 11h5.5m0 0v29a1 1 0 0 0 1 1h25a1 1 0 0 0 1-1V11m-27 0H16m21.5 0H43m-5.5 0H32m-16 0V7h16v4m-16 0h16M20 18v15m8-15v15" }, null, -1)
10
+ ])),
11
+ _: 1,
12
+ __: [0]
13
+ }, 16);
14
+ };
15
+ }
16
+ });
2
17
  export {
3
18
  _sfc_main as default
4
19
  };
@@ -1,19 +1,4 @@
1
- import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
2
- import YcIcon from "../components/Icon.vue2.js";
3
- const _sfc_main = /* @__PURE__ */ defineComponent({
4
- __name: "IconSearch",
5
- setup(__props) {
6
- return (_ctx, _cache) => {
7
- return openBlock(), createBlock(YcIcon, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
8
- default: withCtx(() => _cache[0] || (_cache[0] = [
9
- createElementVNode("path", { d: "M33.072 33.071c6.248-6.248 6.248-16.379 0-22.627-6.249-6.249-16.38-6.249-22.628 0-6.248 6.248-6.248 16.379 0 22.627 6.248 6.248 16.38 6.248 22.628 0Zm0 0 8.485 8.485" }, null, -1)
10
- ])),
11
- _: 1,
12
- __: [0]
13
- }, 16);
14
- };
15
- }
16
- });
1
+ import _sfc_main from "./IconSearch.vue2.js";
17
2
  export {
18
3
  _sfc_main as default
19
4
  };
@@ -1,4 +1,19 @@
1
- import _sfc_main from "./IconSearch.vue.js";
1
+ import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
2
+ import YcIcon from "../components/Icon.vue2.js";
3
+ const _sfc_main = /* @__PURE__ */ defineComponent({
4
+ __name: "IconSearch",
5
+ setup(__props) {
6
+ return (_ctx, _cache) => {
7
+ return openBlock(), createBlock(YcIcon, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
8
+ default: withCtx(() => _cache[0] || (_cache[0] = [
9
+ createElementVNode("path", { d: "M33.072 33.071c6.248-6.248 6.248-16.379 0-22.627-6.249-6.249-16.38-6.249-22.628 0-6.248 6.248-6.248 16.379 0 22.627 6.248 6.248 16.38 6.248 22.628 0Zm0 0 8.485 8.485" }, null, -1)
10
+ ])),
11
+ _: 1,
12
+ __: [0]
13
+ }, 16);
14
+ };
15
+ }
16
+ });
2
17
  export {
3
18
  _sfc_main as default
4
19
  };
@@ -70,7 +70,7 @@ const findFirstScrollableParent = (element) => {
70
70
  }
71
71
  let currentElement = element.parentElement;
72
72
  while (currentElement && currentElement !== document.body) {
73
- const style = window.getComputedStyle(currentElement);
73
+ const style = getComputedStyle(currentElement);
74
74
  const overflow = style.overflowY || style.overflow;
75
75
  const isScrollable = ["auto", "scroll"].includes(overflow);
76
76
  const canScroll = currentElement.scrollHeight > currentElement.clientHeight;
@@ -91,15 +91,15 @@ const throttleByRaf = (cb) => {
91
91
  let timer = 0;
92
92
  const throttle2 = (...args) => {
93
93
  if (timer) {
94
- window.cancelAnimationFrame(timer);
94
+ cancelAnimationFrame(timer);
95
95
  }
96
- timer = window.requestAnimationFrame(() => {
96
+ timer = requestAnimationFrame(() => {
97
97
  cb(...args);
98
98
  timer = 0;
99
99
  });
100
100
  };
101
101
  throttle2.cancel = () => {
102
- window.cancelAnimationFrame(timer);
102
+ cancelAnimationFrame(timer);
103
103
  timer = 0;
104
104
  };
105
105
  return throttle2;
@@ -152,7 +152,7 @@ const valueToPx = (value) => {
152
152
  return value;
153
153
  };
154
154
  function isHorizontallyScrollable(element) {
155
- const style = window.getComputedStyle(element);
155
+ const style = getComputedStyle(element);
156
156
  const isScrollableOverflow = style.overflowX === "scroll" || style.overflowX === "auto";
157
157
  const isVisible = style.display !== "none" && style.visibility !== "hidden";
158
158
  if (!isVisible) {
@@ -162,7 +162,7 @@ function isHorizontallyScrollable(element) {
162
162
  return isScrollableOverflow && isContentLarger;
163
163
  }
164
164
  function isVerticallyScrollable(element) {
165
- const style = window.getComputedStyle(element);
165
+ const style = getComputedStyle(element);
166
166
  const isScrollableOverflow = style.overflowY === "scroll" || style.overflowY === "auto";
167
167
  const isVisible = style.display !== "none" && style.visibility !== "hidden";
168
168
  if (!isVisible) {
@@ -1,5 +1,5 @@
1
1
  import { tryOnScopeDispose, toArray, watchImmediate, isClient, isObject, makeDestructurable, camelize, tryOnMounted, toRefs, noop, isIOS, notNullish, useThrottleFn, useDebounceFn, pxValue, injectLocal, useTimeoutFn, createSingletonPromise } from "../shared/index.js";
2
- import { createFilterWrapper, debounceFilter, getLifeCycleTarget, throttleFilter } from "../shared/index.js";
2
+ import { createFilterWrapper, debounceFilter, getLifeCycleTarget, throttleFilter, useInterval, useIntervalFn } from "../shared/index.js";
3
3
  import { computed, toValue, watch, shallowRef, getCurrentInstance, onMounted, unref, defineComponent, ref, reactive, watchEffect, hasInjectionContext, toRaw } from "vue";
4
4
  function createReusableTemplate(options = {}) {
5
5
  const {
@@ -1080,6 +1080,8 @@ export {
1080
1080
  useElementBounding,
1081
1081
  useElementSize,
1082
1082
  useEventListener,
1083
+ useInterval,
1084
+ useIntervalFn,
1083
1085
  useMediaQuery,
1084
1086
  useMounted,
1085
1087
  useMutationObserver,