yc-design-vue 1.5.0 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/Alert/index.vue2.js +1 -1
- package/es/Breadcrumb/BreadcrumbSeparator.vue2.js +1 -1
- package/es/Calendar/Calendar.vue.d.ts +1 -1
- package/es/Calendar/Calendar.vue2.js +1 -1
- package/es/Calendar/index.d.ts +3 -3
- package/es/Cascader/CascaderIcon.vue2.js +1 -1
- package/es/Checkbox/Checkbox.vue2.js +1 -1
- package/es/Collapse/CollapseItem.vue2.js +1 -1
- package/es/Divider/index.vue.js +1 -1
- package/es/Divider/index.vue2.js +1 -1
- package/es/Drawer/Drawer.vue2.js +1 -1
- package/es/Input/Input.vue2.js +1 -1
- package/es/Input/InputSuffix.vue2.js +1 -1
- package/es/InputTag/index.vue2.js +1 -1
- package/es/Layout/hooks/useSiderContext.d.ts +1 -1
- package/es/Layout/hooks/useSiderContext.js +6 -23
- package/es/Layout/hooks/useTheme.d.ts +4 -0
- package/es/Layout/hooks/useTheme.js +34 -0
- package/es/Menu/SubMenu.vue2.js +1 -1
- package/es/Menu/hooks/useContext.d.ts +1 -1
- package/es/Menu/hooks/useContext.js +5 -2
- package/es/Message/Message.vue2.js +1 -1
- package/es/Modal/Modal.vue2.js +1 -1
- package/es/Notification/Notification.vue2.js +1 -1
- package/es/PageHeader/index.vue2.js +1 -1
- package/es/Progress/ProgressCircle.vue2.js +1 -1
- package/es/Radio/Radio.vue2.js +1 -1
- package/es/Select/SelectIcon.vue2.js +1 -1
- package/es/Tabs/TabButton.vue2.js +1 -1
- package/es/Tag/index.vue2.js +1 -1
- package/es/Textarea/index.vue2.js +1 -1
- package/es/TimePicker/TimePicker.vue2.js +1 -1
- package/es/Transfer/TransferPanel.vue2.js +1 -1
- package/es/Trigger/index.vue2.js +1 -1
- package/es/_shared/components/{ExpandTransition.vue.js → ExpandTransition.vue2.js} +1 -1
- package/es/_shared/icons/IconExclamation.vue.js +1 -27
- package/es/_shared/icons/IconExclamation.vue2.js +27 -1
- package/es/_shared/icons/IconSeparator.vue.js +1 -16
- package/es/_shared/icons/IconSeparator.vue2.js +16 -1
- package/es/node_modules/@vueuse/core/index.js +4 -319
- package/es/node_modules/@vueuse/shared/index.js +2 -65
- package/es/style.css +1 -1
- package/lib/Alert/index.vue2.js +1 -1
- package/lib/Breadcrumb/BreadcrumbSeparator.vue2.js +1 -1
- package/lib/Calendar/Calendar.vue.d.ts +1 -1
- package/lib/Calendar/Calendar.vue2.js +1 -1
- package/lib/Calendar/index.d.ts +3 -3
- package/lib/Cascader/CascaderIcon.vue2.js +1 -1
- package/lib/Checkbox/Checkbox.vue2.js +1 -1
- package/lib/Collapse/CollapseItem.vue2.js +1 -1
- package/lib/Divider/index.vue.js +1 -1
- package/lib/Divider/index.vue2.js +1 -1
- package/lib/Drawer/Drawer.vue2.js +1 -1
- package/lib/Input/Input.vue2.js +1 -1
- package/lib/Input/InputSuffix.vue2.js +1 -1
- package/lib/InputTag/index.vue2.js +1 -1
- package/lib/Layout/hooks/useSiderContext.d.ts +1 -1
- package/lib/Layout/hooks/useSiderContext.js +1 -1
- package/lib/Layout/hooks/useTheme.d.ts +4 -0
- package/lib/Layout/hooks/useTheme.js +1 -0
- package/lib/Menu/SubMenu.vue2.js +1 -1
- package/lib/Menu/hooks/useContext.d.ts +1 -1
- package/lib/Menu/hooks/useContext.js +1 -1
- package/lib/Message/Message.vue2.js +1 -1
- package/lib/Modal/Modal.vue2.js +1 -1
- package/lib/Notification/Notification.vue2.js +1 -1
- package/lib/PageHeader/index.vue2.js +1 -1
- package/lib/Progress/ProgressCircle.vue2.js +1 -1
- package/lib/Radio/Radio.vue2.js +1 -1
- package/lib/Select/SelectIcon.vue2.js +1 -1
- package/lib/Tabs/TabButton.vue2.js +1 -1
- package/lib/Tag/index.vue2.js +1 -1
- package/lib/Textarea/index.vue2.js +1 -1
- package/lib/TimePicker/TimePicker.vue2.js +1 -1
- package/lib/Transfer/TransferPanel.vue2.js +1 -1
- package/lib/Trigger/index.vue2.js +1 -1
- package/lib/_shared/components/ExpandTransition.vue2.js +1 -0
- package/lib/_shared/icons/IconExclamation.vue.js +1 -1
- package/lib/_shared/icons/IconExclamation.vue2.js +1 -1
- package/lib/_shared/icons/IconSeparator.vue.js +1 -1
- package/lib/_shared/icons/IconSeparator.vue2.js +1 -1
- package/lib/node_modules/@vueuse/core/index.js +1 -1
- package/lib/node_modules/@vueuse/shared/index.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/lib/_shared/components/ExpandTransition.vue.js +0 -1
package/es/Alert/index.vue2.js
CHANGED
@@ -5,7 +5,7 @@ import { isUndefined } from "../_shared/utils/is.js";
|
|
5
5
|
import "../_shared/utils/time.js";
|
6
6
|
import "../Empty/index.js";
|
7
7
|
/* empty css */
|
8
|
-
import _sfc_main$1 from "../_shared/icons/IconSeparator.
|
8
|
+
import _sfc_main$1 from "../_shared/icons/IconSeparator.vue2.js";
|
9
9
|
const _hoisted_1 = { class: "yc-breadcrumb-item-separator" };
|
10
10
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
11
11
|
__name: "BreadcrumbSeparator",
|
@@ -20,8 +20,8 @@ declare const __VLS_component: import('vue').DefineComponent<CalendarProps, {},
|
|
20
20
|
mode: CalendarMode;
|
21
21
|
modelValue: Date;
|
22
22
|
defaultValue: Date;
|
23
|
-
modes: CalendarMode[];
|
24
23
|
defaultMode: CalendarMode;
|
24
|
+
modes: CalendarMode[];
|
25
25
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
26
26
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
27
27
|
export default _default;
|
@@ -8,7 +8,7 @@ import "../Empty/index.js";
|
|
8
8
|
import _sfc_main$1 from "../_shared/icons/IconArrowRight.vue.js";
|
9
9
|
import useControlValue from "../_shared/utils/control.js";
|
10
10
|
import IconButton from "../_shared/components/IconButton.vue.js";
|
11
|
-
/* empty css
|
11
|
+
/* empty css */
|
12
12
|
import Button from "../Button/index.js";
|
13
13
|
import "../Radio/index.js";
|
14
14
|
import MonthCalendar from "./CalendarMonth.vue.js";
|
package/es/Calendar/index.d.ts
CHANGED
@@ -17,8 +17,8 @@ declare const Calendar: {
|
|
17
17
|
mode: import('./type').CalendarMode;
|
18
18
|
modelValue: Date;
|
19
19
|
defaultValue: Date;
|
20
|
-
modes: import('./type').CalendarMode[];
|
21
20
|
defaultMode: import('./type').CalendarMode;
|
21
|
+
modes: import('./type').CalendarMode[];
|
22
22
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
23
23
|
P: {};
|
24
24
|
B: {};
|
@@ -35,8 +35,8 @@ declare const Calendar: {
|
|
35
35
|
mode: import('./type').CalendarMode;
|
36
36
|
modelValue: Date;
|
37
37
|
defaultValue: Date;
|
38
|
-
modes: import('./type').CalendarMode[];
|
39
38
|
defaultMode: import('./type').CalendarMode;
|
39
|
+
modes: import('./type').CalendarMode[];
|
40
40
|
}>;
|
41
41
|
__isFragment?: never;
|
42
42
|
__isTeleport?: never;
|
@@ -55,8 +55,8 @@ declare const Calendar: {
|
|
55
55
|
mode: import('./type').CalendarMode;
|
56
56
|
modelValue: Date;
|
57
57
|
defaultValue: Date;
|
58
|
-
modes: import('./type').CalendarMode[];
|
59
58
|
defaultMode: import('./type').CalendarMode;
|
59
|
+
modes: import('./type').CalendarMode[];
|
60
60
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
61
61
|
$slots: Readonly<import('./type').CalendarSlots> & import('./type').CalendarSlots;
|
62
62
|
}) & {
|
@@ -7,7 +7,7 @@ import "../_shared/utils/time.js";
|
|
7
7
|
import "../Empty/index.js";
|
8
8
|
/* empty css */
|
9
9
|
import IconButton from "../_shared/components/IconButton.vue.js";
|
10
|
-
/* empty css
|
10
|
+
/* empty css */
|
11
11
|
import Spin from "../Spin/index.js";
|
12
12
|
const _hoisted_1 = { class: "yc-cascader-suffix-icon" };
|
13
13
|
const _hoisted_2 = {
|
@@ -9,7 +9,7 @@ import _sfc_main$1 from "../_shared/icons/IconCheckboxChecked.vue.js";
|
|
9
9
|
import useControlValue from "../_shared/utils/control.js";
|
10
10
|
import useContext from "./hooks/useContext.js";
|
11
11
|
import IconButton from "../_shared/components/IconButton.vue.js";
|
12
|
-
/* empty css
|
12
|
+
/* empty css */
|
13
13
|
const _hoisted_1 = ["value", "disabled", "checked"];
|
14
14
|
const _hoisted_2 = { class: "yc-checkbox-icon" };
|
15
15
|
const _hoisted_3 = {
|
@@ -7,7 +7,7 @@ import "../Empty/index.js";
|
|
7
7
|
/* empty css */
|
8
8
|
import _sfc_main$1 from "../_shared/icons/IconRight.vue.js";
|
9
9
|
import IconButton from "../_shared/components/IconButton.vue.js";
|
10
|
-
import ExpandTransition from "../_shared/components/ExpandTransition.
|
10
|
+
import ExpandTransition from "../_shared/components/ExpandTransition.vue2.js";
|
11
11
|
const _hoisted_1 = { class: "yc-collapse-item-header-title text-ellipsis" };
|
12
12
|
const _hoisted_2 = {
|
13
13
|
key: 1,
|
package/es/Divider/index.vue.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import _sfc_main from "./index.vue2.js";
|
2
2
|
/* empty css */
|
3
3
|
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
4
|
-
const _Divider = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const _Divider = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d369993c"]]);
|
5
5
|
export {
|
6
6
|
_Divider as default
|
7
7
|
};
|
package/es/Divider/index.vue2.js
CHANGED
@@ -27,7 +27,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
27
27
|
return direction.value == "horizontal" ? `${valueToPx(_margin.value)} 0` : `0 ${valueToPx(_margin.value)}`;
|
28
28
|
});
|
29
29
|
const border = computed(
|
30
|
-
() => `${valueToPx(size.value)} ${type.value}
|
30
|
+
() => `${valueToPx(size.value)} ${type.value} var(--color-neutral-3)`
|
31
31
|
);
|
32
32
|
return (_ctx, _cache) => {
|
33
33
|
return openBlock(), createElementBlock("div", {
|
package/es/Drawer/Drawer.vue2.js
CHANGED
@@ -6,7 +6,7 @@ import { getGlobalConfig } from "../_shared/utils/global-config.js";
|
|
6
6
|
import useModalClose from "../Modal/hooks/useModalClose.js";
|
7
7
|
import Button from "../Button/index.js";
|
8
8
|
import IconButton from "../_shared/components/IconButton.vue.js";
|
9
|
-
/* empty css
|
9
|
+
/* empty css */
|
10
10
|
/* empty css */
|
11
11
|
const _hoisted_1 = {
|
12
12
|
key: 0,
|
package/es/Input/Input.vue2.js
CHANGED
@@ -7,7 +7,7 @@ import useControlValue from "../_shared/utils/control.js";
|
|
7
7
|
import useLimitedInput from "./hooks/useLimitedInput.js";
|
8
8
|
import IconButton from "../_shared/components/IconButton.vue.js";
|
9
9
|
import _sfc_main$1 from "../_shared/components/PreventFocus.vue.js";
|
10
|
-
/* empty css
|
10
|
+
/* empty css */
|
11
11
|
/* empty css */
|
12
12
|
import InputSuffix from "./InputSuffix.vue.js";
|
13
13
|
const _hoisted_1 = ["value", "type", "disabled", "readonly", "placeholder"];
|
@@ -8,7 +8,7 @@ import _sfc_main$3 from "../_shared/icons/IconEyeClose.vue2.js";
|
|
8
8
|
import _sfc_main$2 from "../_shared/icons/IconEyeOpen.vue2.js";
|
9
9
|
import IconButton from "../_shared/components/IconButton.vue.js";
|
10
10
|
import _sfc_main$1 from "../_shared/components/PreventFocus.vue.js";
|
11
|
-
/* empty css
|
11
|
+
/* empty css */
|
12
12
|
const _hoisted_1 = {
|
13
13
|
key: 0,
|
14
14
|
class: "yc-input-word-limit"
|
@@ -10,7 +10,7 @@ import useControlValue from "../_shared/utils/control.js";
|
|
10
10
|
import Tag from "../Tag/index.js";
|
11
11
|
import IconButton from "../_shared/components/IconButton.vue.js";
|
12
12
|
import _sfc_main$1 from "../_shared/components/PreventFocus.vue.js";
|
13
|
-
/* empty css
|
13
|
+
/* empty css */
|
14
14
|
/* empty css */
|
15
15
|
const _hoisted_1 = ["disabled", "readonly", "placeholder"];
|
16
16
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
@@ -3,7 +3,7 @@ import { Props, Theme } from '../../_shared/type';
|
|
3
3
|
import { LayoutSiderEmits } from '../type';
|
4
4
|
export declare const LAYOUT_CONTEXT_KEY = "LAYOUT-CONTEXT";
|
5
5
|
export type LayoutContext = {
|
6
|
-
theme: Ref<Theme>;
|
6
|
+
theme: Ref<Theme | undefined>;
|
7
7
|
collapsed: Ref<boolean>;
|
8
8
|
};
|
9
9
|
declare const _default: () => {
|
@@ -1,28 +1,16 @@
|
|
1
1
|
import { toRefs, computed, provide, inject, ref } from "vue";
|
2
2
|
import "../../node_modules/tinycolor2/esm/tinycolor.js";
|
3
3
|
import "../../_shared/utils/dom.js";
|
4
|
-
import { isUndefined } from "../../_shared/utils/is.js";
|
5
4
|
import "../../_shared/utils/time.js";
|
6
5
|
import "../../Empty/index.js";
|
7
6
|
/* empty css */
|
8
7
|
import useControlValue from "../../_shared/utils/control.js";
|
9
|
-
import { useDark } from "../../node_modules/@vueuse/core/index.js";
|
10
8
|
const LAYOUT_CONTEXT_KEY = "LAYOUT-CONTEXT";
|
11
9
|
const useSiderContext = () => {
|
12
10
|
const provide$1 = (props, emits) => {
|
13
|
-
const {
|
14
|
-
|
15
|
-
|
16
|
-
defaultCollapsed
|
17
|
-
} = toRefs(props);
|
18
|
-
const isDark = useDark({
|
19
|
-
selector: "body",
|
20
|
-
attribute: "yc-design-theme",
|
21
|
-
valueDark: "dark",
|
22
|
-
valueLight: "light",
|
23
|
-
initialValue: "light"
|
24
|
-
});
|
25
|
-
isDark.value = false;
|
11
|
+
const { collapsed, defaultCollapsed, theme } = toRefs(
|
12
|
+
props
|
13
|
+
);
|
26
14
|
const computedCollapsed = useControlValue(
|
27
15
|
collapsed,
|
28
16
|
defaultCollapsed.value,
|
@@ -30,24 +18,19 @@ const useSiderContext = () => {
|
|
30
18
|
emits("update:collapsed", val);
|
31
19
|
}
|
32
20
|
);
|
33
|
-
const
|
34
|
-
if (!isUndefined(_theme.value)) {
|
35
|
-
return _theme.value;
|
36
|
-
}
|
37
|
-
return isDark.value ? "dark" : "light";
|
38
|
-
});
|
21
|
+
const mergeTheme = computed(() => theme.value || "light");
|
39
22
|
provide(LAYOUT_CONTEXT_KEY, {
|
40
23
|
theme,
|
41
24
|
collapsed: computedCollapsed
|
42
25
|
});
|
43
26
|
return {
|
44
|
-
theme,
|
27
|
+
theme: mergeTheme,
|
45
28
|
computedCollapsed
|
46
29
|
};
|
47
30
|
};
|
48
31
|
const inject$1 = () => {
|
49
32
|
return inject(LAYOUT_CONTEXT_KEY, {
|
50
|
-
theme: ref(
|
33
|
+
theme: ref(void 0),
|
51
34
|
collapsed: ref(false)
|
52
35
|
});
|
53
36
|
};
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import { ref, onMounted } from "vue";
|
2
|
+
import { useMutationObserver } from "../../node_modules/@vueuse/core/index.js";
|
3
|
+
const useTheme = () => {
|
4
|
+
const theme = ref("light");
|
5
|
+
onMounted(() => {
|
6
|
+
const value = document.body.getAttribute("yc-design-theme");
|
7
|
+
theme.value = value === "dark" ? "dark" : "light";
|
8
|
+
});
|
9
|
+
useMutationObserver(
|
10
|
+
document.body,
|
11
|
+
(mutationsList) => {
|
12
|
+
for (const mutation of mutationsList) {
|
13
|
+
if (mutation.type === "attributes" && mutation.attributeName === "yc-design-theme") {
|
14
|
+
const value = mutation.target.getAttribute(
|
15
|
+
"yc-design-theme"
|
16
|
+
);
|
17
|
+
theme.value = value === "dark" ? "dark" : "light";
|
18
|
+
console.log(theme.value, "theme");
|
19
|
+
}
|
20
|
+
}
|
21
|
+
},
|
22
|
+
{
|
23
|
+
attributes: true,
|
24
|
+
// 明确告诉 MutationObserver 我们要监听属性的变化
|
25
|
+
attributeFilter: ["yc-design-theme"]
|
26
|
+
}
|
27
|
+
);
|
28
|
+
return {
|
29
|
+
theme
|
30
|
+
};
|
31
|
+
};
|
32
|
+
export {
|
33
|
+
useTheme as default
|
34
|
+
};
|
package/es/Menu/SubMenu.vue2.js
CHANGED
@@ -7,7 +7,7 @@ import "../_shared/utils/time.js";
|
|
7
7
|
import "../Empty/index.js";
|
8
8
|
/* empty css */
|
9
9
|
/* empty css */
|
10
|
-
import ExpandTransition from "../_shared/components/ExpandTransition.
|
10
|
+
import ExpandTransition from "../_shared/components/ExpandTransition.vue2.js";
|
11
11
|
import "./index.js";
|
12
12
|
import MenuItem from "./MenuItem.vue.js";
|
13
13
|
const _hoisted_1 = { class: "yc-menu-inline-content" };
|
@@ -39,7 +39,7 @@ export declare function isMenuItemActive(menuTree: MenuTreeNode[], currentPath:
|
|
39
39
|
export declare const getPopupMaxHeight: (popupMaxHeight: PopupMaxHeight) => number | undefined;
|
40
40
|
declare const _default: () => {
|
41
41
|
provide: (props: Props, emits: MenuEmits, menuRef: Ref<HTMLDivElement | undefined>) => {
|
42
|
-
theme: import('vue').ComputedRef<
|
42
|
+
theme: import('vue').ComputedRef<import('../../_shared/type').Theme>;
|
43
43
|
computedCollapsed: import('vue').WritableComputedRef<boolean, boolean>;
|
44
44
|
breakpoint: Ref<import('../..').BreakpointName, import('../..').BreakpointName>;
|
45
45
|
collapsedWidth: import('vue').ComputedRef<string>;
|
@@ -10,6 +10,7 @@ import "../index.js";
|
|
10
10
|
import { nanoid } from "../../node_modules/nanoid/index.browser.js";
|
11
11
|
import { useResizeObserver } from "../../node_modules/@vueuse/core/index.js";
|
12
12
|
import useSiderContext from "../../Layout/hooks/useSiderContext.js";
|
13
|
+
import useTheme from "../../Layout/hooks/useTheme.js";
|
13
14
|
import SubMenu from "../SubMenu.vue.js";
|
14
15
|
import MenuItem from "../MenuItem.vue.js";
|
15
16
|
const MENU_CONTEXT_KEY = "menu-context";
|
@@ -115,6 +116,7 @@ const getPopupMaxHeight = (popupMaxHeight) => {
|
|
115
116
|
}
|
116
117
|
};
|
117
118
|
const useMenuContext = () => {
|
119
|
+
const { theme: sysTheme } = useTheme();
|
118
120
|
const provide$1 = (props, emits, menuRef) => {
|
119
121
|
const {
|
120
122
|
selectedKeys,
|
@@ -134,6 +136,7 @@ const useMenuContext = () => {
|
|
134
136
|
autoScrollIntoView,
|
135
137
|
scrollConfig,
|
136
138
|
collapsedWidth,
|
139
|
+
theme: _theme,
|
137
140
|
popupMaxHeight: _popupMaxHeight
|
138
141
|
} = toRefs(props);
|
139
142
|
const { theme: injectTheme, collapsed: injectCollapsed } = useSiderContext().inject();
|
@@ -178,7 +181,7 @@ const useMenuContext = () => {
|
|
178
181
|
const menuItemWidths = ref([]);
|
179
182
|
const menuTree = computed(() => buildMenuTree(menuTreeNodes.value));
|
180
183
|
const max = ref(1e6);
|
181
|
-
const theme = computed(() =>
|
184
|
+
const theme = computed(() => _theme.value || injectTheme.value);
|
182
185
|
if (mode.value == "horizontal") {
|
183
186
|
useResizeObserver(
|
184
187
|
menuRef,
|
@@ -241,7 +244,7 @@ const useMenuContext = () => {
|
|
241
244
|
triggerProps: ref({}),
|
242
245
|
autoOpenSelected: ref(false),
|
243
246
|
mode: ref("vertical"),
|
244
|
-
theme:
|
247
|
+
theme: sysTheme,
|
245
248
|
popupMaxHeight: ref(),
|
246
249
|
autoScrollIntoView: ref(false),
|
247
250
|
scrollConfig: ref({}),
|
@@ -7,7 +7,7 @@ import "../Empty/index.js";
|
|
7
7
|
/* empty css */
|
8
8
|
import { TYPE_ICON_MAP } from "../_shared/constants/index.js";
|
9
9
|
import IconButton from "../_shared/components/IconButton.vue.js";
|
10
|
-
/* empty css
|
10
|
+
/* empty css */
|
11
11
|
import { useTimeoutFn } from "../node_modules/@vueuse/shared/index.js";
|
12
12
|
const _hoisted_1 = {
|
13
13
|
key: 0,
|
package/es/Modal/Modal.vue2.js
CHANGED
@@ -7,7 +7,7 @@ import useModalClose from "./hooks/useModalClose.js";
|
|
7
7
|
import useModalDraggable from "./hooks/useModalDraggable.js";
|
8
8
|
import Button from "../Button/index.js";
|
9
9
|
import IconButton from "../_shared/components/IconButton.vue.js";
|
10
|
-
/* empty css
|
10
|
+
/* empty css */
|
11
11
|
/* empty css */
|
12
12
|
const _hoisted_1 = {
|
13
13
|
key: 0,
|
@@ -8,7 +8,7 @@ import { getSlotFunction } from "../_shared/utils/vue-utils.js";
|
|
8
8
|
import "../Empty/index.js";
|
9
9
|
/* empty css */
|
10
10
|
import IconButton from "../_shared/components/IconButton.vue.js";
|
11
|
-
/* empty css
|
11
|
+
/* empty css */
|
12
12
|
import { useTimeoutFn } from "../node_modules/@vueuse/shared/index.js";
|
13
13
|
const _hoisted_1 = { class: "yc-notification-left" };
|
14
14
|
const _hoisted_2 = {
|
@@ -7,7 +7,7 @@ import "../Empty/index.js";
|
|
7
7
|
import _sfc_main$1 from "../_shared/icons/IconArrowRight.vue.js";
|
8
8
|
import Divider from "../Divider/index.js";
|
9
9
|
import IconButton from "../_shared/components/IconButton.vue.js";
|
10
|
-
/* empty css
|
10
|
+
/* empty css */
|
11
11
|
const _hoisted_1 = { class: "yc-page-header" };
|
12
12
|
const _hoisted_2 = { class: "yc-page-header-wrapper" };
|
13
13
|
const _hoisted_3 = {
|
@@ -6,7 +6,7 @@ import "../_shared/utils/time.js";
|
|
6
6
|
import "../Empty/index.js";
|
7
7
|
/* empty css */
|
8
8
|
import _sfc_main$1 from "../_shared/icons/IconCheck.vue.js";
|
9
|
-
import _sfc_main$2 from "../_shared/icons/IconExclamation.
|
9
|
+
import _sfc_main$2 from "../_shared/icons/IconExclamation.vue2.js";
|
10
10
|
import { TYPE_ICON_COLOR_MAP } from "../_shared/constants/index.js";
|
11
11
|
const _hoisted_1 = ["aria-valuenow"];
|
12
12
|
const _hoisted_2 = ["viewBox"];
|
package/es/Radio/Radio.vue2.js
CHANGED
@@ -7,7 +7,7 @@ import "../Empty/index.js";
|
|
7
7
|
import useControlValue from "../_shared/utils/control.js";
|
8
8
|
import useContext from "./hooks/useContext.js";
|
9
9
|
import IconButton from "../_shared/components/IconButton.vue.js";
|
10
|
-
/* empty css
|
10
|
+
/* empty css */
|
11
11
|
const _hoisted_1 = ["value", "checked", "disabled"];
|
12
12
|
const _hoisted_2 = {
|
13
13
|
key: 0,
|
@@ -7,7 +7,7 @@ import "../_shared/utils/time.js";
|
|
7
7
|
import "../Empty/index.js";
|
8
8
|
/* empty css */
|
9
9
|
import IconButton from "../_shared/components/IconButton.vue.js";
|
10
|
-
/* empty css
|
10
|
+
/* empty css */
|
11
11
|
import Spin from "../Spin/index.js";
|
12
12
|
const _hoisted_1 = { class: "yc-select-suffix-icon" };
|
13
13
|
const _hoisted_2 = {
|
package/es/Tag/index.vue2.js
CHANGED
@@ -7,7 +7,7 @@ import { getGlobalConfig } from "../_shared/utils/global-config.js";
|
|
7
7
|
import useControlValue from "../_shared/utils/control.js";
|
8
8
|
import Spin from "../Spin/index.js";
|
9
9
|
import IconButton from "../_shared/components/IconButton.vue.js";
|
10
|
-
/* empty css
|
10
|
+
/* empty css */
|
11
11
|
/* empty css */
|
12
12
|
const _hoisted_1 = {
|
13
13
|
key: 0,
|
@@ -8,7 +8,7 @@ import "../_shared/utils/dom.js";
|
|
8
8
|
import "../_shared/utils/time.js";
|
9
9
|
import "../Empty/index.js";
|
10
10
|
/* empty css */
|
11
|
-
/* empty css
|
11
|
+
/* empty css */
|
12
12
|
const _hoisted_1 = ["value", "disabled", "readonly", "placeholder"];
|
13
13
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
14
14
|
...{
|
@@ -6,7 +6,7 @@ import { isValidTimeRange } from "../_shared/utils/time.js";
|
|
6
6
|
import { getGlobalConfig } from "../_shared/utils/global-config.js";
|
7
7
|
import useContext from "./hooks/useContext.js";
|
8
8
|
import IconButton from "../_shared/components/IconButton.vue.js";
|
9
|
-
/* empty css
|
9
|
+
/* empty css */
|
10
10
|
/* empty css */
|
11
11
|
import _sfc_main$1 from "../_shared/icons/IconTime.vue.js";
|
12
12
|
import Trigger from "../Trigger/index.js";
|
@@ -12,7 +12,7 @@ import Checkbox from "../Checkbox/index.js";
|
|
12
12
|
import Scrollbar from "../Scrollbar/index.js";
|
13
13
|
import Input from "../Input/index.js";
|
14
14
|
import IconButton from "../_shared/components/IconButton.vue.js";
|
15
|
-
/* empty css
|
15
|
+
/* empty css */
|
16
16
|
const _hoisted_1 = { class: "yc-transfer-view" };
|
17
17
|
const _hoisted_2 = { class: "yc-transfer-view-header" };
|
18
18
|
const _hoisted_3 = { class: "yc-transfer-view-header-title" };
|
package/es/Trigger/index.vue2.js
CHANGED
@@ -9,7 +9,7 @@ import useTriggerPosition from "./hooks/useTriggerPosition.js";
|
|
9
9
|
/* empty css */
|
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 _sfc_main = /* @__PURE__ */ defineComponent({
|
14
14
|
...{
|
15
15
|
name: "Trigger",
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import _sfc_main from "./ExpandTransition.vue3.js";
|
2
|
-
/* empty css
|
2
|
+
/* empty css */
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
4
4
|
const ExpandTransition = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6e588238"]]);
|
5
5
|
export {
|
@@ -1,30 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import YcIcon from "../components/Icon.vue2.js";
|
3
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
4
|
-
__name: "IconExclamation",
|
5
|
-
setup(__props) {
|
6
|
-
return (_ctx, _cache) => {
|
7
|
-
return openBlock(), createBlock(YcIcon, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
8
|
-
default: withCtx(() => _cache[0] || (_cache[0] = [
|
9
|
-
createElementVNode("path", { d: "M23 9h2v21h-2z" }, null, -1),
|
10
|
-
createElementVNode("path", {
|
11
|
-
fill: "currentColor",
|
12
|
-
stroke: "none",
|
13
|
-
d: "M23 9h2v21h-2z"
|
14
|
-
}, null, -1),
|
15
|
-
createElementVNode("path", { d: "M23 37h2v2h-2z" }, null, -1),
|
16
|
-
createElementVNode("path", {
|
17
|
-
fill: "currentColor",
|
18
|
-
stroke: "none",
|
19
|
-
d: "M23 37h2v2h-2z"
|
20
|
-
}, null, -1)
|
21
|
-
])),
|
22
|
-
_: 1,
|
23
|
-
__: [0]
|
24
|
-
}, 16);
|
25
|
-
};
|
26
|
-
}
|
27
|
-
});
|
1
|
+
import _sfc_main from "./IconExclamation.vue2.js";
|
28
2
|
export {
|
29
3
|
_sfc_main as default
|
30
4
|
};
|
@@ -1,4 +1,30 @@
|
|
1
|
-
import
|
1
|
+
import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
|
2
|
+
import YcIcon from "../components/Icon.vue2.js";
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
4
|
+
__name: "IconExclamation",
|
5
|
+
setup(__props) {
|
6
|
+
return (_ctx, _cache) => {
|
7
|
+
return openBlock(), createBlock(YcIcon, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
8
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
9
|
+
createElementVNode("path", { d: "M23 9h2v21h-2z" }, null, -1),
|
10
|
+
createElementVNode("path", {
|
11
|
+
fill: "currentColor",
|
12
|
+
stroke: "none",
|
13
|
+
d: "M23 9h2v21h-2z"
|
14
|
+
}, null, -1),
|
15
|
+
createElementVNode("path", { d: "M23 37h2v2h-2z" }, null, -1),
|
16
|
+
createElementVNode("path", {
|
17
|
+
fill: "currentColor",
|
18
|
+
stroke: "none",
|
19
|
+
d: "M23 37h2v2h-2z"
|
20
|
+
}, null, -1)
|
21
|
+
])),
|
22
|
+
_: 1,
|
23
|
+
__: [0]
|
24
|
+
}, 16);
|
25
|
+
};
|
26
|
+
}
|
27
|
+
});
|
2
28
|
export {
|
3
29
|
_sfc_main as default
|
4
30
|
};
|
@@ -1,19 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import YcIcon from "../components/Icon.vue2.js";
|
3
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
4
|
-
__name: "IconSeparator",
|
5
|
-
setup(__props) {
|
6
|
-
return (_ctx, _cache) => {
|
7
|
-
return openBlock(), createBlock(YcIcon, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
8
|
-
default: withCtx(() => _cache[0] || (_cache[0] = [
|
9
|
-
createElementVNode("path", { d: "M29.506 6.502 18.493 41.498" }, null, -1)
|
10
|
-
])),
|
11
|
-
_: 1,
|
12
|
-
__: [0]
|
13
|
-
}, 16);
|
14
|
-
};
|
15
|
-
}
|
16
|
-
});
|
1
|
+
import _sfc_main from "./IconSeparator.vue2.js";
|
17
2
|
export {
|
18
3
|
_sfc_main as default
|
19
4
|
};
|
@@ -1,4 +1,19 @@
|
|
1
|
-
import
|
1
|
+
import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
|
2
|
+
import YcIcon from "../components/Icon.vue2.js";
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
4
|
+
__name: "IconSeparator",
|
5
|
+
setup(__props) {
|
6
|
+
return (_ctx, _cache) => {
|
7
|
+
return openBlock(), createBlock(YcIcon, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
8
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
9
|
+
createElementVNode("path", { d: "M29.506 6.502 18.493 41.498" }, null, -1)
|
10
|
+
])),
|
11
|
+
_: 1,
|
12
|
+
__: [0]
|
13
|
+
}, 16);
|
14
|
+
};
|
15
|
+
}
|
16
|
+
});
|
2
17
|
export {
|
3
18
|
_sfc_main as default
|
4
19
|
};
|