yc-design-vue 1.0.1 → 1.0.2

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 (75) hide show
  1. package/es/Drawer/Drawer.vue.js +1 -1
  2. package/es/Drawer/Drawer.vue2.js +6 -7
  3. package/es/Dropdown/Dsubmenu.vue.js +1 -1
  4. package/es/Dropdown/Dsubmenu.vue2.js +2 -2
  5. package/es/List/List.vue.js +1 -1
  6. package/es/List/List.vue2.js +1 -1
  7. package/es/Modal/Modal.vue.js +1 -1
  8. package/es/Modal/Modal.vue2.js +4 -6
  9. package/es/Modal/hooks/useModalClose.d.ts +2 -1
  10. package/es/Modal/hooks/useModalClose.js +1 -6
  11. package/es/OverflowList/index.vue.js +1 -1
  12. package/es/OverflowList/index.vue2.js +2 -2
  13. package/es/Scrollbar/Scrollbar.vue.js +1 -1
  14. package/es/Select/SelectView.vue.js +1 -1
  15. package/es/Select/SelectView.vue2.js +1 -1
  16. package/es/Spin/index.vue.js +1 -1
  17. package/es/Spin/index.vue2.js +1 -1
  18. package/es/Transfer/TransferPanel.vue2.js +2 -2
  19. package/es/Trigger/hooks/useContext.js +1 -1
  20. package/es/Trigger/hooks/useTriggerPosition.js +1 -2
  21. package/es/Trigger/hooks/useTriggerVisible.js +1 -2
  22. package/es/Typography/TypographyBase.vue2.js +2 -2
  23. package/es/_shared/icons/IconCopy.vue.js +1 -16
  24. package/es/_shared/icons/IconCopy.vue2.js +16 -1
  25. package/es/_shared/icons/IconDelete.vue.js +16 -1
  26. package/es/_shared/icons/IconDelete.vue2.js +1 -16
  27. package/es/_shared/icons/IconEdit.vue.js +1 -16
  28. package/es/_shared/icons/IconEdit.vue2.js +16 -1
  29. package/es/_shared/icons/IconSearch.vue.js +16 -1
  30. package/es/_shared/icons/IconSearch.vue2.js +1 -16
  31. package/es/_shared/type/index.d.ts +1 -6
  32. package/es/_shared/utils/dom.d.ts +1 -1
  33. package/es/_shared/utils/dom.js +2 -3
  34. package/es/_shared/utils/vue-utils.d.ts +1 -2
  35. package/es/_shared/utils/vue-utils.js +2 -7
  36. package/es/index.d.ts +1 -1
  37. package/es/style.css +1 -1
  38. package/lib/Drawer/Drawer.vue.js +1 -1
  39. package/lib/Drawer/Drawer.vue2.js +1 -1
  40. package/lib/Dropdown/Dsubmenu.vue.js +1 -1
  41. package/lib/Dropdown/Dsubmenu.vue2.js +1 -1
  42. package/lib/List/List.vue.js +1 -1
  43. package/lib/List/List.vue2.js +1 -1
  44. package/lib/Modal/Modal.vue.js +1 -1
  45. package/lib/Modal/Modal.vue2.js +1 -1
  46. package/lib/Modal/hooks/useModalClose.d.ts +2 -1
  47. package/lib/Modal/hooks/useModalClose.js +1 -1
  48. package/lib/OverflowList/index.vue.js +1 -1
  49. package/lib/OverflowList/index.vue2.js +1 -1
  50. package/lib/Scrollbar/Scrollbar.vue.js +1 -1
  51. package/lib/Select/SelectView.vue.js +1 -1
  52. package/lib/Select/SelectView.vue2.js +1 -1
  53. package/lib/Spin/index.vue.js +1 -1
  54. package/lib/Spin/index.vue2.js +1 -1
  55. package/lib/Transfer/TransferPanel.vue2.js +1 -1
  56. package/lib/Trigger/hooks/useContext.js +1 -1
  57. package/lib/Trigger/hooks/useTriggerPosition.js +1 -1
  58. package/lib/Trigger/hooks/useTriggerVisible.js +1 -1
  59. package/lib/Typography/TypographyBase.vue2.js +1 -1
  60. package/lib/_shared/icons/IconCopy.vue.js +1 -1
  61. package/lib/_shared/icons/IconCopy.vue2.js +1 -1
  62. package/lib/_shared/icons/IconDelete.vue.js +1 -1
  63. package/lib/_shared/icons/IconDelete.vue2.js +1 -1
  64. package/lib/_shared/icons/IconEdit.vue.js +1 -1
  65. package/lib/_shared/icons/IconEdit.vue2.js +1 -1
  66. package/lib/_shared/icons/IconSearch.vue.js +1 -1
  67. package/lib/_shared/icons/IconSearch.vue2.js +1 -1
  68. package/lib/_shared/type/index.d.ts +1 -6
  69. package/lib/_shared/utils/dom.d.ts +1 -1
  70. package/lib/_shared/utils/dom.js +1 -1
  71. package/lib/_shared/utils/vue-utils.d.ts +1 -2
  72. package/lib/_shared/utils/vue-utils.js +1 -1
  73. package/lib/index.d.ts +1 -1
  74. package/lib/style.css +1 -1
  75. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./Drawer.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
