vant 4.0.0-rc.2 → 4.0.0-rc.3
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.generated.md +29 -29
- 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/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/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/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/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/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/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/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/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 +2 -1
- package/lib/vant.es.js +2 -1
- package/lib/vant.js +2 -1
- package/lib/vant.min.js +1 -1
- package/lib/web-types.json +1573 -1533
- package/package.json +1 -1
package/lib/tabs/index.d.ts
CHANGED
@@ -107,7 +107,7 @@ export declare const Tabs: import("../utils").WithInstall<import("vue").DefineCo
|
|
107
107
|
export default Tabs;
|
108
108
|
export { tabsProps } from './Tabs';
|
109
109
|
export type { TabsProps };
|
110
|
-
export type { TabsType, TabsInstance } from './types';
|
110
|
+
export type { TabsType, TabsInstance, TabsThemeVars } from './types';
|
111
111
|
declare module 'vue' {
|
112
112
|
interface GlobalComponents {
|
113
113
|
VanTabs: typeof Tabs;
|
package/lib/tabs/types.d.ts
CHANGED
@@ -21,3 +21,17 @@ export declare type TabsExpose = {
|
|
21
21
|
scrollTo: (name: Numeric) => void;
|
22
22
|
};
|
23
23
|
export declare type TabsInstance = ComponentPublicInstance<TabsProps, TabsExpose>;
|
24
|
+
export declare type TabsThemeVars = {
|
25
|
+
tabTextColor?: string;
|
26
|
+
tabActiveTextColor?: string;
|
27
|
+
tabDisabledTextColor?: string;
|
28
|
+
tabFontSize?: string;
|
29
|
+
tabLineHeight?: number | string;
|
30
|
+
tabsDefaultColor?: string;
|
31
|
+
tabsLineHeight?: number | string;
|
32
|
+
tabsCardHeight?: string;
|
33
|
+
tabsNavBackground?: string;
|
34
|
+
tabsBottomBarWidth?: string;
|
35
|
+
tabsBottomBarHeight?: string;
|
36
|
+
tabsBottomBarColor?: string;
|
37
|
+
};
|
package/lib/tag/Tag.d.ts
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
import { type PropType, type ExtractPropTypes } from 'vue';
|
2
|
-
|
3
|
-
export declare type TagType = 'default' | 'primary' | 'success' | 'warning' | 'danger';
|
2
|
+
import type { TagType, TagSize } from './types';
|
4
3
|
export declare const tagProps: {
|
5
4
|
size: PropType<TagSize>;
|
6
5
|
mark: BooleanConstructor;
|
package/lib/tag/index.d.ts
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
export declare const Tag: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
|
-
size: import("vue").PropType<import("./
|
2
|
+
size: import("vue").PropType<import("./types").TagSize>;
|
3
3
|
mark: BooleanConstructor;
|
4
4
|
show: {
|
5
5
|
type: BooleanConstructor;
|
6
6
|
default: true;
|
7
7
|
};
|
8
8
|
type: {
|
9
|
-
type: import("vue").PropType<import("./
|
10
|
-
default: import("./
|
9
|
+
type: import("vue").PropType<import("./types").TagType>;
|
10
|
+
default: import("./types").TagType;
|
11
11
|
};
|
12
12
|
color: StringConstructor;
|
13
13
|
plain: BooleanConstructor;
|
@@ -15,15 +15,15 @@ export declare const Tag: import("../utils").WithInstall<import("vue").DefineCom
|
|
15
15
|
textColor: StringConstructor;
|
16
16
|
closeable: BooleanConstructor;
|
17
17
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
18
|
-
size: import("vue").PropType<import("./
|
18
|
+
size: import("vue").PropType<import("./types").TagSize>;
|
19
19
|
mark: BooleanConstructor;
|
20
20
|
show: {
|
21
21
|
type: BooleanConstructor;
|
22
22
|
default: true;
|
23
23
|
};
|
24
24
|
type: {
|
25
|
-
type: import("vue").PropType<import("./
|
26
|
-
default: import("./
|
25
|
+
type: import("vue").PropType<import("./types").TagType>;
|
26
|
+
default: import("./types").TagType;
|
27
27
|
};
|
28
28
|
color: StringConstructor;
|
29
29
|
plain: BooleanConstructor;
|
@@ -33,7 +33,7 @@ export declare const Tag: import("../utils").WithInstall<import("vue").DefineCom
|
|
33
33
|
}>> & {
|
34
34
|
onClose?: ((...args: any[]) => any) | undefined;
|
35
35
|
}, {
|
36
|
-
type: import("./
|
36
|
+
type: import("./types").TagType;
|
37
37
|
mark: boolean;
|
38
38
|
round: boolean;
|
39
39
|
show: boolean;
|
@@ -42,7 +42,8 @@ export declare const Tag: import("../utils").WithInstall<import("vue").DefineCom
|
|
42
42
|
}>>;
|
43
43
|
export default Tag;
|
44
44
|
export { tagProps } from './Tag';
|
45
|
-
export type {
|
45
|
+
export type { TagProps } from './Tag';
|
46
|
+
export type { TagSize, TagType, TagThemeVars } from './types';
|
46
47
|
declare module 'vue' {
|
47
48
|
interface GlobalComponents {
|
48
49
|
VanTag: typeof Tag;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
export declare type TagSize = 'large' | 'medium';
|
2
|
+
export declare type TagType = 'default' | 'primary' | 'success' | 'warning' | 'danger';
|
3
|
+
export declare type TagThemeVars = {
|
4
|
+
tagPadding?: string;
|
5
|
+
tagTextColor?: string;
|
6
|
+
tagFontSize?: string;
|
7
|
+
tagRadius?: string;
|
8
|
+
tagLineHeight?: number | string;
|
9
|
+
tagMediumPadding?: string;
|
10
|
+
tagLargePadding?: string;
|
11
|
+
tagLargeRadius?: string;
|
12
|
+
tagLargeFontSize?: string;
|
13
|
+
tagRoundRadius?: string;
|
14
|
+
tagDangerColor?: string;
|
15
|
+
tagPrimaryColor?: string;
|
16
|
+
tagSuccessColor?: string;
|
17
|
+
tagWarningColor?: string;
|
18
|
+
tagDefaultColor?: string;
|
19
|
+
tagPlainBackground?: string;
|
20
|
+
};
|
package/lib/tag/types.js
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
var __defProp = Object.defineProperty;
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
7
|
+
for (let key of __getOwnPropNames(from))
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
10
|
+
}
|
11
|
+
return to;
|
12
|
+
};
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
14
|
+
var stdin_exports = {};
|
15
|
+
module.exports = __toCommonJS(stdin_exports);
|
package/lib/toast/index.d.ts
CHANGED
@@ -77,4 +77,9 @@ export default Toast;
|
|
77
77
|
export { toastProps } from './Toast';
|
78
78
|
export { showToast, closeToast, showFailToast, showLoadingToast, showSuccessToast, allowMultipleToast, setToastDefaultOptions, resetToastDefaultOptions, } from './function-call';
|
79
79
|
export type { ToastProps } from './Toast';
|
80
|
-
export type { ToastType, ToastOptions, ToastPosition } from './types';
|
80
|
+
export type { ToastType, ToastOptions, ToastPosition, ToastThemeVars, } from './types';
|
81
|
+
declare module 'vue' {
|
82
|
+
interface GlobalComponents {
|
83
|
+
VanToast: typeof Toast;
|
84
|
+
}
|
85
|
+
}
|
package/lib/toast/types.d.ts
CHANGED
@@ -34,3 +34,20 @@ export declare type ToastWrapperInstance = ComponentPublicInstance<{
|
|
34
34
|
*/
|
35
35
|
open: (props: Record<string, any>) => void;
|
36
36
|
}>;
|
37
|
+
export declare type ToastThemeVars = {
|
38
|
+
toastMaxWidth?: string;
|
39
|
+
toastFontSize?: string;
|
40
|
+
toastTextColor?: string;
|
41
|
+
toastLoadingIconColor?: string;
|
42
|
+
toastLineHeight?: number | string;
|
43
|
+
toastRadius?: string;
|
44
|
+
toastBackground?: string;
|
45
|
+
toastIconSize?: string;
|
46
|
+
toastTextMinWidth?: string;
|
47
|
+
toastTextPadding?: string;
|
48
|
+
toastDefaultPadding?: string;
|
49
|
+
toastDefaultWidth?: string;
|
50
|
+
toastDefaultMinHeight?: string;
|
51
|
+
toastPositionTopDistance?: string;
|
52
|
+
toastPositionBottomDistance?: string;
|
53
|
+
};
|
@@ -64,6 +64,7 @@ export declare const TreeSelect: import("../utils").WithInstall<import("vue").De
|
|
64
64
|
export default TreeSelect;
|
65
65
|
export { treeSelectProps } from './TreeSelect';
|
66
66
|
export type { TreeSelectItem, TreeSelectChild, TreeSelectProps, } from './TreeSelect';
|
67
|
+
export type { TreeSelectThemeVars } from './types';
|
67
68
|
declare module 'vue' {
|
68
69
|
interface GlobalComponents {
|
69
70
|
VanTreeSelect: typeof TreeSelect;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
export declare type TreeSelectThemeVars = {
|
2
|
+
treeSelectFontSize?: string;
|
3
|
+
treeSelectNavBackground?: string;
|
4
|
+
treeSelectContentBackground?: string;
|
5
|
+
treeSelectNavItemPadding?: string;
|
6
|
+
treeSelectItemHeight?: string;
|
7
|
+
treeSelectItemActiveColor?: string;
|
8
|
+
treeSelectItemDisabledColor?: string;
|
9
|
+
treeSelectItemSelectedSize?: string;
|
10
|
+
};
|
@@ -0,0 +1,15 @@
|
|
1
|
+
var __defProp = Object.defineProperty;
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
7
|
+
for (let key of __getOwnPropNames(from))
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
10
|
+
}
|
11
|
+
return to;
|
12
|
+
};
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
14
|
+
var stdin_exports = {};
|
15
|
+
module.exports = __toCommonJS(stdin_exports);
|
package/lib/uploader/index.d.ts
CHANGED
@@ -147,7 +147,7 @@ export declare const Uploader: import("../utils").WithInstall<import("vue").Defi
|
|
147
147
|
export default Uploader;
|
148
148
|
export { uploaderProps } from './Uploader';
|
149
149
|
export type { UploaderProps };
|
150
|
-
export type { UploaderInstance, UploaderResultType, UploaderFileListItem, } from './types';
|
150
|
+
export type { UploaderInstance, UploaderThemeVars, UploaderResultType, UploaderFileListItem, } from './types';
|
151
151
|
declare module 'vue' {
|
152
152
|
interface GlobalComponents {
|
153
153
|
VanUploader: typeof Uploader;
|
package/lib/uploader/types.d.ts
CHANGED
@@ -29,3 +29,30 @@ export declare type UploaderExpose = {
|
|
29
29
|
closeImagePreview: () => void;
|
30
30
|
};
|
31
31
|
export declare type UploaderInstance = ComponentPublicInstance<UploaderProps, UploaderExpose>;
|
32
|
+
export declare type UploaderThemeVars = {
|
33
|
+
uploaderSize?: string;
|
34
|
+
uploaderIconSize?: string;
|
35
|
+
uploaderIconColor?: string;
|
36
|
+
uploaderTextColor?: string;
|
37
|
+
uploaderTextFontSize?: string;
|
38
|
+
uploaderUploadBackground?: string;
|
39
|
+
uploaderUploadActiveColor?: string;
|
40
|
+
uploaderDeleteColor?: string;
|
41
|
+
uploaderDeleteIconSize?: string;
|
42
|
+
uploaderDeleteBackground?: string;
|
43
|
+
uploaderFileBackground?: string;
|
44
|
+
uploaderFileIconSize?: string;
|
45
|
+
uploaderFileIconColor?: string;
|
46
|
+
uploaderFileNamePadding?: string;
|
47
|
+
uploaderFileNameMarginTop?: string;
|
48
|
+
uploaderFileNameFontSize?: string;
|
49
|
+
uploaderFileNameTextColor?: string;
|
50
|
+
uploaderMaskTextColor?: string;
|
51
|
+
uploaderMaskBackground?: string;
|
52
|
+
uploaderMaskIconSize?: string;
|
53
|
+
uploaderMaskMessageFontSize?: string;
|
54
|
+
uploaderMaskMessageLineHeight?: number | string;
|
55
|
+
uploaderLoadingIconSize?: string;
|
56
|
+
uploaderLoadingIconColor?: string;
|
57
|
+
uploaderDisabledOpacity?: number | string;
|
58
|
+
};
|
package/lib/vant.cjs.js
CHANGED
@@ -10262,6 +10262,7 @@ var stdin_default$u = vue.defineComponent({
|
|
10262
10262
|
background: props.background
|
10263
10263
|
},
|
10264
10264
|
"overlay": false,
|
10265
|
+
"zIndex": props.zIndex,
|
10265
10266
|
"position": props.position,
|
10266
10267
|
"duration": 0.2,
|
10267
10268
|
"lockScroll": props.lockScroll,
|
@@ -14540,7 +14541,7 @@ const Lazyload = {
|
|
14540
14541
|
});
|
14541
14542
|
}
|
14542
14543
|
};
|
14543
|
-
const version = "4.0.0-rc.
|
14544
|
+
const version = "4.0.0-rc.3";
|
14544
14545
|
function install(app) {
|
14545
14546
|
const components = [
|
14546
14547
|
ActionBar,
|
package/lib/vant.es.js
CHANGED
@@ -10260,6 +10260,7 @@ var stdin_default$u = defineComponent({
|
|
10260
10260
|
background: props.background
|
10261
10261
|
},
|
10262
10262
|
"overlay": false,
|
10263
|
+
"zIndex": props.zIndex,
|
10263
10264
|
"position": props.position,
|
10264
10265
|
"duration": 0.2,
|
10265
10266
|
"lockScroll": props.lockScroll,
|
@@ -14538,7 +14539,7 @@ const Lazyload = {
|
|
14538
14539
|
});
|
14539
14540
|
}
|
14540
14541
|
};
|
14541
|
-
const version = "4.0.0-rc.
|
14542
|
+
const version = "4.0.0-rc.3";
|
14542
14543
|
function install(app) {
|
14543
14544
|
const components = [
|
14544
14545
|
ActionBar,
|
package/lib/vant.js
CHANGED
@@ -10594,6 +10594,7 @@
|
|
10594
10594
|
background: props.background
|
10595
10595
|
},
|
10596
10596
|
"overlay": false,
|
10597
|
+
"zIndex": props.zIndex,
|
10597
10598
|
"position": props.position,
|
10598
10599
|
"duration": 0.2,
|
10599
10600
|
"lockScroll": props.lockScroll,
|
@@ -15755,7 +15756,7 @@
|
|
15755
15756
|
});
|
15756
15757
|
}
|
15757
15758
|
};
|
15758
|
-
const version = "4.0.0-rc.
|
15759
|
+
const version = "4.0.0-rc.3";
|
15759
15760
|
function install(app) {
|
15760
15761
|
const components = [
|
15761
15762
|
ActionBar,
|