mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 03:44:48 +00:00
[new feature] Button: add loading-text prop (#2732)
This commit is contained in:
@@ -42,6 +42,7 @@
|
||||
/>
|
||||
<van-button
|
||||
loading
|
||||
:loading-text="$t('loadingText')"
|
||||
type="danger"
|
||||
/>
|
||||
</demo-block>
|
||||
@@ -86,7 +87,8 @@ export default {
|
||||
mini: '迷你按钮',
|
||||
plain: '朴素按钮',
|
||||
square: '方形按钮',
|
||||
round: '圆形按钮'
|
||||
round: '圆形按钮',
|
||||
loadingText: '加载中...'
|
||||
},
|
||||
'en-US': {
|
||||
type: 'Type',
|
||||
@@ -103,7 +105,8 @@ export default {
|
||||
mini: 'Mini',
|
||||
plain: 'Plain',
|
||||
square: 'Square',
|
||||
round: 'Round'
|
||||
round: 'Round',
|
||||
loadingText: 'Loading...'
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -122,10 +125,6 @@ export default {
|
||||
&--normal:not(:last-child) {
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.van-loading {
|
||||
margin: 0 18px;
|
||||
}
|
||||
}
|
||||
|
||||
.van-doc-demo-block {
|
||||
|
Reference in New Issue
Block a user