4
- const _Drawer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f4f2afd5"]]);
4
+ const _Drawer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-23a10cf6"]]);
5
5
  export {
6
6
  _Drawer as default
7
7
  };
@@ -110,12 +110,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
110
110
  class: normalizeClass([
111
111
  "yc-drawer-wrapper",
112
112
  `yc-drawer-placement-${unref(placement)}`,
113
+ _ctx.$attrs.class,
113
114
  {
114
115
  "yc-drawer-position-absolute": unref(popupContainer) || !unref(renderToBody)
115
116
  }
116
117
  ]),
117
118
  style: normalizeStyle({
118
- zIndex: unref(zIndex)
119
+ zIndex: unref(zIndex),
120
+ ..._ctx.$attrs.style ?? {}
119
121
  })
120
122
  }, [
121
123
  createVNode(Transition, { name: "fade" }, {
@@ -139,11 +141,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
139
141
  }, {
140
142
  default: withCtx(() => [
141
143
  withDirectives(createElementVNode("div", {
142
- class: normalizeClass(["yc-drawer-container", _ctx.$attrs.class]),
143
- style: normalizeStyle({
144
- ...drawerStyle.value,
145
- ..._ctx.$attrs.style ?? {}
146
- })
144
+ class: "yc-drawer-container",
145
+ style: normalizeStyle(drawerStyle.value)
147
146
  }, [
148
147
  renderSlot(_ctx.$slots, "header", {}, () => [
149
148
  _ctx.header ? (openBlock(), createElementBlock("div", _hoisted_1, [
@@ -185,7 +184,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
185
184
  }, 16, ["loading"])
186
185
  ])) : createCommentVNode("", true)
187
186
  ], true)
188
- ], 6), [
187
+ ], 4), [
189
188
  [vShow, unref(innerVisible)]
190
189
  ])
191
190
  ]),
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./Dsubmenu.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
4
- const Dsubmenu = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8f255659"]]);
4
+ const Dsubmenu = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7a40c502"]]);
5
5
  export {
6
6
  Dsubmenu as default
7
7
  };
@@ -1,14 +1,14 @@
1
1
  import { defineComponent, toRefs, ref, computed, createBlock, openBlock, unref, mergeProps, isRef, withCtx, createVNode, normalizeStyle, normalizeClass, renderSlot, createElementVNode, createElementBlock, createCommentVNode, nextTick } from "vue";
2
+ import { unrefElement } from "../node_modules/@vueuse/core/index.js";
2
3
  import "../node_modules/tinycolor2/esm/tinycolor.js";
3
4
  import "../_shared/utils/dom.js";
4
5
  import { valueToPx } from "../_shared/utils/fn.js";
5
6
  import { isBoolean, isUndefined } from "../_shared/utils/is.js";
6
7
  import "../_shared/utils/time.js";
7
- import { unrefElement } from "../_shared/utils/vue-utils.js";
8
8
  import "../Empty/index.js";
9
- import useControlValue from "../_shared/utils/control.js";
10
9
  /* empty css */
11
10
  import _sfc_main$1 from "../_shared/icons/IconArrowRight.vue.js";
11
+ import useControlValue from "../_shared/utils/control.js";
12
12
  import useContext from "./hooks/useContext.js";
13
13
  import "./index.js";
