[new feature] Button: add hairline prop (#3031)

This commit is contained in:
neverland
2019-03-21 20:13:34 +08:00
committed by GitHub
parent 08466eabb9
commit 01ef298abc
7 changed files with 86 additions and 25 deletions

View File

@@ -23,6 +23,21 @@
/>
</demo-block>
<demo-block :title="$t('hairline')">
<van-button
plain
hairline
type="primary"
:text="$t('hairlineButton')"
/>
<van-button
plain
hairline
type="danger"
:text="$t('hairlineButton')"
/>
</demo-block>
<demo-block :title="$t('disabled')">
<van-button
disabled
@@ -90,6 +105,8 @@ export default {
plain: '朴素按钮',
square: '方形按钮',
round: '圆形按钮',
hairline: '细边框',
hairlineButton: '细边框按钮',
loadingText: '加载中...'
},
'en-US': {
@@ -109,6 +126,8 @@ export default {
plain: 'Plain',
square: 'Square',
round: 'Round',
hairline: 'Hairline',
hairlineButton: 'Hairline',
loadingText: 'Loading...'
}
}