yc-design-vue 1.9.5 → 1.9.6
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/Alert/index.vue.js +1 -1
- package/es/AutoComplete/index.d.ts +3 -3
- package/es/AutoComplete/index.vue.d.ts +6 -6
- package/es/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
- package/es/Calendar/Calendar.vue.js +1 -1
- package/es/Cascader/CascaderIcon.vue.js +1 -1
- package/es/Checkbox/Checkbox.vue.js +1 -1
- package/es/Collapse/CollapseItem.vue.js +2 -2
- package/es/ConfigProvider/index.d.ts +0 -6
- package/es/ConfigProvider/index.vue.d.ts +0 -2
- package/es/ConfigProvider/index.vue.js +3 -8
- package/es/ConfigProvider/type.d.ts +0 -2
- package/es/Drawer/Drawer.vue.js +4 -5
- package/es/Dropdown/Doption.vue.js +0 -3
- package/es/Dropdown/Dropdown.vue.js +1 -3
- package/es/Dropdown/Dsubmenu.vue.d.ts +6 -6
- package/es/Dropdown/Dsubmenu.vue.js +7 -10
- package/es/Dropdown/index.css +1 -1
- package/es/Dropdown/index.d.ts +3 -3
- package/es/Image/ImagePreview.vue.js +3 -4
- package/es/Input/Input.vue.js +1 -1
- package/es/Input/InputSuffix.vue.js +1 -1
- package/es/InputTag/index.vue.js +1 -1
- package/es/Layout/index.css +1 -1
- package/es/Mention/index.d.ts +3 -3
- package/es/Mention/index.vue.d.ts +6 -6
- package/es/Menu/MenuEllipsis.vue.js +2 -1
- package/es/Menu/MenuItem.vue.js +2 -1
- package/es/Menu/SubMenu.vue.js +2 -2
- package/es/Menu/hooks/useContext.js +2 -4
- package/es/Menu/index.css +1 -1
- package/es/Message/Message.vue.js +1 -1
- package/es/Modal/Modal.vue.js +4 -5
- package/es/Notification/Notification.vue.js +1 -1
- package/es/PageHeader/index.vue.js +1 -1
- package/es/Popconfirm/index.d.ts +3 -3
- package/es/Popconfirm/index.vue.d.ts +6 -6
- package/es/Radio/Radio.vue.js +1 -1
- package/es/Select/Select.vue.d.ts +6 -6
- package/es/Select/SelectIcon.vue.js +1 -1
- package/es/Select/index.d.ts +3 -3
- package/es/Tabs/TabButton.vue.js +1 -1
- package/es/Tag/index.vue.js +1 -1
- package/es/Textarea/index.vue.js +1 -1
- package/es/TimePicker/TimePicker.vue.js +1 -1
- package/es/Transfer/TransferPanel.vue.js +3 -3
- package/es/Trigger/hooks/useTriggerPosition.js +2 -1
- package/es/Trigger/hooks/useTriggerVisible.js +1 -2
- package/es/Trigger/index.css +1 -1
- package/es/Trigger/index.d.ts +3 -3
- package/es/Trigger/index.vue.d.ts +1 -1
- package/es/Trigger/index.vue.js +6 -7
- package/es/Watermark/index.d.ts +3 -3
- package/es/Watermark/index.vue.d.ts +1 -1
- package/es/_shared/components/ExpandTransition.vue3.js +2 -2
- package/es/_shared/icons/IconDelete.vue.js +17 -1
- package/es/_shared/icons/IconDelete.vue2.js +1 -17
- package/es/_shared/icons/IconSearch.vue.js +17 -1
- package/es/_shared/icons/IconSearch.vue2.js +1 -17
- package/es/_shared/icons/IconSeparator.vue.js +17 -1
- package/es/_shared/icons/IconSeparator.vue2.js +1 -17
- package/es/_shared/utils/global-config.d.ts +1 -6
- package/es/_shared/utils/global-config.js +7 -10
- package/es/_shared/utils/locale.js +1 -1
- package/es/index.d.ts +3 -3
- package/es/style.css +1 -1
- package/lib/Alert/index.vue.js +1 -1
- package/lib/AutoComplete/index.d.ts +3 -3
- package/lib/AutoComplete/index.vue.d.ts +6 -6
- package/lib/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
- package/lib/Calendar/Calendar.vue.js +1 -1
- package/lib/Cascader/CascaderIcon.vue.js +1 -1
- package/lib/Checkbox/Checkbox.vue.js +1 -1
- package/lib/Collapse/CollapseItem.vue.js +1 -1
- package/lib/ConfigProvider/index.d.ts +0 -6
- package/lib/ConfigProvider/index.vue.d.ts +0 -2
- package/lib/ConfigProvider/index.vue.js +1 -1
- package/lib/ConfigProvider/type.d.ts +0 -2
- package/lib/Drawer/Drawer.vue.js +1 -1
- package/lib/Dropdown/Doption.vue.js +1 -1
- package/lib/Dropdown/Dropdown.vue.js +1 -1
- package/lib/Dropdown/Dsubmenu.vue.d.ts +6 -6
- package/lib/Dropdown/Dsubmenu.vue.js +1 -1
- package/lib/Dropdown/index.css +1 -1
- package/lib/Dropdown/index.d.ts +3 -3
- package/lib/Image/ImagePreview.vue.js +1 -1
- package/lib/Input/Input.vue.js +1 -1
- package/lib/Input/InputSuffix.vue.js +1 -1
- package/lib/InputTag/index.vue.js +1 -1
- package/lib/Layout/index.css +1 -1
- package/lib/Mention/index.d.ts +3 -3
- package/lib/Mention/index.vue.d.ts +6 -6
- package/lib/Menu/MenuEllipsis.vue.js +1 -1
- package/lib/Menu/MenuItem.vue.js +1 -1
- package/lib/Menu/SubMenu.vue.js +1 -1
- package/lib/Menu/hooks/useContext.js +1 -1
- package/lib/Menu/index.css +1 -1
- package/lib/Message/Message.vue.js +1 -1
- package/lib/Modal/Modal.vue.js +1 -1
- package/lib/Notification/Notification.vue.js +1 -1
- package/lib/PageHeader/index.vue.js +1 -1
- package/lib/Popconfirm/index.d.ts +3 -3
- package/lib/Popconfirm/index.vue.d.ts +6 -6
- package/lib/Radio/Radio.vue.js +1 -1
- package/lib/Select/Select.vue.d.ts +6 -6
- package/lib/Select/SelectIcon.vue.js +1 -1
- package/lib/Select/index.d.ts +3 -3
- package/lib/Tabs/TabButton.vue.js +1 -1
- package/lib/Tag/index.vue.js +1 -1
- package/lib/Textarea/index.vue.js +1 -1
- package/lib/TimePicker/TimePicker.vue.js +1 -1
- package/lib/Transfer/TransferPanel.vue.js +1 -1
- package/lib/Trigger/hooks/useTriggerPosition.js +1 -1
- package/lib/Trigger/hooks/useTriggerVisible.js +1 -1
- package/lib/Trigger/index.css +1 -1
- package/lib/Trigger/index.d.ts +3 -3
- package/lib/Trigger/index.vue.d.ts +1 -1
- package/lib/Trigger/index.vue.js +1 -1
- package/lib/Watermark/index.d.ts +3 -3
- package/lib/Watermark/index.vue.d.ts +1 -1
- package/lib/_shared/components/ExpandTransition.vue3.js +1 -1
- package/lib/_shared/icons/IconDelete.vue.js +1 -1
- package/lib/_shared/icons/IconDelete.vue2.js +1 -1
- package/lib/_shared/icons/IconSearch.vue.js +1 -1
- package/lib/_shared/icons/IconSearch.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/global-config.d.ts +1 -6
- package/lib/_shared/utils/global-config.js +1 -1
- package/lib/_shared/utils/locale.js +1 -1
- package/lib/index.d.ts +3 -3
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/es/Layout/hooks/useTheme.d.ts +0 -4
- package/es/Layout/hooks/useTheme.js +0 -33
- package/lib/Layout/hooks/useTheme.d.ts +0 -4
- package/lib/Layout/hooks/useTheme.js +0 -1
- /package/es/_shared/components/{ExpandTransition.vue2.js → ExpandTransition.vue.js} +0 -0
- /package/es/{public → src/lang}/lang-es/zh-cn.js +0 -0
- /package/lib/_shared/components/{ExpandTransition.vue2.js → ExpandTransition.vue.js} +0 -0
- /package/lib/{public → src/lang}/lang-es/zh-cn.js +0 -0
package/es/Alert/index.vue.js
CHANGED
@@ -257,6 +257,7 @@ declare const AutoComplete: {
|
|
257
257
|
focusDelay: number;
|
258
258
|
disabled: boolean;
|
259
259
|
scrollToCloseDistance: number;
|
260
|
+
scrollToClose: boolean;
|
260
261
|
autoSetPosition: boolean;
|
261
262
|
alignPoint: boolean;
|
262
263
|
position: import('..').TriggerPostion;
|
@@ -277,7 +278,6 @@ declare const AutoComplete: {
|
|
277
278
|
autoFitPosition: boolean;
|
278
279
|
updateAtScroll: boolean;
|
279
280
|
preventFocus: boolean;
|
280
|
-
scrollToClose: boolean;
|
281
281
|
needTransformOrigin: boolean;
|
282
282
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
283
283
|
beforeCreate?: (() => void) | (() => void)[];
|
@@ -311,6 +311,7 @@ declare const AutoComplete: {
|
|
311
311
|
focusDelay: number;
|
312
312
|
disabled: boolean;
|
313
313
|
scrollToCloseDistance: number;
|
314
|
+
scrollToClose: boolean;
|
314
315
|
autoSetPosition: boolean;
|
315
316
|
alignPoint: boolean;
|
316
317
|
position: import('..').TriggerPostion;
|
@@ -331,14 +332,13 @@ declare const AutoComplete: {
|
|
331
332
|
autoFitPosition: boolean;
|
332
333
|
updateAtScroll: boolean;
|
333
334
|
preventFocus: boolean;
|
334
|
-
scrollToClose: boolean;
|
335
335
|
needTransformOrigin: boolean;
|
336
336
|
}> & Omit<Readonly<import('..').TriggerProps> & Readonly<{
|
337
337
|
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
338
338
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
339
339
|
onShow?: (() => any) | undefined;
|
340
340
|
onHide?: (() => any) | undefined;
|
341
|
-
}>, "show" | "hide" | ("trigger" | "mouseEnterDelay" | "popupVisible" | "defaultPopupVisible" | "clickToClose" | "blurToClose" | "clickOutsideToClose" | "mouseLeaveDelay" | "focusDelay" | "disabled" | "scrollToCloseDistance" | "autoSetPosition" | "alignPoint" | "position" | "popupOffset" | "popupTranslate" | "showArrow" | "unmountOnClose" | "contentClass" | "contentStyle" | "arrowClass" | "arrowStyle" | "animationName" | "duration" | "autoFitPopupWidth" | "autoFitPopupMinWidth" | "popupContainer" | "renderToBody" | "autoFitPosition" | "updateAtScroll" | "preventFocus" | "
|
341
|
+
}>, "show" | "hide" | ("trigger" | "mouseEnterDelay" | "popupVisible" | "defaultPopupVisible" | "clickToClose" | "blurToClose" | "clickOutsideToClose" | "mouseLeaveDelay" | "focusDelay" | "disabled" | "scrollToCloseDistance" | "scrollToClose" | "autoSetPosition" | "alignPoint" | "position" | "popupOffset" | "popupTranslate" | "showArrow" | "unmountOnClose" | "contentClass" | "contentStyle" | "arrowClass" | "arrowStyle" | "animationName" | "duration" | "autoFitPopupWidth" | "autoFitPopupMinWidth" | "popupContainer" | "renderToBody" | "autoFitPosition" | "updateAtScroll" | "preventFocus" | "needTransformOrigin") | "updatePosition"> & import('vue').ShallowUnwrapRef<{
|
342
342
|
hide(): void;
|
343
343
|
show(): void;
|
344
344
|
updatePosition(x: number, y: number): void;
|
@@ -215,6 +215,7 @@ declare function __VLS_template(): {
|
|
215
215
|
focusDelay: number;
|
216
216
|
disabled: boolean;
|
217
217
|
scrollToCloseDistance: number;
|
218
|
+
scrollToClose: boolean;
|
218
219
|
autoSetPosition: boolean;
|
219
220
|
alignPoint: boolean;
|
220
221
|
position: import('..').TriggerPostion;
|
@@ -235,7 +236,6 @@ declare function __VLS_template(): {
|
|
235
236
|
autoFitPosition: boolean;
|
236
237
|
updateAtScroll: boolean;
|
237
238
|
preventFocus: boolean;
|
238
|
-
scrollToClose: boolean;
|
239
239
|
needTransformOrigin: boolean;
|
240
240
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
241
241
|
beforeCreate?: (() => void) | (() => void)[];
|
@@ -269,6 +269,7 @@ declare function __VLS_template(): {
|
|
269
269
|
focusDelay: number;
|
270
270
|
disabled: boolean;
|
271
271
|
scrollToCloseDistance: number;
|
272
|
+
scrollToClose: boolean;
|
272
273
|
autoSetPosition: boolean;
|
273
274
|
alignPoint: boolean;
|
274
275
|
position: import('..').TriggerPostion;
|
@@ -289,14 +290,13 @@ declare function __VLS_template(): {
|
|
289
290
|
autoFitPosition: boolean;
|
290
291
|
updateAtScroll: boolean;
|
291
292
|
preventFocus: boolean;
|
292
|
-
scrollToClose: boolean;
|
293
293
|
needTransformOrigin: boolean;
|
294
294
|
}> & Omit<Readonly<import('..').TriggerProps> & Readonly<{
|
295
295
|
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
296
296
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
297
297
|
onShow?: (() => any) | undefined;
|
298
298
|
onHide?: (() => any) | undefined;
|
299
|
-
}>, "show" | "hide" | ("trigger" | "mouseEnterDelay" | "popupVisible" | "defaultPopupVisible" | "clickToClose" | "blurToClose" | "clickOutsideToClose" | "mouseLeaveDelay" | "focusDelay" | "disabled" | "scrollToCloseDistance" | "autoSetPosition" | "alignPoint" | "position" | "popupOffset" | "popupTranslate" | "showArrow" | "unmountOnClose" | "contentClass" | "contentStyle" | "arrowClass" | "arrowStyle" | "animationName" | "duration" | "autoFitPopupWidth" | "autoFitPopupMinWidth" | "popupContainer" | "renderToBody" | "autoFitPosition" | "updateAtScroll" | "preventFocus" | "
|
299
|
+
}>, "show" | "hide" | ("trigger" | "mouseEnterDelay" | "popupVisible" | "defaultPopupVisible" | "clickToClose" | "blurToClose" | "clickOutsideToClose" | "mouseLeaveDelay" | "focusDelay" | "disabled" | "scrollToCloseDistance" | "scrollToClose" | "autoSetPosition" | "alignPoint" | "position" | "popupOffset" | "popupTranslate" | "showArrow" | "unmountOnClose" | "contentClass" | "contentStyle" | "arrowClass" | "arrowStyle" | "animationName" | "duration" | "autoFitPopupWidth" | "autoFitPopupMinWidth" | "popupContainer" | "renderToBody" | "autoFitPosition" | "updateAtScroll" | "preventFocus" | "needTransformOrigin") | "updatePosition"> & import('vue').ShallowUnwrapRef<{
|
300
300
|
hide(): void;
|
301
301
|
show(): void;
|
302
302
|
updatePosition(x: number, y: number): void;
|
@@ -925,6 +925,7 @@ declare const __VLS_component: import('vue').DefineComponent<AutoCompleteProps,
|
|
925
925
|
focusDelay: number;
|
926
926
|
disabled: boolean;
|
927
927
|
scrollToCloseDistance: number;
|
928
|
+
scrollToClose: boolean;
|
928
929
|
autoSetPosition: boolean;
|
929
930
|
alignPoint: boolean;
|
930
931
|
position: import('..').TriggerPostion;
|
@@ -945,7 +946,6 @@ declare const __VLS_component: import('vue').DefineComponent<AutoCompleteProps,
|
|
945
946
|
autoFitPosition: boolean;
|
946
947
|
updateAtScroll: boolean;
|
947
948
|
preventFocus: boolean;
|
948
|
-
scrollToClose: boolean;
|
949
949
|
needTransformOrigin: boolean;
|
950
950
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
951
951
|
beforeCreate?: (() => void) | (() => void)[];
|
@@ -979,6 +979,7 @@ declare const __VLS_component: import('vue').DefineComponent<AutoCompleteProps,
|
|
979
979
|
focusDelay: number;
|
980
980
|
disabled: boolean;
|
981
981
|
scrollToCloseDistance: number;
|
982
|
+
scrollToClose: boolean;
|
982
983
|
autoSetPosition: boolean;
|
983
984
|
alignPoint: boolean;
|
984
985
|
position: import('..').TriggerPostion;
|
@@ -999,14 +1000,13 @@ declare const __VLS_component: import('vue').DefineComponent<AutoCompleteProps,
|
|
999
1000
|
autoFitPosition: boolean;
|
1000
1001
|
updateAtScroll: boolean;
|
1001
1002
|
preventFocus: boolean;
|
1002
|
-
scrollToClose: boolean;
|
1003
1003
|
needTransformOrigin: boolean;
|
1004
1004
|
}> & Omit<Readonly<import('..').TriggerProps> & Readonly<{
|
1005
1005
|
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
1006
1006
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
1007
1007
|
onShow?: (() => any) | undefined;
|
1008
1008
|
onHide?: (() => any) | undefined;
|
1009
|
-
}>, "show" | "hide" | ("trigger" | "mouseEnterDelay" | "popupVisible" | "defaultPopupVisible" | "clickToClose" | "blurToClose" | "clickOutsideToClose" | "mouseLeaveDelay" | "focusDelay" | "disabled" | "scrollToCloseDistance" | "autoSetPosition" | "alignPoint" | "position" | "popupOffset" | "popupTranslate" | "showArrow" | "unmountOnClose" | "contentClass" | "contentStyle" | "arrowClass" | "arrowStyle" | "animationName" | "duration" | "autoFitPopupWidth" | "autoFitPopupMinWidth" | "popupContainer" | "renderToBody" | "autoFitPosition" | "updateAtScroll" | "preventFocus" | "
|
1009
|
+
}>, "show" | "hide" | ("trigger" | "mouseEnterDelay" | "popupVisible" | "defaultPopupVisible" | "clickToClose" | "blurToClose" | "clickOutsideToClose" | "mouseLeaveDelay" | "focusDelay" | "disabled" | "scrollToCloseDistance" | "scrollToClose" | "autoSetPosition" | "alignPoint" | "position" | "popupOffset" | "popupTranslate" | "showArrow" | "unmountOnClose" | "contentClass" | "contentStyle" | "arrowClass" | "arrowStyle" | "animationName" | "duration" | "autoFitPopupWidth" | "autoFitPopupMinWidth" | "popupContainer" | "renderToBody" | "autoFitPosition" | "updateAtScroll" | "preventFocus" | "needTransformOrigin") | "updatePosition"> & import('vue').ShallowUnwrapRef<{
|
1010
1010
|
hide(): void;
|
1011
1011
|
show(): void;
|
1012
1012
|
updatePosition(x: number, y: number): void;
|
@@ -5,7 +5,7 @@ import { isUndefined } from "../_shared/utils/is.js";
|
|
5
5
|
import "../_shared/utils/time.js";
|
6
6
|
import "../_shared/utils/locale.js";
|
7
7
|
/* empty css */
|
8
|
-
import _sfc_main$1 from "../_shared/icons/IconSeparator.
|
8
|
+
import _sfc_main$1 from "../_shared/icons/IconSeparator.vue.js";
|
9
9
|
const _hoisted_1 = { class: "yc-breadcrumb-item-separator" };
|
10
10
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
11
11
|
__name: "BreadcrumbSeparator",
|
@@ -9,7 +9,7 @@ import useControlValue from "../_shared/utils/control.js";
|
|
9
9
|
import _sfc_main$2 from "../_shared/icons/IconArrowRight.vue.js";
|
10
10
|
import _sfc_main$1 from "../_shared/components/IconButton.vue.js";
|
11
11
|
/* empty css */
|
12
|
-
/* empty css
|
12
|
+
/* empty css */
|
13
13
|
import Button from "../Button/index.js";
|
14
14
|
import "../Radio/index.js";
|
15
15
|
import _sfc_main$4 from "./CalendarMonth.vue.js";
|
@@ -8,7 +8,7 @@ import "../_shared/utils/locale.js";
|
|
8
8
|
/* empty css */
|
9
9
|
import _sfc_main$2 from "../_shared/components/IconButton.vue.js";
|
10
10
|
/* empty css */
|
11
|
-
/* empty css
|
11
|
+
/* empty css */
|
12
12
|
import Spin from "../Spin/index.js";
|
13
13
|
const _hoisted_1 = { class: "yc-cascader-suffix-icon" };
|
14
14
|
const _hoisted_2 = {
|
@@ -10,7 +10,7 @@ import useContext from "./hooks/useContext.js";
|
|
10
10
|
import _sfc_main$2 from "../_shared/icons/IconCheckboxChecked.vue.js";
|
11
11
|
import _sfc_main$1 from "../_shared/components/IconButton.vue.js";
|
12
12
|
/* empty css */
|
13
|
-
/* empty css
|
13
|
+
/* empty css */
|
14
14
|
const _hoisted_1 = ["value", "disabled", "checked"];
|
15
15
|
const _hoisted_2 = { class: "yc-checkbox-icon" };
|
16
16
|
const _hoisted_3 = {
|
@@ -8,8 +8,8 @@ import "../_shared/utils/locale.js";
|
|
8
8
|
import _sfc_main$2 from "../_shared/icons/IconRight.vue.js";
|
9
9
|
import _sfc_main$1 from "../_shared/components/IconButton.vue.js";
|
10
10
|
/* empty css */
|
11
|
-
import _sfc_main$3 from "../_shared/components/ExpandTransition.
|
12
|
-
/* empty css
|
11
|
+
import _sfc_main$3 from "../_shared/components/ExpandTransition.vue.js";
|
12
|
+
/* empty css */
|
13
13
|
const _hoisted_1 = { class: "yc-collapse-item-header-title text-ellipsis" };
|
14
14
|
const _hoisted_2 = {
|
15
15
|
key: 1,
|
@@ -6,8 +6,6 @@ declare const ConfigProvider: {
|
|
6
6
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').ConfigProviderProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
7
7
|
size: import('..').Size;
|
8
8
|
popupContainer: import('..').PopupContainer;
|
9
|
-
updateAtScroll: boolean;
|
10
|
-
scrollToClose: boolean;
|
11
9
|
zIndex: number;
|
12
10
|
locale: import('../_shared/type').ObjectData;
|
13
11
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
@@ -20,8 +18,6 @@ declare const ConfigProvider: {
|
|
20
18
|
}, Readonly<import('./type').ConfigProviderProps> & Readonly<{}>, {}, {}, {}, {}, {
|
21
19
|
size: import('..').Size;
|
22
20
|
popupContainer: import('..').PopupContainer;
|
23
|
-
updateAtScroll: boolean;
|
24
|
-
scrollToClose: boolean;
|
25
21
|
zIndex: number;
|
26
22
|
locale: import('../_shared/type').ObjectData;
|
27
23
|
}>;
|
@@ -31,8 +27,6 @@ declare const ConfigProvider: {
|
|
31
27
|
} & import('vue').ComponentOptionsBase<Readonly<import('./type').ConfigProviderProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
32
28
|
size: import('..').Size;
|
33
29
|
popupContainer: import('..').PopupContainer;
|
34
|
-
updateAtScroll: boolean;
|
35
|
-
scrollToClose: boolean;
|
36
30
|
zIndex: number;
|
37
31
|
locale: import('../_shared/type').ObjectData;
|
38
32
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
@@ -9,8 +9,6 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
9
9
|
declare const __VLS_component: import('vue').DefineComponent<ConfigProviderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ConfigProviderProps> & Readonly<{}>, {
|
10
10
|
size: import('..').Size;
|
11
11
|
popupContainer: import('..').PopupContainer;
|
12
|
-
updateAtScroll: boolean;
|
13
|
-
scrollToClose: boolean;
|
14
12
|
zIndex: number;
|
15
13
|
locale: import('../_shared/type').ObjectData;
|
16
14
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
@@ -13,21 +13,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
13
13
|
locale: { default: void 0 },
|
14
14
|
zIndex: { default: 1001 },
|
15
15
|
size: { default: "medium" },
|
16
|
-
popupContainer: { default: "body" }
|
17
|
-
updateAtScroll: { type: Boolean, default: true },
|
18
|
-
scrollToClose: { type: Boolean, default: false }
|
16
|
+
popupContainer: { default: "body" }
|
19
17
|
},
|
20
18
|
setup(__props) {
|
21
|
-
|
19
|
+
useSlots();
|
22
20
|
const props = __props;
|
23
|
-
const { locale, zIndex, size,
|
21
|
+
const { locale, zIndex, size, popupContainer } = toRefs(props);
|
24
22
|
provide(CONFIG_PROVIDER_PROVIDE_KEY, {
|
25
|
-
slots,
|
26
23
|
locale,
|
27
24
|
zIndex,
|
28
25
|
size,
|
29
|
-
updateAtScroll,
|
30
|
-
scrollToClose,
|
31
26
|
popupContainer
|
32
27
|
});
|
33
28
|
return (_ctx, _cache) => {
|
package/es/Drawer/Drawer.vue.js
CHANGED
@@ -8,7 +8,7 @@ import useModalClose from "../Modal/hooks/useModalClose.js";
|
|
8
8
|
import Button from "../Button/index.js";
|
9
9
|
import _sfc_main$1 from "../_shared/components/IconButton.vue.js";
|
10
10
|
/* empty css */
|
11
|
-
/* empty css
|
11
|
+
/* empty css */
|
12
12
|
/* empty css */
|
13
13
|
const _hoisted_1 = {
|
14
14
|
key: 0,
|
@@ -75,11 +75,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
75
75
|
maskClosable,
|
76
76
|
escToClose,
|
77
77
|
drawerStyle: _drawerStyle,
|
78
|
-
renderToBody
|
79
|
-
popupContainer: _popupContainer
|
78
|
+
renderToBody
|
80
79
|
} = toRefs(props);
|
81
80
|
const { onBeforeOk, onBeforeCancel } = props;
|
82
|
-
const { zIndex, popupContainer } = getGlobalConfig(props);
|
81
|
+
const { zIndex, popupContainer, isAbsolute } = getGlobalConfig(props);
|
83
82
|
const { t } = useI18n();
|
84
83
|
const drawerStyle = computed(() => {
|
85
84
|
return {
|
@@ -116,7 +115,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
116
115
|
`yc-drawer-placement-${unref(placement)}`,
|
117
116
|
_ctx.$attrs.class,
|
118
117
|
{
|
119
|
-
"yc-drawer-position-absolute": unref(
|
118
|
+
"yc-drawer-position-absolute": unref(isAbsolute)
|
120
119
|
}
|
121
120
|
]),
|
122
121
|
style: normalizeStyle({
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { defineComponent, toRefs, createElementBlock, openBlock, normalizeClass, unref, createCommentVNode, createElementVNode, renderSlot } from "vue";
|
2
2
|
import useContext from "./hooks/useContext.js";
|
3
|
-
import useMenuContext from "../Menu/hooks/useContext.js";
|
4
3
|
const _hoisted_1 = {
|
5
4
|
key: 0,
|
6
5
|
class: "yc-dropdown-option-icon"
|
@@ -27,7 +26,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
27
26
|
const emits = __emit;
|
28
27
|
const { value: optionValue, disabled, isSubmenu } = toRefs(props);
|
29
28
|
const { select } = useContext().inject();
|
30
|
-
const { theme } = useMenuContext().inject();
|
31
29
|
const handleClick = (ev) => {
|
32
30
|
if (disabled.value) return;
|
33
31
|
emits("click", ev);
|
@@ -38,7 +36,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
38
36
|
return openBlock(), createElementBlock("div", {
|
39
37
|
class: normalizeClass([
|
40
38
|
"yc-dropdown-option",
|
41
|
-
`yc-dropdown-option-theme-${unref(theme)}`,
|
42
39
|
{
|
43
40
|
"yc-dropdown-option-active": _ctx.isActive,
|
44
41
|
"yc-dropdown-option-disabled": unref(disabled),
|
@@ -5,7 +5,6 @@ import { isBoolean, isUndefined } from "../_shared/utils/is.js";
|
|
5
5
|
import "../_shared/utils/time.js";
|
6
6
|
import "../_shared/utils/locale.js";
|
7
7
|
import useContext from "./hooks/useContext.js";
|
8
|
-
import useMenuContext from "../Menu/hooks/useContext.js";
|
9
8
|
import Trigger from "../Trigger/index.js";
|
10
9
|
import Scrollbar from "../Scrollbar/index.js";
|
11
10
|
const _hoisted_1 = { class: "yc-dropdown" };
|
@@ -42,7 +41,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
42
41
|
popupMaxHeight: _popupMaxHeight
|
43
42
|
} = toRefs(props);
|
44
43
|
const { computedVisible } = useContext().provide(props, emits);
|
45
|
-
const { theme } = useMenuContext().inject();
|
46
44
|
const position = computed(() => {
|
47
45
|
return ["top", "tl", "tr", "bottom", "bl", "br"].includes(_position.value) ? _position.value : "bottom";
|
48
46
|
});
|
@@ -73,7 +71,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
73
71
|
"mouse-leave-delay": 150,
|
74
72
|
alignPoint: _ctx.alignPoint,
|
75
73
|
"auto-fit-popup-min-width": !_ctx.alignPoint && ["top", "bottom"].includes(position.value),
|
76
|
-
class: ["yc-dropdown-popup",
|
74
|
+
class: ["yc-dropdown-popup", _ctx.$attrs.class],
|
77
75
|
style: _ctx.$attrs.style,
|
78
76
|
"animation-name": "slide-dynamic-origin",
|
79
77
|
"need-transform-origin": ""
|
@@ -154,6 +154,7 @@ declare function __VLS_template(): {
|
|
154
154
|
focusDelay: number;
|
155
155
|
disabled: boolean;
|
156
156
|
scrollToCloseDistance: number;
|
157
|
+
scrollToClose: boolean;
|
157
158
|
autoSetPosition: boolean;
|
158
159
|
alignPoint: boolean;
|
159
160
|
position: import('../Trigger').TriggerPostion;
|
@@ -174,7 +175,6 @@ declare function __VLS_template(): {
|
|
174
175
|
autoFitPosition: boolean;
|
175
176
|
updateAtScroll: boolean;
|
176
177
|
preventFocus: boolean;
|
177
|
-
scrollToClose: boolean;
|
178
178
|
needTransformOrigin: boolean;
|
179
179
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
180
180
|
beforeCreate?: (() => void) | (() => void)[];
|
@@ -208,6 +208,7 @@ declare function __VLS_template(): {
|
|
208
208
|
focusDelay: number;
|
209
209
|
disabled: boolean;
|
210
210
|
scrollToCloseDistance: number;
|
211
|
+
scrollToClose: boolean;
|
211
212
|
autoSetPosition: boolean;
|
212
213
|
alignPoint: boolean;
|
213
214
|
position: import('../Trigger').TriggerPostion;
|
@@ -228,14 +229,13 @@ declare function __VLS_template(): {
|
|
228
229
|
autoFitPosition: boolean;
|
229
230
|
updateAtScroll: boolean;
|
230
231
|
preventFocus: boolean;
|
231
|
-
scrollToClose: boolean;
|
232
232
|
needTransformOrigin: boolean;
|
233
233
|
}> & Omit<Readonly<import('../Trigger').TriggerProps> & Readonly<{
|
234
234
|
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
235
235
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
236
236
|
onShow?: (() => any) | undefined;
|
237
237
|
onHide?: (() => any) | undefined;
|
238
|
-
}>, "show" | "hide" | ("trigger" | "mouseEnterDelay" | "popupVisible" | "defaultPopupVisible" | "clickToClose" | "blurToClose" | "clickOutsideToClose" | "mouseLeaveDelay" | "focusDelay" | "disabled" | "scrollToCloseDistance" | "autoSetPosition" | "alignPoint" | "position" | "popupOffset" | "popupTranslate" | "showArrow" | "unmountOnClose" | "contentClass" | "contentStyle" | "arrowClass" | "arrowStyle" | "animationName" | "duration" | "autoFitPopupWidth" | "autoFitPopupMinWidth" | "popupContainer" | "renderToBody" | "autoFitPosition" | "updateAtScroll" | "preventFocus" | "
|
238
|
+
}>, "show" | "hide" | ("trigger" | "mouseEnterDelay" | "popupVisible" | "defaultPopupVisible" | "clickToClose" | "blurToClose" | "clickOutsideToClose" | "mouseLeaveDelay" | "focusDelay" | "disabled" | "scrollToCloseDistance" | "scrollToClose" | "autoSetPosition" | "alignPoint" | "position" | "popupOffset" | "popupTranslate" | "showArrow" | "unmountOnClose" | "contentClass" | "contentStyle" | "arrowClass" | "arrowStyle" | "animationName" | "duration" | "autoFitPopupWidth" | "autoFitPopupMinWidth" | "popupContainer" | "renderToBody" | "autoFitPosition" | "updateAtScroll" | "preventFocus" | "needTransformOrigin") | "updatePosition"> & import('vue').ShallowUnwrapRef<{
|
239
239
|
hide(): void;
|
240
240
|
show(): void;
|
241
241
|
updatePosition(x: number, y: number): void;
|
@@ -475,6 +475,7 @@ declare const __VLS_component: import('vue').DefineComponent<DsubmenuProps, {
|
|
475
475
|
focusDelay: number;
|
476
476
|
disabled: boolean;
|
477
477
|
scrollToCloseDistance: number;
|
478
|
+
scrollToClose: boolean;
|
478
479
|
autoSetPosition: boolean;
|
479
480
|
alignPoint: boolean;
|
480
481
|
position: import('../Trigger').TriggerPostion;
|
@@ -495,7 +496,6 @@ declare const __VLS_component: import('vue').DefineComponent<DsubmenuProps, {
|
|
495
496
|
autoFitPosition: boolean;
|
496
497
|
updateAtScroll: boolean;
|
497
498
|
preventFocus: boolean;
|
498
|
-
scrollToClose: boolean;
|
499
499
|
needTransformOrigin: boolean;
|
500
500
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
501
501
|
beforeCreate?: (() => void) | (() => void)[];
|
@@ -529,6 +529,7 @@ declare const __VLS_component: import('vue').DefineComponent<DsubmenuProps, {
|
|
529
529
|
focusDelay: number;
|
530
530
|
disabled: boolean;
|
531
531
|
scrollToCloseDistance: number;
|
532
|
+
scrollToClose: boolean;
|
532
533
|
autoSetPosition: boolean;
|
533
534
|
alignPoint: boolean;
|
534
535
|
position: import('../Trigger').TriggerPostion;
|
@@ -549,14 +550,13 @@ declare const __VLS_component: import('vue').DefineComponent<DsubmenuProps, {
|
|
549
550
|
autoFitPosition: boolean;
|
550
551
|
updateAtScroll: boolean;
|
551
552
|
preventFocus: boolean;
|
552
|
-
scrollToClose: boolean;
|
553
553
|
needTransformOrigin: boolean;
|
554
554
|
}> & Omit<Readonly<import('../Trigger').TriggerProps> & Readonly<{
|
555
555
|
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
556
556
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
557
557
|
onShow?: (() => any) | undefined;
|
558
558
|
onHide?: (() => any) | undefined;
|
559
|
-
}>, "show" | "hide" | ("trigger" | "mouseEnterDelay" | "popupVisible" | "defaultPopupVisible" | "clickToClose" | "blurToClose" | "clickOutsideToClose" | "mouseLeaveDelay" | "focusDelay" | "disabled" | "scrollToCloseDistance" | "autoSetPosition" | "alignPoint" | "position" | "popupOffset" | "popupTranslate" | "showArrow" | "unmountOnClose" | "contentClass" | "contentStyle" | "arrowClass" | "arrowStyle" | "animationName" | "duration" | "autoFitPopupWidth" | "autoFitPopupMinWidth" | "popupContainer" | "renderToBody" | "autoFitPosition" | "updateAtScroll" | "preventFocus" | "
|
559
|
+
}>, "show" | "hide" | ("trigger" | "mouseEnterDelay" | "popupVisible" | "defaultPopupVisible" | "clickToClose" | "blurToClose" | "clickOutsideToClose" | "mouseLeaveDelay" | "focusDelay" | "disabled" | "scrollToCloseDistance" | "scrollToClose" | "autoSetPosition" | "alignPoint" | "position" | "popupOffset" | "popupTranslate" | "showArrow" | "unmountOnClose" | "contentClass" | "contentStyle" | "arrowClass" | "arrowStyle" | "animationName" | "duration" | "autoFitPopupWidth" | "autoFitPopupMinWidth" | "popupContainer" | "renderToBody" | "autoFitPosition" | "updateAtScroll" | "preventFocus" | "needTransformOrigin") | "updatePosition"> & import('vue').ShallowUnwrapRef<{
|
560
560
|
hide(): void;
|
561
561
|
show(): void;
|
562
562
|
updatePosition(x: number, y: number): void;
|
@@ -8,14 +8,14 @@ import "../_shared/utils/locale.js";
|
|
8
8
|
import useControlValue from "../_shared/utils/control.js";
|
9
9
|
/* empty css */
|
10
10
|
import _sfc_main$2 from "../_shared/icons/IconArrowRight.vue.js";
|
11
|
-
import useMenuContext from "../Menu/hooks/useContext.js";
|
12
11
|
import "./index.js";
|
13
12
|
import Trigger from "../Trigger/index.js";
|
14
13
|
import Scrollbar from "../Scrollbar/index.js";
|
15
14
|
import _sfc_main$1 from "./Doption.vue.js";
|
16
15
|
/* empty css */
|
17
|
-
const _hoisted_1 = { class: "yc-dropdown
|
18
|
-
const _hoisted_2 = {
|
16
|
+
const _hoisted_1 = { class: "yc-dropdown" };
|
17
|
+
const _hoisted_2 = { class: "yc-dropdown-list" };
|
18
|
+
const _hoisted_3 = {
|
19
19
|
key: 0,
|
20
20
|
class: "yc-dropdown-footer"
|
21
21
|
};
|
@@ -46,7 +46,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
46
46
|
position: _position,
|
47
47
|
popupMaxHeight: _popupMaxHeight
|
48
48
|
} = toRefs(props);
|
49
|
-
const { theme } = useMenuContext().inject();
|
50
49
|
const computedVisible = useControlValue(
|
51
50
|
popupVisible,
|
52
51
|
defaultPopupVisible.value,
|
@@ -108,25 +107,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
108
107
|
ref: triggerRef
|
109
108
|
}, _ctx.triggerProps), {
|
110
109
|
content: withCtx(() => [
|
111
|
-
createElementVNode("div",
|
112
|
-
class: normalizeClass(["yc-dropdown", `yc-dropdown-theme-${unref(theme)}`])
|
113
|
-
}, [
|
110
|
+
createElementVNode("div", _hoisted_1, [
|
114
111
|
createVNode(unref(Scrollbar), {
|
115
112
|
style: normalizeStyle({
|
116
113
|
maxHeight: popupMaxHeight.value
|
117
114
|
})
|
118
115
|
}, {
|
119
116
|
default: withCtx(() => [
|
120
|
-
createElementVNode("div",
|
117
|
+
createElementVNode("div", _hoisted_2, [
|
121
118
|
renderSlot(_ctx.$slots, "content")
|
122
119
|
])
|
123
120
|
]),
|
124
121
|
_: 3
|
125
122
|
}, 8, ["style"]),
|
126
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("div",
|
123
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
127
124
|
renderSlot(_ctx.$slots, "footer")
|
128
125
|
])) : createCommentVNode("", true)
|
129
|
-
]
|
126
|
+
])
|
130
127
|
]),
|
131
128
|
default: withCtx(() => [
|
132
129
|
createVNode(unref(_sfc_main$1), {
|
package/es/Dropdown/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
.yc-dropdown{padding:4px 0;border-radius:4px;box-shadow:0 4px 10px #0000001a}.yc-dropdown .yc-dropdown-list{display:flex;flex-direction:column}.yc-dropdown .yc-dropdown-footer{border-top:1px solid
|
1
|
+
.yc-dropdown-popup .yc-dropdown{padding:4px 0;background-color:var(--color-bg-popup);border:1px solid var(--color-fill-3);border-radius:4px;box-shadow:0 4px 10px #0000001a}.yc-dropdown-popup .yc-dropdown .yc-dropdown-list{display:flex;flex-direction:column}.yc-dropdown-popup .yc-dropdown .yc-dropdown-footer{border-top:1px solid var(--color-fill-3)}.yc-dropdown-popup .yc-trigger-arrow{z-index:0;background-color:var(--color-bg-popup);border:1px solid var(--color-neutral-3)}.yc-dropdown-option{position:relative;z-index:1;padding:0 12px;line-height:36px;font-size:14px;color:var(--color-text-1);text-align:left;display:flex;align-items:center;transition:all .1s cubic-bezier(0, 0, 1, 1)}.yc-dropdown-option:not(.yc-dropdown-option-disabled).yc-dropdown-option-active,.yc-dropdown-option:not(.yc-dropdown-option-disabled):hover{background-color:var(--color-fill-2)}.yc-dropdown-option.yc-dropdown-option-disabled{cursor:not-allowed;background-color:transparent;color:var(--color-text-4)}.yc-dropdown-option .yc-dropdown-option-icon,.yc-dropdown-option .yc-dropdown-option-content,.yc-dropdown-option .yc-dropdown-option-suffix{flex-shrink:0;display:flex;align-items:center}.yc-dropdown-option .yc-dropdown-option-icon{margin-right:8px;color:inherit}.yc-dropdown-option .yc-dropdown-option-suffix{color:inherit;margin-left:12px}.yc-dropdown-option .yc-dropdown-option-content{flex:1;overflow:hidden}.yc-dropdown-group-title{margin-top:8px;padding:0 12px;color:var(--color-text-3);font-size:12px;line-height:20px}
|
package/es/Dropdown/index.d.ts
CHANGED
@@ -373,6 +373,7 @@ declare const Dropdown: {
|
|
373
373
|
focusDelay: number;
|
374
374
|
disabled: boolean;
|
375
375
|
scrollToCloseDistance: number;
|
376
|
+
scrollToClose: boolean;
|
376
377
|
autoSetPosition: boolean;
|
377
378
|
alignPoint: boolean;
|
378
379
|
position: import('..').TriggerPostion;
|
@@ -393,7 +394,6 @@ declare const Dropdown: {
|
|
393
394
|
autoFitPosition: boolean;
|
394
395
|
updateAtScroll: boolean;
|
395
396
|
preventFocus: boolean;
|
396
|
-
scrollToClose: boolean;
|
397
397
|
needTransformOrigin: boolean;
|
398
398
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
399
399
|
beforeCreate?: (() => void) | (() => void)[];
|
@@ -427,6 +427,7 @@ declare const Dropdown: {
|
|
427
427
|
focusDelay: number;
|
428
428
|
disabled: boolean;
|
429
429
|
scrollToCloseDistance: number;
|
430
|
+
scrollToClose: boolean;
|
430
431
|
autoSetPosition: boolean;
|
431
432
|
alignPoint: boolean;
|
432
433
|
position: import('..').TriggerPostion;
|
@@ -447,14 +448,13 @@ declare const Dropdown: {
|
|
447
448
|
autoFitPosition: boolean;
|
448
449
|
updateAtScroll: boolean;
|
449
450
|
preventFocus: boolean;
|
450
|
-
scrollToClose: boolean;
|
451
451
|
needTransformOrigin: boolean;
|
452
452
|
}> & Omit<Readonly<import('..').TriggerProps> & Readonly<{
|
453
453
|
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
454
454
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
455
455
|
onShow?: (() => any) | undefined;
|
456
456
|
onHide?: (() => any) | undefined;
|
457
|
-
}>, "show" | "hide" | ("trigger" | "mouseEnterDelay" | "popupVisible" | "defaultPopupVisible" | "clickToClose" | "blurToClose" | "clickOutsideToClose" | "mouseLeaveDelay" | "focusDelay" | "disabled" | "scrollToCloseDistance" | "autoSetPosition" | "alignPoint" | "position" | "popupOffset" | "popupTranslate" | "showArrow" | "unmountOnClose" | "contentClass" | "contentStyle" | "arrowClass" | "arrowStyle" | "animationName" | "duration" | "autoFitPopupWidth" | "autoFitPopupMinWidth" | "popupContainer" | "renderToBody" | "autoFitPosition" | "updateAtScroll" | "preventFocus" | "
|
457
|
+
}>, "show" | "hide" | ("trigger" | "mouseEnterDelay" | "popupVisible" | "defaultPopupVisible" | "clickToClose" | "blurToClose" | "clickOutsideToClose" | "mouseLeaveDelay" | "focusDelay" | "disabled" | "scrollToCloseDistance" | "scrollToClose" | "autoSetPosition" | "alignPoint" | "position" | "popupOffset" | "popupTranslate" | "showArrow" | "unmountOnClose" | "contentClass" | "contentStyle" | "arrowClass" | "arrowStyle" | "animationName" | "duration" | "autoFitPopupWidth" | "autoFitPopupMinWidth" | "popupContainer" | "renderToBody" | "autoFitPosition" | "updateAtScroll" | "preventFocus" | "needTransformOrigin") | "updatePosition"> & import('vue').ShallowUnwrapRef<{
|
458
458
|
hide(): void;
|
459
459
|
show(): void;
|
460
460
|
updatePosition(x: number, y: number): void;
|
@@ -52,10 +52,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
52
52
|
defaultScale,
|
53
53
|
zoomRate,
|
54
54
|
wheelZoom,
|
55
|
-
keyboard
|
56
|
-
popupContainer: _popupContainer
|
55
|
+
keyboard
|
57
56
|
} = toRefs(props);
|
58
|
-
const { zIndex, popupContainer } = getGlobalConfig(props);
|
57
|
+
const { zIndex, popupContainer, isAbsolute } = getGlobalConfig(props);
|
59
58
|
const imageRef = ref();
|
60
59
|
const scale = useControlValue(ref(), defaultScale.value);
|
61
60
|
const rotate = ref(0);
|
@@ -137,7 +136,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
137
136
|
"yc-image-preview",
|
138
137
|
_ctx.$attrs.class,
|
139
138
|
{
|
140
|
-
"yc-image-preview-absolute": unref(
|
139
|
+
"yc-image-preview-absolute": unref(isAbsolute)
|
141
140
|
}
|
142
141
|
]),
|
143
142
|
style: normalizeStyle({
|
package/es/Input/Input.vue.js
CHANGED
@@ -9,7 +9,7 @@ import useLimitedInput from "./hooks/useLimitedInput.js";
|
|
9
9
|
import _sfc_main$2 from "../_shared/components/IconButton.vue.js";
|
10
10
|
/* empty css */
|
11
11
|
import _sfc_main$1 from "../_shared/components/PreventFocus.vue.js";
|
12
|
-
/* empty css
|
12
|
+
/* empty css */
|
13
13
|
/* empty css */
|
14
14
|
import _sfc_main$3 from "./InputSuffix.vue.js";
|
15
15
|
/* empty css */
|
@@ -9,7 +9,7 @@ import _sfc_main$3 from "../_shared/icons/IconEyeOpen.vue2.js";
|
|
9
9
|
import _sfc_main$2 from "../_shared/components/IconButton.vue.js";
|
10
10
|
/* empty css */
|
11
11
|
import _sfc_main$1 from "../_shared/components/PreventFocus.vue.js";
|
12
|
-
/* empty css
|
12
|
+
/* empty css */
|
13
13
|
const _hoisted_1 = {
|
14
14
|
key: 0,
|
15
15
|
class: "yc-input-word-limit"
|
package/es/InputTag/index.vue.js
CHANGED
@@ -12,7 +12,7 @@ import Tag from "../Tag/index.js";
|
|
12
12
|
import _sfc_main$2 from "../_shared/components/IconButton.vue.js";
|
13
13
|
/* empty css */
|
14
14
|
import _sfc_main$1 from "../_shared/components/PreventFocus.vue.js";
|
15
|
-
/* empty css
|
15
|
+
/* empty css */
|
16
16
|
/* empty css */
|
17
17
|
const _hoisted_1 = ["disabled", "readonly", "placeholder"];
|
18
18
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
package/es/Layout/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
.yc-layout{flex:1;width:100%;height:100%;display:flex;flex-direction:column}.yc-layout-has-sider{flex-direction:row}.yc-layout,.yc-layout-header,.yc-layout-footer,.yc-layout-sider,.yc-layout-content{flex-shrink:0}.yc-layout-header,.yc-layout-footer{width:100%}.yc-layout-sider{height:100%}.yc-layout-content{flex:1}.yc-layout-sider{position:relative;flex:none;margin:0;padding:0;transition:width .2s cubic-bezier(.34, .69, .1, 1)}body[yc-design-theme='dark'] .yc-layout-sider{background-color:#232324}.yc-layout-sider .yc-layout-sider-children{height:100%;overflow:auto}.yc-layout-sider .yc-layout-sider-trigger{position:absolute;left:0;bottom:0;cursor:pointer;height:48px;width:100%;display:flex;justify-content:center;align-items:center}.yc-layout-sider-has-trigger{padding-bottom:48px}.yc-layout-sider-translation{transition:width .2s cubic-bezier(.34, .69, .1, 1)}.yc-layout-sider-light{background-color
|
1
|
+
.yc-layout{flex:1;width:100%;height:100%;display:flex;flex-direction:column}.yc-layout-has-sider{flex-direction:row}.yc-layout,.yc-layout-header,.yc-layout-footer,.yc-layout-sider,.yc-layout-content{flex-shrink:0}.yc-layout-header,.yc-layout-footer{width:100%}.yc-layout-sider{height:100%}.yc-layout-content{flex:1}.yc-layout-sider{position:relative;flex:none;margin:0;padding:0;transition:width .2s cubic-bezier(.34, .69, .1, 1)}body[yc-design-theme='dark'] .yc-layout-sider{background-color:#232324}.yc-layout-sider .yc-layout-sider-children{height:100%;overflow:auto}.yc-layout-sider .yc-layout-sider-trigger{position:absolute;left:0;bottom:0;cursor:pointer;height:48px;width:100%;display:flex;justify-content:center;align-items:center}.yc-layout-sider-has-trigger{padding-bottom:48px}.yc-layout-sider-translation{transition:width .2s cubic-bezier(.34, .69, .1, 1)}.yc-layout-sider-light{background-color:var(--color-menu-light-bg);box-shadow:0 2px 5px 0 rgba(0,0,0,0.08)}.yc-layout-sider-light .yc-layout-sider-trigger{background-color:unset;border-top:1px solid var(--color-bg-5);color:var(--color-text-1)}.yc-layout-sider-dark{background-color:var(--color-menu-dark-bg);box-shadow:none}.yc-layout-sider-dark .yc-layout-sider-trigger{background-color:rgba(255,255,255,0.2);border-top:none;color:var(--color-white)}
|