@uzum-tech/ui 2.0.0-beta.8 → 2.0.0
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/dist/index.js +485 -373
- package/dist/index.mjs +485 -373
- package/dist/index.prod.js +2 -2
- package/dist/index.prod.mjs +2 -2
- package/es/_internal/icon/index.d.ts +2 -0
- package/es/_internal/icon/index.mjs +2 -1
- package/es/_internal/icon/src/UIcon.d.ts +126 -0
- package/es/_internal/icon/src/UIcon.mjs +131 -0
- package/es/_internal/select-menu/src/SelectOption.mjs +12 -4
- package/es/_mixins/use-config.d.ts +2 -1
- package/es/_mixins/use-config.mjs +1 -0
- package/es/_utils/wrap-component.mjs +3 -1
- package/es/auto-complete/src/AutoComplete.d.ts +70 -0
- package/es/auto-complete/styles/light.d.ts +7 -0
- package/es/carousel/src/Carousel.mjs +39 -13
- package/es/chat/src/Chat.d.ts +70 -0
- package/es/chat/src/ChatListItems.d.ts +84 -0
- package/es/chat/src/ChatMessages.d.ts +84 -0
- package/es/chat/src/ChatParts/MainArea.mjs +104 -112
- package/es/chat/src/ChatParts/Sidebar.d.ts +14 -0
- package/es/chat/src/styles/index.cssr.mjs +24 -10
- package/es/chat/styles/dark.d.ts +7 -0
- package/es/chat/styles/light.d.ts +7 -0
- package/es/chat/styles/light.mjs +1 -0
- package/es/color-picker/src/ColorInputUnit.d.ts +7 -0
- package/es/color-picker/src/ColorPicker.d.ts +63 -0
- package/es/color-picker/styles/light.d.ts +7 -0
- package/es/components.d.ts +1146 -39
- package/es/config-provider/src/ConfigProvider.d.ts +4 -1
- package/es/config-provider/src/ConfigProvider.mjs +8 -0
- package/es/config-provider/src/interface.d.ts +1 -1
- package/es/config-provider/src/internal-interface.d.ts +8 -0
- package/es/data-table/src/DataTable.d.ts +56 -0
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +28 -0
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +28 -0
- package/es/data-table/src/TableParts/Body.d.ts +28 -0
- package/es/data-table/src/TableParts/Header.d.ts +28 -0
- package/es/data-table/src/interface.d.ts +21 -0
- package/es/data-table/styles/light.d.ts +7 -0
- package/es/date-picker/src/DatePicker.d.ts +147 -0
- package/es/date-picker/src/panel/date.d.ts +42 -0
- package/es/date-picker/src/panel/daterange.d.ts +42 -0
- package/es/date-picker/src/panel/datetime.d.ts +42 -0
- package/es/date-picker/src/panel/datetimerange.d.ts +42 -0
- package/es/date-picker/src/panel/panelMonth.d.ts +168 -0
- package/es/date-picker/src/panel/panelMonthContent.d.ts +42 -0
- package/es/date-picker/src/panel/panelYear.d.ts +168 -0
- package/es/date-picker/src/panel/panelYearContent.d.ts +42 -0
- package/es/date-picker/src/panel/use-calendar.d.ts +42 -0
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +42 -0
- package/es/date-picker/src/panel/use-panel-common.d.ts +42 -0
- package/es/date-picker/styles/light.d.ts +14 -0
- package/es/date-picker-v2/src/DatePickerV2.d.ts +70 -0
- package/es/date-picker-v2/styles/dark.d.ts +7 -0
- package/es/date-picker-v2/styles/light.d.ts +7 -0
- package/es/dialog/src/DialogEnvironment.mjs +1 -2
- package/es/dynamic-input/src/DynamicInput.d.ts +70 -0
- package/es/dynamic-input/src/InputPreset.d.ts +14 -0
- package/es/dynamic-input/src/PairPreset.d.ts +14 -0
- package/es/dynamic-input/styles/light.d.ts +7 -0
- package/es/dynamic-tags/src/DynamicTags.d.ts +70 -0
- package/es/dynamic-tags/styles/light.d.ts +7 -0
- package/es/icon/src/Icon.d.ts +2 -109
- package/es/icon/src/Icon.mjs +1 -93
- package/es/input/src/Input.d.ts +77 -0
- package/es/input/src/Input.mjs +15 -0
- package/es/input/src/InputGroupLabel.d.ts +63 -0
- package/es/input/src/styles/input.cssr.mjs +1 -1
- package/es/input/styles/light.d.ts +7 -0
- package/es/input/styles/light.mjs +11 -0
- package/es/input-number/src/InputNumber.d.ts +70 -0
- package/es/input-number/styles/light.d.ts +7 -0
- package/es/input-otp/src/InputOtp.d.ts +70 -0
- package/es/input-otp/styles/light.d.ts +7 -0
- package/es/legacy-transfer/src/Transfer.d.ts +70 -0
- package/es/legacy-transfer/src/TransferFilter.d.ts +14 -0
- package/es/legacy-transfer/src/TransferList.d.ts +14 -0
- package/es/legacy-transfer/src/TransferListItem.d.ts +14 -0
- package/es/legacy-transfer/styles/light.d.ts +7 -0
- package/es/mapping-card/src/MappingCard.d.ts +9 -0
- package/es/mapping-card/src/MappingCardParts/Header.mjs +1 -1
- package/es/mapping-card/src/interface.d.ts +5 -0
- package/es/mapping-card/src/interface.mjs +4 -0
- package/es/mention/src/Mention.d.ts +70 -0
- package/es/mention/styles/light.d.ts +7 -0
- package/es/modal/src/BodyWrapper.d.ts +0 -3
- package/es/modal/src/Modal.d.ts +13 -7
- package/es/modal/src/Modal.mjs +5 -2
- package/es/modal/src/ModalEnvironment.d.ts +9 -5
- package/es/modal/src/presetProps.d.ts +1 -2
- package/es/modal/src/presetProps.mjs +0 -1
- package/es/pagination/src/Pagination.d.ts +70 -0
- package/es/pagination/styles/light.d.ts +7 -0
- package/es/time-picker/src/Panel.d.ts +14 -0
- package/es/time-picker/src/TimePicker.d.ts +70 -0
- package/es/time-picker/styles/light.d.ts +7 -0
- package/es/transfer/src/Transfer.d.ts +70 -0
- package/es/transfer/src/TransferFilter.d.ts +14 -0
- package/es/transfer/src/TransferList.d.ts +14 -0
- package/es/transfer/src/TransferListItem.d.ts +14 -0
- package/es/transfer/styles/light.d.ts +7 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/lib/_internal/icon/index.d.ts +2 -0
- package/lib/_internal/icon/index.js +4 -1
- package/lib/_internal/icon/src/UIcon.d.ts +126 -0
- package/lib/_internal/icon/src/UIcon.js +108 -0
- package/lib/_internal/select-menu/src/SelectOption.js +8 -4
- package/lib/_mixins/use-config.d.ts +2 -1
- package/lib/_mixins/use-config.js +1 -0
- package/lib/_utils/wrap-component.js +3 -1
- package/lib/auto-complete/src/AutoComplete.d.ts +70 -0
- package/lib/auto-complete/styles/light.d.ts +7 -0
- package/lib/carousel/src/Carousel.js +26 -13
- package/lib/chat/src/Chat.d.ts +70 -0
- package/lib/chat/src/ChatListItems.d.ts +84 -0
- package/lib/chat/src/ChatMessages.d.ts +84 -0
- package/lib/chat/src/ChatParts/MainArea.js +53 -61
- package/lib/chat/src/ChatParts/Sidebar.d.ts +14 -0
- package/lib/chat/src/styles/index.cssr.js +24 -10
- package/lib/chat/styles/dark.d.ts +7 -0
- package/lib/chat/styles/light.d.ts +7 -0
- package/lib/chat/styles/light.js +1 -1
- package/lib/color-picker/src/ColorInputUnit.d.ts +7 -0
- package/lib/color-picker/src/ColorPicker.d.ts +63 -0
- package/lib/color-picker/styles/light.d.ts +7 -0
- package/lib/components.d.ts +1146 -39
- package/lib/config-provider/src/ConfigProvider.d.ts +4 -1
- package/lib/config-provider/src/ConfigProvider.js +8 -0
- package/lib/config-provider/src/interface.d.ts +1 -1
- package/lib/config-provider/src/internal-interface.d.ts +8 -0
- package/lib/data-table/src/DataTable.d.ts +56 -0
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +28 -0
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +28 -0
- package/lib/data-table/src/TableParts/Body.d.ts +28 -0
- package/lib/data-table/src/TableParts/Header.d.ts +28 -0
- package/lib/data-table/src/interface.d.ts +21 -0
- package/lib/data-table/styles/light.d.ts +7 -0
- package/lib/date-picker/src/DatePicker.d.ts +147 -0
- package/lib/date-picker/src/panel/date.d.ts +42 -0
- package/lib/date-picker/src/panel/daterange.d.ts +42 -0
- package/lib/date-picker/src/panel/datetime.d.ts +42 -0
- package/lib/date-picker/src/panel/datetimerange.d.ts +42 -0
- package/lib/date-picker/src/panel/panelMonth.d.ts +168 -0
- package/lib/date-picker/src/panel/panelMonthContent.d.ts +42 -0
- package/lib/date-picker/src/panel/panelYear.d.ts +168 -0
- package/lib/date-picker/src/panel/panelYearContent.d.ts +42 -0
- package/lib/date-picker/src/panel/use-calendar.d.ts +42 -0
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +42 -0
- package/lib/date-picker/src/panel/use-panel-common.d.ts +42 -0
- package/lib/date-picker/styles/light.d.ts +14 -0
- package/lib/date-picker-v2/src/DatePickerV2.d.ts +70 -0
- package/lib/date-picker-v2/styles/dark.d.ts +7 -0
- package/lib/date-picker-v2/styles/light.d.ts +7 -0
- package/lib/dialog/src/DialogEnvironment.js +1 -1
- package/lib/dynamic-input/src/DynamicInput.d.ts +70 -0
- package/lib/dynamic-input/src/InputPreset.d.ts +14 -0
- package/lib/dynamic-input/src/PairPreset.d.ts +14 -0
- package/lib/dynamic-input/styles/light.d.ts +7 -0
- package/lib/dynamic-tags/src/DynamicTags.d.ts +70 -0
- package/lib/dynamic-tags/styles/light.d.ts +7 -0
- package/lib/icon/src/Icon.d.ts +2 -109
- package/lib/icon/src/Icon.js +3 -73
- package/lib/input/src/Input.d.ts +77 -0
- package/lib/input/src/Input.js +9 -1
- package/lib/input/src/InputGroupLabel.d.ts +63 -0
- package/lib/input/src/styles/input.cssr.js +1 -1
- package/lib/input/styles/light.d.ts +7 -0
- package/lib/input/styles/light.js +11 -1
- package/lib/input-number/src/InputNumber.d.ts +70 -0
- package/lib/input-number/styles/light.d.ts +7 -0
- package/lib/input-otp/src/InputOtp.d.ts +70 -0
- package/lib/input-otp/styles/light.d.ts +7 -0
- package/lib/legacy-transfer/src/Transfer.d.ts +70 -0
- package/lib/legacy-transfer/src/TransferFilter.d.ts +14 -0
- package/lib/legacy-transfer/src/TransferList.d.ts +14 -0
- package/lib/legacy-transfer/src/TransferListItem.d.ts +14 -0
- package/lib/legacy-transfer/styles/light.d.ts +7 -0
- package/lib/mapping-card/src/MappingCard.d.ts +9 -0
- package/lib/mapping-card/src/MappingCardParts/Header.js +2 -2
- package/lib/mapping-card/src/interface.d.ts +5 -0
- package/lib/mapping-card/src/interface.js +4 -0
- package/lib/mention/src/Mention.d.ts +70 -0
- package/lib/mention/styles/light.d.ts +7 -0
- package/lib/modal/src/BodyWrapper.d.ts +0 -3
- package/lib/modal/src/Modal.d.ts +13 -7
- package/lib/modal/src/Modal.js +5 -2
- package/lib/modal/src/ModalEnvironment.d.ts +9 -5
- package/lib/modal/src/presetProps.d.ts +1 -2
- package/lib/modal/src/presetProps.js +1 -1
- package/lib/pagination/src/Pagination.d.ts +70 -0
- package/lib/pagination/styles/light.d.ts +7 -0
- package/lib/time-picker/src/Panel.d.ts +14 -0
- package/lib/time-picker/src/TimePicker.d.ts +70 -0
- package/lib/time-picker/styles/light.d.ts +7 -0
- package/lib/transfer/src/Transfer.d.ts +70 -0
- package/lib/transfer/src/TransferFilter.d.ts +14 -0
- package/lib/transfer/src/TransferList.d.ts +14 -0
- package/lib/transfer/src/TransferListItem.d.ts +14 -0
- package/lib/transfer/styles/light.d.ts +7 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +8 -1
- package/web-types.json +18 -1
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { default as UBaseIcon } from "./src/Icon.mjs";
|
|
1
|
+
export { default as UBaseIcon } from "./src/Icon.mjs";
|
|
2
|
+
export { iconProps, UIcon } from "./src/UIcon.mjs";
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import type { IconPackBase, IconPackRegistry } from '@uzum-tech/icons';
|
|
2
|
+
import type { Component, PropType, VNodeChild } from 'vue';
|
|
3
|
+
import type { ExtractPublicPropTypes } from '../../../_utils';
|
|
4
|
+
import type { IconPackName } from '../../../config-provider/src/internal-interface';
|
|
5
|
+
export type Depth = 1 | 2 | 3 | 4 | 5 | '1' | '2' | '3' | '4' | '5' | undefined;
|
|
6
|
+
export type IconNameOf<P extends IconPackName> = IconPackRegistry extends Record<P, infer Pack> ? Pack extends IconPackBase<infer Name> ? Name : string : string;
|
|
7
|
+
export declare const iconProps: {
|
|
8
|
+
readonly depth: PropType<Depth>;
|
|
9
|
+
readonly size: PropType<number | string>;
|
|
10
|
+
readonly color: StringConstructor;
|
|
11
|
+
readonly component: PropType<Component>;
|
|
12
|
+
readonly name: PropType<string>;
|
|
13
|
+
readonly pack: PropType<IconPackName>;
|
|
14
|
+
readonly onClick: PropType<(e: MouseEvent) => void>;
|
|
15
|
+
readonly theme: PropType<import("../../../_mixins").Theme<"Icon", {
|
|
16
|
+
color: string;
|
|
17
|
+
opacity1Depth: string;
|
|
18
|
+
opacity2Depth: string;
|
|
19
|
+
opacity3Depth: string;
|
|
20
|
+
opacity4Depth: string;
|
|
21
|
+
opacity5Depth: string;
|
|
22
|
+
}, any>>;
|
|
23
|
+
readonly themeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Icon", {
|
|
24
|
+
color: string;
|
|
25
|
+
opacity1Depth: string;
|
|
26
|
+
opacity2Depth: string;
|
|
27
|
+
opacity3Depth: string;
|
|
28
|
+
opacity4Depth: string;
|
|
29
|
+
opacity5Depth: string;
|
|
30
|
+
}, any>>>;
|
|
31
|
+
readonly builtinThemeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Icon", {
|
|
32
|
+
color: string;
|
|
33
|
+
opacity1Depth: string;
|
|
34
|
+
opacity2Depth: string;
|
|
35
|
+
opacity3Depth: string;
|
|
36
|
+
opacity4Depth: string;
|
|
37
|
+
opacity5Depth: string;
|
|
38
|
+
}, any>>>;
|
|
39
|
+
};
|
|
40
|
+
export type IconProps = ExtractPublicPropTypes<typeof iconProps>;
|
|
41
|
+
declare const UIconImpl: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
42
|
+
readonly depth: PropType<Depth>;
|
|
43
|
+
readonly size: PropType<number | string>;
|
|
44
|
+
readonly color: StringConstructor;
|
|
45
|
+
readonly component: PropType<Component>;
|
|
46
|
+
readonly name: PropType<string>;
|
|
47
|
+
readonly pack: PropType<IconPackName>;
|
|
48
|
+
readonly onClick: PropType<(e: MouseEvent) => void>;
|
|
49
|
+
readonly theme: PropType<import("../../../_mixins").Theme<"Icon", {
|
|
50
|
+
color: string;
|
|
51
|
+
opacity1Depth: string;
|
|
52
|
+
opacity2Depth: string;
|
|
53
|
+
opacity3Depth: string;
|
|
54
|
+
opacity4Depth: string;
|
|
55
|
+
opacity5Depth: string;
|
|
56
|
+
}, any>>;
|
|
57
|
+
readonly themeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Icon", {
|
|
58
|
+
color: string;
|
|
59
|
+
opacity1Depth: string;
|
|
60
|
+
opacity2Depth: string;
|
|
61
|
+
opacity3Depth: string;
|
|
62
|
+
opacity4Depth: string;
|
|
63
|
+
opacity5Depth: string;
|
|
64
|
+
}, any>>>;
|
|
65
|
+
readonly builtinThemeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Icon", {
|
|
66
|
+
color: string;
|
|
67
|
+
opacity1Depth: string;
|
|
68
|
+
opacity2Depth: string;
|
|
69
|
+
opacity3Depth: string;
|
|
70
|
+
opacity4Depth: string;
|
|
71
|
+
opacity5Depth: string;
|
|
72
|
+
}, any>>>;
|
|
73
|
+
}>, {
|
|
74
|
+
mergedClsPrefix: import("vue").Ref<string, string>;
|
|
75
|
+
resolvedPackedIcon: import("vue").ComputedRef<VNodeChild>;
|
|
76
|
+
mergedStyle: import("vue").ComputedRef<{
|
|
77
|
+
fontSize: string | undefined;
|
|
78
|
+
color: string | undefined;
|
|
79
|
+
}>;
|
|
80
|
+
cssVars: import("vue").ComputedRef<{
|
|
81
|
+
'--u-bezier': string;
|
|
82
|
+
'--u-color': string;
|
|
83
|
+
'--u-opacity': string;
|
|
84
|
+
}> | undefined;
|
|
85
|
+
themeClass: import("vue").Ref<string, string> | undefined;
|
|
86
|
+
onRender: (() => void) | undefined;
|
|
87
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
88
|
+
readonly depth: PropType<Depth>;
|
|
89
|
+
readonly size: PropType<number | string>;
|
|
90
|
+
readonly color: StringConstructor;
|
|
91
|
+
readonly component: PropType<Component>;
|
|
92
|
+
readonly name: PropType<string>;
|
|
93
|
+
readonly pack: PropType<IconPackName>;
|
|
94
|
+
readonly onClick: PropType<(e: MouseEvent) => void>;
|
|
95
|
+
readonly theme: PropType<import("../../../_mixins").Theme<"Icon", {
|
|
96
|
+
color: string;
|
|
97
|
+
opacity1Depth: string;
|
|
98
|
+
opacity2Depth: string;
|
|
99
|
+
opacity3Depth: string;
|
|
100
|
+
opacity4Depth: string;
|
|
101
|
+
opacity5Depth: string;
|
|
102
|
+
}, any>>;
|
|
103
|
+
readonly themeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Icon", {
|
|
104
|
+
color: string;
|
|
105
|
+
opacity1Depth: string;
|
|
106
|
+
opacity2Depth: string;
|
|
107
|
+
opacity3Depth: string;
|
|
108
|
+
opacity4Depth: string;
|
|
109
|
+
opacity5Depth: string;
|
|
110
|
+
}, any>>>;
|
|
111
|
+
readonly builtinThemeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Icon", {
|
|
112
|
+
color: string;
|
|
113
|
+
opacity1Depth: string;
|
|
114
|
+
opacity2Depth: string;
|
|
115
|
+
opacity3Depth: string;
|
|
116
|
+
opacity4Depth: string;
|
|
117
|
+
opacity5Depth: string;
|
|
118
|
+
}, any>>>;
|
|
119
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
120
|
+
type IconBaseProps = Omit<IconProps, 'name' | 'pack'>;
|
|
121
|
+
export type GenericUIcon = <P extends IconPackName = IconPackName>(props: IconBaseProps & {
|
|
122
|
+
pack?: P;
|
|
123
|
+
name?: IconNameOf<P>;
|
|
124
|
+
}) => any;
|
|
125
|
+
export declare const UIcon: typeof UIconImpl & GenericUIcon;
|
|
126
|
+
export {};
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { computed, defineComponent, h } from 'vue';
|
|
2
|
+
import { useConfig, useTheme, useThemeClass } from "../../../_mixins/index.mjs";
|
|
3
|
+
import { formatLength, warn } from "../../../_utils/index.mjs";
|
|
4
|
+
import style from "../../../icon/src/styles/index.cssr.mjs";
|
|
5
|
+
import { iconLight } from "../../../icon/styles/index.mjs";
|
|
6
|
+
import UBaseIcon from "./Icon.mjs";
|
|
7
|
+
export const iconProps = Object.assign(Object.assign({}, useTheme.props), {
|
|
8
|
+
depth: [String, Number],
|
|
9
|
+
size: [Number, String],
|
|
10
|
+
color: String,
|
|
11
|
+
component: Object,
|
|
12
|
+
name: String,
|
|
13
|
+
pack: String,
|
|
14
|
+
onClick: Function
|
|
15
|
+
});
|
|
16
|
+
const UIconImpl = defineComponent({
|
|
17
|
+
_n_icon__: true,
|
|
18
|
+
name: 'Icon',
|
|
19
|
+
props: iconProps,
|
|
20
|
+
setup(props) {
|
|
21
|
+
const {
|
|
22
|
+
mergedClsPrefixRef,
|
|
23
|
+
mergedIconPacksRef,
|
|
24
|
+
inlineThemeDisabled
|
|
25
|
+
} = useConfig(props);
|
|
26
|
+
const themeRef = useTheme('Icon', '-icon', style, iconLight, props, mergedClsPrefixRef);
|
|
27
|
+
const cssVarsRef = computed(() => {
|
|
28
|
+
const {
|
|
29
|
+
depth
|
|
30
|
+
} = props;
|
|
31
|
+
const {
|
|
32
|
+
common: {
|
|
33
|
+
cubicBezierEaseInOut
|
|
34
|
+
},
|
|
35
|
+
self
|
|
36
|
+
} = themeRef.value;
|
|
37
|
+
if (depth !== undefined) {
|
|
38
|
+
const {
|
|
39
|
+
color,
|
|
40
|
+
[`opacity${depth}Depth`]: opacity
|
|
41
|
+
} = self;
|
|
42
|
+
return {
|
|
43
|
+
'--u-bezier': cubicBezierEaseInOut,
|
|
44
|
+
'--u-color': color,
|
|
45
|
+
'--u-opacity': opacity
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'--u-bezier': cubicBezierEaseInOut,
|
|
50
|
+
'--u-color': '',
|
|
51
|
+
'--u-opacity': ''
|
|
52
|
+
};
|
|
53
|
+
});
|
|
54
|
+
const themeClassHandle = inlineThemeDisabled ? useThemeClass('icon', computed(() => `${props.depth || 'd'}`), cssVarsRef, props) : undefined;
|
|
55
|
+
const resolvedPackedIconRef = computed(() => {
|
|
56
|
+
const {
|
|
57
|
+
name,
|
|
58
|
+
pack
|
|
59
|
+
} = props;
|
|
60
|
+
if (!name) return null;
|
|
61
|
+
const config = mergedIconPacksRef === null || mergedIconPacksRef === void 0 ? void 0 : mergedIconPacksRef.value;
|
|
62
|
+
if (!config) {
|
|
63
|
+
warn('icon', 'no icon packs configured on `u-config-provider`');
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
66
|
+
const targetName = pack !== null && pack !== void 0 ? pack : config.defaultPackName;
|
|
67
|
+
const target = config.packs.find(p => p.name === targetName);
|
|
68
|
+
if (!target) {
|
|
69
|
+
warn('icon', `icon pack "${targetName}" not found`);
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
if (config.async) {
|
|
73
|
+
return target.renderAsyncIcon(name);
|
|
74
|
+
}
|
|
75
|
+
if (!('renderIcon' in target)) {
|
|
76
|
+
warn('icon', `pack "${target.name}" is async-only, set \`async: true\` on \`u-config-provider :icon-packs\``);
|
|
77
|
+
return null;
|
|
78
|
+
}
|
|
79
|
+
return target.renderIcon(name);
|
|
80
|
+
});
|
|
81
|
+
return {
|
|
82
|
+
mergedClsPrefix: mergedClsPrefixRef,
|
|
83
|
+
resolvedPackedIcon: resolvedPackedIconRef,
|
|
84
|
+
mergedStyle: computed(() => {
|
|
85
|
+
const {
|
|
86
|
+
size,
|
|
87
|
+
color
|
|
88
|
+
} = props;
|
|
89
|
+
return {
|
|
90
|
+
fontSize: formatLength(size),
|
|
91
|
+
color
|
|
92
|
+
};
|
|
93
|
+
}),
|
|
94
|
+
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
95
|
+
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
96
|
+
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
|
|
97
|
+
};
|
|
98
|
+
},
|
|
99
|
+
render() {
|
|
100
|
+
var _a;
|
|
101
|
+
const {
|
|
102
|
+
$parent,
|
|
103
|
+
depth,
|
|
104
|
+
mergedClsPrefix,
|
|
105
|
+
component,
|
|
106
|
+
onRender,
|
|
107
|
+
themeClass,
|
|
108
|
+
resolvedPackedIcon
|
|
109
|
+
} = this;
|
|
110
|
+
if ((_a = $parent === null || $parent === void 0 ? void 0 : $parent.$options) === null || _a === void 0 ? void 0 : _a._n_icon__) {
|
|
111
|
+
warn('icon', 'don\'t wrap `u-icon` inside `u-icon`');
|
|
112
|
+
}
|
|
113
|
+
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
114
|
+
return h(UBaseIcon, {
|
|
115
|
+
clsPrefix: mergedClsPrefix,
|
|
116
|
+
role: 'img',
|
|
117
|
+
class: [`${mergedClsPrefix}-icon`, themeClass, {
|
|
118
|
+
[`${mergedClsPrefix}-icon--depth`]: depth,
|
|
119
|
+
[`${mergedClsPrefix}-icon--color-transition`]: depth !== undefined
|
|
120
|
+
}],
|
|
121
|
+
style: [this.cssVars, this.mergedStyle],
|
|
122
|
+
onClick: this.onClick
|
|
123
|
+
}, {
|
|
124
|
+
default: () => {
|
|
125
|
+
var _a, _b;
|
|
126
|
+
return resolvedPackedIcon !== null && resolvedPackedIcon !== void 0 ? resolvedPackedIcon : component ? h(component) : (_b = (_a = this.$slots).default) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
export const UIcon = UIconImpl;
|
|
@@ -51,21 +51,27 @@ export default defineComponent({
|
|
|
51
51
|
const {
|
|
52
52
|
value: pendingTmNode
|
|
53
53
|
} = pendingTmNodeRef;
|
|
54
|
-
if (!pendingTmNode)
|
|
54
|
+
if (!pendingTmNode) {
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
55
57
|
return props.tmNode.key === pendingTmNode.key;
|
|
56
58
|
});
|
|
57
59
|
function handleClick(e) {
|
|
58
60
|
const {
|
|
59
61
|
tmNode
|
|
60
62
|
} = props;
|
|
61
|
-
if (tmNode.disabled)
|
|
63
|
+
if (tmNode.disabled) {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
62
66
|
handleOptionClick(e, tmNode);
|
|
63
67
|
}
|
|
64
68
|
function handleMouseEnter(e) {
|
|
65
69
|
const {
|
|
66
70
|
tmNode
|
|
67
71
|
} = props;
|
|
68
|
-
if (tmNode.disabled)
|
|
72
|
+
if (tmNode.disabled) {
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
69
75
|
handleOptionMouseEnter(e, tmNode);
|
|
70
76
|
}
|
|
71
77
|
function handleMouseMove(e) {
|
|
@@ -75,7 +81,9 @@ export default defineComponent({
|
|
|
75
81
|
const {
|
|
76
82
|
value: isPending
|
|
77
83
|
} = isPendingRef;
|
|
78
|
-
if (tmNode.disabled || isPending)
|
|
84
|
+
if (tmNode.disabled || isPending) {
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
79
87
|
handleOptionMouseEnter(e, tmNode);
|
|
80
88
|
}
|
|
81
89
|
return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComputedRef, Ref } from 'vue';
|
|
2
|
-
import type { Breakpoints, GlobalComponentConfig, RtlEnabledState } from '../config-provider/src/internal-interface';
|
|
2
|
+
import type { Breakpoints, GlobalComponentConfig, IconPacksConfig, RtlEnabledState } from '../config-provider/src/internal-interface';
|
|
3
3
|
type UseConfigProps = Readonly<{
|
|
4
4
|
bordered?: boolean;
|
|
5
5
|
[key: string]: unknown;
|
|
@@ -14,6 +14,7 @@ export default function useConfig(props?: UseConfigProps, options?: {
|
|
|
14
14
|
mergedClsPrefixRef: Ref<string>;
|
|
15
15
|
mergedBreakpointsRef: Ref<Breakpoints> | undefined;
|
|
16
16
|
mergedComponentPropsRef: Ref<GlobalComponentConfig | undefined> | undefined;
|
|
17
|
+
mergedIconPacksRef: Ref<IconPacksConfig | undefined> | undefined;
|
|
17
18
|
namespaceRef: ComputedRef<string | undefined>;
|
|
18
19
|
};
|
|
19
20
|
export declare function useMergedClsPrefix(): Ref<string>;
|
|
@@ -10,6 +10,7 @@ export default function useConfig(props = {}, options = {
|
|
|
10
10
|
inlineThemeDisabled: UConfigProvider === null || UConfigProvider === void 0 ? void 0 : UConfigProvider.inlineThemeDisabled,
|
|
11
11
|
mergedRtlRef: UConfigProvider === null || UConfigProvider === void 0 ? void 0 : UConfigProvider.mergedRtlRef,
|
|
12
12
|
mergedComponentPropsRef: UConfigProvider === null || UConfigProvider === void 0 ? void 0 : UConfigProvider.mergedComponentPropsRef,
|
|
13
|
+
mergedIconPacksRef: UConfigProvider === null || UConfigProvider === void 0 ? void 0 : UConfigProvider.mergedIconPacksRef,
|
|
13
14
|
mergedBreakpointsRef: UConfigProvider === null || UConfigProvider === void 0 ? void 0 : UConfigProvider.mergedBreakpointsRef,
|
|
14
15
|
mergedBorderedRef: computed(() => {
|
|
15
16
|
var _a, _b;
|
|
@@ -39,8 +39,10 @@ export function wrap(component) {
|
|
|
39
39
|
wrapped.__wrapped__ = true;
|
|
40
40
|
// Preserve internal markers used by parent components' runtime logic,
|
|
41
41
|
// e.g. Grid -> GridItem (`__GRID_ITEM__`) and DescriptionsItem flags.
|
|
42
|
+
// Also preserve `alias` so component aliases (e.g. UEl → UElement) are
|
|
43
|
+
// registered correctly by the global install function in create.ts.
|
|
42
44
|
for (const key of Object.keys(component)) {
|
|
43
|
-
if (/^__.*__$/.test(key) || key.endsWith('_FLAG')) {
|
|
45
|
+
if (/^__.*__$/.test(key) || key.endsWith('_FLAG') || key === 'alias') {
|
|
44
46
|
;
|
|
45
47
|
wrapped[key] = component[key];
|
|
46
48
|
}
|
|
@@ -175,6 +175,13 @@ export declare const autoCompleteProps: {
|
|
|
175
175
|
borderFocus: string;
|
|
176
176
|
boxShadowFocus: string;
|
|
177
177
|
loadingColor: string;
|
|
178
|
+
loadingColorSuccess: string;
|
|
179
|
+
borderSuccess: string;
|
|
180
|
+
borderHoverSuccess: string;
|
|
181
|
+
colorFocusSuccess: string;
|
|
182
|
+
borderFocusSuccess: string;
|
|
183
|
+
boxShadowFocusSuccess: string;
|
|
184
|
+
caretColorSuccess: string;
|
|
178
185
|
loadingColorWarning: string;
|
|
179
186
|
borderWarning: string;
|
|
180
187
|
borderHoverWarning: string;
|
|
@@ -308,6 +315,13 @@ export declare const autoCompleteProps: {
|
|
|
308
315
|
borderFocus: string;
|
|
309
316
|
boxShadowFocus: string;
|
|
310
317
|
loadingColor: string;
|
|
318
|
+
loadingColorSuccess: string;
|
|
319
|
+
borderSuccess: string;
|
|
320
|
+
borderHoverSuccess: string;
|
|
321
|
+
colorFocusSuccess: string;
|
|
322
|
+
borderFocusSuccess: string;
|
|
323
|
+
boxShadowFocusSuccess: string;
|
|
324
|
+
caretColorSuccess: string;
|
|
311
325
|
loadingColorWarning: string;
|
|
312
326
|
borderWarning: string;
|
|
313
327
|
borderHoverWarning: string;
|
|
@@ -441,6 +455,13 @@ export declare const autoCompleteProps: {
|
|
|
441
455
|
borderFocus: string;
|
|
442
456
|
boxShadowFocus: string;
|
|
443
457
|
loadingColor: string;
|
|
458
|
+
loadingColorSuccess: string;
|
|
459
|
+
borderSuccess: string;
|
|
460
|
+
borderHoverSuccess: string;
|
|
461
|
+
colorFocusSuccess: string;
|
|
462
|
+
borderFocusSuccess: string;
|
|
463
|
+
boxShadowFocusSuccess: string;
|
|
464
|
+
caretColorSuccess: string;
|
|
444
465
|
loadingColorWarning: string;
|
|
445
466
|
borderWarning: string;
|
|
446
467
|
borderHoverWarning: string;
|
|
@@ -641,6 +662,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
641
662
|
borderFocus: string;
|
|
642
663
|
boxShadowFocus: string;
|
|
643
664
|
loadingColor: string;
|
|
665
|
+
loadingColorSuccess: string;
|
|
666
|
+
borderSuccess: string;
|
|
667
|
+
borderHoverSuccess: string;
|
|
668
|
+
colorFocusSuccess: string;
|
|
669
|
+
borderFocusSuccess: string;
|
|
670
|
+
boxShadowFocusSuccess: string;
|
|
671
|
+
caretColorSuccess: string;
|
|
644
672
|
loadingColorWarning: string;
|
|
645
673
|
borderWarning: string;
|
|
646
674
|
borderHoverWarning: string;
|
|
@@ -774,6 +802,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
774
802
|
borderFocus: string;
|
|
775
803
|
boxShadowFocus: string;
|
|
776
804
|
loadingColor: string;
|
|
805
|
+
loadingColorSuccess: string;
|
|
806
|
+
borderSuccess: string;
|
|
807
|
+
borderHoverSuccess: string;
|
|
808
|
+
colorFocusSuccess: string;
|
|
809
|
+
borderFocusSuccess: string;
|
|
810
|
+
boxShadowFocusSuccess: string;
|
|
811
|
+
caretColorSuccess: string;
|
|
777
812
|
loadingColorWarning: string;
|
|
778
813
|
borderWarning: string;
|
|
779
814
|
borderHoverWarning: string;
|
|
@@ -907,6 +942,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
907
942
|
borderFocus: string;
|
|
908
943
|
boxShadowFocus: string;
|
|
909
944
|
loadingColor: string;
|
|
945
|
+
loadingColorSuccess: string;
|
|
946
|
+
borderSuccess: string;
|
|
947
|
+
borderHoverSuccess: string;
|
|
948
|
+
colorFocusSuccess: string;
|
|
949
|
+
borderFocusSuccess: string;
|
|
950
|
+
boxShadowFocusSuccess: string;
|
|
951
|
+
caretColorSuccess: string;
|
|
910
952
|
loadingColorWarning: string;
|
|
911
953
|
borderWarning: string;
|
|
912
954
|
borderHoverWarning: string;
|
|
@@ -1119,6 +1161,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1119
1161
|
borderFocus: string;
|
|
1120
1162
|
boxShadowFocus: string;
|
|
1121
1163
|
loadingColor: string;
|
|
1164
|
+
loadingColorSuccess: string;
|
|
1165
|
+
borderSuccess: string;
|
|
1166
|
+
borderHoverSuccess: string;
|
|
1167
|
+
colorFocusSuccess: string;
|
|
1168
|
+
borderFocusSuccess: string;
|
|
1169
|
+
boxShadowFocusSuccess: string;
|
|
1170
|
+
caretColorSuccess: string;
|
|
1122
1171
|
loadingColorWarning: string;
|
|
1123
1172
|
borderWarning: string;
|
|
1124
1173
|
borderHoverWarning: string;
|
|
@@ -1363,6 +1412,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1363
1412
|
borderFocus: string;
|
|
1364
1413
|
boxShadowFocus: string;
|
|
1365
1414
|
loadingColor: string;
|
|
1415
|
+
loadingColorSuccess: string;
|
|
1416
|
+
borderSuccess: string;
|
|
1417
|
+
borderHoverSuccess: string;
|
|
1418
|
+
colorFocusSuccess: string;
|
|
1419
|
+
borderFocusSuccess: string;
|
|
1420
|
+
boxShadowFocusSuccess: string;
|
|
1421
|
+
caretColorSuccess: string;
|
|
1366
1422
|
loadingColorWarning: string;
|
|
1367
1423
|
borderWarning: string;
|
|
1368
1424
|
borderHoverWarning: string;
|
|
@@ -1496,6 +1552,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1496
1552
|
borderFocus: string;
|
|
1497
1553
|
boxShadowFocus: string;
|
|
1498
1554
|
loadingColor: string;
|
|
1555
|
+
loadingColorSuccess: string;
|
|
1556
|
+
borderSuccess: string;
|
|
1557
|
+
borderHoverSuccess: string;
|
|
1558
|
+
colorFocusSuccess: string;
|
|
1559
|
+
borderFocusSuccess: string;
|
|
1560
|
+
boxShadowFocusSuccess: string;
|
|
1561
|
+
caretColorSuccess: string;
|
|
1499
1562
|
loadingColorWarning: string;
|
|
1500
1563
|
borderWarning: string;
|
|
1501
1564
|
borderHoverWarning: string;
|
|
@@ -1629,6 +1692,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1629
1692
|
borderFocus: string;
|
|
1630
1693
|
boxShadowFocus: string;
|
|
1631
1694
|
loadingColor: string;
|
|
1695
|
+
loadingColorSuccess: string;
|
|
1696
|
+
borderSuccess: string;
|
|
1697
|
+
borderHoverSuccess: string;
|
|
1698
|
+
colorFocusSuccess: string;
|
|
1699
|
+
borderFocusSuccess: string;
|
|
1700
|
+
boxShadowFocusSuccess: string;
|
|
1701
|
+
caretColorSuccess: string;
|
|
1632
1702
|
loadingColorWarning: string;
|
|
1633
1703
|
borderWarning: string;
|
|
1634
1704
|
borderHoverWarning: string;
|
|
@@ -110,6 +110,13 @@ declare const autoCompleteLight: import("../../_mixins").Theme<"AutoComplete", {
|
|
|
110
110
|
borderFocus: string;
|
|
111
111
|
boxShadowFocus: string;
|
|
112
112
|
loadingColor: string;
|
|
113
|
+
loadingColorSuccess: string;
|
|
114
|
+
borderSuccess: string;
|
|
115
|
+
borderHoverSuccess: string;
|
|
116
|
+
colorFocusSuccess: string;
|
|
117
|
+
borderFocusSuccess: string;
|
|
118
|
+
boxShadowFocusSuccess: string;
|
|
119
|
+
caretColorSuccess: string;
|
|
113
120
|
loadingColorWarning: string;
|
|
114
121
|
borderWarning: string;
|
|
115
122
|
borderHoverWarning: string;
|
|
@@ -126,7 +126,9 @@ export default defineComponent({
|
|
|
126
126
|
const {
|
|
127
127
|
value: slidesEls
|
|
128
128
|
} = slideElsRef;
|
|
129
|
-
if (!slidesEls.length)
|
|
129
|
+
if (!slidesEls.length) {
|
|
130
|
+
return [];
|
|
131
|
+
}
|
|
130
132
|
// eslint-disable-next-line ts/no-unused-expressions
|
|
131
133
|
slideSizesTrigger.value;
|
|
132
134
|
const {
|
|
@@ -163,7 +165,9 @@ export default defineComponent({
|
|
|
163
165
|
const {
|
|
164
166
|
value: slideSizes
|
|
165
167
|
} = slideSizesRef;
|
|
166
|
-
if (!slideSizes.length)
|
|
168
|
+
if (!slideSizes.length) {
|
|
169
|
+
return [];
|
|
170
|
+
}
|
|
167
171
|
const {
|
|
168
172
|
centeredSlides,
|
|
169
173
|
spaceBetween
|
|
@@ -199,7 +203,9 @@ export default defineComponent({
|
|
|
199
203
|
const {
|
|
200
204
|
value: slidesEls
|
|
201
205
|
} = slideElsRef;
|
|
202
|
-
if (!slidesEls.length)
|
|
206
|
+
if (!slidesEls.length) {
|
|
207
|
+
return [];
|
|
208
|
+
}
|
|
203
209
|
const useComputedSize = !(autoSlideSizeRef.value || realSlidesPerViewRef.value === 1);
|
|
204
210
|
const getSlideSize = index => {
|
|
205
211
|
if (useComputedSize) {
|
|
@@ -251,7 +257,9 @@ export default defineComponent({
|
|
|
251
257
|
const {
|
|
252
258
|
length
|
|
253
259
|
} = slideSizes;
|
|
254
|
-
if (!length)
|
|
260
|
+
if (!length) {
|
|
261
|
+
return totalSlides;
|
|
262
|
+
}
|
|
255
263
|
const {
|
|
256
264
|
value: translates
|
|
257
265
|
} = slideTranlatesRef;
|
|
@@ -328,17 +336,25 @@ export default defineComponent({
|
|
|
328
336
|
}
|
|
329
337
|
function prev() {
|
|
330
338
|
const prevIndex = getRealPrevIndex();
|
|
331
|
-
if (prevIndex !== null)
|
|
339
|
+
if (prevIndex !== null) {
|
|
340
|
+
toRealIndex(prevIndex);
|
|
341
|
+
}
|
|
332
342
|
}
|
|
333
343
|
function next() {
|
|
334
344
|
const nextIndex = getRealNextIndex();
|
|
335
|
-
if (nextIndex !== null)
|
|
345
|
+
if (nextIndex !== null) {
|
|
346
|
+
toRealIndex(nextIndex);
|
|
347
|
+
}
|
|
336
348
|
}
|
|
337
349
|
function prevIfSlideTransitionEnd() {
|
|
338
|
-
if (!inTransition || !duplicatedableRef.value)
|
|
350
|
+
if (!inTransition || !duplicatedableRef.value) {
|
|
351
|
+
prev();
|
|
352
|
+
}
|
|
339
353
|
}
|
|
340
354
|
function nextIfSlideTransitionEnd() {
|
|
341
|
-
if (!inTransition || !duplicatedableRef.value)
|
|
355
|
+
if (!inTransition || !duplicatedableRef.value) {
|
|
356
|
+
next();
|
|
357
|
+
}
|
|
342
358
|
}
|
|
343
359
|
// Translate to
|
|
344
360
|
// record the translate of each slide, so that it can be restored at touch
|
|
@@ -429,11 +445,15 @@ export default defineComponent({
|
|
|
429
445
|
};
|
|
430
446
|
provideCarouselContext(carouselContext);
|
|
431
447
|
function addSlide(slide) {
|
|
432
|
-
if (!slide)
|
|
448
|
+
if (!slide) {
|
|
449
|
+
return;
|
|
450
|
+
}
|
|
433
451
|
slideElsRef.value.push(slide);
|
|
434
452
|
}
|
|
435
453
|
function removeSlide(slide) {
|
|
436
|
-
if (!slide)
|
|
454
|
+
if (!slide) {
|
|
455
|
+
return;
|
|
456
|
+
}
|
|
437
457
|
const index = getSlideIndex(slide);
|
|
438
458
|
if (index !== -1) {
|
|
439
459
|
slideElsRef.value.splice(index, 1);
|
|
@@ -490,7 +510,9 @@ export default defineComponent({
|
|
|
490
510
|
let dragStartTime = 0;
|
|
491
511
|
function handleTouchstart(event) {
|
|
492
512
|
var _a;
|
|
493
|
-
if (globalDragging)
|
|
513
|
+
if (globalDragging) {
|
|
514
|
+
return;
|
|
515
|
+
}
|
|
494
516
|
if (!((_a = slidesElRef.value) === null || _a === void 0 ? void 0 : _a.contains(getPreciseEventTarget(event)))) {
|
|
495
517
|
return;
|
|
496
518
|
}
|
|
@@ -614,7 +636,9 @@ export default defineComponent({
|
|
|
614
636
|
}
|
|
615
637
|
function handleMousewheel(event) {
|
|
616
638
|
event.preventDefault();
|
|
617
|
-
if (inTransition)
|
|
639
|
+
if (inTransition) {
|
|
640
|
+
return;
|
|
641
|
+
}
|
|
618
642
|
let {
|
|
619
643
|
deltaX,
|
|
620
644
|
deltaY
|
|
@@ -691,7 +715,9 @@ export default defineComponent({
|
|
|
691
715
|
}
|
|
692
716
|
});
|
|
693
717
|
watch(realIndexRef, (realIndex, lastRealIndex) => {
|
|
694
|
-
if (realIndex === lastRealIndex)
|
|
718
|
+
if (realIndex === lastRealIndex) {
|
|
719
|
+
return;
|
|
720
|
+
}
|
|
695
721
|
resetAutoplay();
|
|
696
722
|
if (sequenceLayoutRef.value) {
|
|
697
723
|
if (duplicatedableRef.value && displayTotalViewRef.value > 2) {
|