sard-uniapp 1.6.1 → 1.7.1
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 +18 -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 +60 -382
- package/components/config/index.js +12 -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 +7 -1
- package/components/input/common.js +1 -1
- package/components/input/input.d.ts +18 -0
- 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,37 +1,35 @@
|
|
|
1
1
|
import { type UploadProps, type UploadSlots, type UploadFile, type UploadFileItem } from './common';
|
|
2
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<UploadProps>, {
|
|
3
|
-
accept: "image";
|
|
4
|
-
sourceType: () => ("album" | "camera")[];
|
|
5
|
-
sizeType: () => ("original" | "compressed")[];
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<UploadProps>, Omit<{
|
|
3
|
+
accept: "video" | "image" | undefined;
|
|
4
|
+
sourceType: () => ("album" | "camera")[] | undefined;
|
|
5
|
+
sizeType: () => ("original" | "compressed")[] | undefined;
|
|
6
6
|
maxDuration: number;
|
|
7
7
|
maxCount: number;
|
|
8
8
|
maxSize: number;
|
|
9
9
|
removable: boolean;
|
|
10
10
|
validateEvent: boolean;
|
|
11
|
-
}
|
|
11
|
+
}, "sourceType" | "sizeType">>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
12
|
"update:model-value": (value: UploadFileItem[]) => void;
|
|
13
13
|
remove: (index: number, item: UploadFileItem) => void;
|
|
14
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<UploadProps>, {
|
|
15
|
-
accept: "image";
|
|
16
|
-
sourceType: () => ("album" | "camera")[];
|
|
17
|
-
sizeType: () => ("original" | "compressed")[];
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<UploadProps>, Omit<{
|
|
15
|
+
accept: "video" | "image" | undefined;
|
|
16
|
+
sourceType: () => ("album" | "camera")[] | undefined;
|
|
17
|
+
sizeType: () => ("original" | "compressed")[] | undefined;
|
|
18
18
|
maxDuration: number;
|
|
19
19
|
maxCount: number;
|
|
20
20
|
maxSize: number;
|
|
21
21
|
removable: boolean;
|
|
22
22
|
validateEvent: boolean;
|
|
23
|
-
}
|
|
23
|
+
}, "sourceType" | "sizeType">>>> & {
|
|
24
24
|
"onUpdate:model-value"?: ((value: UploadFileItem[]) => any) | undefined;
|
|
25
25
|
onRemove?: ((index: number, item: UploadFileItem) => any) | undefined;
|
|
26
26
|
}, {
|
|
27
|
-
validateEvent: boolean;
|
|
28
27
|
accept: "video" | "image";
|
|
29
|
-
sourceType: ("album" | "camera")[];
|
|
30
|
-
sizeType: ("original" | "compressed")[];
|
|
31
28
|
maxDuration: number;
|
|
32
29
|
maxCount: number;
|
|
33
30
|
maxSize: number | ((file: UploadFile) => boolean);
|
|
34
31
|
removable: boolean;
|
|
32
|
+
validateEvent: boolean;
|
|
35
33
|
}, {}>, Readonly<UploadSlots> & UploadSlots>;
|
|
36
34
|
export default _default;
|
|
37
35
|
type __VLS_WithDefaults<P, D> = {
|
|
@@ -50,7 +50,7 @@ import SarUploadPreview from "../upload-preview/upload-preview.vue";
|
|
|
50
50
|
import SarIcon from "../icon/icon.vue";
|
|
51
51
|
import { chooseMedia } from "./utils";
|
|
52
52
|
import {
|
|
53
|
-
|
|
53
|
+
defaultUploadProps
|
|
54
54
|
} from "./common";
|
|
55
55
|
import { useFormContext, useFormItemContext } from "../form/common";
|
|
56
56
|
export default _defineComponent({
|
|
@@ -81,7 +81,7 @@ export default _defineComponent({
|
|
|
81
81
|
removable: { type: Boolean, required: false },
|
|
82
82
|
beforeRemove: { type: Function, required: false },
|
|
83
83
|
validateEvent: { type: Boolean, required: false }
|
|
84
|
-
},
|
|
84
|
+
}, defaultUploadProps),
|
|
85
85
|
emits: ["update:model-value", "remove"],
|
|
86
86
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
87
87
|
__expose();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { type UploadPreviewProps } from '../upload/common';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<UploadPreviewProps>, {
|
|
3
|
-
status: "
|
|
3
|
+
status: import("../upload/common").UploadStatus | undefined;
|
|
4
4
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
5
|
"image-click": (index: number) => void;
|
|
6
6
|
remove: (index: number) => void;
|
|
7
7
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<UploadPreviewProps>, {
|
|
8
|
-
status: "
|
|
8
|
+
status: import("../upload/common").UploadStatus | undefined;
|
|
9
9
|
}>>> & {
|
|
10
10
|
onRemove?: ((index: number) => any) | undefined;
|
|
11
11
|
"onImage-click"?: ((index: number) => any) | undefined;
|
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
import SarIcon from "../icon/icon.vue";
|
|
67
67
|
import SarLoading from "../loading/loading.vue";
|
|
68
68
|
import {
|
|
69
|
-
|
|
69
|
+
defaultUploadPreviewProps
|
|
70
70
|
} from "../upload/common";
|
|
71
71
|
export default _defineComponent({
|
|
72
72
|
...{
|
|
@@ -91,7 +91,7 @@ export default _defineComponent({
|
|
|
91
91
|
index: { type: Number, required: true },
|
|
92
92
|
disabled: { type: Boolean, required: false },
|
|
93
93
|
readonly: { type: Boolean, required: false }
|
|
94
|
-
},
|
|
94
|
+
}, defaultUploadPreviewProps),
|
|
95
95
|
emits: ["image-click", "remove"],
|
|
96
96
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
97
97
|
__expose();
|