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/Mention/index.d.ts
CHANGED
@@ -279,6 +279,7 @@ declare const Mention: {
|
|
279
279
|
focusDelay: number;
|
280
280
|
disabled: boolean;
|
281
281
|
scrollToCloseDistance: number;
|
282
|
+
scrollToClose: boolean;
|
282
283
|
autoSetPosition: boolean;
|
283
284
|
alignPoint: boolean;
|
284
285
|
position: import('..').TriggerPostion;
|
@@ -299,7 +300,6 @@ declare const Mention: {
|
|
299
300
|
autoFitPosition: boolean;
|
300
301
|
updateAtScroll: boolean;
|
301
302
|
preventFocus: boolean;
|
302
|
-
scrollToClose: boolean;
|
303
303
|
needTransformOrigin: boolean;
|
304
304
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
305
305
|
beforeCreate?: (() => void) | (() => void)[];
|
@@ -333,6 +333,7 @@ declare const Mention: {
|
|
333
333
|
focusDelay: number;
|
334
334
|
disabled: boolean;
|
335
335
|
scrollToCloseDistance: number;
|
336
|
+
scrollToClose: boolean;
|
336
337
|
autoSetPosition: boolean;
|
337
338
|
alignPoint: boolean;
|
338
339
|
position: import('..').TriggerPostion;
|
@@ -353,14 +354,13 @@ declare const Mention: {
|
|
353
354
|
autoFitPosition: boolean;
|
354
355
|
updateAtScroll: boolean;
|
355
356
|
preventFocus: boolean;
|
356
|
-
scrollToClose: boolean;
|
357
357
|
needTransformOrigin: boolean;
|
358
358
|
}> & Omit<Readonly<import('..').TriggerProps> & Readonly<{
|
359
359
|
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
360
360
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
361
361
|
onShow?: (() => any) | undefined;
|
362
362
|
onHide?: (() => any) | undefined;
|
363
|
-
}>, "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" | "
|
363
|
+
}>, "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<{
|
364
364
|
hide(): void;
|
365
365
|
show(): void;
|
366
366
|
updatePosition(x: number, y: number): void;
|
@@ -250,6 +250,7 @@ declare function __VLS_template(): {
|
|
250
250
|
focusDelay: number;
|
251
251
|
disabled: boolean;
|
252
252
|
scrollToCloseDistance: number;
|
253
|
+
scrollToClose: boolean;
|
253
254
|
autoSetPosition: boolean;
|
254
255
|
alignPoint: boolean;
|
255
256
|
position: import('..').TriggerPostion;
|
@@ -270,7 +271,6 @@ declare function __VLS_template(): {
|
|
270
271
|
autoFitPosition: boolean;
|
271
272
|
updateAtScroll: boolean;
|
272
273
|
preventFocus: boolean;
|
273
|
-
scrollToClose: boolean;
|
274
274
|
needTransformOrigin: boolean;
|
275
275
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
276
276
|
beforeCreate?: (() => void) | (() => void)[];
|
@@ -304,6 +304,7 @@ declare function __VLS_template(): {
|
|
304
304
|
focusDelay: number;
|
305
305
|
disabled: boolean;
|
306
306
|
scrollToCloseDistance: number;
|
307
|
+
scrollToClose: boolean;
|
307
308
|
autoSetPosition: boolean;
|
308
309
|
alignPoint: boolean;
|
309
310
|
position: import('..').TriggerPostion;
|
@@ -324,14 +325,13 @@ declare function __VLS_template(): {
|
|
324
325
|
autoFitPosition: boolean;
|
325
326
|
updateAtScroll: boolean;
|
326
327
|
preventFocus: boolean;
|
327
|
-
scrollToClose: boolean;
|
328
328
|
needTransformOrigin: boolean;
|
329
329
|
}> & Omit<Readonly<import('..').TriggerProps> & Readonly<{
|
330
330
|
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
331
331
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
332
332
|
onShow?: (() => any) | undefined;
|
333
333
|
onHide?: (() => any) | undefined;
|
334
|
-
}>, "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" | "
|
334
|
+
}>, "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<{
|
335
335
|
hide(): void;
|
336
336
|
show(): void;
|
337
337
|
updatePosition(x: number, y: number): void;
|
@@ -1088,6 +1088,7 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
|
|
1088
1088
|
focusDelay: number;
|
1089
1089
|
disabled: boolean;
|
1090
1090
|
scrollToCloseDistance: number;
|
1091
|
+
scrollToClose: boolean;
|
1091
1092
|
autoSetPosition: boolean;
|
1092
1093
|
alignPoint: boolean;
|
1093
1094
|
position: import('..').TriggerPostion;
|
@@ -1108,7 +1109,6 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
|
|
1108
1109
|
autoFitPosition: boolean;
|
1109
1110
|
updateAtScroll: boolean;
|
1110
1111
|
preventFocus: boolean;
|
1111
|
-
scrollToClose: boolean;
|
1112
1112
|
needTransformOrigin: boolean;
|
1113
1113
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
1114
1114
|
beforeCreate?: (() => void) | (() => void)[];
|
@@ -1142,6 +1142,7 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
|
|
1142
1142
|
focusDelay: number;
|
1143
1143
|
disabled: boolean;
|
1144
1144
|
scrollToCloseDistance: number;
|
1145
|
+
scrollToClose: boolean;
|
1145
1146
|
autoSetPosition: boolean;
|
1146
1147
|
alignPoint: boolean;
|
1147
1148
|
position: import('..').TriggerPostion;
|
@@ -1162,14 +1163,13 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
|
|
1162
1163
|
autoFitPosition: boolean;
|
1163
1164
|
updateAtScroll: boolean;
|
1164
1165
|
preventFocus: boolean;
|
1165
|
-
scrollToClose: boolean;
|
1166
1166
|
needTransformOrigin: boolean;
|
1167
1167
|
}> & Omit<Readonly<import('..').TriggerProps> & Readonly<{
|
1168
1168
|
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
1169
1169
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
1170
1170
|
onShow?: (() => any) | undefined;
|
1171
1171
|
onHide?: (() => any) | undefined;
|
1172
|
-
}>, "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" | "
|
1172
|
+
}>, "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<{
|
1173
1173
|
hide(): void;
|
1174
1174
|
show(): void;
|
1175
1175
|
updatePosition(x: number, y: number): void;
|
@@ -51,6 +51,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
51
51
|
showArrow: true,
|
52
52
|
...unref(triggerProps)
|
53
53
|
},
|
54
|
+
class: normalizeClass([`yc-dropdown-popup-${unref(theme)}`]),
|
54
55
|
onSelect: handleSelect
|
55
56
|
}, {
|
56
57
|
content: withCtx(() => [
|
@@ -84,7 +85,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
84
85
|
], 2)
|
85
86
|
]),
|
86
87
|
_: 1
|
87
|
-
}, 8, ["popup-max-height", "trigger-props"])
|
88
|
+
}, 8, ["popup-max-height", "trigger-props", "class"])
|
88
89
|
]);
|
89
90
|
};
|
90
91
|
}
|
package/es/Menu/MenuItem.vue.js
CHANGED
@@ -186,6 +186,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
186
186
|
showArrow: true,
|
187
187
|
...unref(triggerProps)
|
188
188
|
},
|
189
|
+
class: normalizeClass([`yc-dropdown-popup-${unref(theme)}`]),
|
189
190
|
onSelect: handleSelect
|
190
191
|
}, {
|
191
192
|
content: withCtx(() => [
|
@@ -203,7 +204,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
203
204
|
createVNode(unref(ReuseTemplate))
|
204
205
|
]),
|
205
206
|
_: 1
|
206
|
-
}, 8, ["popup-max-height", "trigger-props"])) : !isSubmenu.value && isRoot.value && unref(computedCollapsed) ? (openBlock(), createBlock(unref(Tooltip), {
|
207
|
+
}, 8, ["popup-max-height", "trigger-props", "class"])) : !isSubmenu.value && isRoot.value && unref(computedCollapsed) ? (openBlock(), createBlock(unref(Tooltip), {
|
207
208
|
key: 1,
|
208
209
|
position: "rt",
|
209
210
|
"trigger-props": {
|
package/es/Menu/SubMenu.vue.js
CHANGED
@@ -7,8 +7,8 @@ import "../_shared/utils/time.js";
|
|
7
7
|
import "../_shared/utils/locale.js";
|
8
8
|
/* empty css */
|
9
9
|
/* empty css */
|
10
|
-
import _sfc_main$3 from "../_shared/components/ExpandTransition.
|
11
|
-
/* empty css
|
10
|
+
import _sfc_main$3 from "../_shared/components/ExpandTransition.vue.js";
|
11
|
+
/* empty css */
|
12
12
|
import "./index.js";
|
13
13
|
import _sfc_main$1 from "./MenuItem.vue.js";
|
14
14
|
/* empty css */
|
@@ -9,7 +9,6 @@ import "../index.js";
|
|
9
9
|
import { nanoid } from "../../node_modules/nanoid/index.browser.js";
|
10
10
|
import { useResizeObserver } from "../../node_modules/@vueuse/core/index.js";
|
11
11
|
import useSiderContext from "../../Layout/hooks/useSiderContext.js";
|
12
|
-
import useTheme from "../../Layout/hooks/useTheme.js";
|
13
12
|
import _sfc_main from "../SubMenu.vue.js";
|
14
13
|
/* empty css */
|
15
14
|
import _sfc_main$1 from "../MenuItem.vue.js";
|
@@ -117,7 +116,6 @@ const getPopupMaxHeight = (popupMaxHeight) => {
|
|
117
116
|
}
|
118
117
|
};
|
119
118
|
const useMenuContext = () => {
|
120
|
-
const { theme: sysTheme } = useTheme();
|
121
119
|
const provide$1 = (props, emits, menuRef) => {
|
122
120
|
const {
|
123
121
|
selectedKeys,
|
@@ -183,7 +181,7 @@ const useMenuContext = () => {
|
|
183
181
|
const menuTree = computed(() => buildMenuTree(menuTreeNodes.value));
|
184
182
|
const max = ref(1e6);
|
185
183
|
const theme = computed(() => {
|
186
|
-
return _theme.value || siderTheme.value ||
|
184
|
+
return _theme.value || siderTheme.value || "light";
|
187
185
|
});
|
188
186
|
if (mode.value == "horizontal") {
|
189
187
|
useResizeObserver(
|
@@ -247,7 +245,7 @@ const useMenuContext = () => {
|
|
247
245
|
triggerProps: ref({}),
|
248
246
|
autoOpenSelected: ref(false),
|
249
247
|
mode: ref("vertical"),
|
250
|
-
theme:
|
248
|
+
theme: ref("light"),
|
251
249
|
popupMaxHeight: ref(),
|
252
250
|
autoScrollIntoView: ref(false),
|
253
251
|
scrollConfig: ref({}),
|
package/es/Menu/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
.yc-menu-inline{display:flex;flex-direction:column;gap:4px}.yc-menu-inline .yc-menu-inline-content{display:flex;flex-direction:column;gap:4px}.yc-menu{position:relative;transition:width .2s cubic-bezier(.34, .69, .1, 1)}.yc-menu .yc-menu-inner{overflow:auto;padding:4px 8px;display:flex}.yc-menu .yc-menu-collapse-button{cursor:pointer;position:absolute;right:12px;bottom:12px;width:24px;height:24px;border-radius:2px;font-size:14px;display:flex;align-items:center;justify-content:center}.yc-menu-mode-vertical .yc-menu-inner{height:100%;flex-direction:column;gap:4px}.yc-menu-mode-horizontal .yc-menu-inner{position:relative;overflow:hidden;min-height:58px;width:100%;padding:14px 20px 14px 32px;display:flex;align-items:center;gap:12px}.yc-menu-mode-horizontal .yc-menu-inner .yc-menu-inline{flex-shrink:0}.yc-menu-collapsed .yc-menu-inner{padding:4px}.yc-menu-light{background-color
|
1
|
+
.yc-menu-inline{display:flex;flex-direction:column;gap:4px}.yc-menu-inline .yc-menu-inline-content{display:flex;flex-direction:column;gap:4px}.yc-menu{position:relative;transition:width .2s cubic-bezier(.34, .69, .1, 1)}.yc-menu .yc-menu-inner{overflow:auto;padding:4px 8px;display:flex}.yc-menu .yc-menu-collapse-button{cursor:pointer;position:absolute;right:12px;bottom:12px;width:24px;height:24px;border-radius:2px;font-size:14px;display:flex;align-items:center;justify-content:center}.yc-menu-mode-vertical .yc-menu-inner{height:100%;flex-direction:column;gap:4px}.yc-menu-mode-horizontal .yc-menu-inner{position:relative;overflow:hidden;min-height:58px;width:100%;padding:14px 20px 14px 32px;display:flex;align-items:center;gap:12px}.yc-menu-mode-horizontal .yc-menu-inner .yc-menu-inline{flex-shrink:0}.yc-menu-collapsed .yc-menu-inner{padding:4px}.yc-menu-light{background-color:var(--color-menu-light-bg)}.yc-menu-light .yc-menu-collapse-button{color:var(--color-text-3);background-color:var(--color-fill-1)}.yc-menu-light .yc-menu-collapse-button:hover{background-color:var(--color-fill-3)}.yc-menu-dark{background-color:var(--color-menu-dark-bg)}.yc-menu-dark .yc-menu-collapse-button{color:var(--color-white);background-color:rgb(var(--primary-6))}.yc-menu-dark .yc-menu-collapse-button:hover{background-color:rgb(var(--primary-7))}.yc-menu-item{cursor:pointer;flex-shrink:0;padding:0 12px;border-radius:2px;min-height:40px;line-height:40px;font-size:14px;transition:color .2s cubic-bezier(0, 0, 1, 1);display:flex;justify-content:center;align-items:center}.yc-menu-item .yc-menu-icon{line-height:1;margin-right:16px;color:#86909c}.yc-menu-item .yc-menu-item-title{flex-shrink:0;flex:1}.yc-menu-item .yc-menu-suffix-icon{margin-left:16px}.yc-menu-item-collapsed .yc-menu-icon{margin-right:0}.yc-menu-item-mode-horizontal{flex-shrink:0;position:relative}.yc-menu-item-mode-horizontal .yc-menu-item{min-height:30px;line-height:30px}.yc-menu-item-mode-horizontal .yc-menu-item .yc-menu-icon-suffix{margin-left:6px}.yc-menu-item-mode-horizontal .yc-menu-item.yc-menu-item-selected{background-color:transparent}.yc-menu-item-mode-horizontal .yc-menu-item.yc-menu-item-selected::after{content:'';position:absolute;left:12px;right:12px;bottom:-14px;height:3px;background-color:#165dff}.yc-menu-item-ellipsis{position:absolute;top:50%;transform:translateY(-50%)}.yc-menu-item-light .yc-menu-item{color:var(--color-text-2)}.yc-menu-item-light .yc-menu-item:not(.yc-menu-item-disabled):hover{background-color:var(--color-fill-2)}.yc-menu-item-light .yc-menu-item.yc-menu-item-selected{font-weight:500;color:rgb(var(--primary-6));background-color:var(--color-fill-2)}.yc-menu-item-light .yc-menu-item.yc-menu-item-selected .yc-menu-icon{color:rgb(var(--primary-6))}.yc-menu-item-light .yc-menu-item.yc-menu-item-disabled{cursor:not-allowed;color:var(--color-text-4)}.yc-menu-inline-header .yc-menu-item.yc-menu-item-selected{background-color:transparent}.yc-menu-item-dark .yc-menu-item{color:var(--color-text-4)}.yc-menu-item-dark .yc-menu-item:not(.yc-menu-item-disabled):hover{background-color:var(--color-menu-dark-hover)}.yc-menu-item-dark .yc-menu-item.yc-menu-item-selected{font-weight:500;color:rgb(var(--primary-6));background-color:var(--color-menu-dark-hover)}.yc-menu-item-dark .yc-menu-item.yc-menu-item-selected .yc-menu-icon{color:rgb(var(--primary-6))}.yc-menu-item-dark .yc-menu-item.yc-menu-item-disabled{cursor:not-allowed;color:var(--color-text-2)}.yc-menu-inline-header .yc-menu-item.yc-menu-item-selected{background-color:transparent}.yc-trigger.yc-dropdown-popup-dark .yc-trigger-content .yc-dropdown{background-color:var(--color-menu-dark-bg);border-color:var(--color-menu-dark-bg)}.yc-trigger.yc-dropdown-popup-dark .yc-trigger-content .yc-dropdown .yc-dropdown-option{color:var(--color-text-4)}.yc-trigger.yc-dropdown-popup-dark .yc-trigger-content .yc-dropdown .yc-dropdown-option:not(.yc-dropdown-option-disabled):hover,.yc-trigger.yc-dropdown-popup-dark .yc-trigger-content .yc-dropdown .yc-dropdown-option:not(.yc-dropdown-option-disabled).yc-dropdown-option-active{background-color:var(--color-menu-dark-hover)}.yc-trigger.yc-dropdown-popup-dark .yc-trigger-content .yc-dropdown .yc-dropdown-option:not(.yc-dropdown-option-disabled).yc-dropdown-option-active{color:var(--color-white)}.yc-trigger.yc-dropdown-popup-dark .yc-trigger-arrow{background-color:var(--color-menu-dark-bg);border-color:var(--color-menu-dark-bg)}.yc-menu-group{display:flex;flex-direction:column;gap:4px}.yc-menu-group .yc-menu-group-title{max-width:100%;padding:0 12px;line-height:40px;font-size:14px;color:var(--color-text-3);font-weight:400}
|
@@ -7,7 +7,7 @@ import "../_shared/utils/locale.js";
|
|
7
7
|
import { TYPE_ICON_MAP } from "../_shared/constants/index.js";
|
8
8
|
import _sfc_main$1 from "../_shared/components/IconButton.vue.js";
|
9
9
|
/* empty css */
|
10
|
-
/* empty css
|
10
|
+
/* empty css */
|
11
11
|
/* empty css */
|
12
12
|
import { useTimeoutFn } from "../node_modules/@vueuse/shared/index.js";
|
13
13
|
const _hoisted_1 = {
|
package/es/Modal/Modal.vue.js
CHANGED
@@ -9,7 +9,7 @@ import useModalDraggable from "./hooks/useModalDraggable.js";
|
|
9
9
|
import Button from "../Button/index.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
|
/* empty css */
|
14
14
|
const _hoisted_1 = {
|
15
15
|
key: 0,
|
@@ -86,11 +86,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
86
86
|
modalStyle: _modalStyle,
|
87
87
|
fullscreen,
|
88
88
|
draggable,
|
89
|
-
renderToBody
|
90
|
-
popupContainer: _popupContainer
|
89
|
+
renderToBody
|
91
90
|
} = toRefs(props);
|
92
91
|
const { onBeforeOk, onBeforeCancel } = props;
|
93
|
-
const { popupContainer, zIndex } = getGlobalConfig(props);
|
92
|
+
const { popupContainer, zIndex, isAbsolute } = getGlobalConfig(props);
|
94
93
|
const { t } = useI18n();
|
95
94
|
const {
|
96
95
|
outerVisible,
|
@@ -137,7 +136,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
137
136
|
_ctx.$attrs.class,
|
138
137
|
{
|
139
138
|
"yc-modal-simple": _ctx.simple,
|
140
|
-
"yc-modal-position-absolute": unref(
|
139
|
+
"yc-modal-position-absolute": unref(isAbsolute)
|
141
140
|
}
|
142
141
|
]),
|
143
142
|
style: normalizeStyle({
|
@@ -8,7 +8,7 @@ import { getSlotFunction } from "../_shared/utils/vue-utils.js";
|
|
8
8
|
import "../_shared/utils/locale.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
|
import { useTimeoutFn } from "../node_modules/@vueuse/shared/index.js";
|
14
14
|
const _hoisted_1 = { class: "yc-notification-left" };
|
@@ -8,7 +8,7 @@ import _sfc_main$2 from "../_shared/icons/IconArrowRight.vue.js";
|
|
8
8
|
import Divider from "../Divider/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
|
const _hoisted_1 = { class: "yc-page-header" };
|
13
13
|
const _hoisted_2 = { class: "yc-page-header-wrapper" };
|
14
14
|
const _hoisted_3 = {
|
package/es/Popconfirm/index.d.ts
CHANGED
@@ -186,6 +186,7 @@ declare const Popconfirm: {
|
|
186
186
|
focusDelay: number;
|
187
187
|
disabled: boolean;
|
188
188
|
scrollToCloseDistance: number;
|
189
|
+
scrollToClose: boolean;
|
189
190
|
autoSetPosition: boolean;
|
190
191
|
alignPoint: boolean;
|
191
192
|
position: import('..').TriggerPostion;
|
@@ -206,7 +207,6 @@ declare const Popconfirm: {
|
|
206
207
|
autoFitPosition: boolean;
|
207
208
|
updateAtScroll: boolean;
|
208
209
|
preventFocus: boolean;
|
209
|
-
scrollToClose: boolean;
|
210
210
|
needTransformOrigin: boolean;
|
211
211
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
212
212
|
beforeCreate?: (() => void) | (() => void)[];
|
@@ -240,6 +240,7 @@ declare const Popconfirm: {
|
|
240
240
|
focusDelay: number;
|
241
241
|
disabled: boolean;
|
242
242
|
scrollToCloseDistance: number;
|
243
|
+
scrollToClose: boolean;
|
243
244
|
autoSetPosition: boolean;
|
244
245
|
alignPoint: boolean;
|
245
246
|
position: import('..').TriggerPostion;
|
@@ -260,14 +261,13 @@ declare const Popconfirm: {
|
|
260
261
|
autoFitPosition: boolean;
|
261
262
|
updateAtScroll: boolean;
|
262
263
|
preventFocus: boolean;
|
263
|
-
scrollToClose: boolean;
|
264
264
|
needTransformOrigin: boolean;
|
265
265
|
}> & Omit<Readonly<import('..').TriggerProps> & Readonly<{
|
266
266
|
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
267
267
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
268
268
|
onShow?: (() => any) | undefined;
|
269
269
|
onHide?: (() => any) | undefined;
|
270
|
-
}>, "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" | "
|
270
|
+
}>, "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<{
|
271
271
|
hide(): void;
|
272
272
|
show(): void;
|
273
273
|
updatePosition(x: number, y: number): void;
|
@@ -153,6 +153,7 @@ declare function __VLS_template(): {
|
|
153
153
|
focusDelay: number;
|
154
154
|
disabled: boolean;
|
155
155
|
scrollToCloseDistance: number;
|
156
|
+
scrollToClose: boolean;
|
156
157
|
autoSetPosition: boolean;
|
157
158
|
alignPoint: boolean;
|
158
159
|
position: import('../Trigger').TriggerPostion;
|
@@ -173,7 +174,6 @@ declare function __VLS_template(): {
|
|
173
174
|
autoFitPosition: boolean;
|
174
175
|
updateAtScroll: boolean;
|
175
176
|
preventFocus: boolean;
|
176
|
-
scrollToClose: boolean;
|
177
177
|
needTransformOrigin: boolean;
|
178
178
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
179
179
|
beforeCreate?: (() => void) | (() => void)[];
|
@@ -207,6 +207,7 @@ declare function __VLS_template(): {
|
|
207
207
|
focusDelay: number;
|
208
208
|
disabled: boolean;
|
209
209
|
scrollToCloseDistance: number;
|
210
|
+
scrollToClose: boolean;
|
210
211
|
autoSetPosition: boolean;
|
211
212
|
alignPoint: boolean;
|
212
213
|
position: import('../Trigger').TriggerPostion;
|
@@ -227,14 +228,13 @@ declare function __VLS_template(): {
|
|
227
228
|
autoFitPosition: boolean;
|
228
229
|
updateAtScroll: boolean;
|
229
230
|
preventFocus: boolean;
|
230
|
-
scrollToClose: boolean;
|
231
231
|
needTransformOrigin: boolean;
|
232
232
|
}> & Omit<Readonly<import('../Trigger').TriggerProps> & Readonly<{
|
233
233
|
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
234
234
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
235
235
|
onShow?: (() => any) | undefined;
|
236
236
|
onHide?: (() => any) | undefined;
|
237
|
-
}>, "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" | "
|
237
|
+
}>, "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<{
|
238
238
|
hide(): void;
|
239
239
|
show(): void;
|
240
240
|
updatePosition(x: number, y: number): void;
|
@@ -428,6 +428,7 @@ declare const __VLS_component: import('vue').DefineComponent<PopconfirmProps, {
|
|
428
428
|
focusDelay: number;
|
429
429
|
disabled: boolean;
|
430
430
|
scrollToCloseDistance: number;
|
431
|
+
scrollToClose: boolean;
|
431
432
|
autoSetPosition: boolean;
|
432
433
|
alignPoint: boolean;
|
433
434
|
position: import('../Trigger').TriggerPostion;
|
@@ -448,7 +449,6 @@ declare const __VLS_component: import('vue').DefineComponent<PopconfirmProps, {
|
|
448
449
|
autoFitPosition: boolean;
|
449
450
|
updateAtScroll: boolean;
|
450
451
|
preventFocus: boolean;
|
451
|
-
scrollToClose: boolean;
|
452
452
|
needTransformOrigin: boolean;
|
453
453
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
454
454
|
beforeCreate?: (() => void) | (() => void)[];
|
@@ -482,6 +482,7 @@ declare const __VLS_component: import('vue').DefineComponent<PopconfirmProps, {
|
|
482
482
|
focusDelay: number;
|
483
483
|
disabled: boolean;
|
484
484
|
scrollToCloseDistance: number;
|
485
|
+
scrollToClose: boolean;
|
485
486
|
autoSetPosition: boolean;
|
486
487
|
alignPoint: boolean;
|
487
488
|
position: import('../Trigger').TriggerPostion;
|
@@ -502,14 +503,13 @@ declare const __VLS_component: import('vue').DefineComponent<PopconfirmProps, {
|
|
502
503
|
autoFitPosition: boolean;
|
503
504
|
updateAtScroll: boolean;
|
504
505
|
preventFocus: boolean;
|
505
|
-
scrollToClose: boolean;
|
506
506
|
needTransformOrigin: boolean;
|
507
507
|
}> & Omit<Readonly<import('../Trigger').TriggerProps> & Readonly<{
|
508
508
|
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
509
509
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
510
510
|
onShow?: (() => any) | undefined;
|
511
511
|
onHide?: (() => any) | undefined;
|
512
|
-
}>, "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" | "
|
512
|
+
}>, "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<{
|
513
513
|
hide(): void;
|
514
514
|
show(): void;
|
515
515
|
updatePosition(x: number, y: number): void;
|
package/es/Radio/Radio.vue.js
CHANGED
@@ -7,7 +7,7 @@ import useControlValue from "../_shared/utils/control.js";
|
|
7
7
|
import useContext from "./hooks/useContext.js";
|
8
8
|
import _sfc_main$1 from "../_shared/components/IconButton.vue.js";
|
9
9
|
/* empty css */
|
10
|
-
/* empty css
|
10
|
+
/* empty css */
|
11
11
|
/* empty css */
|
12
12
|
const _hoisted_1 = ["value", "checked", "disabled"];
|
13
13
|
const _hoisted_2 = {
|
@@ -155,6 +155,7 @@ declare function __VLS_template(): {
|
|
155
155
|
focusDelay: number;
|
156
156
|
disabled: boolean;
|
157
157
|
scrollToCloseDistance: number;
|
158
|
+
scrollToClose: boolean;
|
158
159
|
autoSetPosition: boolean;
|
159
160
|
alignPoint: boolean;
|
160
161
|
position: import('../Trigger').TriggerPostion;
|
@@ -175,7 +176,6 @@ declare function __VLS_template(): {
|
|
175
176
|
autoFitPosition: boolean;
|
176
177
|
updateAtScroll: boolean;
|
177
178
|
preventFocus: boolean;
|
178
|
-
scrollToClose: boolean;
|
179
179
|
needTransformOrigin: boolean;
|
180
180
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
181
181
|
beforeCreate?: (() => void) | (() => void)[];
|
@@ -209,6 +209,7 @@ declare function __VLS_template(): {
|
|
209
209
|
focusDelay: number;
|
210
210
|
disabled: boolean;
|
211
211
|
scrollToCloseDistance: number;
|
212
|
+
scrollToClose: boolean;
|
212
213
|
autoSetPosition: boolean;
|
213
214
|
alignPoint: boolean;
|
214
215
|
position: import('../Trigger').TriggerPostion;
|
@@ -229,14 +230,13 @@ declare function __VLS_template(): {
|
|
229
230
|
autoFitPosition: boolean;
|
230
231
|
updateAtScroll: boolean;
|
231
232
|
preventFocus: boolean;
|
232
|
-
scrollToClose: boolean;
|
233
233
|
needTransformOrigin: boolean;
|
234
234
|
}> & Omit<Readonly<import('../Trigger').TriggerProps> & Readonly<{
|
235
235
|
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
236
236
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
237
237
|
onShow?: (() => any) | undefined;
|
238
238
|
onHide?: (() => any) | undefined;
|
239
|
-
}>, "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" | "
|
239
|
+
}>, "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<{
|
240
240
|
hide(): void;
|
241
241
|
show(): void;
|
242
242
|
updatePosition(x: number, y: number): void;
|
@@ -604,6 +604,7 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
|
|
604
604
|
focusDelay: number;
|
605
605
|
disabled: boolean;
|
606
606
|
scrollToCloseDistance: number;
|
607
|
+
scrollToClose: boolean;
|
607
608
|
autoSetPosition: boolean;
|
608
609
|
alignPoint: boolean;
|
609
610
|
position: import('../Trigger').TriggerPostion;
|
@@ -624,7 +625,6 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
|
|
624
625
|
autoFitPosition: boolean;
|
625
626
|
updateAtScroll: boolean;
|
626
627
|
preventFocus: boolean;
|
627
|
-
scrollToClose: boolean;
|
628
628
|
needTransformOrigin: boolean;
|
629
629
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
630
630
|
beforeCreate?: (() => void) | (() => void)[];
|
@@ -658,6 +658,7 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
|
|
658
658
|
focusDelay: number;
|
659
659
|
disabled: boolean;
|
660
660
|
scrollToCloseDistance: number;
|
661
|
+
scrollToClose: boolean;
|
661
662
|
autoSetPosition: boolean;
|
662
663
|
alignPoint: boolean;
|
663
664
|
position: import('../Trigger').TriggerPostion;
|
@@ -678,14 +679,13 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
|
|
678
679
|
autoFitPosition: boolean;
|
679
680
|
updateAtScroll: boolean;
|
680
681
|
preventFocus: boolean;
|
681
|
-
scrollToClose: boolean;
|
682
682
|
needTransformOrigin: boolean;
|
683
683
|
}> & Omit<Readonly<import('../Trigger').TriggerProps> & Readonly<{
|
684
684
|
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
685
685
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
686
686
|
onShow?: (() => any) | undefined;
|
687
687
|
onHide?: (() => any) | undefined;
|
688
|
-
}>, "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" | "
|
688
|
+
}>, "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<{
|
689
689
|
hide(): void;
|
690
690
|
show(): void;
|
691
691
|
updatePosition(x: number, y: number): void;
|
@@ -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-select-suffix-icon" };
|
14
14
|
const _hoisted_2 = {
|
package/es/Select/index.d.ts
CHANGED
@@ -223,6 +223,7 @@ declare const Select: {
|
|
223
223
|
focusDelay: number;
|
224
224
|
disabled: boolean;
|
225
225
|
scrollToCloseDistance: number;
|
226
|
+
scrollToClose: boolean;
|
226
227
|
autoSetPosition: boolean;
|
227
228
|
alignPoint: boolean;
|
228
229
|
position: import('..').TriggerPostion;
|
@@ -243,7 +244,6 @@ declare const Select: {
|
|
243
244
|
autoFitPosition: boolean;
|
244
245
|
updateAtScroll: boolean;
|
245
246
|
preventFocus: boolean;
|
246
|
-
scrollToClose: boolean;
|
247
247
|
needTransformOrigin: boolean;
|
248
248
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
249
249
|
beforeCreate?: (() => void) | (() => void)[];
|
@@ -277,6 +277,7 @@ declare const Select: {
|
|
277
277
|
focusDelay: number;
|
278
278
|
disabled: boolean;
|
279
279
|
scrollToCloseDistance: number;
|
280
|
+
scrollToClose: boolean;
|
280
281
|
autoSetPosition: boolean;
|
281
282
|
alignPoint: boolean;
|
282
283
|
position: import('..').TriggerPostion;
|
@@ -297,14 +298,13 @@ declare const Select: {
|
|
297
298
|
autoFitPosition: boolean;
|
298
299
|
updateAtScroll: boolean;
|
299
300
|
preventFocus: boolean;
|
300
|
-
scrollToClose: boolean;
|
301
301
|
needTransformOrigin: boolean;
|
302
302
|
}> & Omit<Readonly<import('..').TriggerProps> & Readonly<{
|
303
303
|
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
304
304
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
305
305
|
onShow?: (() => any) | undefined;
|
306
306
|
onHide?: (() => any) | undefined;
|
307
|
-
}>, "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" | "
|
307
|
+
}>, "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<{
|
308
308
|
hide(): void;
|
309
309
|
show(): void;
|
310
310
|
updatePosition(x: number, y: number): void;
|
package/es/Tabs/TabButton.vue.js
CHANGED
@@ -5,7 +5,7 @@ import "../node_modules/tinycolor2/esm/tinycolor.js";
|
|
5
5
|
import "../_shared/utils/dom.js";
|
6
6
|
import "../_shared/utils/time.js";
|
7
7
|
import "../_shared/utils/locale.js";
|
8
|
-
/* empty css
|
8
|
+
/* empty css */
|
9
9
|
/* empty css */
|
10
10
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
11
11
|
__name: "TabButton",
|
package/es/Tag/index.vue.js
CHANGED
@@ -9,7 +9,7 @@ import useControlValue from "../_shared/utils/control.js";
|
|
9
9
|
import Spin from "../Spin/index.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
|
/* empty css */
|
14
14
|
const _hoisted_1 = {
|
15
15
|
key: 0,
|
package/es/Textarea/index.vue.js
CHANGED
@@ -8,7 +8,7 @@ import "../node_modules/tinycolor2/esm/tinycolor.js";
|
|
8
8
|
import "../_shared/utils/dom.js";
|
9
9
|
import "../_shared/utils/time.js";
|
10
10
|
import "../_shared/utils/locale.js";
|
11
|
-
/* empty css
|
11
|
+
/* empty css */
|
12
12
|
/* empty css */
|
13
13
|
const _hoisted_1 = ["value", "disabled", "readonly", "placeholder"];
|
14
14
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
@@ -8,7 +8,7 @@ import "../_shared/utils/locale.js";
|
|
8
8
|
import useContext from "./hooks/useContext.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
|
import _sfc_main$2 from "../_shared/icons/IconTime.vue.js";
|
14
14
|
import Trigger from "../Trigger/index.js";
|