yc-design-vue 1.1.1 → 1.1.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.
- package/es/AutoComplete/index.vue.js +1 -1
- package/es/Dropdown/Dsubmenu.vue.js +1 -1
- package/es/Dropdown/Dsubmenu.vue2.js +1 -1
- package/es/List/List.vue.js +1 -1
- package/es/List/List.vue2.js +1 -1
- package/es/OverflowList/index.vue.js +1 -1
- package/es/OverflowList/index.vue2.js +2 -2
- package/es/Select/SelectView.vue.js +1 -1
- package/es/Select/SelectView.vue2.js +1 -1
- package/es/Trigger/hooks/useContext.js +1 -1
- package/es/Trigger/hooks/useTriggerPosition.js +1 -2
- package/es/Trigger/hooks/useTriggerVisible.js +1 -2
- package/es/_shared/utils/dom.js +1 -2
- package/es/_shared/utils/vue-utils.d.ts +1 -7
- package/es/_shared/utils/vue-utils.js +2 -7
- package/es/style.css +1 -1
- package/lib/AutoComplete/index.vue.js +1 -1
- package/lib/Dropdown/Dsubmenu.vue.js +1 -1
- package/lib/Dropdown/Dsubmenu.vue2.js +1 -1
- package/lib/List/List.vue.js +1 -1
- package/lib/List/List.vue2.js +1 -1
- package/lib/OverflowList/index.vue.js +1 -1
- package/lib/OverflowList/index.vue2.js +1 -1
- package/lib/Select/SelectView.vue.js +1 -1
- package/lib/Select/SelectView.vue2.js +1 -1
- package/lib/Trigger/hooks/useContext.js +1 -1
- package/lib/Trigger/hooks/useTriggerPosition.js +1 -1
- package/lib/Trigger/hooks/useTriggerVisible.js +1 -1
- package/lib/_shared/utils/dom.js +1 -1
- package/lib/_shared/utils/vue-utils.d.ts +1 -7
- package/lib/_shared/utils/vue-utils.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
@@ -25,7 +25,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
25
25
|
triggerProps: { default: () => {
|
26
26
|
return {};
|
27
27
|
} },
|
28
|
-
allowClear: { type: Boolean, default:
|
28
|
+
allowClear: { type: Boolean, default: false },
|
29
29
|
vistualListProps: {},
|
30
30
|
isSelectSetValue: { type: Boolean, default: true },
|
31
31
|
isSearch: { type: Boolean, default: true },
|
@@ -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-
|
4
|
+
const Dsubmenu = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7a40c502"]]);
|
5
5
|
export {
|
6
6
|
Dsubmenu as default
|
7
7
|
};
|
@@ -1,9 +1,9 @@
|
|
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 { valueToPx } from "../_shared/utils/dom.js";
|
4
5
|
import { isBoolean, isUndefined } from "../_shared/utils/is.js";
|
5
6
|
import "../_shared/utils/time.js";
|
6
|
-
import { unrefElement } from "../_shared/utils/vue-utils.js";
|
7
7
|
import "../Empty/index.js";
|
8
8
|
/* empty css */
|
9
9
|
import _sfc_main$1 from "../_shared/icons/IconArrowRight.vue.js";
|
package/es/List/List.vue.js
CHANGED
@@ -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-
|
4
|
+
const _List = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a549d4df"]]);
|
5
5
|
export {
|
6
6
|
_List as default
|
7
7
|
};
|
package/es/List/List.vue2.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { defineComponent, useSlots, toRefs, ref, computed, createElementBlock, openBlock, normalizeClass, unref, createVNode, withCtx, createBlock, createCommentVNode, normalizeStyle, createElementVNode, renderSlot, createSlots, normalizeProps, guardReactiveProps, 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 { valueToPx } from "../_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 useControlValue from "../_shared/utils/control.js";
|
8
8
|
import useScrollReach from "./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 _OverflowList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const _OverflowList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f1578bcc"]]);
|
5
5
|
export {
|
6
6
|
_OverflowList as default
|
7
7
|
};
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { defineComponent, useSlots, toRefs, ref, computed, watch, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, createCommentVNode, Fragment, renderList, createBlock, resolveDynamicComponent, renderSlot, createVNode, withCtx, createTextVNode, toDisplayString } from "vue";
|
2
|
+
import { unrefElement, useResizeObserver } from "../node_modules/@vueuse/core/index.js";
|
2
3
|
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
3
4
|
import { throttle, sleep, valueToPx } from "../_shared/utils/dom.js";
|
4
5
|
import "../_shared/utils/time.js";
|
5
|
-
import { findComponentsFromVnodes
|
6
|
+
import { findComponentsFromVnodes } from "../_shared/utils/vue-utils.js";
|
6
7
|
import "../Empty/index.js";
|
7
8
|
/* empty css */
|
8
|
-
import { useResizeObserver } from "../node_modules/@vueuse/core/index.js";
|
9
9
|
import Tag from "../Tag/index.js";
|
10
10
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
11
11
|
...{
|
@@ -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-
|
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,9 +1,9 @@
|
|
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 { sleep } from "../../_shared/utils/dom.js";
|
5
6
|
import "../../_shared/utils/time.js";
|
6
|
-
import { unrefElement } from "../../_shared/utils/vue-utils.js";
|
7
7
|
import "../../Empty/index.js";
|
8
8
|
/* empty css */
|
9
9
|
const TRIGGER_CONTEXT_KEY = "trigger-context";
|
@@ -1,9 +1,8 @@
|
|
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 { valueToPx, sleep } from "../../_shared/utils/dom.js";
|
5
5
|
import "../../_shared/utils/time.js";
|
6
|
-
import { unrefElement } from "../../_shared/utils/vue-utils.js";
|
7
6
|
import { getGlobalConfig } from "../../_shared/utils/global-config.js";
|
8
7
|
const useTriggerPosition = (params) => {
|
9
8
|
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) => {
|
package/es/_shared/utils/dom.js
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
import { watch } from "vue";
|
2
2
|
import { MEDICA_QUERY_QUERUES } from "../constants/index.js";
|
3
|
-
import { useMediaQuery } from "../../node_modules/@vueuse/core/index.js";
|
3
|
+
import { unrefElement, useMediaQuery } from "../../node_modules/@vueuse/core/index.js";
|
4
4
|
import { isNumber, isString, isObject, isUndefined } from "./is.js";
|
5
|
-
import { unrefElement } from "./vue-utils.js";
|
6
5
|
const isServerRendering = (() => {
|
7
6
|
try {
|
8
7
|
return !(typeof window !== "undefined" && document !== void 0);
|
@@ -1,12 +1,6 @@
|
|
1
|
-
import { VNode
|
1
|
+
import { VNode } from 'vue';
|
2
2
|
import { ObjectData, RenderContent } from '../type';
|
3
3
|
export declare const getSlotFunction: (param: RenderContent | undefined) => import('vue').RenderFunction | (() => string | ObjectData[]) | undefined;
|
4
4
|
export declare const isVifNode: (vnode: VNode | undefined | null) => boolean;
|
5
5
|
export declare const findFirstLegitChild: (node: VNode[] | undefined) => VNode | null;
|
6
6
|
export declare const findComponentsFromVnodes: (vnodes: VNode[], name: string) => ObjectData[];
|
7
|
-
export type VueInstance = ComponentPublicInstance;
|
8
|
-
export type MaybeElementRef<T extends MaybeElement = MaybeElement> = MaybeRef<T>;
|
9
|
-
export type MaybeComputedElementRef<T extends MaybeElement = MaybeElement> = MaybeRefOrGetter<T>;
|
10
|
-
export type MaybeElement = HTMLElement | SVGElement | VueInstance | undefined | null;
|
11
|
-
export type UnRefElementReturn<T extends MaybeElement = MaybeElement> = T extends VueInstance ? Exclude<MaybeElement, VueInstance> : T | undefined;
|
12
|
-
export declare function unrefElement<T extends MaybeElement>(elRef: MaybeComputedElementRef<T>): UnRefElementReturn<T>;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { isVNode, Fragment, Text, Comment,
|
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 @@ const 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
|
};
|