14
14
  import Trigger from "../Trigger/index.js";
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./List.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
4
- const _List = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1d8fc233"]]);
4
+ const _List = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e85a4d7e"]]);
5
5
  export {
6
6
  _List as default
7
7
  };
@@ -1,9 +1,9 @@
1
1
  import { defineComponent, toRefs, ref, computed, createElementBlock, openBlock, normalizeClass, unref, createVNode, withCtx, createBlock, createCommentVNode, normalizeStyle, createElementVNode, renderSlot, createSlots, normalizeProps, guardReactiveProps, mergeProps, Fragment, renderList, resolveDynamicComponent, isRef } from "vue";
2
+ import { unrefElement } from "../node_modules/@vueuse/core/index.js";
2
3
  import "../node_modules/tinycolor2/esm/tinycolor.js";
3
4
  import "../_shared/utils/dom.js";
4
5
  import { valueToPx } from "../_shared/utils/fn.js";
5
6
  import "../_shared/utils/time.js";
6
- import { unrefElement } from "../_shared/utils/vue-utils.js";
7
7
  import { getGlobalConfig } from "../_shared/utils/global-config.js";
8
8
  import useControlValue from "../_shared/utils/control.js";
9
9
  import useScrollReach from "./hooks/useScrollReach.js";
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./Modal.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
4
- const _Modal = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-08c69d3e"]]);
4
+ const _Modal = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f89e836b"]]);
5
5
  export {
6
6
  _Modal as default
7
7
  };
@@ -130,13 +130,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
130
130
  key: 0,
131
131
  class: normalizeClass([
132
132
  "yc-modal-container",
133
+ _ctx.$attrs.class,
133
134
  {
134
135
  "yc-modal-simple": _ctx.simple,
135
136
  "yc-modal-position-absolute": unref(popupContainer) || !unref(renderToBody)
136
137
  }
137
138
  ]),
138
139
  style: normalizeStyle({
139
- zIndex: unref(zIndex)
140
+ zIndex: unref(zIndex),
141
+ ..._ctx.$attrs.style ?? {}
140
142
  })
