vant 4.0.0-rc.2 → 4.0.0-rc.4
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/README.md +4 -5
- package/changelog.generated.md +38 -26
- package/es/action-bar/index.d.ts +1 -0
- package/es/action-bar/types.d.ts +4 -0
- package/es/action-bar/types.mjs +0 -0
- package/es/action-bar-button/index.d.ts +1 -0
- package/es/action-bar-button/types.d.ts +5 -0
- package/es/action-bar-button/types.mjs +0 -0
- package/es/action-bar-icon/index.d.ts +1 -0
- package/es/action-bar-icon/types.d.ts +10 -0
- package/es/action-bar-icon/types.mjs +0 -0
- package/es/action-sheet/index.d.ts +1 -0
- package/es/action-sheet/types.d.ts +23 -0
- package/es/action-sheet/types.mjs +0 -0
- package/es/address-edit/index.d.ts +1 -1
- package/es/address-edit/types.d.ts +6 -0
- package/es/address-list/index.d.ts +1 -0
- package/es/address-list/types.d.ts +15 -0
- package/es/address-list/types.mjs +0 -0
- package/es/badge/index.d.ts +1 -0
- package/es/badge/types.d.ts +12 -0
- package/es/badge/types.mjs +0 -0
- package/es/button/index.d.ts +1 -1
- package/es/button/types.d.ts +36 -0
- package/es/calendar/index.d.ts +1 -1
- package/es/calendar/types.d.ts +28 -0
- package/es/card/index.d.ts +1 -0
- package/es/card/types.d.ts +18 -0
- package/es/card/types.mjs +0 -0
- package/es/cascader/index.d.ts +1 -1
- package/es/cascader/types.d.ts +15 -0
- package/es/cell/index.d.ts +1 -0
- package/es/cell/types.d.ts +21 -0
- package/es/cell/types.mjs +0 -0
- package/es/cell-group/index.d.ts +1 -0
- package/es/cell-group/types.d.ts +10 -0
- package/es/cell-group/types.mjs +0 -0
- package/es/checkbox/index.d.ts +1 -1
- package/es/checkbox/types.d.ts +11 -0
- package/es/circle/index.d.ts +1 -0
- package/es/circle/types.d.ts +9 -0
- package/es/circle/types.mjs +0 -0
- package/es/collapse-item/index.d.ts +1 -1
- package/es/collapse-item/types.d.ts +9 -0
- package/es/config-provider/index.d.ts +1 -0
- package/es/config-provider/types.d.ts +1 -0
- package/es/config-provider/types.mjs +0 -0
- package/es/contact-card/index.d.ts +1 -0
- package/es/contact-card/types.d.ts +6 -0
- package/es/contact-card/types.mjs +0 -0
- package/es/contact-edit/index.d.ts +1 -0
- package/es/contact-edit/types.d.ts +8 -0
- package/es/contact-edit/types.mjs +0 -0
- package/es/contact-list/index.d.ts +1 -0
- package/es/contact-list/types.d.ts +6 -0
- package/es/contact-list/types.mjs +0 -0
- package/es/count-down/index.d.ts +1 -1
- package/es/count-down/types.d.ts +5 -0
- package/es/coupon/index.d.ts +1 -0
- package/es/coupon/types.d.ts +19 -0
- package/es/coupon/types.mjs +0 -0
- package/es/coupon-cell/index.d.ts +1 -0
- package/es/coupon-cell/types.d.ts +3 -0
- package/es/coupon-cell/types.mjs +0 -0
- package/es/coupon-list/index.d.ts +1 -0
- package/es/coupon-list/types.d.ts +9 -0
- package/es/coupon-list/types.mjs +0 -0
- package/es/dialog/index.d.ts +1 -1
- package/es/dialog/types.d.ts +21 -0
- package/es/divider/index.d.ts +1 -0
- package/es/divider/types.d.ts +10 -0
- package/es/divider/types.mjs +0 -0
- package/es/dropdown-item/index.d.ts +1 -1
- package/es/dropdown-item/types.d.ts +3 -0
- package/es/dropdown-menu/index.d.ts +1 -1
- package/es/dropdown-menu/types.d.ts +13 -0
- package/es/empty/index.d.ts +1 -0
- package/es/empty/types.d.ts +10 -0
- package/es/empty/types.mjs +0 -0
- package/es/field/Field.mjs +2 -1
- package/es/field/index.d.ts +1 -1
- package/es/field/types.d.ts +21 -0
- package/es/grid-item/index.d.ts +1 -0
- package/es/grid-item/types.d.ts +8 -0
- package/es/grid-item/types.mjs +0 -0
- package/es/image/index.d.ts +1 -0
- package/es/image/types.d.ts +9 -0
- package/es/image/types.mjs +0 -0
- package/es/image-preview/index.d.ts +2 -2
- package/es/image-preview/types.d.ts +11 -0
- package/es/index-anchor/index.d.ts +1 -0
- package/es/index-anchor/types.d.ts +11 -0
- package/es/index-anchor/types.mjs +0 -0
- package/es/index-bar/index.d.ts +1 -1
- package/es/index-bar/types.d.ts +6 -0
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/list/index.d.ts +1 -1
- package/es/list/types.d.ts +6 -0
- package/es/loading/index.d.ts +1 -0
- package/es/loading/types.d.ts +7 -0
- package/es/loading/types.mjs +0 -0
- package/es/nav-bar/index.d.ts +1 -0
- package/es/nav-bar/types.d.ts +10 -0
- package/es/nav-bar/types.mjs +0 -0
- package/es/notice-bar/index.d.ts +1 -1
- package/es/notice-bar/types.d.ts +11 -0
- package/es/notify/Notify.mjs +1 -0
- package/es/notify/function-call.mjs +1 -1
- package/es/notify/index.d.ts +2 -2
- package/es/notify/types.d.ts +10 -0
- package/es/number-keyboard/index.d.ts +1 -0
- package/es/number-keyboard/types.d.ts +17 -0
- package/es/number-keyboard/types.mjs +0 -0
- package/es/overlay/index.d.ts +1 -0
- package/es/overlay/types.d.ts +4 -0
- package/es/overlay/types.mjs +0 -0
- package/es/pagination/index.d.ts +1 -0
- package/es/pagination/types.d.ts +11 -0
- package/es/pagination/types.mjs +0 -0
- package/es/password-input/index.d.ts +1 -0
- package/es/password-input/types.d.ts +17 -0
- package/es/password-input/types.mjs +0 -0
- package/es/picker/index.d.ts +1 -1
- package/es/picker/types.d.ts +17 -0
- package/es/picker-group/index.d.ts +1 -0
- package/es/picker-group/types.d.ts +3 -0
- package/es/picker-group/types.mjs +0 -0
- package/es/popover/index.d.ts +1 -1
- package/es/popover/types.d.ts +15 -0
- package/es/popup/index.d.ts +1 -1
- package/es/popup/types.d.ts +9 -0
- package/es/progress/index.d.ts +1 -1
- package/es/progress/types.d.ts +11 -0
- package/es/pull-refresh/index.d.ts +1 -0
- package/es/pull-refresh/types.d.ts +6 -0
- package/es/pull-refresh/types.mjs +0 -0
- package/es/radio/index.d.ts +1 -0
- package/es/radio/types.d.ts +11 -0
- package/es/radio/types.mjs +0 -0
- package/es/rate/index.d.ts +1 -0
- package/es/rate/types.d.ts +7 -0
- package/es/rate/types.mjs +0 -0
- package/es/search/index.d.ts +1 -1
- package/es/search/types.d.ts +13 -0
- package/es/share-sheet/index.d.ts +1 -0
- package/es/share-sheet/types.d.ts +17 -0
- package/es/share-sheet/types.mjs +0 -0
- package/es/sidebar/index.d.ts +1 -0
- package/es/sidebar/types.d.ts +3 -0
- package/es/sidebar/types.mjs +0 -0
- package/es/sidebar-item/index.d.ts +1 -0
- package/es/sidebar-item/types.d.ts +15 -0
- package/es/sidebar-item/types.mjs +0 -0
- package/es/skeleton/index.d.ts +1 -0
- package/es/skeleton/types.d.ts +9 -0
- package/es/skeleton/types.mjs +0 -0
- package/es/slider/index.d.ts +1 -0
- package/es/slider/types.d.ts +11 -0
- package/es/slider/types.mjs +0 -0
- package/es/step/index.d.ts +1 -0
- package/es/step/types.d.ts +13 -0
- package/es/step/types.mjs +0 -0
- package/es/stepper/index.d.ts +1 -0
- package/es/stepper/types.d.ts +15 -0
- package/es/stepper/types.mjs +0 -0
- package/es/steps/index.d.ts +1 -0
- package/es/steps/types.d.ts +3 -0
- package/es/steps/types.mjs +0 -0
- package/es/sticky/index.d.ts +1 -0
- package/es/sticky/types.d.ts +3 -0
- package/es/sticky/types.mjs +0 -0
- package/es/submit-bar/index.d.ts +1 -0
- package/es/submit-bar/types.d.ts +21 -0
- package/es/submit-bar/types.mjs +0 -0
- package/es/swipe/index.d.ts +1 -1
- package/es/swipe/types.d.ts +8 -0
- package/es/switch/index.d.ts +1 -0
- package/es/switch/types.d.ts +12 -0
- package/es/switch/types.mjs +0 -0
- package/es/tab/Tab.mjs +12 -2
- package/es/tabbar/index.d.ts +1 -0
- package/es/tabbar/types.d.ts +5 -0
- package/es/tabbar/types.mjs +0 -0
- package/es/tabbar-item/index.d.ts +1 -0
- package/es/tabbar-item/types.d.ts +9 -0
- package/es/tabbar-item/types.mjs +0 -0
- package/es/tabs/Tabs.mjs +11 -11
- package/es/tabs/index.d.ts +1 -1
- package/es/tabs/types.d.ts +14 -0
- package/es/tag/Tag.d.ts +1 -2
- package/es/tag/index.d.ts +9 -8
- package/es/tag/types.d.ts +20 -0
- package/es/tag/types.mjs +0 -0
- package/es/toast/index.d.ts +6 -1
- package/es/toast/types.d.ts +17 -0
- package/es/tree-select/index.d.ts +1 -0
- package/es/tree-select/types.d.ts +10 -0
- package/es/tree-select/types.mjs +0 -0
- package/es/uploader/index.d.ts +1 -1
- package/es/uploader/types.d.ts +27 -0
- package/lib/action-bar/index.d.ts +1 -0
- package/lib/action-bar/types.d.ts +4 -0
- package/lib/action-bar/types.js +15 -0
- package/lib/action-bar-button/index.d.ts +1 -0
- package/lib/action-bar-button/types.d.ts +5 -0
- package/lib/action-bar-button/types.js +15 -0
- package/lib/action-bar-icon/index.d.ts +1 -0
- package/lib/action-bar-icon/types.d.ts +10 -0
- package/lib/action-bar-icon/types.js +15 -0
- package/lib/action-sheet/index.d.ts +1 -0
- package/lib/action-sheet/types.d.ts +23 -0
- package/lib/action-sheet/types.js +15 -0
- package/lib/address-edit/index.d.ts +1 -1
- package/lib/address-edit/types.d.ts +6 -0
- package/lib/address-list/index.d.ts +1 -0
- package/lib/address-list/types.d.ts +15 -0
- package/lib/address-list/types.js +15 -0
- package/lib/badge/index.d.ts +1 -0
- package/lib/badge/types.d.ts +12 -0
- package/lib/badge/types.js +15 -0
- package/lib/button/index.d.ts +1 -1
- package/lib/button/types.d.ts +36 -0
- package/lib/calendar/index.d.ts +1 -1
- package/lib/calendar/types.d.ts +28 -0
- package/lib/card/index.d.ts +1 -0
- package/lib/card/types.d.ts +18 -0
- package/lib/card/types.js +15 -0
- package/lib/cascader/index.d.ts +1 -1
- package/lib/cascader/types.d.ts +15 -0
- package/lib/cell/index.d.ts +1 -0
- package/lib/cell/types.d.ts +21 -0
- package/lib/cell/types.js +15 -0
- package/lib/cell-group/index.d.ts +1 -0
- package/lib/cell-group/types.d.ts +10 -0
- package/lib/cell-group/types.js +15 -0
- package/lib/checkbox/index.d.ts +1 -1
- package/lib/checkbox/types.d.ts +11 -0
- package/lib/circle/index.d.ts +1 -0
- package/lib/circle/types.d.ts +9 -0
- package/lib/circle/types.js +15 -0
- package/lib/collapse-item/index.d.ts +1 -1
- package/lib/collapse-item/types.d.ts +9 -0
- package/lib/config-provider/index.d.ts +1 -0
- package/lib/config-provider/types.d.ts +1 -0
- package/lib/config-provider/types.js +15 -0
- package/lib/contact-card/index.d.ts +1 -0
- package/lib/contact-card/types.d.ts +6 -0
- package/lib/contact-card/types.js +15 -0
- package/lib/contact-edit/index.d.ts +1 -0
- package/lib/contact-edit/types.d.ts +8 -0
- package/lib/contact-edit/types.js +15 -0
- package/lib/contact-list/index.d.ts +1 -0
- package/lib/contact-list/types.d.ts +6 -0
- package/lib/contact-list/types.js +15 -0
- package/lib/count-down/index.d.ts +1 -1
- package/lib/count-down/types.d.ts +5 -0
- package/lib/coupon/index.d.ts +1 -0
- package/lib/coupon/types.d.ts +19 -0
- package/lib/coupon/types.js +15 -0
- package/lib/coupon-cell/index.d.ts +1 -0
- package/lib/coupon-cell/types.d.ts +3 -0
- package/lib/coupon-cell/types.js +15 -0
- package/lib/coupon-list/index.d.ts +1 -0
- package/lib/coupon-list/types.d.ts +9 -0
- package/lib/coupon-list/types.js +15 -0
- package/lib/dialog/index.d.ts +1 -1
- package/lib/dialog/types.d.ts +21 -0
- package/lib/divider/index.d.ts +1 -0
- package/lib/divider/types.d.ts +10 -0
- package/lib/divider/types.js +15 -0
- package/lib/dropdown-item/index.d.ts +1 -1
- package/lib/dropdown-item/types.d.ts +3 -0
- package/lib/dropdown-menu/index.d.ts +1 -1
- package/lib/dropdown-menu/types.d.ts +13 -0
- package/lib/empty/index.d.ts +1 -0
- package/lib/empty/types.d.ts +10 -0
- package/lib/empty/types.js +15 -0
- package/lib/field/Field.js +2 -1
- package/lib/field/index.d.ts +1 -1
- package/lib/field/types.d.ts +21 -0
- package/lib/grid-item/index.d.ts +1 -0
- package/lib/grid-item/types.d.ts +8 -0
- package/lib/grid-item/types.js +15 -0
- package/lib/image/index.d.ts +1 -0
- package/lib/image/types.d.ts +9 -0
- package/lib/image/types.js +15 -0
- package/lib/image-preview/index.d.ts +2 -2
- package/lib/image-preview/types.d.ts +11 -0
- package/lib/index-anchor/index.d.ts +1 -0
- package/lib/index-anchor/types.d.ts +11 -0
- package/lib/index-anchor/types.js +15 -0
- package/lib/index-bar/index.d.ts +1 -1
- package/lib/index-bar/types.d.ts +6 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/list/index.d.ts +1 -1
- package/lib/list/types.d.ts +6 -0
- package/lib/loading/index.d.ts +1 -0
- package/lib/loading/types.d.ts +7 -0
- package/lib/loading/types.js +15 -0
- package/lib/nav-bar/index.d.ts +1 -0
- package/lib/nav-bar/types.d.ts +10 -0
- package/lib/nav-bar/types.js +15 -0
- package/lib/notice-bar/index.d.ts +1 -1
- package/lib/notice-bar/types.d.ts +11 -0
- package/lib/notify/Notify.js +1 -0
- package/lib/notify/function-call.js +1 -1
- package/lib/notify/index.d.ts +2 -2
- package/lib/notify/types.d.ts +10 -0
- package/lib/number-keyboard/index.d.ts +1 -0
- package/lib/number-keyboard/types.d.ts +17 -0
- package/lib/number-keyboard/types.js +15 -0
- package/lib/overlay/index.d.ts +1 -0
- package/lib/overlay/types.d.ts +4 -0
- package/lib/overlay/types.js +15 -0
- package/lib/pagination/index.d.ts +1 -0
- package/lib/pagination/types.d.ts +11 -0
- package/lib/pagination/types.js +15 -0
- package/lib/password-input/index.d.ts +1 -0
- package/lib/password-input/types.d.ts +17 -0
- package/lib/password-input/types.js +15 -0
- package/lib/picker/index.d.ts +1 -1
- package/lib/picker/types.d.ts +17 -0
- package/lib/picker-group/index.d.ts +1 -0
- package/lib/picker-group/types.d.ts +3 -0
- package/lib/picker-group/types.js +15 -0
- package/lib/popover/index.d.ts +1 -1
- package/lib/popover/types.d.ts +15 -0
- package/lib/popup/index.d.ts +1 -1
- package/lib/popup/types.d.ts +9 -0
- package/lib/progress/index.d.ts +1 -1
- package/lib/progress/types.d.ts +11 -0
- package/lib/pull-refresh/index.d.ts +1 -0
- package/lib/pull-refresh/types.d.ts +6 -0
- package/lib/pull-refresh/types.js +15 -0
- package/lib/radio/index.d.ts +1 -0
- package/lib/radio/types.d.ts +11 -0
- package/lib/radio/types.js +15 -0
- package/lib/rate/index.d.ts +1 -0
- package/lib/rate/types.d.ts +7 -0
- package/lib/rate/types.js +15 -0
- package/lib/search/index.d.ts +1 -1
- package/lib/search/types.d.ts +13 -0
- package/lib/share-sheet/index.d.ts +1 -0
- package/lib/share-sheet/types.d.ts +17 -0
- package/lib/share-sheet/types.js +15 -0
- package/lib/sidebar/index.d.ts +1 -0
- package/lib/sidebar/types.d.ts +3 -0
- package/lib/sidebar/types.js +15 -0
- package/lib/sidebar-item/index.d.ts +1 -0
- package/lib/sidebar-item/types.d.ts +15 -0
- package/lib/sidebar-item/types.js +15 -0
- package/lib/skeleton/index.d.ts +1 -0
- package/lib/skeleton/types.d.ts +9 -0
- package/lib/skeleton/types.js +15 -0
- package/lib/slider/index.d.ts +1 -0
- package/lib/slider/types.d.ts +11 -0
- package/lib/slider/types.js +15 -0
- package/lib/step/index.d.ts +1 -0
- package/lib/step/types.d.ts +13 -0
- package/lib/step/types.js +15 -0
- package/lib/stepper/index.d.ts +1 -0
- package/lib/stepper/types.d.ts +15 -0
- package/lib/stepper/types.js +15 -0
- package/lib/steps/index.d.ts +1 -0
- package/lib/steps/types.d.ts +3 -0
- package/lib/steps/types.js +15 -0
- package/lib/sticky/index.d.ts +1 -0
- package/lib/sticky/types.d.ts +3 -0
- package/lib/sticky/types.js +15 -0
- package/lib/submit-bar/index.d.ts +1 -0
- package/lib/submit-bar/types.d.ts +21 -0
- package/lib/submit-bar/types.js +15 -0
- package/lib/swipe/index.d.ts +1 -1
- package/lib/swipe/types.d.ts +8 -0
- package/lib/switch/index.d.ts +1 -0
- package/lib/switch/types.d.ts +12 -0
- package/lib/switch/types.js +15 -0
- package/lib/tab/Tab.js +11 -1
- package/lib/tabbar/index.d.ts +1 -0
- package/lib/tabbar/types.d.ts +5 -0
- package/lib/tabbar/types.js +15 -0
- package/lib/tabbar-item/index.d.ts +1 -0
- package/lib/tabbar-item/types.d.ts +9 -0
- package/lib/tabbar-item/types.js +15 -0
- package/lib/tabs/Tabs.js +11 -11
- package/lib/tabs/index.d.ts +1 -1
- package/lib/tabs/types.d.ts +14 -0
- package/lib/tag/Tag.d.ts +1 -2
- package/lib/tag/index.d.ts +9 -8
- package/lib/tag/types.d.ts +20 -0
- package/lib/tag/types.js +15 -0
- package/lib/toast/index.d.ts +6 -1
- package/lib/toast/types.d.ts +17 -0
- package/lib/tree-select/index.d.ts +1 -0
- package/lib/tree-select/types.d.ts +10 -0
- package/lib/tree-select/types.js +15 -0
- package/lib/uploader/index.d.ts +1 -1
- package/lib/uploader/types.d.ts +27 -0
- package/lib/vant.cjs.js +27 -15
- package/lib/vant.es.js +27 -15
- package/lib/vant.js +27 -15
- package/lib/vant.min.js +1 -1
- package/lib/web-types.json +1332 -1292
- package/package.json +4 -4
package/es/pagination/index.d.ts
CHANGED
@@ -69,6 +69,7 @@ export declare const Pagination: import("../utils").WithInstall<import("vue").De
|
|
69
69
|
export default Pagination;
|
70
70
|
export { paginationProps } from './Pagination';
|
71
71
|
export type { PaginationMode, PaginationProps } from './Pagination';
|
72
|
+
export type { PaginationThemeVars } from './types';
|
72
73
|
declare module 'vue' {
|
73
74
|
interface GlobalComponents {
|
74
75
|
VanPagination: typeof Pagination;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
export declare type PaginationThemeVars = {
|
2
|
+
paginationHeight?: string;
|
3
|
+
paginationFontSize?: string;
|
4
|
+
paginationItemWidth?: string;
|
5
|
+
paginationItemDefaultColor?: string;
|
6
|
+
paginationItemDisabledColor?: string;
|
7
|
+
paginationItemDisabledBackground?: string;
|
8
|
+
paginationBackground?: string;
|
9
|
+
paginationDescColor?: string;
|
10
|
+
paginationDisabledOpacity?: number | string;
|
11
|
+
};
|
File without changes
|
@@ -43,6 +43,7 @@ export declare const PasswordInput: import("../utils").WithInstall<import("vue")
|
|
43
43
|
export default PasswordInput;
|
44
44
|
export { passwordInputProps } from './PasswordInput';
|
45
45
|
export type { PasswordInputProps } from './PasswordInput';
|
46
|
+
export type { PasswordInputThemeVars } from './types';
|
46
47
|
declare module 'vue' {
|
47
48
|
interface GlobalComponents {
|
48
49
|
VanPasswordInput: typeof PasswordInput;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
export declare type PasswordInputThemeVars = {
|
2
|
+
passwordInputHeight?: string;
|
3
|
+
passwordInputMargin?: string;
|
4
|
+
passwordInputFontSize?: string;
|
5
|
+
passwordInputRadius?: string;
|
6
|
+
passwordInputBackground?: string;
|
7
|
+
passwordInputInfoColor?: string;
|
8
|
+
passwordInputInfoFontSize?: string;
|
9
|
+
passwordInputErrorInfoColor?: string;
|
10
|
+
passwordInputDotSize?: string;
|
11
|
+
passwordInputDotColor?: string;
|
12
|
+
passwordInputTextColor?: string;
|
13
|
+
passwordInputCursorColor?: string;
|
14
|
+
passwordInputCursorWidth?: string;
|
15
|
+
passwordInputCursorHeight?: string;
|
16
|
+
passwordInputCursorDuration?: string;
|
17
|
+
};
|
File without changes
|
package/es/picker/index.d.ts
CHANGED
@@ -96,7 +96,7 @@ export declare const Picker: import("../utils").WithInstall<import("vue").Define
|
|
96
96
|
export default Picker;
|
97
97
|
export { pickerProps } from './Picker';
|
98
98
|
export type { PickerProps };
|
99
|
-
export type { PickerColumn, PickerOption, PickerInstance, PickerFieldNames, PickerToolbarPosition, PickerCancelEventParams, PickerChangeEventParams, PickerConfirmEventParams, } from './types';
|
99
|
+
export type { PickerColumn, PickerOption, PickerInstance, PickerThemeVars, PickerFieldNames, PickerToolbarPosition, PickerCancelEventParams, PickerChangeEventParams, PickerConfirmEventParams, } from './types';
|
100
100
|
declare module 'vue' {
|
101
101
|
interface GlobalComponents {
|
102
102
|
VanPicker: typeof Picker;
|
package/es/picker/types.d.ts
CHANGED
@@ -42,3 +42,20 @@ export declare type PickerCancelEventParams = PickerConfirmEventParams;
|
|
42
42
|
export declare type PickerChangeEventParams = PickerConfirmEventParams & {
|
43
43
|
columnIndex: number;
|
44
44
|
};
|
45
|
+
export declare type PickerThemeVars = {
|
46
|
+
pickerBackground?: string;
|
47
|
+
pickerToolbarHeight?: string;
|
48
|
+
pickerTitleFontSize?: string;
|
49
|
+
pickerTitleLineHeight?: number | string;
|
50
|
+
pickerActionPadding?: string;
|
51
|
+
pickerActionFontSize?: string;
|
52
|
+
pickerConfirmActionColor?: string;
|
53
|
+
pickerCancelActionColor?: string;
|
54
|
+
pickerOptionFontSize?: string;
|
55
|
+
pickerOptionPadding?: string;
|
56
|
+
pickerOptionTextColor?: string;
|
57
|
+
pickerOptionDisabledOpacity?: number | string;
|
58
|
+
pickerLoadingIconColor?: string;
|
59
|
+
pickerLoadingMaskColor?: string;
|
60
|
+
pickerMaskColor?: string;
|
61
|
+
};
|
@@ -26,6 +26,7 @@ export declare const PickerGroup: import("../utils").WithInstall<import("vue").D
|
|
26
26
|
export default PickerGroup;
|
27
27
|
export { pickerGroupProps } from './PickerGroup';
|
28
28
|
export type { PickerGroupProps };
|
29
|
+
export type { PickerGroupThemeVars } from './types';
|
29
30
|
declare module 'vue' {
|
30
31
|
interface GlobalComponents {
|
31
32
|
VanPickerGroup: typeof PickerGroup;
|
File without changes
|
package/es/popover/index.d.ts
CHANGED
@@ -113,7 +113,7 @@ export declare const Popover: import("../utils").WithInstall<import("vue").Defin
|
|
113
113
|
export default Popover;
|
114
114
|
export { popoverProps } from './Popover';
|
115
115
|
export type { PopoverProps } from './Popover';
|
116
|
-
export type { PopoverTheme, PopoverAction, PopoverTrigger, PopoverPlacement, } from './types';
|
116
|
+
export type { PopoverTheme, PopoverAction, PopoverTrigger, PopoverThemeVars, PopoverPlacement, } from './types';
|
117
117
|
declare module 'vue' {
|
118
118
|
interface GlobalComponents {
|
119
119
|
VanPopover: typeof Popover;
|
package/es/popover/types.d.ts
CHANGED
@@ -9,3 +9,18 @@ export declare type PopoverAction = {
|
|
9
9
|
className?: string;
|
10
10
|
[key: PropertyKey]: any;
|
11
11
|
};
|
12
|
+
export declare type PopoverThemeVars = {
|
13
|
+
popoverArrowSize?: string;
|
14
|
+
popoverRadius?: string;
|
15
|
+
popoverActionWidth?: string;
|
16
|
+
popoverActionHeight?: string;
|
17
|
+
popoverActionFontSize?: string;
|
18
|
+
popoverActionLineHeight?: number | string;
|
19
|
+
popoverActionIconSize?: string;
|
20
|
+
popoverLightTextColor?: string;
|
21
|
+
popoverLightBackground?: string;
|
22
|
+
popoverLightActionDisabledTextColor?: string;
|
23
|
+
popoverDarkTextColor?: string;
|
24
|
+
popoverDarkBackground?: string;
|
25
|
+
popoverDarkActionDisabledTextColor?: string;
|
26
|
+
};
|
package/es/popup/index.d.ts
CHANGED
@@ -116,7 +116,7 @@ export declare const Popup: import("../utils").WithInstall<import("vue").DefineC
|
|
116
116
|
export default Popup;
|
117
117
|
export { popupProps } from './Popup';
|
118
118
|
export type { PopupProps } from './Popup';
|
119
|
-
export type { PopupPosition, PopupInstance, PopupCloseIconPosition, } from './types';
|
119
|
+
export type { PopupPosition, PopupInstance, PopupThemeVars, PopupCloseIconPosition, } from './types';
|
120
120
|
declare module 'vue' {
|
121
121
|
interface GlobalComponents {
|
122
122
|
VanPopup: typeof Popup;
|
package/es/popup/types.d.ts
CHANGED
@@ -6,3 +6,12 @@ export declare type PopupExpose = {
|
|
6
6
|
popupRef: Ref<HTMLElement>;
|
7
7
|
};
|
8
8
|
export declare type PopupInstance = ComponentPublicInstance<PopupProps, PopupExpose>;
|
9
|
+
export declare type PopupThemeVars = {
|
10
|
+
popupBackground?: string;
|
11
|
+
popupTransition?: string;
|
12
|
+
popupRoundRadius?: string;
|
13
|
+
popupCloseIconSize?: string;
|
14
|
+
popupCloseIconColor?: string;
|
15
|
+
popupCloseIconMargin?: string;
|
16
|
+
popupCloseIconZIndex?: number | string;
|
17
|
+
};
|
package/es/progress/index.d.ts
CHANGED
@@ -41,7 +41,7 @@ export declare const Progress: import("../utils").WithInstall<import("vue").Defi
|
|
41
41
|
export default Progress;
|
42
42
|
export { progressProps } from './Progress';
|
43
43
|
export type { ProgressProps };
|
44
|
-
export type { ProgressInstance } from './types';
|
44
|
+
export type { ProgressInstance, ProgressThemeVars } from './types';
|
45
45
|
declare module 'vue' {
|
46
46
|
interface GlobalComponents {
|
47
47
|
VanProgress: typeof Progress;
|
package/es/progress/types.d.ts
CHANGED
@@ -4,3 +4,14 @@ export declare type ProgressExpose = {
|
|
4
4
|
resize: () => void;
|
5
5
|
};
|
6
6
|
export declare type ProgressInstance = ComponentPublicInstance<ProgressProps, ProgressExpose>;
|
7
|
+
export declare type ProgressThemeVars = {
|
8
|
+
progressHeight?: string;
|
9
|
+
progressColor?: string;
|
10
|
+
progressInactiveColor?: string;
|
11
|
+
progressBackground?: string;
|
12
|
+
progressPivotPadding?: string;
|
13
|
+
progressPivotTextColor?: string;
|
14
|
+
progressPivotFontSize?: string;
|
15
|
+
progressPivotLineHeight?: number | string;
|
16
|
+
progressPivotBackground?: string;
|
17
|
+
};
|
@@ -52,6 +52,7 @@ export declare const PullRefresh: import("../utils").WithInstall<import("vue").D
|
|
52
52
|
export default PullRefresh;
|
53
53
|
export { pullRefreshProps } from './PullRefresh';
|
54
54
|
export type { PullRefreshProps } from './PullRefresh';
|
55
|
+
export type { PullRefreshThemeVars } from './types';
|
55
56
|
declare module 'vue' {
|
56
57
|
interface GlobalComponents {
|
57
58
|
VanPullRefresh: typeof PullRefresh;
|
File without changes
|
package/es/radio/index.d.ts
CHANGED
@@ -32,6 +32,7 @@ export declare const Radio: import("../utils").WithInstall<import("vue").DefineC
|
|
32
32
|
export default Radio;
|
33
33
|
export { radioProps } from './Radio';
|
34
34
|
export type { RadioProps, RadioShape, RadioLabelPosition } from './Radio';
|
35
|
+
export type { RadioThemeVars } from './types';
|
35
36
|
declare module 'vue' {
|
36
37
|
interface GlobalComponents {
|
37
38
|
VanRadio: typeof Radio;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
export declare type RadioThemeVars = {
|
2
|
+
radioSize?: string;
|
3
|
+
radioBorderColor?: string;
|
4
|
+
radioDuration?: string;
|
5
|
+
radioLabelMargin?: string;
|
6
|
+
radioLabelColor?: string;
|
7
|
+
radioCheckedIconColor?: string;
|
8
|
+
radioDisabledIconColor?: string;
|
9
|
+
radioDisabledLabelColor?: string;
|
10
|
+
radioDisabledBackground?: string;
|
11
|
+
};
|
File without changes
|
package/es/rate/index.d.ts
CHANGED
@@ -74,6 +74,7 @@ export declare const Rate: import("../utils").WithInstall<import("vue").DefineCo
|
|
74
74
|
export default Rate;
|
75
75
|
export { rateProps } from './Rate';
|
76
76
|
export type { RateProps } from './Rate';
|
77
|
+
export type { RateThemeVars } from './types';
|
77
78
|
declare module 'vue' {
|
78
79
|
interface GlobalComponents {
|
79
80
|
VanRate: typeof Rate;
|
File without changes
|
package/es/search/index.d.ts
CHANGED
@@ -144,7 +144,7 @@ export declare const Search: import("../utils").WithInstall<import("vue").Define
|
|
144
144
|
export default Search;
|
145
145
|
export { searchProps } from './Search';
|
146
146
|
export type { SearchProps };
|
147
|
-
export type { SearchShape, SearchInstance } from './types';
|
147
|
+
export type { SearchShape, SearchInstance, SearchThemeVars } from './types';
|
148
148
|
declare module 'vue' {
|
149
149
|
interface GlobalComponents {
|
150
150
|
VanSearch: typeof Search;
|
package/es/search/types.d.ts
CHANGED
@@ -6,3 +6,16 @@ export declare type SearchExpose = {
|
|
6
6
|
blur: () => void;
|
7
7
|
};
|
8
8
|
export declare type SearchInstance = ComponentPublicInstance<SearchProps, SearchExpose>;
|
9
|
+
export declare type SearchThemeVars = {
|
10
|
+
searchPadding?: string;
|
11
|
+
searchBackground?: string;
|
12
|
+
searchContentBackground?: string;
|
13
|
+
searchInputHeight?: string;
|
14
|
+
searchLabelPadding?: string;
|
15
|
+
searchLabelColor?: string;
|
16
|
+
searchLabelFontSize?: string;
|
17
|
+
searchLeftIconColor?: string;
|
18
|
+
searchActionPadding?: string;
|
19
|
+
searchActionTextColor?: string;
|
20
|
+
searchActionFontSize?: string;
|
21
|
+
};
|
@@ -107,6 +107,7 @@ export declare const ShareSheet: import("../utils").WithInstall<import("vue").De
|
|
107
107
|
export default ShareSheet;
|
108
108
|
export { shareSheetProps } from './ShareSheet';
|
109
109
|
export type { ShareSheetProps, ShareSheetOption, ShareSheetOptions, } from './ShareSheet';
|
110
|
+
export type { ShareSheetThemeVars } from './types';
|
110
111
|
declare module 'vue' {
|
111
112
|
interface GlobalComponents {
|
112
113
|
VanShareSheet: typeof ShareSheet;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
export declare type ShareSheetThemeVars = {
|
2
|
+
shareSheetHeaderPadding?: string;
|
3
|
+
shareSheetTitleColor?: string;
|
4
|
+
shareSheetTitleFontSize?: string;
|
5
|
+
shareSheetTitleLineHeight?: number | string;
|
6
|
+
shareSheetDescriptionColor?: string;
|
7
|
+
shareSheetDescriptionFontSize?: string;
|
8
|
+
shareSheetDescriptionLineHeight?: number | string;
|
9
|
+
shareSheetIconSize?: string;
|
10
|
+
shareSheetOptionNameColor?: string;
|
11
|
+
shareSheetOptionNameFontSize?: string;
|
12
|
+
shareSheetOptionDescriptionColor?: string;
|
13
|
+
shareSheetOptionDescriptionFontSize?: string;
|
14
|
+
shareSheetCancelButtonFontSize?: string;
|
15
|
+
shareSheetCancelButtonHeight?: string;
|
16
|
+
shareSheetCancelButtonBackground?: string;
|
17
|
+
};
|
File without changes
|
package/es/sidebar/index.d.ts
CHANGED
@@ -17,6 +17,7 @@ export declare const Sidebar: import("../utils").WithInstall<import("vue").Defin
|
|
17
17
|
export default Sidebar;
|
18
18
|
export { sidebarProps } from './Sidebar';
|
19
19
|
export type { SidebarProps } from './Sidebar';
|
20
|
+
export type { SidebarThemeVars } from './types';
|
20
21
|
declare module 'vue' {
|
21
22
|
interface GlobalComponents {
|
22
23
|
VanSidebar: typeof Sidebar;
|
File without changes
|
@@ -28,6 +28,7 @@ export declare const SidebarItem: import("../utils").WithInstall<import("vue").D
|
|
28
28
|
export default SidebarItem;
|
29
29
|
export { sidebarItemProps } from './SidebarItem';
|
30
30
|
export type { SidebarItemProps } from './SidebarItem';
|
31
|
+
export type { SidebarItemThemeVars } from './types';
|
31
32
|
declare module 'vue' {
|
32
33
|
interface GlobalComponents {
|
33
34
|
VanSidebarItem: typeof SidebarItem;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
export declare type SidebarItemThemeVars = {
|
2
|
+
sidebarFontSize?: string;
|
3
|
+
sidebarLineHeight?: number | string;
|
4
|
+
sidebarTextColor?: string;
|
5
|
+
sidebarDisabledTextColor?: string;
|
6
|
+
sidebarPadding?: string;
|
7
|
+
sidebarActiveColor?: string;
|
8
|
+
sidebarBackground?: string;
|
9
|
+
sidebarSelectedFontWeight?: string;
|
10
|
+
sidebarSelectedTextColor?: string;
|
11
|
+
sidebarSelectedBorderWidth?: string;
|
12
|
+
sidebarSelectedBorderHeight?: string;
|
13
|
+
sidebarSelectedBorderColor?: string;
|
14
|
+
sidebarSelectedBackground?: string;
|
15
|
+
};
|
File without changes
|
package/es/skeleton/index.d.ts
CHANGED
@@ -65,6 +65,7 @@ export declare const Skeleton: import("../utils").WithInstall<import("vue").Defi
|
|
65
65
|
export default Skeleton;
|
66
66
|
export { skeletonProps } from './Skeleton';
|
67
67
|
export type { SkeletonProps, SkeletonAvatarShape } from './Skeleton';
|
68
|
+
export type { SkeletonThemeVars } from './types';
|
68
69
|
declare module 'vue' {
|
69
70
|
interface GlobalComponents {
|
70
71
|
VanSkeleton: typeof Skeleton;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
export declare type SkeletonThemeVars = {
|
2
|
+
skeletonRowHeight?: string;
|
3
|
+
skeletonRowBackground?: string;
|
4
|
+
skeletonRowMarginTop?: string;
|
5
|
+
skeletonTitleWidth?: string;
|
6
|
+
skeletonAvatarSize?: string;
|
7
|
+
skeletonAvatarBackground?: string;
|
8
|
+
skeletonDuration?: string;
|
9
|
+
};
|
File without changes
|
package/es/slider/index.d.ts
CHANGED
@@ -69,6 +69,7 @@ export declare const Slider: import("../utils").WithInstall<import("vue").Define
|
|
69
69
|
export default Slider;
|
70
70
|
export { sliderProps } from './Slider';
|
71
71
|
export type { SliderProps } from './Slider';
|
72
|
+
export type { SliderThemeVars } from './types';
|
72
73
|
declare module 'vue' {
|
73
74
|
interface GlobalComponents {
|
74
75
|
VanSlider: typeof Slider;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
export declare type SliderThemeVars = {
|
2
|
+
sliderActiveBackground?: string;
|
3
|
+
sliderInactiveBackground?: string;
|
4
|
+
sliderDisabledOpacity?: number | string;
|
5
|
+
sliderBarHeight?: string;
|
6
|
+
sliderButtonWidth?: string;
|
7
|
+
sliderButtonHeight?: string;
|
8
|
+
sliderButtonRadius?: string;
|
9
|
+
sliderButtonBackground?: string;
|
10
|
+
sliderButtonShadow?: string;
|
11
|
+
};
|
File without changes
|
package/es/step/index.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
export declare const Step: import("../utils").WithInstall<import("vue").DefineComponent<{}, (() => JSX.Element) | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
2
2
|
export default Step;
|
3
|
+
export type { StepThemeVars } from './types';
|
3
4
|
declare module 'vue' {
|
4
5
|
interface GlobalComponents {
|
5
6
|
VanStep: typeof Step;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export declare type StepThemeVars = {
|
2
|
+
stepTextColor?: string;
|
3
|
+
stepActiveColor?: string;
|
4
|
+
stepProcessTextColor?: string;
|
5
|
+
stepFontSize?: string;
|
6
|
+
stepLineColor?: string;
|
7
|
+
stepFinishLineColor?: string;
|
8
|
+
stepFinishTextColor?: string;
|
9
|
+
stepIconSize?: string;
|
10
|
+
stepCircleSize?: string;
|
11
|
+
stepCircleColor?: string;
|
12
|
+
stepHorizontalTitleFontSize?: string;
|
13
|
+
};
|
File without changes
|
package/es/stepper/index.d.ts
CHANGED
@@ -126,6 +126,7 @@ export declare const Stepper: import("../utils").WithInstall<import("vue").Defin
|
|
126
126
|
export default Stepper;
|
127
127
|
export { stepperProps } from './Stepper';
|
128
128
|
export type { StepperTheme, StepperProps } from './Stepper';
|
129
|
+
export type { StepperThemeVars } from './types';
|
129
130
|
declare module 'vue' {
|
130
131
|
interface GlobalComponents {
|
131
132
|
VanStepper: typeof Stepper;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
export declare type StepperThemeVars = {
|
2
|
+
stepperBackground?: string;
|
3
|
+
stepperButtonIconColor?: string;
|
4
|
+
stepperButtonDisabledColor?: string;
|
5
|
+
stepperButtonDisabledIconColor?: string;
|
6
|
+
stepperButtonRoundThemeColor?: string;
|
7
|
+
stepperInputWidth?: string;
|
8
|
+
stepperInputHeight?: string;
|
9
|
+
stepperInputFontSize?: string;
|
10
|
+
stepperInputLineHeight?: number | string;
|
11
|
+
stepperInputTextColor?: string;
|
12
|
+
stepperInputDisabledTextColor?: string;
|
13
|
+
stepperInputDisabledBackground?: string;
|
14
|
+
stepperRadius?: string;
|
15
|
+
};
|
File without changes
|
package/es/steps/index.d.ts
CHANGED
@@ -44,6 +44,7 @@ export declare const Steps: import("../utils").WithInstall<import("vue").DefineC
|
|
44
44
|
export default Steps;
|
45
45
|
export { stepsProps } from './Steps';
|
46
46
|
export type { StepsProps, StepsDirection } from './Steps';
|
47
|
+
export type { StepsThemeVars } from './types';
|
47
48
|
declare module 'vue' {
|
48
49
|
interface GlobalComponents {
|
49
50
|
VanSteps: typeof Steps;
|
File without changes
|
package/es/sticky/index.d.ts
CHANGED
@@ -39,6 +39,7 @@ export declare const Sticky: import("../utils").WithInstall<import("vue").Define
|
|
39
39
|
export default Sticky;
|
40
40
|
export { stickyProps } from './Sticky';
|
41
41
|
export type { StickyProps, StickyPosition } from './Sticky';
|
42
|
+
export type { StickyThemeVars } from './types';
|
42
43
|
declare module 'vue' {
|
43
44
|
interface GlobalComponents {
|
44
45
|
VanSticky: typeof Sticky;
|
File without changes
|
package/es/submit-bar/index.d.ts
CHANGED
@@ -68,6 +68,7 @@ export declare const SubmitBar: import("../utils").WithInstall<import("vue").Def
|
|
68
68
|
export default SubmitBar;
|
69
69
|
export { submitBarProps } from './SubmitBar';
|
70
70
|
export type { SubmitBarProps, SubmitBarTextAlign } from './SubmitBar';
|
71
|
+
export type { SubmitBarThemeVars } from './types';
|
71
72
|
declare module 'vue' {
|
72
73
|
interface GlobalComponents {
|
73
74
|
VanSubmitBar: typeof SubmitBar;
|
@@ -0,0 +1,21 @@
|
|
1
|
+
export declare type SubmitBarThemeVars = {
|
2
|
+
submitBarHeight?: string;
|
3
|
+
submitBarZIndex?: number | string;
|
4
|
+
submitBarBackground?: string;
|
5
|
+
submitBarButtonWidth?: string;
|
6
|
+
submitBarPriceColor?: string;
|
7
|
+
submitBarPriceFontSize?: string;
|
8
|
+
submitBarPriceIntegerFontSize?: string;
|
9
|
+
submitBarPriceFont?: string;
|
10
|
+
submitBarCurrencyFontSize?: string;
|
11
|
+
submitBarTextColor?: string;
|
12
|
+
submitBarTextFontSize?: string;
|
13
|
+
submitBarTipPadding?: string;
|
14
|
+
submitBarTipFontSize?: string;
|
15
|
+
submitBarTipLineHeight?: number | string;
|
16
|
+
submitBarTipColor?: string;
|
17
|
+
submitBarTipBackground?: string;
|
18
|
+
submitBarTipIconSize?: string;
|
19
|
+
submitBarButtonHeight?: string;
|
20
|
+
submitBarPadding?: string;
|
21
|
+
};
|
File without changes
|
package/es/swipe/index.d.ts
CHANGED
@@ -83,7 +83,7 @@ export declare const Swipe: import("../utils").WithInstall<import("vue").DefineC
|
|
83
83
|
export default Swipe;
|
84
84
|
export { swipeProps } from './Swipe';
|
85
85
|
export type { SwipeProps };
|
86
|
-
export type { SwipeInstance, SwipeToOptions } from './types';
|
86
|
+
export type { SwipeInstance, SwipeToOptions, SwipeThemeVars } from './types';
|
87
87
|
declare module 'vue' {
|
88
88
|
interface GlobalComponents {
|
89
89
|
VanSwipe: typeof Swipe;
|
package/es/swipe/types.d.ts
CHANGED
@@ -29,3 +29,11 @@ export declare type SwipeProvide = {
|
|
29
29
|
activeIndicator: ComputedRef<number>;
|
30
30
|
};
|
31
31
|
export declare type SwipeInstance = ComponentPublicInstance<SwipeProps, SwipeExpose>;
|
32
|
+
export declare type SwipeThemeVars = {
|
33
|
+
swipeIndicatorSize?: string;
|
34
|
+
swipeIndicatorMargin?: string;
|
35
|
+
swipeIndicatorActiveOpacity?: number | string;
|
36
|
+
swipeIndicatorInactiveOpacity?: number | string;
|
37
|
+
swipeIndicatorActiveBackground?: string;
|
38
|
+
swipeIndicatorInactiveBackground?: string;
|
39
|
+
};
|
package/es/switch/index.d.ts
CHANGED
@@ -40,6 +40,7 @@ export declare const Switch: import("../utils").WithInstall<import("vue").Define
|
|
40
40
|
export default Switch;
|
41
41
|
export { switchProps } from './Switch';
|
42
42
|
export type { SwitchProps } from './Switch';
|
43
|
+
export type { SwitchThemeVars } from './types';
|
43
44
|
declare module 'vue' {
|
44
45
|
interface GlobalComponents {
|
45
46
|
VanSwitch: typeof Switch;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export declare type SwitchThemeVars = {
|
2
|
+
switchSize?: string;
|
3
|
+
switchWidth?: string;
|
4
|
+
switchHeight?: string;
|
5
|
+
switchNodeSize?: string;
|
6
|
+
switchNodeBackground?: string;
|
7
|
+
switchNodeShadow?: string;
|
8
|
+
switchBackground?: string;
|
9
|
+
switchOnBackground?: string;
|
10
|
+
switchDuration?: string;
|
11
|
+
switchDisabledOpacity?: number | string;
|
12
|
+
};
|
File without changes
|
package/es/tab/Tab.mjs
CHANGED
@@ -2,7 +2,7 @@ import { withDirectives as _withDirectives, vShow as _vShow, createVNode as _cre
|
|
2
2
|
import { ref, watch, provide, computed, nextTick, defineComponent } from "vue";
|
3
3
|
import { extend, truthProp, unknownProp, numericProp, createNamespace } from "../utils/index.mjs";
|
4
4
|
import { TABS_KEY } from "../tabs/Tabs.mjs";
|
5
|
-
import { useParent } from "@vant/use";
|
5
|
+
import { doubleRaf, useParent } from "@vant/use";
|
6
6
|
import { useId } from "../composables/use-id.mjs";
|
7
7
|
import { useExpose } from "../composables/use-expose.mjs";
|
8
8
|
import { routeProps } from "../composables/use-route.mjs";
|
@@ -56,6 +56,16 @@ var stdin_default = defineComponent({
|
|
56
56
|
}
|
57
57
|
return isActive;
|
58
58
|
});
|
59
|
+
const hasInactiveClass = ref(!active.value);
|
60
|
+
watch(active, (val) => {
|
61
|
+
if (val) {
|
62
|
+
hasInactiveClass.value = false;
|
63
|
+
} else {
|
64
|
+
doubleRaf(() => {
|
65
|
+
hasInactiveClass.value = true;
|
66
|
+
});
|
67
|
+
}
|
68
|
+
});
|
59
69
|
watch(() => props.title, () => {
|
60
70
|
parent.setLine();
|
61
71
|
parent.scrollIntoView();
|
@@ -79,7 +89,7 @@ var stdin_default = defineComponent({
|
|
79
89
|
"id": id,
|
80
90
|
"role": "tabpanel",
|
81
91
|
"class": bem("panel-wrapper", {
|
82
|
-
inactive:
|
92
|
+
inactive: hasInactiveClass.value
|
83
93
|
}),
|
84
94
|
"tabindex": active.value ? 0 : -1,
|
85
95
|
"aria-hidden": !active.value,
|
package/es/tabbar/index.d.ts
CHANGED
@@ -58,6 +58,7 @@ export declare const Tabbar: import("../utils").WithInstall<import("vue").Define
|
|
58
58
|
export default Tabbar;
|
59
59
|
export { tabbarProps } from './Tabbar';
|
60
60
|
export type { TabbarProps } from './Tabbar';
|
61
|
+
export type { TabbarThemeVars } from './types';
|
61
62
|
declare module 'vue' {
|
62
63
|
interface GlobalComponents {
|
63
64
|
VanTabbar: typeof Tabbar;
|
File without changes
|
@@ -29,6 +29,7 @@ export declare const TabbarItem: import("../utils").WithInstall<import("vue").De
|
|
29
29
|
export default TabbarItem;
|
30
30
|
export { tabbarItemProps } from './TabbarItem';
|
31
31
|
export type { TabbarItemProps } from './TabbarItem';
|
32
|
+
export type { TabbarItemThemeVars } from './types';
|
32
33
|
declare module 'vue' {
|
33
34
|
interface GlobalComponents {
|
34
35
|
VanTabbarItem: typeof TabbarItem;
|