sard-uniapp 1.6.1 → 1.7.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/changelog.md +9 -0
- package/components/action-sheet/action-sheet.d.ts +2 -2
- package/components/action-sheet/action-sheet.vue +2 -2
- package/components/action-sheet/common.d.ts +1 -1
- package/components/action-sheet/common.js +1 -1
- package/components/alert/alert.d.ts +2 -2
- package/components/alert/alert.vue +2 -2
- package/components/alert/common.d.ts +2 -2
- package/components/alert/common.js +1 -1
- package/components/avatar/avatar.d.ts +2 -2
- package/components/avatar/avatar.vue +2 -2
- package/components/avatar/common.d.ts +2 -2
- package/components/avatar/common.js +1 -1
- package/components/back-top/back-top.vue +2 -2
- package/components/back-top/common.d.ts +1 -1
- package/components/back-top/common.js +1 -1
- package/components/badge/badge.vue +2 -2
- package/components/badge/common.d.ts +1 -1
- package/components/badge/common.js +1 -1
- package/components/button/button.d.ts +7 -7
- package/components/button/button.vue +2 -2
- package/components/button/common.d.ts +4 -4
- package/components/button/common.js +1 -1
- package/components/calendar/calendar.d.ts +2 -2
- package/components/calendar/calendar.vue +2 -2
- package/components/calendar/common.d.ts +2 -2
- package/components/calendar/common.js +1 -1
- package/components/calendar-input/calendar-input.d.ts +3 -3
- package/components/calendar-input/calendar-input.vue +2 -2
- package/components/calendar-input/common.d.ts +2 -2
- package/components/calendar-input/common.js +1 -1
- package/components/cascader/cascader.vue +2 -2
- package/components/cascader/common.d.ts +1 -1
- package/components/cascader/common.js +1 -1
- package/components/cascader-input/cascader-input.d.ts +1 -1
- package/components/cascader-input/cascader-input.vue +2 -2
- package/components/cascader-input/common.d.ts +1 -1
- package/components/cascader-input/common.js +1 -1
- package/components/checkbox/checkbox.vue +2 -2
- package/components/checkbox/common.d.ts +3 -3
- package/components/checkbox/common.js +2 -2
- package/components/checkbox-group/checkbox-group.d.ts +3 -3
- package/components/checkbox-group/checkbox-group.vue +2 -2
- package/components/checkbox-input/checkbox-input.vue +2 -2
- package/components/checkbox-input/common.d.ts +1 -1
- package/components/checkbox-input/common.js +1 -1
- package/components/config/index.d.ts +54 -382
- package/components/config/index.js +6 -13
- package/components/count-down/common.d.ts +1 -1
- package/components/count-down/common.js +1 -1
- package/components/count-down/count-down.vue +2 -2
- package/components/count-to/common.d.ts +1 -1
- package/components/count-to/common.js +1 -1
- package/components/count-to/count-to.vue +2 -2
- package/components/datetime-picker/common.d.ts +1 -1
- package/components/datetime-picker/common.js +1 -1
- package/components/datetime-picker/datetime-picker.vue +2 -2
- package/components/datetime-picker-input/common.d.ts +1 -1
- package/components/datetime-picker-input/common.js +1 -1
- package/components/datetime-picker-input/datetime-picker-input.vue +2 -2
- package/components/dialog/common.d.ts +2 -2
- package/components/dialog/common.js +1 -1
- package/components/dialog/dialog.d.ts +5 -5
- package/components/dialog/dialog.vue +2 -2
- package/components/dialog-agent/common.d.ts +2 -2
- package/components/dialog-agent/common.js +3 -3
- package/components/dialog-agent/dialog-agent.d.ts +4 -4
- package/components/dialog-agent/dialog-agent.vue +2 -2
- package/components/dropdown/common.d.ts +3 -3
- package/components/dropdown/common.js +2 -2
- package/components/dropdown/dropdown.d.ts +4 -4
- package/components/dropdown/dropdown.vue +2 -2
- package/components/dropdown-item/dropdown-item.vue +2 -2
- package/components/empty/common.d.ts +1 -1
- package/components/empty/common.js +1 -1
- package/components/empty/empty.vue +2 -2
- package/components/fab/common.d.ts +1 -1
- package/components/fab/common.js +1 -1
- package/components/fab/fab.d.ts +1 -1
- package/components/fab/fab.vue +2 -2
- package/components/floating-bubble/common.d.ts +2 -2
- package/components/floating-bubble/common.js +1 -1
- package/components/floating-bubble/floating-bubble.d.ts +3 -3
- package/components/floating-bubble/floating-bubble.vue +2 -2
- package/components/form/common.d.ts +8 -8
- package/components/form/common.js +2 -2
- package/components/form/form.d.ts +15 -16
- package/components/form/form.vue +2 -2
- package/components/form-item/form-item.d.ts +1 -1
- package/components/form-item/form-item.vue +2 -2
- package/components/grid/common.d.ts +2 -2
- package/components/grid/common.js +1 -1
- package/components/grid/grid.d.ts +2 -2
- package/components/grid/grid.vue +2 -2
- package/components/icon/common.d.ts +1 -1
- package/components/icon/common.js +1 -1
- package/components/icon/icon.vue +2 -2
- package/components/input/common.d.ts +1 -1
- package/components/input/common.js +1 -1
- package/components/input/input.vue +2 -2
- package/components/keyboard/common.d.ts +2 -2
- package/components/keyboard/common.js +1 -1
- package/components/keyboard/keyboard.d.ts +3 -3
- package/components/keyboard/keyboard.vue +2 -2
- package/components/list/common.d.ts +2 -2
- package/components/list/common.js +1 -1
- package/components/list-item/list-item.d.ts +3 -3
- package/components/list-item/list-item.vue +2 -2
- package/components/load-more/common.d.ts +1 -1
- package/components/load-more/common.js +1 -1
- package/components/load-more/load-more.vue +2 -2
- package/components/loading/common.d.ts +2 -2
- package/components/loading/common.js +1 -1
- package/components/loading/loading.d.ts +2 -2
- package/components/loading/loading.vue +2 -2
- package/components/marquee/common.d.ts +2 -2
- package/components/marquee/common.js +1 -1
- package/components/marquee/marquee.d.ts +2 -2
- package/components/marquee/marquee.vue +2 -2
- package/components/menu/common.d.ts +1 -1
- package/components/menu/common.js +1 -1
- package/components/menu/menu.vue +2 -2
- package/components/notice-bar/common.d.ts +2 -2
- package/components/notice-bar/common.js +1 -1
- package/components/notice-bar/notice-bar.d.ts +3 -3
- package/components/notice-bar/notice-bar.vue +2 -2
- package/components/notify/common.d.ts +3 -3
- package/components/notify/common.js +1 -1
- package/components/notify/notify.d.ts +6 -6
- package/components/notify/notify.vue +2 -2
- package/components/notify-agent/common.d.ts +3 -3
- package/components/notify-agent/common.js +3 -3
- package/components/notify-agent/notify-agent.d.ts +6 -6
- package/components/notify-agent/notify-agent.vue +2 -2
- package/components/overlay/common.d.ts +1 -1
- package/components/overlay/common.js +1 -1
- package/components/overlay/overlay.vue +2 -2
- package/components/pagination/common.d.ts +2 -2
- package/components/pagination/common.js +1 -1
- package/components/pagination/pagination.d.ts +2 -2
- package/components/pagination/pagination.vue +2 -2
- package/components/password-input/common.d.ts +2 -2
- package/components/password-input/common.js +1 -1
- package/components/password-input/password-input.d.ts +2 -2
- package/components/password-input/password-input.vue +2 -2
- package/components/picker/common.d.ts +1 -1
- package/components/picker/common.js +1 -1
- package/components/picker/picker.vue +2 -2
- package/components/picker-input/common.d.ts +1 -1
- package/components/picker-input/common.js +3 -3
- package/components/picker-input/picker-input.d.ts +1 -1
- package/components/picker-input/picker-input.vue +2 -2
- package/components/popout/common.d.ts +2 -2
- package/components/popout/common.js +1 -1
- package/components/popout/popout.d.ts +4 -4
- package/components/popout/popout.vue +2 -2
- package/components/popover/common.d.ts +4 -4
- package/components/popover/common.js +1 -1
- package/components/popover/index.d.ts +1 -0
- package/components/popover/popover.d.ts +7 -7
- package/components/popover/popover.vue +2 -2
- package/components/popup/common.d.ts +2 -2
- package/components/popup/common.js +1 -1
- package/components/popup/popup.d.ts +4 -4
- package/components/popup/popup.vue +2 -2
- package/components/progress-bar/common.d.ts +1 -1
- package/components/progress-bar/common.js +1 -1
- package/components/progress-bar/progress-bar.vue +2 -2
- package/components/progress-circle/common.d.ts +1 -1
- package/components/progress-circle/common.js +1 -1
- package/components/progress-circle/progress-circle.vue +2 -2
- package/components/pull-down-refresh/common.d.ts +1 -1
- package/components/pull-down-refresh/common.js +1 -1
- package/components/pull-down-refresh/pull-down-refresh.d.ts +1 -1
- package/components/pull-down-refresh/pull-down-refresh.vue +2 -2
- package/components/qrcode/common.d.ts +3 -3
- package/components/qrcode/common.js +1 -1
- package/components/qrcode/qrcode.d.ts +4 -4
- package/components/qrcode/qrcode.vue +2 -2
- package/components/radio/common.d.ts +2 -2
- package/components/radio/common.js +1 -1
- package/components/radio-group/radio-group.d.ts +3 -3
- package/components/radio-group/radio-group.vue +2 -2
- package/components/radio-input/common.d.ts +2 -2
- package/components/radio-input/common.js +1 -1
- package/components/radio-input/radio-input.d.ts +2 -2
- package/components/radio-input/radio-input.vue +2 -2
- package/components/rate/common.d.ts +1 -1
- package/components/rate/common.js +1 -1
- package/components/rate/rate.d.ts +1 -1
- package/components/rate/rate.vue +2 -2
- package/components/result/common.d.ts +2 -2
- package/components/result/common.js +1 -1
- package/components/result/result.d.ts +3 -3
- package/components/result/result.vue +2 -2
- package/components/search/common.d.ts +2 -2
- package/components/search/common.js +1 -1
- package/components/search/search.d.ts +3 -3
- package/components/search/search.vue +2 -2
- package/components/share-sheet/common.d.ts +1 -1
- package/components/share-sheet/common.js +1 -1
- package/components/share-sheet/share-sheet.d.ts +2 -2
- package/components/share-sheet/share-sheet.vue +2 -2
- package/components/skeleton/common.d.ts +1 -1
- package/components/skeleton/common.js +1 -1
- package/components/skeleton/skeleton.vue +2 -2
- package/components/slider/common.d.ts +1 -1
- package/components/slider/common.js +1 -1
- package/components/slider/slider.vue +2 -2
- package/components/stepper/common.d.ts +3 -3
- package/components/stepper/common.js +1 -1
- package/components/stepper/stepper.d.ts +5 -5
- package/components/stepper/stepper.vue +2 -2
- package/components/steps/common.d.ts +2 -2
- package/components/steps/common.js +1 -1
- package/components/steps/steps.d.ts +2 -2
- package/components/steps/steps.vue +2 -2
- package/components/swiper-dot/common.d.ts +2 -2
- package/components/swiper-dot/common.js +1 -1
- package/components/swiper-dot/swiper-dot.d.ts +3 -3
- package/components/swiper-dot/swiper-dot.vue +2 -2
- package/components/switch/common.d.ts +1 -1
- package/components/switch/common.js +1 -1
- package/components/switch/switch.vue +2 -2
- package/components/tabbar/common.d.ts +1 -1
- package/components/tabbar/common.js +1 -1
- package/components/tabbar/tabbar.vue +2 -2
- package/components/tabs/common.d.ts +2 -2
- package/components/tabs/common.js +1 -1
- package/components/tabs/tabs.d.ts +3 -3
- package/components/tabs/tabs.vue +2 -2
- package/components/tag/common.d.ts +3 -3
- package/components/tag/common.js +1 -1
- package/components/tag/tag.d.ts +5 -5
- package/components/tag/tag.vue +2 -2
- package/components/toast/common.d.ts +3 -3
- package/components/toast/common.js +1 -1
- package/components/toast/toast.d.ts +6 -6
- package/components/toast/toast.vue +2 -2
- package/components/toast-agent/common.d.ts +3 -3
- package/components/toast-agent/common.js +3 -3
- package/components/toast-agent/toast-agent.d.ts +6 -6
- package/components/toast-agent/toast-agent.vue +2 -2
- package/components/tree/common.d.ts +2 -2
- package/components/tree/common.js +1 -1
- package/components/tree/tree.d.ts +3 -3
- package/components/tree/tree.vue +2 -2
- package/components/upload/common.d.ts +7 -7
- package/components/upload/common.js +2 -2
- package/components/upload/upload.d.ts +11 -13
- package/components/upload/upload.vue +2 -2
- package/components/upload-preview/upload-preview.d.ts +2 -2
- package/components/upload-preview/upload-preview.vue +2 -2
- package/package.json +1 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { type NotifyAgentProps } from './common';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<NotifyAgentProps>, {
|
|
3
3
|
id: string;
|
|
4
|
-
type: "primary";
|
|
5
|
-
position: "top";
|
|
4
|
+
type: "success" | "primary" | "warning" | "error" | undefined;
|
|
5
|
+
position: "top" | "bottom" | undefined;
|
|
6
6
|
duration: number;
|
|
7
7
|
timeout: number;
|
|
8
8
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<NotifyAgentProps>, {
|
|
9
9
|
id: string;
|
|
10
|
-
type: "primary";
|
|
11
|
-
position: "top";
|
|
10
|
+
type: "success" | "primary" | "warning" | "error" | undefined;
|
|
11
|
+
position: "top" | "bottom" | undefined;
|
|
12
12
|
duration: number;
|
|
13
13
|
timeout: number;
|
|
14
14
|
}>>>, {
|
|
15
|
-
type: "success" | "primary" | "
|
|
15
|
+
type: "success" | "primary" | "warning" | "error";
|
|
16
16
|
id: string;
|
|
17
|
-
duration: number;
|
|
18
17
|
position: "top" | "bottom";
|
|
18
|
+
duration: number;
|
|
19
19
|
timeout: number;
|
|
20
20
|
}, {}>;
|
|
21
21
|
export default _default;
|
|
@@ -19,7 +19,7 @@ import { computed, ref } from "vue";
|
|
|
19
19
|
import SarNotify from "../notify/notify.vue";
|
|
20
20
|
import {
|
|
21
21
|
imperativeName,
|
|
22
|
-
|
|
22
|
+
defaultNotifyAgentProps
|
|
23
23
|
} from "./common";
|
|
24
24
|
import { useImperative } from "../../use/useImperative";
|
|
25
25
|
export default _defineComponent({
|
|
@@ -42,7 +42,7 @@ export default _defineComponent({
|
|
|
42
42
|
position: { type: String, required: false },
|
|
43
43
|
timeout: { type: Number, required: false },
|
|
44
44
|
duration: { type: Number, required: false }
|
|
45
|
-
},
|
|
45
|
+
}, defaultNotifyAgentProps),
|
|
46
46
|
setup(__props, { expose: __expose }) {
|
|
47
47
|
__expose();
|
|
48
48
|
const props = __props;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { defaultConfig } from '../config';
|
|
2
|
-
export const
|
|
2
|
+
export const defaultOverlayProps = defaultConfig.overlay;
|
|
@@ -17,7 +17,7 @@ import { computed, reactive, toRef } from "vue";
|
|
|
17
17
|
import { classNames, stringifyStyle, createBem } from "../../utils";
|
|
18
18
|
import { useTransition } from "../../use";
|
|
19
19
|
import {
|
|
20
|
-
|
|
20
|
+
defaultOverlayProps
|
|
21
21
|
} from "./common";
|
|
22
22
|
export default _defineComponent({
|
|
23
23
|
...{
|
|
@@ -35,7 +35,7 @@ export default _defineComponent({
|
|
|
35
35
|
duration: { type: Number, required: false },
|
|
36
36
|
background: { type: String, required: false },
|
|
37
37
|
transparent: { type: Boolean, required: false }
|
|
38
|
-
},
|
|
38
|
+
}, defaultOverlayProps),
|
|
39
39
|
emits: ["click"],
|
|
40
40
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
41
41
|
__expose();
|
|
@@ -12,12 +12,12 @@ export interface PaginationProps {
|
|
|
12
12
|
ellipsis?: boolean;
|
|
13
13
|
multiCount?: number;
|
|
14
14
|
}
|
|
15
|
-
export declare const
|
|
15
|
+
export declare const defaultPaginationProps: {
|
|
16
16
|
total: number;
|
|
17
17
|
pageSize: number;
|
|
18
18
|
current: number;
|
|
19
19
|
pageButtonCount: number;
|
|
20
|
-
type: "multi";
|
|
20
|
+
type: "multi" | "simple" | undefined;
|
|
21
21
|
multiCount: number;
|
|
22
22
|
};
|
|
23
23
|
export interface PaginationSlots {
|
|
@@ -4,7 +4,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
4
4
|
pageSize: number;
|
|
5
5
|
current: number;
|
|
6
6
|
pageButtonCount: number;
|
|
7
|
-
type: "multi";
|
|
7
|
+
type: "multi" | "simple" | undefined;
|
|
8
8
|
multiCount: number;
|
|
9
9
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
10
|
"update:current": (page: number) => void;
|
|
@@ -13,7 +13,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
13
13
|
pageSize: number;
|
|
14
14
|
current: number;
|
|
15
15
|
pageButtonCount: number;
|
|
16
|
-
type: "multi";
|
|
16
|
+
type: "multi" | "simple" | undefined;
|
|
17
17
|
multiCount: number;
|
|
18
18
|
}>>> & {
|
|
19
19
|
"onUpdate:current"?: ((page: number) => any) | undefined;
|
|
@@ -53,7 +53,7 @@ import { classNames, stringifyStyle, createBem, minmax } from "../../utils";
|
|
|
53
53
|
import { useTranslate } from "../locale";
|
|
54
54
|
import {
|
|
55
55
|
getPageRange,
|
|
56
|
-
|
|
56
|
+
defaultPaginationProps
|
|
57
57
|
} from "./common";
|
|
58
58
|
export default _defineComponent({
|
|
59
59
|
...{
|
|
@@ -75,7 +75,7 @@ export default _defineComponent({
|
|
|
75
75
|
type: { type: String, required: false },
|
|
76
76
|
ellipsis: { type: Boolean, required: false },
|
|
77
77
|
multiCount: { type: Number, required: false }
|
|
78
|
-
},
|
|
78
|
+
}, defaultPaginationProps),
|
|
79
79
|
emits: ["update:current"],
|
|
80
80
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
81
81
|
__expose();
|
|
@@ -13,9 +13,9 @@ export interface PasswordInputProps {
|
|
|
13
13
|
readonly?: boolean;
|
|
14
14
|
validateEvent?: boolean;
|
|
15
15
|
}
|
|
16
|
-
export declare const
|
|
16
|
+
export declare const defaultPasswordInputProps: {
|
|
17
17
|
length: number;
|
|
18
|
-
type: "border";
|
|
18
|
+
type: "border" | "underline" | undefined;
|
|
19
19
|
validateEvent: boolean;
|
|
20
20
|
};
|
|
21
21
|
export interface PasswordInputEmits {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { defaultConfig } from '../config';
|
|
2
|
-
export const
|
|
2
|
+
export const defaultPasswordInputProps = defaultConfig.passwordInput;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { type PasswordInputProps } from './common';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<PasswordInputProps>, {
|
|
3
3
|
length: number;
|
|
4
|
-
type: "border";
|
|
4
|
+
type: "border" | "underline" | undefined;
|
|
5
5
|
validateEvent: boolean;
|
|
6
6
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
7
|
"update:model-value": (value: string) => void;
|
|
8
8
|
"updat:focused": (focused: boolean) => void;
|
|
9
9
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<PasswordInputProps>, {
|
|
10
10
|
length: number;
|
|
11
|
-
type: "border";
|
|
11
|
+
type: "border" | "underline" | undefined;
|
|
12
12
|
validateEvent: boolean;
|
|
13
13
|
}>>> & {
|
|
14
14
|
"onUpdate:model-value"?: ((value: string) => any) | undefined;
|
|
@@ -38,7 +38,7 @@ import { computed, ref, watch } from "vue";
|
|
|
38
38
|
import { classNames, stringifyStyle, createBem } from "../../utils";
|
|
39
39
|
import { useFormContext, useFormItemContext } from "../form/common";
|
|
40
40
|
import {
|
|
41
|
-
|
|
41
|
+
defaultPasswordInputProps
|
|
42
42
|
} from "./common";
|
|
43
43
|
export default _defineComponent({
|
|
44
44
|
...{
|
|
@@ -61,7 +61,7 @@ export default _defineComponent({
|
|
|
61
61
|
disabled: { type: Boolean, required: false },
|
|
62
62
|
readonly: { type: Boolean, required: false },
|
|
63
63
|
validateEvent: { type: Boolean, required: false }
|
|
64
|
-
},
|
|
64
|
+
}, defaultPasswordInputProps),
|
|
65
65
|
emits: ["update:model-value", "updat:focused"],
|
|
66
66
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
67
67
|
__expose();
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
getOptionsByIndexes,
|
|
38
38
|
getMaySingleValueByOptions,
|
|
39
39
|
getValueOrLabelByOption,
|
|
40
|
-
|
|
40
|
+
defaultPickerProps
|
|
41
41
|
} from "./common";
|
|
42
42
|
export default _defineComponent({
|
|
43
43
|
...{
|
|
@@ -54,7 +54,7 @@ export default _defineComponent({
|
|
|
54
54
|
optionKeys: { type: Object, required: false },
|
|
55
55
|
modelValue: { type: null, required: false },
|
|
56
56
|
immediateChange: { type: Boolean, required: false }
|
|
57
|
-
},
|
|
57
|
+
}, defaultPickerProps),
|
|
58
58
|
emits: ["update:model-value"],
|
|
59
59
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
60
60
|
__expose();
|
|
@@ -5,7 +5,7 @@ export interface PickerInputProps extends PickerProps, Omit<PopoutInputProps, 'm
|
|
|
5
5
|
title?: string;
|
|
6
6
|
validateEvent?: boolean;
|
|
7
7
|
}
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const defaultPickerInputProps: {
|
|
9
9
|
validateEvent: boolean;
|
|
10
10
|
columns: () => never[];
|
|
11
11
|
immediateChange: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defaultPickerProps } from '../picker/common';
|
|
2
2
|
import { defaultConfig } from '../config';
|
|
3
|
-
export const
|
|
4
|
-
...
|
|
3
|
+
export const defaultPickerInputProps = {
|
|
4
|
+
...defaultPickerProps,
|
|
5
5
|
...defaultConfig.pickerInput,
|
|
6
6
|
};
|
|
@@ -15,8 +15,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
15
15
|
"onUpdate:model-value"?: ((value: any) => any) | undefined;
|
|
16
16
|
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
17
17
|
}, {
|
|
18
|
-
validateEvent: boolean;
|
|
19
18
|
columns: PickerOption[] | PickerOption[][];
|
|
19
|
+
validateEvent: boolean;
|
|
20
20
|
immediateChange: boolean;
|
|
21
21
|
}, {}>;
|
|
22
22
|
export default _default;
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
} from "../picker/common";
|
|
47
47
|
import { isNullish, toArray } from "../../utils";
|
|
48
48
|
import {
|
|
49
|
-
|
|
49
|
+
defaultPickerInputProps
|
|
50
50
|
} from "./common";
|
|
51
51
|
import { useFormItemContext } from "../form/common";
|
|
52
52
|
export default _defineComponent({
|
|
@@ -73,7 +73,7 @@ export default _defineComponent({
|
|
|
73
73
|
clearable: { type: Boolean, required: false },
|
|
74
74
|
loading: { type: Boolean, required: false },
|
|
75
75
|
multiline: { type: Boolean, required: false }
|
|
76
|
-
},
|
|
76
|
+
}, defaultPickerInputProps),
|
|
77
77
|
emits: ["update:visible", "update:model-value"],
|
|
78
78
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
79
79
|
__expose();
|
|
@@ -17,8 +17,8 @@ export interface PopoutProps {
|
|
|
17
17
|
overlayClosable?: boolean;
|
|
18
18
|
beforeClose?: (type: 'close' | 'cancel' | 'confirm') => boolean | undefined | Promise<any>;
|
|
19
19
|
}
|
|
20
|
-
export declare const
|
|
21
|
-
type: "loose";
|
|
20
|
+
export declare const defaultPopoutProps: {
|
|
21
|
+
type: "loose" | "compact" | undefined;
|
|
22
22
|
showConfirm: boolean;
|
|
23
23
|
showClose: boolean;
|
|
24
24
|
showFooter: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { defaultConfig } from '../config';
|
|
2
|
-
export const
|
|
2
|
+
export const defaultPopoutProps = defaultConfig.popout;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type TransitionHookName } from '../../use';
|
|
2
2
|
import { type PopoutProps, type PopoutSlots } from './common';
|
|
3
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<PopoutProps>, {
|
|
4
|
-
type: "loose";
|
|
4
|
+
type: "loose" | "compact" | undefined;
|
|
5
5
|
showConfirm: boolean;
|
|
6
6
|
showClose: boolean;
|
|
7
7
|
showFooter: boolean;
|
|
@@ -14,7 +14,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
14
14
|
confirm: () => void;
|
|
15
15
|
"visible-hook": (name: TransitionHookName) => void;
|
|
16
16
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<PopoutProps>, {
|
|
17
|
-
type: "loose";
|
|
17
|
+
type: "loose" | "compact" | undefined;
|
|
18
18
|
showConfirm: boolean;
|
|
19
19
|
showClose: boolean;
|
|
20
20
|
showFooter: boolean;
|
|
@@ -22,14 +22,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
22
22
|
duration: number;
|
|
23
23
|
}>>> & {
|
|
24
24
|
"onVisible-hook"?: ((name: TransitionHookName) => any) | undefined;
|
|
25
|
-
onCancel?: (() => any) | undefined;
|
|
26
25
|
onClose?: (() => any) | undefined;
|
|
26
|
+
onCancel?: (() => any) | undefined;
|
|
27
27
|
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
28
28
|
onConfirm?: (() => any) | undefined;
|
|
29
29
|
}, {
|
|
30
30
|
type: "loose" | "compact";
|
|
31
|
-
overlayClosable: boolean;
|
|
32
31
|
duration: number;
|
|
32
|
+
overlayClosable: boolean;
|
|
33
33
|
showConfirm: boolean;
|
|
34
34
|
showClose: boolean;
|
|
35
35
|
showFooter: boolean;
|
|
@@ -95,7 +95,7 @@ import SarIcon from "../icon/icon.vue";
|
|
|
95
95
|
import { usePopupVisibleHookProvide } from "../popup/common";
|
|
96
96
|
import { useTranslate } from "../locale";
|
|
97
97
|
import {
|
|
98
|
-
|
|
98
|
+
defaultPopoutProps
|
|
99
99
|
} from "./common";
|
|
100
100
|
export default _defineComponent({
|
|
101
101
|
...{
|
|
@@ -121,7 +121,7 @@ export default _defineComponent({
|
|
|
121
121
|
showFooter: { type: Boolean, required: false },
|
|
122
122
|
overlayClosable: { type: Boolean, required: false },
|
|
123
123
|
beforeClose: { type: Function, required: false }
|
|
124
|
-
},
|
|
124
|
+
}, defaultPopoutProps),
|
|
125
125
|
emits: ["update:visible", "close", "cancel", "confirm", "visible-hook"],
|
|
126
126
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
127
127
|
__expose();
|
|
@@ -17,10 +17,10 @@ export interface PopoverProps {
|
|
|
17
17
|
controller?: PopoverController;
|
|
18
18
|
duration?: number;
|
|
19
19
|
}
|
|
20
|
-
export declare const
|
|
21
|
-
position:
|
|
22
|
-
direction: "vertical";
|
|
23
|
-
theme: "light";
|
|
20
|
+
export declare const defaultPopoverProps: {
|
|
21
|
+
position: Position | undefined;
|
|
22
|
+
direction: "vertical" | "horizontal" | undefined;
|
|
23
|
+
theme: "light" | "dark" | undefined;
|
|
24
24
|
refGap: number;
|
|
25
25
|
viewportGap: number;
|
|
26
26
|
transparent: boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export type { PopoverProps, PopoverSlots, PopoverEmits, ReferenceExpose, PopoverReferenceProps, PopoverReferenceSlots, PopoverReferenceEmits, PopoverContext, } from './common';
|
|
1
2
|
import type { Position } from './utils';
|
|
2
3
|
export { usePopover } from './usePopover';
|
|
3
4
|
export type PopoverPosition = Position;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type MenuOption } from '../menu/common';
|
|
2
2
|
import { type PopoverProps, type PopoverSlots } from './common';
|
|
3
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<PopoverProps>, {
|
|
4
|
-
position: "
|
|
5
|
-
direction: "vertical";
|
|
6
|
-
theme: "light";
|
|
4
|
+
position: import("./utils").Position | undefined;
|
|
5
|
+
direction: "vertical" | "horizontal" | undefined;
|
|
6
|
+
theme: "light" | "dark" | undefined;
|
|
7
7
|
refGap: number;
|
|
8
8
|
viewportGap: number;
|
|
9
9
|
transparent: boolean;
|
|
@@ -12,9 +12,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
12
12
|
"update:visible": (visible: boolean) => void;
|
|
13
13
|
select: (option: MenuOption) => void;
|
|
14
14
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<PopoverProps>, {
|
|
15
|
-
position: "
|
|
16
|
-
direction: "vertical";
|
|
17
|
-
theme: "light";
|
|
15
|
+
position: import("./utils").Position | undefined;
|
|
16
|
+
direction: "vertical" | "horizontal" | undefined;
|
|
17
|
+
theme: "light" | "dark" | undefined;
|
|
18
18
|
refGap: number;
|
|
19
19
|
viewportGap: number;
|
|
20
20
|
transparent: boolean;
|
|
@@ -23,10 +23,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
23
23
|
onSelect?: ((option: MenuOption) => any) | undefined;
|
|
24
24
|
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
25
25
|
}, {
|
|
26
|
-
duration: number;
|
|
27
26
|
theme: "light" | "dark";
|
|
28
27
|
direction: "vertical" | "horizontal";
|
|
29
28
|
position: import("./utils").Position;
|
|
29
|
+
duration: number;
|
|
30
30
|
refGap: number;
|
|
31
31
|
viewportGap: number;
|
|
32
32
|
transparent: boolean;
|
|
@@ -52,7 +52,7 @@ import SarOverlay from "../overlay/overlay.vue";
|
|
|
52
52
|
import SarMenu from "../menu/menu.vue";
|
|
53
53
|
import {
|
|
54
54
|
popoverContextSymbol,
|
|
55
|
-
|
|
55
|
+
defaultPopoverProps
|
|
56
56
|
} from "./common";
|
|
57
57
|
export default _defineComponent({
|
|
58
58
|
...{
|
|
@@ -75,7 +75,7 @@ export default _defineComponent({
|
|
|
75
75
|
transparent: { type: Boolean, required: false },
|
|
76
76
|
controller: { type: Object, required: false },
|
|
77
77
|
duration: { type: Number, required: false }
|
|
78
|
-
},
|
|
78
|
+
}, defaultPopoverProps),
|
|
79
79
|
emits: ["update:visible", "select"],
|
|
80
80
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
81
81
|
__expose();
|
|
@@ -12,9 +12,9 @@ export interface PopupProps {
|
|
|
12
12
|
background?: string;
|
|
13
13
|
transparent?: boolean;
|
|
14
14
|
}
|
|
15
|
-
export declare const
|
|
15
|
+
export declare const defaultPopupProps: {
|
|
16
16
|
duration: number;
|
|
17
|
-
effect: "fade";
|
|
17
|
+
effect: "fade" | "slide-top" | "slide-right" | "slide-bottom" | "slide-left" | "zoom" | undefined;
|
|
18
18
|
overlay: boolean;
|
|
19
19
|
};
|
|
20
20
|
export interface PopupSlots {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { inject, ref, provide, watch, reactive } from 'vue';
|
|
2
2
|
import { defaultConfig } from '../config';
|
|
3
|
-
export const
|
|
3
|
+
export const defaultPopupProps = defaultConfig.popup;
|
|
4
4
|
export const popupContextSymbol = Symbol('popup-context');
|
|
5
5
|
export function usePopupVisibleHookProvide() {
|
|
6
6
|
const visibleState = ref();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type PopupProps, type PopupSlots } from './common';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<PopupProps>, {
|
|
3
3
|
duration: number;
|
|
4
|
-
effect: "fade";
|
|
4
|
+
effect: "fade" | "slide-top" | "slide-right" | "slide-bottom" | "slide-left" | "zoom" | undefined;
|
|
5
5
|
overlay: boolean;
|
|
6
6
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
7
|
"overlay-click": (event: any) => void;
|
|
@@ -16,7 +16,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
16
16
|
"visible-hook": (name: import("../../use").TransitionHookName) => void;
|
|
17
17
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<PopupProps>, {
|
|
18
18
|
duration: number;
|
|
19
|
-
effect: "fade";
|
|
19
|
+
effect: "fade" | "slide-top" | "slide-right" | "slide-bottom" | "slide-left" | "zoom" | undefined;
|
|
20
20
|
overlay: boolean;
|
|
21
21
|
}>>> & {
|
|
22
22
|
"onBefore-enter"?: (() => any) | undefined;
|
|
@@ -27,12 +27,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
27
27
|
onLeave?: (() => any) | undefined;
|
|
28
28
|
"onAfter-leave"?: (() => any) | undefined;
|
|
29
29
|
"onLeave-cancelled"?: (() => any) | undefined;
|
|
30
|
-
"onOverlay-click"?: ((event: any) => any) | undefined;
|
|
31
30
|
"onVisible-hook"?: ((name: import("../../use").TransitionHookName) => any) | undefined;
|
|
31
|
+
"onOverlay-click"?: ((event: any) => any) | undefined;
|
|
32
32
|
}, {
|
|
33
33
|
effect: "fade" | "slide-top" | "slide-right" | "slide-bottom" | "slide-left" | "zoom";
|
|
34
|
-
overlay: boolean;
|
|
35
34
|
duration: number;
|
|
35
|
+
overlay: boolean;
|
|
36
36
|
}, {}>, Readonly<PopupSlots> & PopupSlots>;
|
|
37
37
|
export default _default;
|
|
38
38
|
type __VLS_WithDefaults<P, D> = {
|
|
@@ -26,7 +26,7 @@ import { classNames, stringifyStyle, createBem } from "../../utils";
|
|
|
26
26
|
import { useTransition, useZIndex } from "../../use";
|
|
27
27
|
import SarOverlay from "../overlay/overlay.vue";
|
|
28
28
|
import {
|
|
29
|
-
|
|
29
|
+
defaultPopupProps,
|
|
30
30
|
usePopupVisibleHookProvide
|
|
31
31
|
} from "./common";
|
|
32
32
|
export default _defineComponent({
|
|
@@ -48,7 +48,7 @@ export default _defineComponent({
|
|
|
48
48
|
overlayStyle: { type: String, required: false },
|
|
49
49
|
background: { type: String, required: false },
|
|
50
50
|
transparent: { type: Boolean, required: false }
|
|
51
|
-
},
|
|
51
|
+
}, defaultPopupProps),
|
|
52
52
|
emits: ["overlay-click", "before-enter", "enter", "after-enter", "enter-cancelled", "before-leave", "leave", "after-leave", "leave-cancelled", "visible-hook"],
|
|
53
53
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
54
54
|
__expose();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { defaultConfig } from '../config';
|
|
2
|
-
export const
|
|
2
|
+
export const defaultProgressBarProps = defaultConfig.progressBar;
|
|
@@ -22,7 +22,7 @@ import { computed } from "vue";
|
|
|
22
22
|
import { classNames, stringifyStyle, createBem } from "../../utils";
|
|
23
23
|
import SarIcon from "../icon/icon.vue";
|
|
24
24
|
import {
|
|
25
|
-
|
|
25
|
+
defaultProgressBarProps
|
|
26
26
|
} from "./common";
|
|
27
27
|
export default _defineComponent({
|
|
28
28
|
...{
|
|
@@ -44,7 +44,7 @@ export default _defineComponent({
|
|
|
44
44
|
striped: { type: Boolean, required: false },
|
|
45
45
|
animated: { type: Boolean, required: false },
|
|
46
46
|
status: { type: String, required: false }
|
|
47
|
-
},
|
|
47
|
+
}, defaultProgressBarProps),
|
|
48
48
|
setup(__props, { expose: __expose }) {
|
|
49
49
|
__expose();
|
|
50
50
|
const props = __props;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { defaultConfig } from '../config';
|
|
2
|
-
export const
|
|
2
|
+
export const defaultProgressCircle = defaultConfig.progressCircle;
|
|
@@ -21,7 +21,7 @@ import { computed } from "vue";
|
|
|
21
21
|
import { classNames, stringifyStyle, createBem } from "../../utils";
|
|
22
22
|
import SarIcon from "../icon/icon.vue";
|
|
23
23
|
import {
|
|
24
|
-
|
|
24
|
+
defaultProgressCircle
|
|
25
25
|
} from "./common";
|
|
26
26
|
export default _defineComponent({
|
|
27
27
|
...{
|
|
@@ -40,7 +40,7 @@ export default _defineComponent({
|
|
|
40
40
|
thickness: { type: Number, required: false },
|
|
41
41
|
size: { type: String, required: false },
|
|
42
42
|
status: { type: String, required: false }
|
|
43
|
-
},
|
|
43
|
+
}, defaultProgressCircle),
|
|
44
44
|
setup(__props, { expose: __expose }) {
|
|
45
45
|
__expose();
|
|
46
46
|
const props = __props;
|
|
@@ -10,7 +10,7 @@ export interface PullDownRefreshProps {
|
|
|
10
10
|
doneDuration?: number;
|
|
11
11
|
disabled?: boolean;
|
|
12
12
|
}
|
|
13
|
-
export declare const
|
|
13
|
+
export declare const defaultPullDownRefreshProps: {
|
|
14
14
|
loading: boolean;
|
|
15
15
|
disabled: boolean;
|
|
16
16
|
threshold: number;
|
|
@@ -28,8 +28,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
28
28
|
}>>> & {
|
|
29
29
|
onRefresh?: (() => any) | undefined;
|
|
30
30
|
}, {
|
|
31
|
-
loading: boolean;
|
|
32
31
|
disabled: boolean;
|
|
32
|
+
loading: boolean;
|
|
33
33
|
threshold: number;
|
|
34
34
|
headerHeight: number;
|
|
35
35
|
transitionDuration: number;
|
|
@@ -77,7 +77,7 @@ import { mergeDefaults as _mergeDefaults, defineComponent as _defineComponent }
|
|
|
77
77
|
import { computed, onMounted, ref, watch } from "vue";
|
|
78
78
|
import { classNames, stringifyStyle, createBem } from "../../utils";
|
|
79
79
|
import {
|
|
80
|
-
|
|
80
|
+
defaultPullDownRefreshProps
|
|
81
81
|
} from "./common";
|
|
82
82
|
import { useMouseDown, useSetTimeout } from "../../use";
|
|
83
83
|
import SarLoading from "../loading/loading.vue";
|
|
@@ -98,7 +98,7 @@ export default _defineComponent({
|
|
|
98
98
|
transitionDuration: { type: Number, required: false },
|
|
99
99
|
doneDuration: { type: Number, required: false },
|
|
100
100
|
disabled: { type: Boolean, required: false }
|
|
101
|
-
},
|
|
101
|
+
}, defaultPullDownRefreshProps),
|
|
102
102
|
emits: ["refresh"],
|
|
103
103
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
104
104
|
const touch = {};
|