141
143
  }, [
142
144
  createVNode(Transition, { name: _ctx.maskAnimationName }, {
@@ -167,7 +169,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
167
169
  class: normalizeClass([
168
170
  "yc-modal",
169
171
  _ctx.modalClass,
170
- _ctx.$attrs.class,
171
172
  {
172
173
  // 拖拽
173
174
  "yc-modal-draggable": unref(isDraggable),
@@ -175,10 +176,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
175
176
  "yc-modal-fullscreen": unref(fullscreen)
176
177
  }
177
178
  ]),
178
- style: normalizeStyle({
179
- ...modalStyle.value,
180
- ..._ctx.$attrs.style ?? {}
181
- }),
179
+ style: normalizeStyle(modalStyle.value),
182
180
  ref_key: "modalRef",
183
181
  ref: modalRef
184
182
  }, [
@@ -1,5 +1,6 @@
1
1
  import { Ref } from 'vue';
2
2
  import { ModalEmits, OnBeforeOk, OnBeforeCancel } from '../type';
3
+ export type CloseEventType = 'confirmBtn' | 'cancelBtn' | 'closeBtn' | 'mask' | 'esc';
3
4
  declare const _default: (params: {
4
5
  visible: Ref<boolean | undefined>;
5
6
  defaultVisible: Ref<boolean>;
@@ -12,7 +13,7 @@ declare const _default: (params: {
12
13
  asyncLoading: Ref<boolean, boolean>;
13
14
  outerVisible: Ref<boolean, boolean>;
14
15
  innerVisible: import('vue').WritableComputedRef<any, boolean>;
15
- handleClose: (type: string, ev: MouseEvent | KeyboardEvent) => Promise<void>;
16
+ handleClose: (type: CloseEventType, ev: MouseEvent | KeyboardEvent) => Promise<void>;
16
17
  handleAfterLeave: () => void;
17
18
  };
18
19
  export default _default;
@@ -31,12 +31,7 @@ const useModalClose = (params) => {
31
31
  outerVisible.value = false;
32
32
  };
33
33
  const handleClose = async (type, ev) => {
34
- const isClose = await useOnBeforeClose(
35
- type,
36
- asyncLoading,
37
- onBeforeOk,
38
- onBeforeCancel
39
- );
34
+ const isClose = ["confirmBtn", "cancelBtn"].includes(type) ? await useOnBeforeClose(type, asyncLoading, onBeforeOk, onBeforeCancel) : true;
40
35
  if (!isClose) {
41
36
  return;
42
37
  }
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./index.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
4
- const _OverflowList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-13385005"]]);
4
+ const _OverflowList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a89a2ac3"]]);
5
5
  export {
6
6
  _OverflowList as default
7
7
  };
@@ -3,10 +3,10 @@ import "../node_modules/tinycolor2/esm/tinycolor.js";
3
3
  import "../_shared/utils/dom.js";
4
4
  import { throttle, sleep, valueToPx } from "../_shared/utils/fn.js";
5
5
  import "../_shared/utils/time.js";
6
- import { findComponentsFromVnodes, unrefElement } from "../_shared/utils/vue-utils.js";
6
+ import { findComponentsFromVnodes } from "../_shared/utils/vue-utils.js";
7
7
  import "../Empty/index.js";
8
8
  /* empty css */
9
- import { useResizeObserver } from "../node_modules/@vueuse/core/index.js";
9
+ import { unrefElement, useResizeObserver } from "../node_modules/@vueuse/core/index.js";
10
10
  import Tag from "../Tag/index.js";
11
11
  const _sfc_main = /* @__PURE__ */ defineComponent({
12
12
  ...{
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./Scrollbar.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
4
- const _Scrollbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ac67eba2"]]);
4
+ const _Scrollbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f20de904"]]);
5
5
  export {
6
6
  _Scrollbar as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./SelectView.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
4
- const SelectView = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7ad0ee5e"]]);
4
+ const SelectView = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a3636179"]]);
5
5
  export {
6
6
  SelectView as default
7
7
  };
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, toRefs, ref, computed, createElementBlock, openBlock, createBlock, unref, createSlots, withCtx, resolveDynamicComponent, Fragment, createCommentVNode } from "vue";
2
+ import { unrefElement } from "../node_modules/@vueuse/core/index.js";
2
3
  import "../node_modules/tinycolor2/esm/tinycolor.js";
3
4
  import "../_shared/utils/dom.js";
4
5
  import "../_shared/utils/time.js";
5
- import { unrefElement } from "../_shared/utils/vue-utils.js";
6
6
  import { getGlobalConfig } from "../_shared/utils/global-config.js";
7
7
  import useContext from "./hooks/useContext.js";
8
8
  import useScrollReach from "../List/hooks/useScrollReach.js";
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./index.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
4
- const _Spin = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9ab77259"]]);
4
+ const _Spin = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4d07b531"]]);
5
5
  export {
6
6
  _Spin as default
7
7
  };
@@ -47,7 +47,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
47
47
  }
48
48
  ]),
49
49
  style: normalizeStyle({
50
- fontSize: !_ctx.isSizeInherit ? unref(valueToPx)(_ctx.size) : ""
50
+ fontSize: !_ctx.isSizeInherit ? unref(valueToPx)(_ctx.size) : "inherit"
51
51
  })
52
52
  }, [
53
53
  renderSlot(_ctx.$slots, "icon", {}, () => [
@@ -5,8 +5,8 @@ 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.vue2.js";
9
- import _sfc_main$2 from "../_shared/icons/IconSearch.vue2.js";
8
+ import _sfc_main$1 from "../_shared/icons/IconDelete.vue.js";
9
+ import _sfc_main$2 from "../_shared/icons/IconSearch.vue.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";
@@ -1,10 +1,10 @@
1
1
  import { inject, ref, provide, watch } from "vue";
2
2
  import { nanoid } from "../../node_modules/nanoid/index.browser.js";
3
+ import { unrefElement } from "../../node_modules/@vueuse/core/index.js";
3
4
  import "../../node_modules/tinycolor2/esm/tinycolor.js";
4
5
  import "../../_shared/utils/dom.js";
5
6
  import { sleep } from "../../_shared/utils/fn.js";
6
7
  import "../../_shared/utils/time.js";
7
- import { unrefElement } from "../../_shared/utils/vue-utils.js";
8
8
  import "../../Empty/index.js";
9
9
  /* empty css */
10
10
  const TRIGGER_CONTEXT_KEY = "trigger-context";
@@ -1,10 +1,9 @@
1
1
  import { toRefs, ref, computed, watch } from "vue";
2
- import { useElementSize, useElementBounding } from "../../node_modules/@vueuse/core/index.js";
2
+ import { useElementSize, useElementBounding, unrefElement } from "../../node_modules/@vueuse/core/index.js";
3
3
  import "../../node_modules/tinycolor2/esm/tinycolor.js";
4
4
  import "../../_shared/utils/dom.js";
5
5
  import { valueToPx, sleep } from "../../_shared/utils/fn.js";
6
6
  import "../../_shared/utils/time.js";
7
- import { unrefElement } from "../../_shared/utils/vue-utils.js";
8
7
  import { getGlobalConfig } from "../../_shared/utils/global-config.js";
9
8
  const useTriggerPosition = (params) => {
10
9
  const {
@@ -1,10 +1,9 @@
1
1
  import { toRefs, ref, computed, watch, nextTick } from "vue";
2
- import { onClickOutside, useEventListener } from "../../node_modules/@vueuse/core/index.js";
2
+ import { unrefElement, onClickOutside, useEventListener } from "../../node_modules/@vueuse/core/index.js";
3
3
  import useContext from "./useContext.js";
4
4
  import "../../node_modules/tinycolor2/esm/tinycolor.js";
5
5
  import { findFirstScrollableParent } from "../../_shared/utils/dom.js";
6
6
  import "../../_shared/utils/time.js";
7
- import { unrefElement } from "../../_shared/utils/vue-utils.js";
8
7
  import { getGlobalConfig } from "../../_shared/utils/global-config.js";
9
8
  import useControlValue from "../../_shared/utils/control.js";
10
9
  const useTriggerVisible = (params) => {
@@ -6,8 +6,8 @@ import { sleep } from "../_shared/utils/fn.js";
6
6
  import "../_shared/utils/time.js";
7
7
  import "../Empty/index.js";
8
8
  /* empty css */
9
- import _sfc_main$3 from "../_shared/icons/IconCopy.vue.js";
10
- import _sfc_main$1 from "../_shared/icons/IconEdit.vue.js";
9
+ import _sfc_main$3 from "../_shared/icons/IconCopy.vue2.js";
10
+ import _sfc_main$1 from "../_shared/icons/IconEdit.vue2.js";
11
11
  import _sfc_main$2 from "../_shared/icons/IconInfo.vue.js";
12
12
  import useControlValue from "../_shared/utils/control.js";
13
13
  import Input from "../Input/index.js";
@@ -1,19 +1,4 @@
1
- import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
2
- import YcIcon from "./_Icon.vue2.js";
3
- const _sfc_main = /* @__PURE__ */ defineComponent({
4
- __name: "IconCopy",
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: "M20 6h18a2 2 0 0 1 2 2v22M8 16v24c0 1.105.891 2 1.996 2h20.007A1.99 1.99 0 0 0 32 40.008V15.997A1.997 1.997 0 0 0 30 14H10a2 2 0 0 0-2 2Z" }, null, -1)
10
- ])),
11
- _: 1,
12
- __: [0]
13
- }, 16);
14
- };
15
- }
16
- });
1
+ import _sfc_main from "./IconCopy.vue2.js";
17
2
  export {
18
3
  _sfc_main as default
19
4
  };
@@ -1,4 +1,19 @@
1
- import _sfc_main from "./IconCopy.vue.js";
1
+ import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
2
+ import YcIcon from "./_Icon.vue2.js";
3
+ const _sfc_main = /* @__PURE__ */ defineComponent({
4
+ __name: "IconCopy",
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: "M20 6h18a2 2 0 0 1 2 2v22M8 16v24c0 1.105.891 2 1.996 2h20.007A1.99 1.99 0 0 0 32 40.008V15.997A1.997 1.997 0 0 0 30 14H10a2 2 0 0 0-2 2Z" }, null, -1)
10
+ ])),
11
+ _: 1,
12
+ __: [0]
13
+ }, 16);
14
+ };
15
+ }
16
+ });
2
17
  export {
3
18
  _sfc_main as default
4
19
  };
