vant 4.0.0-rc.1 → 4.0.0-rc.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.generated.md +18 -265
- package/es/action-bar/index.css +1 -1
- package/es/action-bar-button/index.css +1 -1
- package/es/action-bar-icon/index.css +1 -1
- package/es/action-sheet/index.css +1 -1
- package/es/address-edit/index.css +1 -1
- package/es/address-list/index.css +1 -1
- package/es/badge/index.css +1 -1
- package/es/button/index.css +1 -1
- package/es/calendar/index.css +1 -1
- package/es/card/index.css +1 -1
- package/es/cascader/index.css +1 -1
- package/es/cell/index.css +1 -1
- package/es/cell-group/index.css +1 -1
- package/es/checkbox/index.css +1 -1
- package/es/circle/index.css +1 -1
- package/es/collapse-item/index.css +1 -1
- package/es/config-provider/ConfigProvider.mjs +2 -2
- package/es/contact-card/index.css +1 -1
- package/es/contact-edit/index.css +1 -1
- package/es/contact-list/index.css +1 -1
- package/es/count-down/index.css +1 -1
- package/es/coupon/index.css +1 -1
- package/es/coupon-cell/index.css +1 -1
- package/es/coupon-list/index.css +1 -1
- package/es/dialog/index.css +1 -1
- package/es/divider/index.css +1 -1
- package/es/dropdown-item/index.css +1 -1
- package/es/dropdown-menu/index.css +1 -1
- package/es/empty/index.css +1 -1
- package/es/field/index.css +1 -1
- package/es/grid-item/index.css +1 -1
- package/es/image/index.css +1 -1
- package/es/image-preview/index.css +1 -1
- package/es/index-anchor/index.css +1 -1
- package/es/index-bar/index.css +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/list/index.css +1 -1
- package/es/loading/index.css +1 -1
- package/es/nav-bar/index.css +1 -1
- package/es/notice-bar/index.css +1 -1
- package/es/notify/index.css +1 -1
- package/es/number-keyboard/index.css +1 -1
- package/es/overlay/index.css +1 -1
- package/es/pagination/index.css +1 -1
- package/es/password-input/index.css +1 -1
- package/es/picker/index.css +1 -1
- package/es/picker-group/index.css +1 -1
- package/es/popover/index.css +1 -1
- package/es/popup/index.css +1 -1
- package/es/progress/index.css +1 -1
- package/es/pull-refresh/index.css +1 -1
- package/es/radio/index.css +1 -1
- package/es/rate/index.css +1 -1
- package/es/search/index.css +1 -1
- package/es/share-sheet/index.css +1 -1
- package/es/sidebar/index.css +1 -1
- package/es/sidebar-item/index.css +1 -1
- package/es/skeleton/index.css +1 -1
- package/es/slider/index.css +1 -1
- package/es/step/index.css +1 -1
- package/es/stepper/index.css +1 -1
- package/es/steps/index.css +1 -1
- package/es/sticky/index.css +1 -1
- package/es/style/base.css +1 -1
- package/es/style/css-variables.css +1 -1
- package/es/style/normalize.css +1 -1
- package/es/submit-bar/index.css +1 -1
- package/es/swipe/index.css +1 -1
- package/es/switch/index.css +1 -1
- package/es/tabbar/index.css +1 -1
- package/es/tabbar-item/index.css +1 -1
- package/es/tabs/index.css +1 -1
- package/es/tag/index.css +1 -1
- package/es/toast/index.css +1 -1
- package/es/tree-select/index.css +1 -1
- package/es/uploader/index.css +1 -1
- package/lib/action-bar/index.css +1 -1
- package/lib/action-bar-button/index.css +1 -1
- package/lib/action-bar-icon/index.css +1 -1
- package/lib/action-sheet/index.css +1 -1
- package/lib/address-edit/index.css +1 -1
- package/lib/address-list/index.css +1 -1
- package/lib/badge/index.css +1 -1
- package/lib/button/index.css +1 -1
- package/lib/calendar/index.css +1 -1
- package/lib/card/index.css +1 -1
- package/lib/cascader/index.css +1 -1
- package/lib/cell/index.css +1 -1
- package/lib/cell-group/index.css +1 -1
- package/lib/checkbox/index.css +1 -1
- package/lib/circle/index.css +1 -1
- package/lib/collapse-item/index.css +1 -1
- package/lib/config-provider/ConfigProvider.js +2 -2
- package/lib/contact-card/index.css +1 -1
- package/lib/contact-edit/index.css +1 -1
- package/lib/contact-list/index.css +1 -1
- package/lib/count-down/index.css +1 -1
- package/lib/coupon/index.css +1 -1
- package/lib/coupon-cell/index.css +1 -1
- package/lib/coupon-list/index.css +1 -1
- package/lib/dialog/index.css +1 -1
- package/lib/divider/index.css +1 -1
- package/lib/dropdown-item/index.css +1 -1
- package/lib/dropdown-menu/index.css +1 -1
- package/lib/empty/index.css +1 -1
- package/lib/field/index.css +1 -1
- package/lib/grid-item/index.css +1 -1
- package/lib/image/index.css +1 -1
- package/lib/image-preview/index.css +1 -1
- package/lib/index-anchor/index.css +1 -1
- package/lib/index-bar/index.css +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/list/index.css +1 -1
- package/lib/loading/index.css +1 -1
- package/lib/nav-bar/index.css +1 -1
- package/lib/notice-bar/index.css +1 -1
- package/lib/notify/index.css +1 -1
- package/lib/number-keyboard/index.css +1 -1
- package/lib/overlay/index.css +1 -1
- package/lib/pagination/index.css +1 -1
- package/lib/password-input/index.css +1 -1
- package/lib/picker/index.css +1 -1
- package/lib/picker-group/index.css +1 -1
- package/lib/popover/index.css +1 -1
- package/lib/popup/index.css +1 -1
- package/lib/progress/index.css +1 -1
- package/lib/pull-refresh/index.css +1 -1
- package/lib/radio/index.css +1 -1
- package/lib/rate/index.css +1 -1
- package/lib/search/index.css +1 -1
- package/lib/share-sheet/index.css +1 -1
- package/lib/sidebar/index.css +1 -1
- package/lib/sidebar-item/index.css +1 -1
- package/lib/skeleton/index.css +1 -1
- package/lib/slider/index.css +1 -1
- package/lib/step/index.css +1 -1
- package/lib/stepper/index.css +1 -1
- package/lib/steps/index.css +1 -1
- package/lib/sticky/index.css +1 -1
- package/lib/style/base.css +1 -1
- package/lib/style/css-variables.css +1 -1
- package/lib/style/normalize.css +1 -1
- package/lib/submit-bar/index.css +1 -1
- package/lib/swipe/index.css +1 -1
- package/lib/switch/index.css +1 -1
- package/lib/tabbar/index.css +1 -1
- package/lib/tabbar-item/index.css +1 -1
- package/lib/tabs/index.css +1 -1
- package/lib/tag/index.css +1 -1
- package/lib/toast/index.css +1 -1
- package/lib/tree-select/index.css +1 -1
- package/lib/uploader/index.css +1 -1
- package/lib/vant.cjs.js +3 -3
- package/lib/vant.es.js +3 -3
- package/lib/vant.js +3 -3
- package/lib/vant.min.js +1 -1
- package/lib/web-types.json +1726 -1726
- package/package.json +1 -1
package/lib/vant.js
CHANGED
@@ -990,10 +990,10 @@
|
|
990
990
|
const style = vue.computed(() => mapThemeVarsToCSSVars(extend({}, props.themeVars, props.theme === "dark" ? props.themeVarsDark : props.themeVarsLight)));
|
991
991
|
if (inBrowser$1) {
|
992
992
|
const addTheme = () => {
|
993
|
-
document.
|
993
|
+
document.documentElement.classList.add(`van-theme-${props.theme}`);
|
994
994
|
};
|
995
995
|
const removeTheme = (theme = props.theme) => {
|
996
|
-
document.
|
996
|
+
document.documentElement.classList.remove(`van-theme-${theme}`);
|
997
997
|
};
|
998
998
|
vue.watch(() => props.theme, (newVal, oldVal) => {
|
999
999
|
if (oldVal) {
|
@@ -15755,7 +15755,7 @@
|
|
15755
15755
|
});
|
15756
15756
|
}
|
15757
15757
|
};
|
15758
|
-
const version = "4.0.0-rc.
|
15758
|
+
const version = "4.0.0-rc.2";
|
15759
15759
|
function install(app) {
|
15760
15760
|
const components = [
|
15761
15761
|
ActionBar,
|