yc-design-vue 1.1.0 → 1.1.1
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/Dropdown/Dsubmenu.vue.js +1 -1
- package/es/Dropdown/Dsubmenu.vue2.js +1 -1
- package/es/Image/ImagePreviewToolbar.vue2.js +6 -6
- package/es/InputNumber/InputOperaBtn.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/Progress/ProgressCircle.vue2.js +1 -1
- 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 +2 -1
- package/es/Trigger/hooks/useTriggerVisible.js +2 -1
- package/es/Typography/TypographyBase.vue2.js +2 -2
- package/es/_shared/icons/IconCopy.vue.js +1 -16
- package/es/_shared/icons/IconCopy.vue2.js +16 -1
- package/es/_shared/icons/IconEdit.vue.js +1 -16
- package/es/_shared/icons/IconEdit.vue2.js +16 -1
- package/es/_shared/icons/IconExclamation.vue.js +1 -27
- package/es/_shared/icons/IconExclamation.vue2.js +27 -1
- package/es/_shared/icons/IconFullScreen.vue.js +1 -16
- package/es/_shared/icons/IconFullScreen.vue2.js +16 -1
- package/es/_shared/icons/IconMinus.vue.js +1 -16
- package/es/_shared/icons/IconMinus.vue2.js +16 -1
- package/es/_shared/icons/IconOriginSize.vue.js +1 -22
- package/es/_shared/icons/IconOriginSize.vue2.js +22 -1
- package/es/_shared/icons/IconRotateLeft.vue.js +1 -16
- package/es/_shared/icons/IconRotateLeft.vue2.js +16 -1
- package/es/_shared/icons/IconRotateRight.vue.js +1 -16
- package/es/_shared/icons/IconRotateRight.vue2.js +16 -1
- package/es/_shared/icons/IconZoomIn.vue.js +1 -16
- package/es/_shared/icons/IconZoomIn.vue2.js +16 -1
- package/es/_shared/icons/IconZoomOut.vue.js +1 -16
- package/es/_shared/icons/IconZoomOut.vue2.js +16 -1
- package/es/_shared/utils/dom.js +2 -1
- package/es/_shared/utils/vue-utils.d.ts +7 -1
- package/es/_shared/utils/vue-utils.js +7 -2
- package/es/style.css +1 -1
- package/lib/Dropdown/Dsubmenu.vue.js +1 -1
- package/lib/Dropdown/Dsubmenu.vue2.js +1 -1
- package/lib/Image/ImagePreviewToolbar.vue2.js +1 -1
- package/lib/InputNumber/InputOperaBtn.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/Progress/ProgressCircle.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/Typography/TypographyBase.vue2.js +1 -1
- package/lib/_shared/icons/IconCopy.vue.js +1 -1
- package/lib/_shared/icons/IconCopy.vue2.js +1 -1
- package/lib/_shared/icons/IconEdit.vue.js +1 -1
- package/lib/_shared/icons/IconEdit.vue2.js +1 -1
- package/lib/_shared/icons/IconExclamation.vue.js +1 -1
- package/lib/_shared/icons/IconExclamation.vue2.js +1 -1
- package/lib/_shared/icons/IconFullScreen.vue.js +1 -1
- package/lib/_shared/icons/IconFullScreen.vue2.js +1 -1
- package/lib/_shared/icons/IconMinus.vue.js +1 -1
- package/lib/_shared/icons/IconMinus.vue2.js +1 -1
- package/lib/_shared/icons/IconOriginSize.vue.js +1 -1
- package/lib/_shared/icons/IconOriginSize.vue2.js +1 -1
- package/lib/_shared/icons/IconRotateLeft.vue.js +1 -1
- package/lib/_shared/icons/IconRotateLeft.vue2.js +1 -1
- package/lib/_shared/icons/IconRotateRight.vue.js +1 -1
- package/lib/_shared/icons/IconRotateRight.vue2.js +1 -1
- package/lib/_shared/icons/IconZoomIn.vue.js +1 -1
- package/lib/_shared/icons/IconZoomIn.vue2.js +1 -1
- package/lib/_shared/icons/IconZoomOut.vue.js +1 -1
- package/lib/_shared/icons/IconZoomOut.vue2.js +1 -1
- package/lib/_shared/utils/dom.js +1 -1
- package/lib/_shared/utils/vue-utils.d.ts +7 -1
- package/lib/_shared/utils/vue-utils.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
@@ -1,4 +1,19 @@
|
|
1
|
-
import
|
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: "IconZoomOut",
|
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: "M32.607 32.607A14.953 14.953 0 0 0 37 22c0-8.284-6.716-15-15-15-8.284 0-15 6.716-15 15 0 8.284 6.716 15 15 15 4.142 0 7.892-1.679 10.607-4.393Zm0 0L41.5 41.5M29 22H15" }, null, -1)
|
10
|
+
])),
|
11
|
+
_: 1,
|
12
|
+
__: [0]
|
13
|
+
}, 16);
|
14
|
+
};
|
15
|
+
}
|
16
|
+
});
|
2
17
|
export {
|
3
18
|
_sfc_main as default
|
4
19
|
};
|
package/es/_shared/utils/dom.js
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
import { watch } from "vue";
|
2
2
|
import { MEDICA_QUERY_QUERUES } from "../constants/index.js";
|
3
|
-
import {
|
3
|
+
import { 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";
|
5
6
|
const isServerRendering = (() => {
|
6
7
|
try {
|
7
8
|
return !(typeof window !== "undefined" && document !== void 0);
|
@@ -1,6 +1,12 @@
|
|
1
|
-
import { VNode } from 'vue';
|
1
|
+
import { VNode, ComponentPublicInstance, MaybeRef, MaybeRefOrGetter } 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, h } from "vue";
|
1
|
+
import { isVNode, Fragment, Text, Comment, toValue, h } from "vue";
|
2
2
|
import { isObject, isFunction } from "./is.js";
|
3
3
|
const getSlotFunction = (param) => {
|
4
4
|
if (param) {
|
@@ -67,8 +67,13 @@ 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
|
+
}
|
70
74
|
export {
|
71
75
|
findComponentsFromVnodes,
|
72
76
|
findFirstLegitChild,
|
73
|
-
getSlotFunction
|
77
|
+
getSlotFunction,
|
78
|
+
unrefElement
|
74
79
|
};
|