yc-design-vue 1.4.1 → 1.4.3
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/Breadcrumb/BreadcrumbSeparator.vue2.js +1 -1
- 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/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/hooks/useContext.d.ts +4 -4
- package/es/Progress/ProgressCircle.vue2.js +1 -1
- 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/IconExclamation.vue.js +1 -27
- package/es/_shared/icons/IconExclamation.vue2.js +27 -1
- package/es/_shared/icons/IconSeparator.vue.js +16 -1
- package/es/_shared/icons/IconSeparator.vue2.js +1 -16
- 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/Breadcrumb/BreadcrumbSeparator.vue2.js +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/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/hooks/useContext.d.ts +4 -4
- package/lib/Progress/ProgressCircle.vue2.js +1 -1
- 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/IconExclamation.vue.js +1 -1
- package/lib/_shared/icons/IconExclamation.vue2.js +1 -1
- package/lib/_shared/icons/IconSeparator.vue.js +1 -1
- package/lib/_shared/icons/IconSeparator.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
@@ -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,30 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import YcIcon from "../components/Icon.vue2.js";
|
3
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
4
|
-
__name: "IconExclamation",
|
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: "M23 9h2v21h-2z" }, null, -1),
|
10
|
-
createElementVNode("path", {
|
11
|
-
fill: "currentColor",
|
12
|
-
stroke: "none",
|
13
|
-
d: "M23 9h2v21h-2z"
|
14
|
-
}, null, -1),
|
15
|
-
createElementVNode("path", { d: "M23 37h2v2h-2z" }, null, -1),
|
16
|
-
createElementVNode("path", {
|
17
|
-
fill: "currentColor",
|
18
|
-
stroke: "none",
|
19
|
-
d: "M23 37h2v2h-2z"
|
20
|
-
}, null, -1)
|
21
|
-
])),
|
22
|
-
_: 1,
|
23
|
-
__: [0]
|
24
|
-
}, 16);
|
25
|
-
};
|
26
|
-
}
|
27
|
-
});
|
1
|
+
import _sfc_main from "./IconExclamation.vue2.js";
|
28
2
|
export {
|
29
3
|
_sfc_main as default
|
30
4
|
};
|
@@ -1,4 +1,30 @@
|
|
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: "IconExclamation",
|
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: "M23 9h2v21h-2z" }, null, -1),
|
10
|
+
createElementVNode("path", {
|
11
|
+
fill: "currentColor",
|
12
|
+
stroke: "none",
|
13
|
+
d: "M23 9h2v21h-2z"
|
14
|
+
}, null, -1),
|
15
|
+
createElementVNode("path", { d: "M23 37h2v2h-2z" }, null, -1),
|
16
|
+
createElementVNode("path", {
|
17
|
+
fill: "currentColor",
|
18
|
+
stroke: "none",
|
19
|
+
d: "M23 37h2v2h-2z"
|
20
|
+
}, null, -1)
|
21
|
+
])),
|
22
|
+
_: 1,
|
23
|
+
__: [0]
|
24
|
+
}, 16);
|
25
|
+
};
|
26
|
+
}
|
27
|
+
});
|
2
28
|
export {
|
3
29
|
_sfc_main as default
|
4
30
|
};
|
@@ -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: "IconSeparator",
|
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: "M29.506 6.502 18.493 41.498" }, 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
|
2
|
-
import YcIcon from "../components/Icon.vue2.js";
|
3
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
4
|
-
__name: "IconSeparator",
|
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: "M29.506 6.502 18.493 41.498" }, null, -1)
|
10
|
-
])),
|
11
|
-
_: 1,
|
12
|
-
__: [0]
|
13
|
-
}, 16);
|
14
|
-
};
|
15
|
-
}
|
16
|
-
});
|
1
|
+
import _sfc_main from "./IconSeparator.vue.js";
|
17
2
|
export {
|
18
3
|
_sfc_main as default
|
19
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
|
};
|