sard-uniapp 1.8.1 → 1.8.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/changelog.md +9 -0
- package/components/_template/_template.d.ts +7 -22
- package/components/accordion/accordion.d.ts +6 -21
- package/components/accordion-item/accordion-item.d.ts +6 -21
- package/components/action-sheet/action-sheet.d.ts +10 -33
- package/components/alert/alert.d.ts +8 -27
- package/components/alert/common.d.ts +1 -1
- package/components/alert/index.scss +6 -2
- package/components/avatar/avatar.d.ts +4 -23
- package/components/avatar/common.d.ts +1 -1
- package/components/back-top/back-top.d.ts +7 -28
- package/components/back-top/usePageBackTop.d.ts +1 -1
- package/components/back-top/useScrollViewBackTop.d.ts +1 -1
- package/components/badge/badge.d.ts +5 -26
- package/components/button/button.d.ts +13 -66
- package/components/button/common.d.ts +3 -3
- package/components/button/index.scss +3 -2
- package/components/calendar/calendar.d.ts +5 -30
- package/components/calendar/common.d.ts +1 -1
- package/components/calendar-input/calendar-input.d.ts +6 -35
- package/components/calendar-input/common.d.ts +1 -1
- package/components/calendar-month/calendar-month.d.ts +4 -21
- package/components/card/card.d.ts +6 -21
- package/components/cascader/cascader.d.ts +8 -27
- package/components/cascader-input/cascader-input.d.ts +9 -30
- package/components/check-icon/check-icon.d.ts +3 -26
- package/components/checkbox/checkbox.d.ts +10 -29
- package/components/checkbox/common.d.ts +1 -1
- package/components/checkbox-group/checkbox-group.d.ts +11 -32
- package/components/checkbox-input/checkbox-input.d.ts +6 -29
- package/components/col/col.d.ts +3 -18
- package/components/collapse/collapse.d.ts +3 -18
- package/components/config/index.d.ts +87 -52
- package/components/count-down/count-down.d.ts +9 -32
- package/components/count-to/count-to.d.ts +2 -29
- package/components/datetime-picker/datetime-picker.d.ts +5 -26
- package/components/datetime-picker-input/datetime-picker-input.d.ts +6 -29
- package/components/dialog/common.d.ts +1 -1
- package/components/dialog/dialog.d.ts +15 -44
- package/components/dialog-agent/common.d.ts +1 -1
- package/components/dialog-agent/dialog-agent.d.ts +3 -36
- package/components/dropdown/common.d.ts +1 -1
- package/components/dropdown/dropdown.d.ts +4 -31
- package/components/dropdown-item/dropdown-item.d.ts +8 -27
- package/components/empty/empty.d.ts +4 -23
- package/components/fab/fab.d.ts +6 -33
- package/components/floating-bubble/common.d.ts +1 -1
- package/components/floating-bubble/floating-bubble.d.ts +9 -32
- package/components/form/Validator.d.ts +3 -3
- package/components/form/common.d.ts +2 -10
- package/components/form/form.d.ts +9 -42
- package/components/form-item/form-item.d.ts +6 -27
- package/components/grid/common.d.ts +1 -1
- package/components/grid/grid.d.ts +5 -26
- package/components/grid-item/grid-item.d.ts +6 -21
- package/components/icon/icon.d.ts +2 -25
- package/components/indexes/indexes.d.ts +7 -22
- package/components/indexes-anchor/indexes-anchor.d.ts +3 -18
- package/components/indexes-nav/indexes-nav.d.ts +6 -21
- package/components/input/common.d.ts +2 -2
- package/components/input/input.d.ts +17 -60
- package/components/keyboard/common.d.ts +1 -1
- package/components/keyboard/keyboard.d.ts +9 -28
- package/components/list/common.d.ts +1 -1
- package/components/list/list.d.ts +3 -18
- package/components/list-item/list-item.d.ts +8 -27
- package/components/load-more/load-more.d.ts +8 -27
- package/components/loading/common.d.ts +1 -1
- package/components/loading/loading.d.ts +5 -28
- package/components/locale/index.d.ts +1 -1
- package/components/marquee/common.d.ts +1 -1
- package/components/marquee/marquee.d.ts +5 -28
- package/components/menu/menu.d.ts +5 -26
- package/components/menu-item/menu-item.d.ts +4 -21
- package/components/navbar/navbar.d.ts +3 -18
- package/components/navbar-item/navbar-item.d.ts +6 -21
- package/components/notice-bar/common.d.ts +1 -1
- package/components/notice-bar/notice-bar.d.ts +9 -34
- package/components/notify/common.d.ts +2 -2
- package/components/notify/notify.d.ts +8 -35
- package/components/notify-agent/common.d.ts +2 -2
- package/components/notify-agent/notify-agent.d.ts +3 -32
- package/components/overlay/overlay.d.ts +7 -26
- package/components/pagination/common.d.ts +1 -1
- package/components/pagination/pagination.d.ts +8 -37
- package/components/password-input/common.d.ts +1 -1
- package/components/password-input/password-input.d.ts +6 -31
- package/components/picker/picker.d.ts +5 -28
- package/components/picker-input/picker-input.d.ts +6 -31
- package/components/popout/common.d.ts +1 -1
- package/components/popout/popout.d.ts +15 -44
- package/components/popout-input/popout-input.d.ts +6 -23
- package/components/popout-input/popout-input.vue +1 -1
- package/components/popover/common.d.ts +3 -3
- package/components/popover/popover.d.ts +9 -40
- package/components/popover-reference/popover-reference.d.ts +6 -21
- package/components/popup/common.d.ts +1 -1
- package/components/popup/popup.d.ts +11 -50
- package/components/progress-bar/progress-bar.d.ts +4 -25
- package/components/progress-circle/progress-circle.d.ts +4 -25
- package/components/pull-down-refresh/pull-down-refresh.d.ts +10 -39
- package/components/qrcode/common.d.ts +2 -2
- package/components/qrcode/qrcode.d.ts +3 -38
- package/components/radio/common.d.ts +1 -1
- package/components/radio/radio.d.ts +6 -21
- package/components/radio-group/radio-group.d.ts +9 -30
- package/components/radio-input/common.d.ts +1 -1
- package/components/radio-input/radio-input.d.ts +6 -31
- package/components/rate/rate.d.ts +5 -32
- package/components/result/common.d.ts +1 -1
- package/components/result/result.d.ts +5 -24
- package/components/row/row.d.ts +3 -18
- package/components/sard-uniapp/sard-uniapp.d.ts +1 -1
- package/components/search/common.d.ts +1 -1
- package/components/search/search.d.ts +17 -38
- package/components/share-sheet/share-sheet.d.ts +10 -33
- package/components/skeleton/skeleton.d.ts +4 -25
- package/components/skeleton-avatar/skeleton-avatar.d.ts +1 -18
- package/components/skeleton-block/skeleton-block.d.ts +1 -18
- package/components/skeleton-paragraph/skeleton-paragraph.d.ts +1 -18
- package/components/skeleton-title/skeleton-title.d.ts +1 -18
- package/components/slider/slider.d.ts +10 -35
- package/components/stepper/common.d.ts +2 -2
- package/components/stepper/stepper.d.ts +9 -46
- package/components/steps/common.d.ts +1 -1
- package/components/steps/steps.d.ts +2 -35
- package/components/style/functions.scss +22 -0
- package/components/style/mixins/bem.scss +3 -2
- package/components/style/variables.scss +6 -6
- package/components/swiper-dot/common.d.ts +1 -1
- package/components/swiper-dot/swiper-dot.d.ts +3 -30
- package/components/switch/switch.d.ts +7 -32
- package/components/tab/tab.d.ts +6 -21
- package/components/tabbar/tabbar.d.ts +7 -26
- package/components/tabbar-item/tabbar-item.d.ts +6 -21
- package/components/tabs/common.d.ts +1 -1
- package/components/tabs/tabs.d.ts +7 -26
- package/components/tag/common.d.ts +2 -2
- package/components/tag/index.scss +2 -1
- package/components/tag/tag.d.ts +9 -30
- package/components/timeline/timeline.d.ts +3 -18
- package/components/timeline-item/timeline-item.d.ts +3 -18
- package/components/toast/common.d.ts +2 -2
- package/components/toast/toast.d.ts +8 -37
- package/components/toast-agent/common.d.ts +2 -2
- package/components/toast-agent/toast-agent.d.ts +4 -35
- package/components/tree/common.d.ts +1 -1
- package/components/tree/tree.d.ts +3 -30
- package/components/tree-branch/tree-branch.d.ts +1 -18
- package/components/tree-node/tree-node.d.ts +1 -18
- package/components/upload/common.d.ts +3 -11
- package/components/upload/upload.d.ts +9 -42
- package/components/upload/upload.vue +0 -1
- package/components/upload-preview/upload-preview.d.ts +6 -27
- package/components/upload-preview/upload-preview.vue +0 -1
- package/package.json +118 -17
- package/use/useLuckyGrid.d.ts +1 -1
- package/use/useLuckyWheel.d.ts +1 -1
- package/use/useTransition.d.ts +2 -2
- package/use/useZIndex.d.ts +1 -1
- package/utils/utils.js +0 -1
package/changelog.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## [1.8.2](https://github.com/sutras/sard-uniapp/compare/v1.8.1...v1.8.2) (2024-12-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **PopoutInput:** 只读时隐藏箭头 ([0efcdf7](https://github.com/sutras/sard-uniapp/commit/0efcdf77f39778521b8fe7d2b66c84b7a88496c5))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
1
10
|
## [1.8.1](https://github.com/sutras/sard-uniapp/compare/v1.8.0...v1.8.1) (2024-10-22)
|
|
2
11
|
|
|
3
12
|
|
|
@@ -1,31 +1,16 @@
|
|
|
1
1
|
import { type _TemplateProps, type _TemplateSlots } from './common';
|
|
2
|
-
declare
|
|
2
|
+
declare function __VLS_template(): Readonly<_TemplateSlots> & _TemplateSlots;
|
|
3
|
+
declare const __VLS_component: import("vue").DefineComponent<_TemplateProps, {
|
|
3
4
|
reset: () => void;
|
|
4
|
-
},
|
|
5
|
-
click: (event: any) =>
|
|
6
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
5
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
6
|
+
click: (event: any) => any;
|
|
7
|
+
}, string, import("vue").PublicProps, Readonly<_TemplateProps> & Readonly<{
|
|
7
8
|
onClick?: ((event: any) => any) | undefined;
|
|
8
|
-
}, {}, {}
|
|
9
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
9
11
|
export default _default;
|
|
10
|
-
type __VLS_WithDefaults<P, D> = {
|
|
11
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
12
|
-
default: D[K];
|
|
13
|
-
}> : P[K];
|
|
14
|
-
};
|
|
15
|
-
type __VLS_Prettify<T> = {
|
|
16
|
-
[K in keyof T]: T[K];
|
|
17
|
-
} & {};
|
|
18
12
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
13
|
new (): {
|
|
20
14
|
$slots: S;
|
|
21
15
|
};
|
|
22
16
|
};
|
|
23
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
24
|
-
type __VLS_TypePropsToOption<T> = {
|
|
25
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
26
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
27
|
-
} : {
|
|
28
|
-
type: import('vue').PropType<T[K]>;
|
|
29
|
-
required: true;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
@@ -1,30 +1,15 @@
|
|
|
1
1
|
import { type AccordionProps, type AccordionSlots } from './common';
|
|
2
|
-
declare
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
declare function __VLS_template(): Readonly<AccordionSlots> & AccordionSlots;
|
|
3
|
+
declare const __VLS_component: import("vue").DefineComponent<AccordionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
4
|
+
"update:model-value": (event: any) => any;
|
|
5
|
+
}, string, import("vue").PublicProps, Readonly<AccordionProps> & Readonly<{
|
|
5
6
|
"onUpdate:model-value"?: ((event: any) => any) | undefined;
|
|
6
|
-
}, {}, {}
|
|
7
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
7
9
|
export default _default;
|
|
8
10
|
|
|
9
|
-
type __VLS_WithDefaults<P, D> = {
|
|
10
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
11
|
-
default: D[K];
|
|
12
|
-
}> : P[K];
|
|
13
|
-
};
|
|
14
|
-
type __VLS_Prettify<T> = {
|
|
15
|
-
[K in keyof T]: T[K];
|
|
16
|
-
} & {};
|
|
17
11
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
18
12
|
new (): {
|
|
19
13
|
$slots: S;
|
|
20
14
|
};
|
|
21
15
|
};
|
|
22
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
23
|
-
type __VLS_TypePropsToOption<T> = {
|
|
24
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
25
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
26
|
-
} : {
|
|
27
|
-
type: import('vue').PropType<T[K]>;
|
|
28
|
-
required: true;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
@@ -1,29 +1,14 @@
|
|
|
1
1
|
import { type AccordionItemProps, type AccordionItemSlots } from '../accordion/common';
|
|
2
|
-
declare
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
declare function __VLS_template(): Readonly<AccordionItemSlots> & AccordionItemSlots;
|
|
3
|
+
declare const __VLS_component: import("vue").DefineComponent<AccordionItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
4
|
+
click: (event: any) => any;
|
|
5
|
+
}, string, import("vue").PublicProps, Readonly<AccordionItemProps> & Readonly<{
|
|
5
6
|
onClick?: ((event: any) => any) | undefined;
|
|
6
|
-
}, {}, {}
|
|
7
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
7
9
|
export default _default;
|
|
8
|
-
type __VLS_WithDefaults<P, D> = {
|
|
9
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
10
|
-
default: D[K];
|
|
11
|
-
}> : P[K];
|
|
12
|
-
};
|
|
13
|
-
type __VLS_Prettify<T> = {
|
|
14
|
-
[K in keyof T]: T[K];
|
|
15
|
-
} & {};
|
|
16
10
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
17
11
|
new (): {
|
|
18
12
|
$slots: S;
|
|
19
13
|
};
|
|
20
14
|
};
|
|
21
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
22
|
-
type __VLS_TypePropsToOption<T> = {
|
|
23
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
24
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
25
|
-
} : {
|
|
26
|
-
type: import('vue').PropType<T[K]>;
|
|
27
|
-
required: true;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
@@ -1,39 +1,16 @@
|
|
|
1
1
|
import { type ActionSheetItem, type ActionSheetProps } from './common';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
"update:visible": (visible: boolean) =>
|
|
7
|
-
|
|
8
|
-
cancel: () => void;
|
|
9
|
-
select: (item: ActionSheetItem, index: number) => void;
|
|
10
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ActionSheetProps>, {
|
|
11
|
-
overlayClosable: boolean;
|
|
12
|
-
duration: number;
|
|
13
|
-
}>>> & {
|
|
14
|
-
onSelect?: ((item: ActionSheetItem, index: number) => any) | undefined;
|
|
15
|
-
onClose?: (() => any) | undefined;
|
|
2
|
+
declare const _default: import("vue").DefineComponent<ActionSheetProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
3
|
+
cancel: () => any;
|
|
4
|
+
close: () => any;
|
|
5
|
+
select: (item: ActionSheetItem, index: number) => any;
|
|
6
|
+
"update:visible": (visible: boolean) => any;
|
|
7
|
+
}, string, import("vue").PublicProps, Readonly<ActionSheetProps> & Readonly<{
|
|
16
8
|
onCancel?: (() => any) | undefined;
|
|
9
|
+
onClose?: (() => any) | undefined;
|
|
10
|
+
onSelect?: ((item: ActionSheetItem, index: number) => any) | undefined;
|
|
17
11
|
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
18
|
-
}
|
|
12
|
+
}>, {
|
|
19
13
|
duration: number;
|
|
20
14
|
overlayClosable: boolean;
|
|
21
|
-
}, {}>;
|
|
15
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
16
|
export default _default;
|
|
23
|
-
type __VLS_WithDefaults<P, D> = {
|
|
24
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
25
|
-
default: D[K];
|
|
26
|
-
}> : P[K];
|
|
27
|
-
};
|
|
28
|
-
type __VLS_Prettify<T> = {
|
|
29
|
-
[K in keyof T]: T[K];
|
|
30
|
-
} & {};
|
|
31
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
32
|
-
type __VLS_TypePropsToOption<T> = {
|
|
33
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
34
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
35
|
-
} : {
|
|
36
|
-
type: import('vue').PropType<T[K]>;
|
|
37
|
-
required: true;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
@@ -1,35 +1,16 @@
|
|
|
1
1
|
import { type AlertProps, type AlertSlots } from './common';
|
|
2
|
-
declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<AlertProps>, {
|
|
7
|
-
type: "success" | "primary" | "warning" | "danger" | undefined;
|
|
8
|
-
}>>> & {
|
|
2
|
+
declare function __VLS_template(): Readonly<AlertSlots> & AlertSlots;
|
|
3
|
+
declare const __VLS_component: import("vue").DefineComponent<AlertProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
4
|
+
close: () => any;
|
|
5
|
+
}, string, import("vue").PublicProps, Readonly<AlertProps> & Readonly<{
|
|
9
6
|
onClose?: (() => any) | undefined;
|
|
10
|
-
}
|
|
11
|
-
type: "
|
|
12
|
-
}, {}
|
|
7
|
+
}>, {
|
|
8
|
+
type: "primary" | "success" | "warning" | "danger";
|
|
9
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
13
11
|
export default _default;
|
|
14
|
-
type __VLS_WithDefaults<P, D> = {
|
|
15
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
16
|
-
default: D[K];
|
|
17
|
-
}> : P[K];
|
|
18
|
-
};
|
|
19
|
-
type __VLS_Prettify<T> = {
|
|
20
|
-
[K in keyof T]: T[K];
|
|
21
|
-
} & {};
|
|
22
12
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
23
13
|
new (): {
|
|
24
14
|
$slots: S;
|
|
25
15
|
};
|
|
26
16
|
};
|
|
27
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
28
|
-
type __VLS_TypePropsToOption<T> = {
|
|
29
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
30
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
31
|
-
} : {
|
|
32
|
-
type: import('vue').PropType<T[K]>;
|
|
33
|
-
required: true;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
@@ -9,7 +9,7 @@ export interface AlertProps {
|
|
|
9
9
|
background?: string;
|
|
10
10
|
}
|
|
11
11
|
export declare const defaultAlertProps: {
|
|
12
|
-
type: "
|
|
12
|
+
type: AlertProps["type"];
|
|
13
13
|
};
|
|
14
14
|
export interface AlertSlots {
|
|
15
15
|
default?(props: Record<string, never>): any;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use 'sass:list';
|
|
1
2
|
@use '../style/base' as *;
|
|
2
3
|
|
|
3
4
|
@include bem(alert) {
|
|
@@ -30,8 +31,11 @@
|
|
|
30
31
|
)
|
|
31
32
|
{
|
|
32
33
|
@include m($type) {
|
|
33
|
-
color: nth($color, 1);
|
|
34
|
-
background-color: rgba(
|
|
34
|
+
color: list.nth($color, 1);
|
|
35
|
+
background-color: rgba(
|
|
36
|
+
list.nth($color, 2),
|
|
37
|
+
var(--sar-alert-bg-opacity)
|
|
38
|
+
);
|
|
35
39
|
}
|
|
36
40
|
}
|
|
37
41
|
}
|
|
@@ -1,31 +1,12 @@
|
|
|
1
1
|
import { type AvatarProps, type AvatarSlots } from './common';
|
|
2
|
-
declare
|
|
3
|
-
|
|
4
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<AvatarProps>, {
|
|
5
|
-
shape: "circle" | "square" | undefined;
|
|
6
|
-
}>>>, {
|
|
2
|
+
declare function __VLS_template(): Readonly<AvatarSlots> & AvatarSlots;
|
|
3
|
+
declare const __VLS_component: import("vue").DefineComponent<AvatarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarProps> & Readonly<{}>, {
|
|
7
4
|
shape: "circle" | "square";
|
|
8
|
-
}, {}
|
|
5
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
9
7
|
export default _default;
|
|
10
|
-
type __VLS_WithDefaults<P, D> = {
|
|
11
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
12
|
-
default: D[K];
|
|
13
|
-
}> : P[K];
|
|
14
|
-
};
|
|
15
|
-
type __VLS_Prettify<T> = {
|
|
16
|
-
[K in keyof T]: T[K];
|
|
17
|
-
} & {};
|
|
18
8
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
9
|
new (): {
|
|
20
10
|
$slots: S;
|
|
21
11
|
};
|
|
22
12
|
};
|
|
23
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
24
|
-
type __VLS_TypePropsToOption<T> = {
|
|
25
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
26
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
27
|
-
} : {
|
|
28
|
-
type: import('vue').PropType<T[K]>;
|
|
29
|
-
required: true;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
@@ -10,7 +10,7 @@ export interface AvatarProps {
|
|
|
10
10
|
src?: string;
|
|
11
11
|
}
|
|
12
12
|
export declare const defaultAvatarProps: {
|
|
13
|
-
shape: "
|
|
13
|
+
shape: AvatarProps["shape"];
|
|
14
14
|
};
|
|
15
15
|
export interface AvatarSlots {
|
|
16
16
|
default?(props: Record<string, never>): any;
|
|
@@ -1,38 +1,17 @@
|
|
|
1
1
|
import { type BackTopProps, type BackTopSlots } from './common';
|
|
2
|
-
declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
click: (event: any) => void;
|
|
7
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<BackTopProps>, {
|
|
8
|
-
scrollTop: number;
|
|
9
|
-
visibleHeight: number;
|
|
10
|
-
}>>> & {
|
|
2
|
+
declare function __VLS_template(): Readonly<BackTopSlots> & BackTopSlots;
|
|
3
|
+
declare const __VLS_component: import("vue").DefineComponent<BackTopProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
4
|
+
click: (event: any) => any;
|
|
5
|
+
}, string, import("vue").PublicProps, Readonly<BackTopProps> & Readonly<{
|
|
11
6
|
onClick?: ((event: any) => any) | undefined;
|
|
12
|
-
}
|
|
7
|
+
}>, {
|
|
13
8
|
visibleHeight: number;
|
|
14
9
|
scrollTop: number;
|
|
15
|
-
}, {}
|
|
10
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
16
12
|
export default _default;
|
|
17
|
-
type __VLS_WithDefaults<P, D> = {
|
|
18
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
19
|
-
default: D[K];
|
|
20
|
-
}> : P[K];
|
|
21
|
-
};
|
|
22
|
-
type __VLS_Prettify<T> = {
|
|
23
|
-
[K in keyof T]: T[K];
|
|
24
|
-
} & {};
|
|
25
13
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
26
14
|
new (): {
|
|
27
15
|
$slots: S;
|
|
28
16
|
};
|
|
29
17
|
};
|
|
30
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
31
|
-
type __VLS_TypePropsToOption<T> = {
|
|
32
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
33
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
34
|
-
} : {
|
|
35
|
-
type: import('vue').PropType<T[K]>;
|
|
36
|
-
required: true;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
@@ -1,34 +1,13 @@
|
|
|
1
1
|
import { type BadgeProps, type BadgeSlots } from './common';
|
|
2
|
-
declare
|
|
3
|
-
|
|
2
|
+
declare function __VLS_template(): Readonly<BadgeSlots> & BadgeSlots;
|
|
3
|
+
declare const __VLS_component: import("vue").DefineComponent<BadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BadgeProps> & Readonly<{}>, {
|
|
4
4
|
max: number;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}>>>, {
|
|
9
|
-
max: number;
|
|
10
|
-
value: string | number;
|
|
11
|
-
}, {}>, Readonly<BadgeSlots> & BadgeSlots>;
|
|
5
|
+
value: number | string;
|
|
6
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
12
8
|
export default _default;
|
|
13
|
-
type __VLS_WithDefaults<P, D> = {
|
|
14
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
15
|
-
default: D[K];
|
|
16
|
-
}> : P[K];
|
|
17
|
-
};
|
|
18
|
-
type __VLS_Prettify<T> = {
|
|
19
|
-
[K in keyof T]: T[K];
|
|
20
|
-
} & {};
|
|
21
9
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
22
10
|
new (): {
|
|
23
11
|
$slots: S;
|
|
24
12
|
};
|
|
25
13
|
};
|
|
26
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
27
|
-
type __VLS_TypePropsToOption<T> = {
|
|
28
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
29
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
30
|
-
} : {
|
|
31
|
-
type: import('vue').PropType<T[K]>;
|
|
32
|
-
required: true;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
@@ -1,76 +1,23 @@
|
|
|
1
1
|
import { type ButtonProps, type ButtonSlots } from './common';
|
|
2
|
-
declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
declare function __VLS_template(): Readonly<ButtonSlots> & ButtonSlots;
|
|
3
|
+
declare const __VLS_component: import("vue").DefineComponent<ButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
} & {
|
|
6
|
+
[x: string]: any;
|
|
7
|
+
}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{
|
|
8
|
+
[x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
|
|
9
|
+
}>, {
|
|
10
|
+
size: "mini" | "small" | "medium" | "large";
|
|
11
|
+
type: "default" | "pale" | "mild" | "outline" | "text" | "pale-text";
|
|
12
|
+
theme: "primary" | "secondary" | "success" | "info" | "warning" | "danger" | "neutral";
|
|
6
13
|
hoverStopPropagation: boolean;
|
|
7
14
|
lang: string;
|
|
8
15
|
showMessageCard: boolean;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
getphonenumber: (event: any) => void;
|
|
12
|
-
getuserinfo: (event: any) => void;
|
|
13
|
-
error: (event: any) => void;
|
|
14
|
-
opensetting: (event: any) => void;
|
|
15
|
-
launchapp: (event: any) => void;
|
|
16
|
-
contact: (event: any) => void;
|
|
17
|
-
chooseavatar: (event: any) => void;
|
|
18
|
-
agreeprivacyauthorization: (event: any) => void;
|
|
19
|
-
addgroupapp: (event: any) => void;
|
|
20
|
-
chooseaddress: (event: any) => void;
|
|
21
|
-
chooseinvoicetitle: (event: any) => void;
|
|
22
|
-
subscribe: (event: any) => void;
|
|
23
|
-
login: (event: any) => void;
|
|
24
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ButtonProps>, {
|
|
25
|
-
type: "text" | "default" | "pale" | "mild" | "outline" | "pale-text" | undefined;
|
|
26
|
-
theme: "success" | "primary" | "warning" | "danger" | "secondary" | "info" | "neutral" | undefined;
|
|
27
|
-
size: "small" | "medium" | "mini" | "large" | undefined;
|
|
28
|
-
hoverStopPropagation: boolean;
|
|
29
|
-
lang: string;
|
|
30
|
-
showMessageCard: boolean;
|
|
31
|
-
}>>> & {
|
|
32
|
-
onError?: ((event: any) => any) | undefined;
|
|
33
|
-
onClick?: ((event: any) => any) | undefined;
|
|
34
|
-
onGetphonenumber?: ((event: any) => any) | undefined;
|
|
35
|
-
onGetuserinfo?: ((event: any) => any) | undefined;
|
|
36
|
-
onOpensetting?: ((event: any) => any) | undefined;
|
|
37
|
-
onLaunchapp?: ((event: any) => any) | undefined;
|
|
38
|
-
onContact?: ((event: any) => any) | undefined;
|
|
39
|
-
onChooseavatar?: ((event: any) => any) | undefined;
|
|
40
|
-
onAgreeprivacyauthorization?: ((event: any) => any) | undefined;
|
|
41
|
-
onAddgroupapp?: ((event: any) => any) | undefined;
|
|
42
|
-
onChooseaddress?: ((event: any) => any) | undefined;
|
|
43
|
-
onChooseinvoicetitle?: ((event: any) => any) | undefined;
|
|
44
|
-
onSubscribe?: ((event: any) => any) | undefined;
|
|
45
|
-
onLogin?: ((event: any) => any) | undefined;
|
|
46
|
-
}, {
|
|
47
|
-
size: "small" | "medium" | "mini" | "large";
|
|
48
|
-
type: "text" | "default" | "pale" | "mild" | "outline" | "pale-text";
|
|
49
|
-
theme: "success" | "primary" | "warning" | "danger" | "secondary" | "info" | "neutral";
|
|
50
|
-
hoverStopPropagation: boolean;
|
|
51
|
-
lang: string;
|
|
52
|
-
showMessageCard: boolean;
|
|
53
|
-
}, {}>, Readonly<ButtonSlots> & ButtonSlots>;
|
|
16
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
54
18
|
export default _default;
|
|
55
|
-
type __VLS_WithDefaults<P, D> = {
|
|
56
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
57
|
-
default: D[K];
|
|
58
|
-
}> : P[K];
|
|
59
|
-
};
|
|
60
|
-
type __VLS_Prettify<T> = {
|
|
61
|
-
[K in keyof T]: T[K];
|
|
62
|
-
} & {};
|
|
63
19
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
64
20
|
new (): {
|
|
65
21
|
$slots: S;
|
|
66
22
|
};
|
|
67
23
|
};
|
|
68
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
69
|
-
type __VLS_TypePropsToOption<T> = {
|
|
70
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
71
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
72
|
-
} : {
|
|
73
|
-
type: import('vue').PropType<T[K]>;
|
|
74
|
-
required: true;
|
|
75
|
-
};
|
|
76
|
-
};
|
|
@@ -26,9 +26,9 @@ export interface ButtonProps {
|
|
|
26
26
|
publicId?: string;
|
|
27
27
|
}
|
|
28
28
|
export declare const defaultButtonProps: {
|
|
29
|
-
type: "
|
|
30
|
-
theme: "
|
|
31
|
-
size: "
|
|
29
|
+
type: ButtonProps["type"];
|
|
30
|
+
theme: ButtonProps["theme"];
|
|
31
|
+
size: ButtonProps["size"];
|
|
32
32
|
hoverStopPropagation: boolean;
|
|
33
33
|
lang: string;
|
|
34
34
|
showMessageCard: boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use 'sass:list';
|
|
1
2
|
@use '../style/base' as *;
|
|
2
3
|
|
|
3
4
|
@include bem(button) {
|
|
@@ -91,8 +92,8 @@
|
|
|
91
92
|
|
|
92
93
|
// # 主题色
|
|
93
94
|
@each $theme, $value in $sar-theme-colors {
|
|
94
|
-
$color: nth($value, 1);
|
|
95
|
-
$color-rgb: nth($value, 2);
|
|
95
|
+
$color: list.nth($value, 1);
|
|
96
|
+
$color-rgb: list.nth($value, 2);
|
|
96
97
|
|
|
97
98
|
// ## 默认类型
|
|
98
99
|
@include m(default-#{$theme}) {
|
|
@@ -1,36 +1,11 @@
|
|
|
1
1
|
import { type CalendarProps } from './common';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
weekStartsOn: number;
|
|
6
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
-
"update:model-value": (value: Date | Date[]) => void;
|
|
8
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<CalendarProps>, {
|
|
9
|
-
type: import("./common").CalendarType | undefined;
|
|
10
|
-
maxDays: number;
|
|
11
|
-
weekStartsOn: number;
|
|
12
|
-
}>>> & {
|
|
2
|
+
declare const _default: import("vue").DefineComponent<CalendarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
3
|
+
"update:model-value": (value: Date | Date[]) => any;
|
|
4
|
+
}, string, import("vue").PublicProps, Readonly<CalendarProps> & Readonly<{
|
|
13
5
|
"onUpdate:model-value"?: ((value: Date | Date[]) => any) | undefined;
|
|
14
|
-
}
|
|
6
|
+
}>, {
|
|
15
7
|
type: import("./common").CalendarType;
|
|
16
8
|
maxDays: number;
|
|
17
9
|
weekStartsOn: number;
|
|
18
|
-
}, {}>;
|
|
10
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
11
|
export default _default;
|
|
20
|
-
type __VLS_WithDefaults<P, D> = {
|
|
21
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
22
|
-
default: D[K];
|
|
23
|
-
}> : P[K];
|
|
24
|
-
};
|
|
25
|
-
type __VLS_Prettify<T> = {
|
|
26
|
-
[K in keyof T]: T[K];
|
|
27
|
-
} & {};
|
|
28
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
29
|
-
type __VLS_TypePropsToOption<T> = {
|
|
30
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
31
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
32
|
-
} : {
|
|
33
|
-
type: import('vue').PropType<T[K]>;
|
|
34
|
-
required: true;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
@@ -1,45 +1,16 @@
|
|
|
1
1
|
import { type CalendarType } from '../calendar/common';
|
|
2
2
|
import { type CalendarInputProps } from './common';
|
|
3
|
-
declare const _default: import("vue").DefineComponent<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
showConfirm: boolean;
|
|
8
|
-
validateEvent: boolean;
|
|
9
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
-
"update:visible": (visible: boolean) => void;
|
|
11
|
-
"update:model-value": (value: Date | Date[] | undefined) => void;
|
|
12
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<CalendarInputProps>, {
|
|
13
|
-
type: CalendarType | undefined;
|
|
14
|
-
maxDays: number;
|
|
15
|
-
weekStartsOn: number;
|
|
16
|
-
showConfirm: boolean;
|
|
17
|
-
validateEvent: boolean;
|
|
18
|
-
}>>> & {
|
|
3
|
+
declare const _default: import("vue").DefineComponent<CalendarInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
4
|
+
"update:model-value": (value: Date | Date[] | undefined) => any;
|
|
5
|
+
"update:visible": (visible: boolean) => any;
|
|
6
|
+
}, string, import("vue").PublicProps, Readonly<CalendarInputProps> & Readonly<{
|
|
19
7
|
"onUpdate:model-value"?: ((value: Date | Date[] | undefined) => any) | undefined;
|
|
20
8
|
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
21
|
-
}
|
|
9
|
+
}>, {
|
|
22
10
|
type: CalendarType;
|
|
23
11
|
validateEvent: boolean;
|
|
24
12
|
maxDays: number;
|
|
25
13
|
weekStartsOn: number;
|
|
26
14
|
showConfirm: boolean;
|
|
27
|
-
}, {}>;
|
|
15
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
16
|
export default _default;
|
|
29
|
-
type __VLS_WithDefaults<P, D> = {
|
|
30
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
31
|
-
default: D[K];
|
|
32
|
-
}> : P[K];
|
|
33
|
-
};
|
|
34
|
-
type __VLS_Prettify<T> = {
|
|
35
|
-
[K in keyof T]: T[K];
|
|
36
|
-
} & {};
|
|
37
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
38
|
-
type __VLS_TypePropsToOption<T> = {
|
|
39
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
40
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
41
|
-
} : {
|
|
42
|
-
type: import('vue').PropType<T[K]>;
|
|
43
|
-
required: true;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
@@ -7,7 +7,7 @@ export interface CalendarInputProps extends CalendarProps, Omit<PopoutInputProps
|
|
|
7
7
|
validateEvent?: boolean;
|
|
8
8
|
}
|
|
9
9
|
export declare const defaultCalendarInputProps: {
|
|
10
|
-
type:
|
|
10
|
+
type: CalendarProps["type"];
|
|
11
11
|
maxDays: number;
|
|
12
12
|
weekStartsOn: number;
|
|
13
13
|
showConfirm: boolean;
|