yc-design-vue 1.4.0 → 1.4.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/Calendar/CalendarMonth.vue.d.ts +3 -3
- package/es/Calendar/CalendarYear.vue.d.ts +3 -3
- package/es/Carousel/hooks/useContext.d.ts +1 -1
- package/es/Cascader/Cascader.vue.d.ts +13 -1
- package/es/Cascader/hooks/useContext.d.ts +16 -4
- package/es/Cascader/index.d.ts +13 -1
- package/es/ColorPicker/hooks/useContext.d.ts +2 -2
- package/es/ConfigProvider/index.d.ts +0 -3
- package/es/ConfigProvider/index.vue.d.ts +0 -1
- package/es/ConfigProvider/index.vue.js +2 -11
- package/es/ConfigProvider/type.d.ts +0 -1
- package/es/Descriptions/hooks/useContext.d.ts +1 -1
- package/es/Dropdown/hooks/useContext.d.ts +1 -1
- package/es/Image/hooks/useContext.d.ts +2 -2
- package/es/Input/InputSuffix.vue2.js +2 -2
- package/es/Input/hooks/useLimitedInput.d.ts +2 -2
- package/es/InputNumber/InputNumber.vue.js +1 -1
- package/es/InputTag/index.vue.js +1 -1
- package/es/Layout/LayoutSider.vue.js +1 -1
- package/es/Layout/LayoutSider.vue2.js +7 -14
- package/es/Layout/hooks/useSiderContext.d.ts +15 -0
- package/es/Layout/hooks/useSiderContext.js +41 -0
- package/es/Menu/Menu.vue.js +1 -1
- package/es/Menu/Menu.vue2.js +4 -4
- package/es/Menu/hooks/useContext.d.ts +2 -1
- package/es/Menu/hooks/useContext.js +7 -1
- package/es/Pagination/Pagination.vue.js +1 -1
- package/es/Pagination/Pagination.vue2.js +1 -1
- package/es/Pagination/PaginationItem.vue.js +1 -1
- package/es/Pagination/PaginationItem.vue2.js +2 -2
- package/es/Pagination/hooks/useContext.d.ts +4 -4
- package/es/Radio/Radio.vue.js +1 -1
- package/es/Select/hooks/useContext.d.ts +3 -3
- package/es/Slider/hooks/useContext.d.ts +3 -3
- package/es/Slider/hooks/useContext.js +6 -4
- package/es/Tabs/hooks/useContext.d.ts +2 -2
- package/es/TimePicker/TimePicker.vue.js +1 -1
- package/es/TimePicker/hooks/useContext.d.ts +3 -3
- package/es/Transfer/Transfer.vue.js +1 -1
- package/es/Transfer/hooks/useContext.d.ts +4 -4
- package/es/Trigger/hooks/useTriggerVisible.d.ts +1 -1
- package/es/_shared/icons/IconEyeClose.vue.js +20 -1
- package/es/_shared/icons/IconEyeClose.vue2.js +1 -20
- package/es/_shared/icons/IconEyeOpen.vue.js +17 -1
- package/es/_shared/icons/IconEyeOpen.vue2.js +1 -17
- package/es/_shared/utils/control.d.ts +1 -1
- package/es/_shared/utils/global-config.d.ts +4 -8
- package/es/_shared/utils/global-config.js +1 -5
- package/es/style.css +1 -1
- package/lib/Calendar/CalendarMonth.vue.d.ts +3 -3
- package/lib/Calendar/CalendarYear.vue.d.ts +3 -3
- package/lib/Carousel/hooks/useContext.d.ts +1 -1
- package/lib/Cascader/Cascader.vue.d.ts +13 -1
- package/lib/Cascader/hooks/useContext.d.ts +16 -4
- package/lib/Cascader/index.d.ts +13 -1
- package/lib/ColorPicker/hooks/useContext.d.ts +2 -2
- package/lib/ConfigProvider/index.d.ts +0 -3
- package/lib/ConfigProvider/index.vue.d.ts +0 -1
- package/lib/ConfigProvider/index.vue.js +1 -1
- package/lib/ConfigProvider/type.d.ts +0 -1
- package/lib/Descriptions/hooks/useContext.d.ts +1 -1
- package/lib/Dropdown/hooks/useContext.d.ts +1 -1
- package/lib/Image/hooks/useContext.d.ts +2 -2
- package/lib/Input/InputSuffix.vue2.js +1 -1
- package/lib/Input/hooks/useLimitedInput.d.ts +2 -2
- package/lib/InputNumber/InputNumber.vue.js +1 -1
- package/lib/InputTag/index.vue.js +1 -1
- package/lib/Layout/LayoutSider.vue.js +1 -1
- package/lib/Layout/LayoutSider.vue2.js +1 -1
- package/lib/Layout/hooks/useSiderContext.d.ts +15 -0
- package/lib/Layout/hooks/useSiderContext.js +1 -0
- package/lib/Menu/Menu.vue.js +1 -1
- package/lib/Menu/Menu.vue2.js +1 -1
- package/lib/Menu/hooks/useContext.d.ts +2 -1
- package/lib/Menu/hooks/useContext.js +1 -1
- package/lib/Pagination/Pagination.vue.js +1 -1
- package/lib/Pagination/Pagination.vue2.js +1 -1
- package/lib/Pagination/PaginationItem.vue.js +1 -1
- package/lib/Pagination/PaginationItem.vue2.js +1 -1
- package/lib/Pagination/hooks/useContext.d.ts +4 -4
- package/lib/Radio/Radio.vue.js +1 -1
- package/lib/Select/hooks/useContext.d.ts +3 -3
- package/lib/Slider/hooks/useContext.d.ts +3 -3
- package/lib/Slider/hooks/useContext.js +1 -1
- package/lib/Tabs/hooks/useContext.d.ts +2 -2
- package/lib/TimePicker/TimePicker.vue.js +1 -1
- package/lib/TimePicker/hooks/useContext.d.ts +3 -3
- package/lib/Transfer/Transfer.vue.js +1 -1
- package/lib/Transfer/hooks/useContext.d.ts +4 -4
- package/lib/Trigger/hooks/useTriggerVisible.d.ts +1 -1
- package/lib/_shared/icons/IconEyeClose.vue.js +1 -1
- package/lib/_shared/icons/IconEyeClose.vue2.js +1 -1
- package/lib/_shared/icons/IconEyeOpen.vue.js +1 -1
- package/lib/_shared/icons/IconEyeOpen.vue2.js +1 -1
- package/lib/_shared/utils/control.d.ts +1 -1
- package/lib/_shared/utils/global-config.d.ts +4 -8
- package/lib/_shared/utils/global-config.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -2
@@ -22,8 +22,8 @@ export type PaneNode = {
|
|
22
22
|
} & TabPaneProps;
|
23
23
|
declare const _default: () => {
|
24
24
|
provide: (props: Props, emits: TabsEmits, listRef: Ref<HTMLDivElement | undefined>) => {
|
25
|
-
computedActiveKey: import('vue').WritableComputedRef<
|
26
|
-
size: import('vue').ComputedRef<
|
25
|
+
computedActiveKey: import('vue').WritableComputedRef<TabKey, TabKey>;
|
26
|
+
size: import('vue').ComputedRef<any>;
|
27
27
|
direction: import('vue').ComputedRef<Direction>;
|
28
28
|
position: Ref<TabPositon, TabPositon>;
|
29
29
|
autoSwitch: Ref<boolean, boolean>;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _sfc_main from "./TimePicker.vue2.js";
|
2
2
|
/* empty css */
|
3
3
|
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
4
|
-
const _TimePicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const _TimePicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e692f4f9"]]);
|
5
5
|
export {
|
6
6
|
_TimePicker as default
|
7
7
|
};
|
@@ -26,9 +26,9 @@ type TimePickerCell = {
|
|
26
26
|
};
|
27
27
|
declare const _default: () => {
|
28
28
|
provide: (props: Props, emits: TimePickerEmits) => {
|
29
|
-
computedValue: import('vue').WritableComputedRef<
|
30
|
-
computedVisible: import('vue').WritableComputedRef<
|
31
|
-
showClearBtn: import('vue').ComputedRef<
|
29
|
+
computedValue: import('vue').WritableComputedRef<TimePickerValue, TimePickerValue>;
|
30
|
+
computedVisible: import('vue').WritableComputedRef<boolean, boolean>;
|
31
|
+
showClearBtn: import('vue').ComputedRef<boolean | "" | 0>;
|
32
32
|
curValue: Ref<number[], number[]>;
|
33
33
|
readonly: Ref<boolean, boolean>;
|
34
34
|
disabled: Ref<boolean, boolean>;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _sfc_main from "./Transfer.vue2.js";
|
2
2
|
/* empty css */
|
3
3
|
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
4
|
-
const _Transfer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const _Transfer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3c303641"]]);
|
5
5
|
export {
|
6
6
|
_Transfer as default
|
7
7
|
};
|
@@ -22,10 +22,10 @@ type TransferContext = {
|
|
22
22
|
};
|
23
23
|
declare const _default: () => {
|
24
24
|
provide: (props: Props, emits: TransferEmits) => {
|
25
|
-
computedValue: import('vue').WritableComputedRef<
|
26
|
-
targetChecked: import('vue').ComputedRef<
|
27
|
-
computedSelected: import('vue').WritableComputedRef<
|
28
|
-
sourceChecked: import('vue').ComputedRef<
|
25
|
+
computedValue: import('vue').WritableComputedRef<TransferItemValue[], TransferItemValue[]>;
|
26
|
+
targetChecked: import('vue').ComputedRef<TransferItemValue[]>;
|
27
|
+
computedSelected: import('vue').WritableComputedRef<TransferItemValue[], TransferItemValue[]>;
|
28
|
+
sourceChecked: import('vue').ComputedRef<TransferItemValue[]>;
|
29
29
|
};
|
30
30
|
inject: () => TransferContext;
|
31
31
|
};
|
@@ -9,7 +9,7 @@ declare const _default: (params: {
|
|
9
9
|
}) => {
|
10
10
|
mouseX: Ref<number, number>;
|
11
11
|
mouseY: Ref<number, number>;
|
12
|
-
computedVisible: import('vue').WritableComputedRef<
|
12
|
+
computedVisible: import('vue').WritableComputedRef<boolean, boolean>;
|
13
13
|
handleClickEvent: (e: MouseEvent, type: "click" | "contextMenu") => void;
|
14
14
|
handleMouseenter: () => void;
|
15
15
|
handleMouseleave: (e: MouseEvent) => void;
|
@@ -1,4 +1,23 @@
|
|
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: "IconEyeClose",
|
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", {
|
10
|
+
d: "M24 37c6.627 0 12.627-4.333 18-13-5.373-8.667-11.373-13-18-13-6.627 0-12.627 4.333-18 13 5.373 8.667 11.373 13 18 13Z",
|
11
|
+
"clip-rule": "evenodd"
|
12
|
+
}, null, -1),
|
13
|
+
createElementVNode("path", { d: "M29 24a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z" }, null, -1)
|
14
|
+
])),
|
15
|
+
_: 1,
|
16
|
+
__: [0]
|
17
|
+
}, 16);
|
18
|
+
};
|
19
|
+
}
|
20
|
+
});
|
2
21
|
export {
|
3
22
|
_sfc_main as default
|
4
23
|
};
|
@@ -1,23 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import YcIcon from "../components/Icon.vue2.js";
|
3
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
4
|
-
__name: "IconEyeClose",
|
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", {
|
10
|
-
d: "M24 37c6.627 0 12.627-4.333 18-13-5.373-8.667-11.373-13-18-13-6.627 0-12.627 4.333-18 13 5.373 8.667 11.373 13 18 13Z",
|
11
|
-
"clip-rule": "evenodd"
|
12
|
-
}, null, -1),
|
13
|
-
createElementVNode("path", { d: "M29 24a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z" }, null, -1)
|
14
|
-
])),
|
15
|
-
_: 1,
|
16
|
-
__: [0]
|
17
|
-
}, 16);
|
18
|
-
};
|
19
|
-
}
|
20
|
-
});
|
1
|
+
import _sfc_main from "./IconEyeClose.vue.js";
|
21
2
|
export {
|
22
3
|
_sfc_main as default
|
23
4
|
};
|
@@ -1,4 +1,20 @@
|
|
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: "IconEyeOpen",
|
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: "M14 14.5c-2.69 2-5.415 5.33-8 9.5 5.373 8.667 11.373 13 18 13 3.325 0 6.491-1.09 9.5-3.271M17.463 12.5C19 11 21.75 11 24 11c6.627 0 12.627 4.333 18 13-1.766 2.848-3.599 5.228-5.5 7.14" }, null, -1),
|
10
|
+
createElementVNode("path", { d: "M29 24a5 5 0 1 1-10 0 5 5 0 0 1 10 0ZM6.852 7.103l34.294 34.294" }, null, -1)
|
11
|
+
])),
|
12
|
+
_: 1,
|
13
|
+
__: [0]
|
14
|
+
}, 16);
|
15
|
+
};
|
16
|
+
}
|
17
|
+
});
|
2
18
|
export {
|
3
19
|
_sfc_main as default
|
4
20
|
};
|
@@ -1,20 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import YcIcon from "../components/Icon.vue2.js";
|
3
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
4
|
-
__name: "IconEyeOpen",
|
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: "M14 14.5c-2.69 2-5.415 5.33-8 9.5 5.373 8.667 11.373 13 18 13 3.325 0 6.491-1.09 9.5-3.271M17.463 12.5C19 11 21.75 11 24 11c6.627 0 12.627 4.333 18 13-1.766 2.848-3.599 5.228-5.5 7.14" }, null, -1),
|
10
|
-
createElementVNode("path", { d: "M29 24a5 5 0 1 1-10 0 5 5 0 0 1 10 0ZM6.852 7.103l34.294 34.294" }, null, -1)
|
11
|
-
])),
|
12
|
-
_: 1,
|
13
|
-
__: [0]
|
14
|
-
}, 16);
|
15
|
-
};
|
16
|
-
}
|
17
|
-
});
|
1
|
+
import _sfc_main from "./IconEyeOpen.vue.js";
|
18
2
|
export {
|
19
3
|
_sfc_main as default
|
20
4
|
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Ref } from 'vue';
|
2
2
|
type OnSet = (...args: any) => any;
|
3
3
|
type OnGet = (...args: any) => any;
|
4
|
-
declare const _default: <T>(modelValue: Ref<T | undefined>, defaultValue: T, onSet?: OnSet, onGet?: OnGet) => import('vue').WritableComputedRef<
|
4
|
+
declare const _default: <T>(modelValue: Ref<T | undefined>, defaultValue: T, onSet?: OnSet, onGet?: OnGet) => import('vue').WritableComputedRef<T, T>;
|
5
5
|
export default _default;
|
@@ -8,18 +8,15 @@ export interface ConfigProviderProvide {
|
|
8
8
|
popupContainer: Ref<PopupContainer>;
|
9
9
|
updateAtScroll: Ref<boolean>;
|
10
10
|
scrollToClose: Ref<boolean>;
|
11
|
-
exchangeTime: Ref<boolean>;
|
12
11
|
slots: Partial<ConfigconfigSlots>;
|
13
12
|
}
|
14
|
-
type ValueType = string | number | boolean | PopupContainer | undefined;
|
15
13
|
export declare const getGlobalConfig: (props?: Props) => {
|
16
14
|
slots: Partial<ConfigconfigSlots>;
|
17
15
|
zIndex: Ref<number, number>;
|
18
|
-
size: import('vue').ComputedRef<
|
19
|
-
updateAtScroll: import('vue').ComputedRef<
|
20
|
-
scrollToClose: import('vue').ComputedRef<
|
21
|
-
popupContainer: import('vue').ComputedRef<
|
22
|
-
exchangeTime: import('vue').ComputedRef<ValueType>;
|
16
|
+
size: import('vue').ComputedRef<any>;
|
17
|
+
updateAtScroll: import('vue').ComputedRef<any>;
|
18
|
+
scrollToClose: import('vue').ComputedRef<any>;
|
19
|
+
popupContainer: import('vue').ComputedRef<any>;
|
23
20
|
renderEmpty: (name: EmptyComponent) => VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
24
21
|
[key: string]: any;
|
25
22
|
}> | (() => VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
@@ -29,4 +26,3 @@ export declare const getGlobalConfig: (props?: Props) => {
|
|
29
26
|
[key: string]: any;
|
30
27
|
}> | (() => VNode[]);
|
31
28
|
};
|
32
|
-
export {};
|
@@ -9,8 +9,7 @@ import _sfc_main from "../icons/IconLoading.vue.js";
|
|
9
9
|
const CONFIG_PROVIDER_PROVIDE_KEY = "config-props";
|
10
10
|
const getVar = (value, _value) => {
|
11
11
|
return computed(() => {
|
12
|
-
|
13
|
-
return isUndefined(value == null ? void 0 : value.value) || isString(value == null ? void 0 : value.value) && !((_a = value == null ? void 0 : value.value) == null ? void 0 : _a.length) ? _value.value : value.value;
|
12
|
+
return isUndefined(value == null ? void 0 : value.value) || isString(value.value) && !value.value.length ? _value.value : value.value;
|
14
13
|
});
|
15
14
|
};
|
16
15
|
const getGlobalConfig = (props = {}) => {
|
@@ -20,14 +19,12 @@ const getGlobalConfig = (props = {}) => {
|
|
20
19
|
size: _size,
|
21
20
|
updateAtScroll: _updateAtScroll,
|
22
21
|
scrollToClose: _scrollToClose,
|
23
|
-
exchangeTime: _exchangeTime,
|
24
22
|
popupContainer: _popupContainer
|
25
23
|
} = inject(CONFIG_PROVIDER_PROVIDE_KEY, {
|
26
24
|
zIndex: ref(1001),
|
27
25
|
size: ref("medium"),
|
28
26
|
updateAtScroll: ref(true),
|
29
27
|
scrollToClose: ref(false),
|
30
|
-
exchangeTime: ref(true),
|
31
28
|
popupContainer: ref("body"),
|
32
29
|
slots: {}
|
33
30
|
});
|
@@ -50,7 +47,6 @@ const getGlobalConfig = (props = {}) => {
|
|
50
47
|
updateAtScroll: getVar(updateAtScroll, _updateAtScroll),
|
51
48
|
scrollToClose: getVar(scrollToClose, _scrollToClose),
|
52
49
|
popupContainer: getVar(popupContainer, _popupContainer),
|
53
|
-
exchangeTime: getVar(exchangeTime, _exchangeTime),
|
54
50
|
renderEmpty,
|
55
51
|
renderLoading
|
56
52
|
};
|