@@ -1,4 +1,19 @@
1
- import _sfc_main from "./IconDelete.vue2.js";
1
+ import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
2
+ import YcIcon from "./_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 "./_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.vue.js";
17
2
  export {
18
3
  _sfc_main as default
19
4
  };
@@ -1,19 +1,4 @@
1
- import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
2
- import YcIcon from "./_Icon.vue2.js";
3
- const _sfc_main = /* @__PURE__ */ defineComponent({
4
- __name: "IconEdit",
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: "m30.48 19.038 5.733-5.734a1 1 0 0 0 0-1.414l-5.586-5.586a1 1 0 0 0-1.414 0l-5.734 5.734m7 7L15.763 33.754a1 1 0 0 1-.59.286l-6.048.708a1 1 0 0 1-1.113-1.069l.477-6.31a1 1 0 0 1 .29-.631l14.7-14.7m7 7-7-7M6 42h36" }, null, -1)
10
- ])),
11
- _: 1,
12
- __: [0]
13
- }, 16);
14
- };
15
- }
16
- });
1
+ import _sfc_main from "./IconEdit.vue2.js";
17
2
  export {
18
3
  _sfc_main as default
19
4
  };
@@ -1,4 +1,19 @@
1
- import _sfc_main from "./IconEdit.vue.js";
1
+ import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
2
+ import YcIcon from "./_Icon.vue2.js";
3
+ const _sfc_main = /* @__PURE__ */ defineComponent({
4
+ __name: "IconEdit",
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: "m30.48 19.038 5.733-5.734a1 1 0 0 0 0-1.414l-5.586-5.586a1 1 0 0 0-1.414 0l-5.734 5.734m7 7L15.763 33.754a1 1 0 0 1-.59.286l-6.048.708a1 1 0 0 1-1.113-1.069l.477-6.31a1 1 0 0 1 .29-.631l14.7-14.7m7 7-7-7M6 42h36" }, null, -1)
10
+ ])),
11
+ _: 1,
12
+ __: [0]
13
+ }, 16);
14
+ };
15
+ }
16
+ });
2
17
  export {
3
18
  _sfc_main as default
4
19
  };
