diff --git a/example/pages/button/index.wxml b/example/pages/button/index.wxml
index c91445c1..414d313d 100644
--- a/example/pages/button/index.wxml
+++ b/example/pages/button/index.wxml
@@ -19,8 +19,8 @@
-
-
+
+
diff --git a/example/pages/button/index.wxss b/example/pages/button/index.wxss
index 86c2e512..a5c4a026 100644
--- a/example/pages/button/index.wxss
+++ b/example/pages/button/index.wxss
@@ -1,7 +1,3 @@
-.loading {
- margin: 0 18px;
-}
-
.row {
height: 44px;
margin-bottom: 15px;
diff --git a/packages/button/README.md b/packages/button/README.md
index adff5fe7..eccc8e1c 100644
--- a/packages/button/README.md
+++ b/packages/button/README.md
@@ -40,7 +40,7 @@
```html
-
+
```
#### 按钮形状
diff --git a/packages/button/index.less b/packages/button/index.less
index dc0e6015..4a098f85 100644
--- a/packages/button/index.less
+++ b/packages/button/index.less
@@ -125,4 +125,10 @@
&--disabled {
opacity: 0.5;
}
+
+ &__loading-text {
+ margin-left: 5px;
+ display: inline-block;
+ vertical-align: middle;
+ }
}
diff --git a/packages/button/index.ts b/packages/button/index.ts
index 6ecc9ae4..c8006755 100644
--- a/packages/button/index.ts
+++ b/packages/button/index.ts
@@ -14,6 +14,7 @@ VantComponent({
square: Boolean,
loading: Boolean,
disabled: Boolean,
+ loadingText: String,
type: {
type: String,
value: 'default'
diff --git a/packages/button/index.wxml b/packages/button/index.wxml
index 3c18b206..4422220f 100644
--- a/packages/button/index.wxml
+++ b/packages/button/index.wxml
@@ -23,11 +23,18 @@
bindlaunchapp="bindLaunchApp"
bindopensetting="bindOpenSetting"
>
-
+
+
+
+ {{ loadingText }}
+
+