From c0f870ceb94d80dc84b65a8b0409fa6f5e6278fd Mon Sep 17 00:00:00 2001 From: neverland <chenjiahan@buaa.edu.cn> Date: Fri, 23 Feb 2018 14:40:32 +0800 Subject: [PATCH] [bugfix] Button loading horizontal align (#645) --- docs/src/index.js | 2 +- packages/vant-css/src/button.css | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/src/index.js b/docs/src/index.js index 0a94823a0..92ae9f443 100644 --- a/docs/src/index.js +++ b/docs/src/index.js @@ -16,7 +16,7 @@ const router = new VueRouter({ router.beforeEach((route, redirect, next) => { if (isMobile) { - location.replace('/zanui/vant/mobile' + location.hash); + location.replace('/zanui/vant/examples' + location.hash); } document.title = route.meta.title || document.title; next(); diff --git a/packages/vant-css/src/button.css b/packages/vant-css/src/button.css index ef92beafb..8528a0dd4 100644 --- a/packages/vant-css/src/button.css +++ b/packages/vant-css/src/button.css @@ -69,6 +69,10 @@ } &--loading { + .van-loading { + margin: 0 auto; + } + .van-button__text { display: none; }