@@ -1,4 +1,19 @@
1
- import _sfc_main from "./IconSearch.vue2.js";
1
+ import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
2
+ import YcIcon from "./_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
  };
@@ -1,19 +1,4 @@
1
- import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
2
- import YcIcon from "./_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.vue.js";
17
2
  export {
18
3
  _sfc_main as default
19
4
  };
@@ -1,4 +1,4 @@
1
- import { RenderFunction, ComponentPublicInstance, MaybeRef, MaybeRefOrGetter } from 'vue';
1
+ import { RenderFunction } from 'vue';
2
2
  export type Size = 'mini' | 'small' | 'medium' | 'large';
3
3
  export type Direction = 'vertical' | 'horizontal';
4
4
  export type Theme = 'light' | 'dark';
@@ -11,8 +11,3 @@ export type ObjectData = Record<string, any>;
11
11
  export type RequiredDeep<T> = {
12
12
  [P in keyof T]-?: T[P] extends object ? RequiredDeep<T[P]> : T[P];
13
13
  };
14
- export type VueInstance = ComponentPublicInstance;
15
- export type MaybeElementRef<T extends MaybeElement = MaybeElement> = MaybeRef<T>;
16
- export type MaybeComputedElementRef<T extends MaybeElement = MaybeElement> = MaybeRefOrGetter<T>;
17
- export type MaybeElement = HTMLElement | SVGElement | VueInstance | undefined | null;
18
- export type UnRefElementReturn<T extends MaybeElement = MaybeElement> = T extends VueInstance ? Exclude<MaybeElement, VueInstance> : T | undefined;
@@ -1,6 +1,6 @@
1
+ import { Ref } from 'vue';
1
2
  import { EllipsisConfig } from '../../Typography/type';
2
3
  import { BreakpointName, ResponsiveValue } from '../../Grid';
3
- import { Ref } from 'vue';
4
4
  export declare const isServerRendering: boolean;
5
5
  export declare const querySelector: (selectors: string, container?: Document | HTMLElement) => HTMLElement | undefined;
6
6
  export declare const getElement: (target: string | HTMLElement | undefined, container?: Document | HTMLElement) => HTMLElement | undefined;
@@ -1,7 +1,6 @@
1
- import { isString, isObject, isUndefined } from "./is.js";
2
- import { useMediaQuery } from "../../node_modules/@vueuse/core/index.js";
3
1
  import { watch } from "vue";
