[new feature] Popup: add round prop (#3781)

This commit is contained in:
neverland
2019-07-09 10:45:10 +08:00
committed by GitHub
parent 4b829ea7dd
commit 6bc836beab
9 changed files with 97 additions and 10 deletions
+23 -2
View File
@@ -71,6 +71,24 @@
/>
</demo-block>
<demo-block
v-if="!$attrs.weapp"
:title="$t('roundCorner')"
>
<van-button
type="primary"
@click="showRoundCorner = true"
>
{{ $t('roundCorner') }}
</van-button>
<van-popup
v-model="showRoundCorner"
round
position="bottom"
:style="{ height: '20%' }"
/>
</demo-block>
<demo-block
v-if="!$attrs.weapp"
:title="$t('getContainer')"
@@ -100,7 +118,8 @@ export default {
buttonBottom: '底部弹出',
buttonLeft: '左侧弹出',
buttonRight: '右侧弹出',
getContainer: '指定挂载节点'
getContainer: '指定挂载节点',
roundCorner: '圆角弹窗'
},
'en-US': {
position: 'Position',
@@ -109,7 +128,8 @@ export default {
buttonBottom: 'From Bottom',
buttonLeft: 'From Left',
buttonRight: 'From Right',
getContainer: 'Get Container'
getContainer: 'Get Container',
roundCorner: 'Round Corner'
}
},
@@ -120,6 +140,7 @@ export default {
showBottom: false,
showLeft: false,
showRight: false,
showRoundCorner: false,
showGetContainer: false
};
}