4
- import { unrefElement } from "./vue-utils.js";
2
+ import { unrefElement, useMediaQuery } from "../../node_modules/@vueuse/core/index.js";
3
+ import { isString, isObject, isUndefined } from "./is.js";
5
4
  const isServerRendering = (() => {
6
5
  try {
7
6
  return !(typeof window !== "undefined" && document !== void 0);
@@ -1,7 +1,6 @@
1
- import { RenderContent, ObjectData, MaybeElement, MaybeComputedElementRef, UnRefElementReturn } from '../type';
1
+ import { RenderContent, ObjectData } from '../type';
2
2
  import { VNode } from 'vue';
3
3
  export declare const getSlotFunction: (param: RenderContent | undefined) => import('vue').RenderFunction | (() => string | ObjectData[]) | undefined;
4
4
  export declare function isVifNode(vnode: VNode | undefined | null): boolean;
5
5
  export declare function findFirstLegitChild(node: VNode[] | undefined): VNode | null;
6
6
  export declare function findComponentsFromVnodes(vnodes: VNode[], name: string): ObjectData[];
7
- export declare function unrefElement<T extends MaybeElement>(elRef: MaybeComputedElementRef<T>): UnRefElementReturn<T>;
@@ -1,4 +1,4 @@
1
- import { isVNode, Fragment, Text, Comment, toValue, h } from "vue";
1
+ import { isVNode, Fragment, Text, Comment, h } from "vue";
2
2
  import { isObject, isFunction } from "./is.js";
3
3
  const getSlotFunction = (param) => {
4
4
  if (param) {
@@ -67,13 +67,8 @@ function findComponentsFromVnodes(vnodes, name) {
67
67
  traverse(vnodes);
68
68
  return result;
69
69
  }
70
- function unrefElement(elRef) {
71
- const plain = toValue(elRef);
72
- return (plain == null ? void 0 : plain.$el) ?? plain;
73
- }
74
70
  export {
75
71
  findComponentsFromVnodes,
76
72
  findFirstLegitChild,
77
- getSlotFunction,
78
- unrefElement
73
+ getSlotFunction
79
74
  };
package/es/index.d.ts CHANGED
@@ -68,7 +68,6 @@ import { default as Tabs } from './Tabs';
68
68
  import { default as VerificationCode } from './VerificationCode';
69
69
  import { default as Watermark } from './Watermark';
70
70
  export type { Size, Direction, Theme, TargetContainer, PopupContainer, } from './_shared/type';
71
- export { Affix, Alert, Anchor, AutoComplete, Avatar, BackTop, Badge, Button, Breadcrumb, Card, Calendar, Carousel, Checkbox, Collapse, ColorPicker, Cascader, Comment, ConfigProvider, Descriptions, Divider, Drawer, Dropdown, Empty, Grid, Icon, Image, Input, InputNumber, InputTag, Layout, Link, List, Menu, Mention, Modal, Message, Notification, OverflowList, PageHeader, Pagination, Popconfirm, Popover, Progress, Radio, Rate, ResizeBox, Result, Scrollbar, Select, Skeleton, Slider, Space, Split, Statistic, Steps, Spin, Switch, Tag, Timeline, Textarea, TimePicker, Tooltip, Transfer, Trigger, Typography, Tabs, VerificationCode, Watermark, };
72
71
  export * from './Affix';
73
72
  export * from './Alert';
74
73
  export * from './Anchor';
@@ -137,6 +136,7 @@ export * from './Typography';
137
136
  export * from './Tabs';
138
137
  export * from './VerificationCode';
139
138
  export * from './Watermark';
139
+ export { Affix, Alert, Anchor, AutoComplete, Avatar, BackTop, Badge, Button, Breadcrumb, Card, Calendar, Carousel, Checkbox, Collapse, ColorPicker, Cascader, Comment, ConfigProvider, Descriptions, Divider, Drawer, Dropdown, Empty, Grid, Icon, Image, Input, InputNumber, InputTag, Layout, Link, List, Menu, Mention, Modal, Message, Notification, OverflowList, PageHeader, Pagination, Popconfirm, Popover, Progress, Radio, Rate, ResizeBox, Result, Scrollbar, Select, Skeleton, Slider, Space, Split, Statistic, Steps, Spin, Switch, Tag, Timeline, Textarea, TimePicker, Tooltip, Transfer, Trigger, Typography, Tabs, VerificationCode, Watermark, };
140
140
  export declare const components: Record<string, Plugin>;
141
141
  declare const _default: {
142
142
  AnchorLink: {