mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 11:54:02 +00:00
feat(Popover): using popperjs
This commit is contained in:
@@ -4,9 +4,9 @@
|
||||
<van-popover
|
||||
v-model="show.basic"
|
||||
:actions="t('actions')"
|
||||
placement="bottom-left"
|
||||
placement="bottom"
|
||||
>
|
||||
<van-button @click="show.basic = true">
|
||||
<van-button type="primary" @click="show.basic = true">
|
||||
{{ t('showPopover') }}
|
||||
</van-button>
|
||||
</van-popover>
|
||||
@@ -17,9 +17,9 @@
|
||||
v-model="show.lightTheme"
|
||||
theme="light"
|
||||
:actions="t('actions')"
|
||||
placement="bottom-left"
|
||||
placement="bottom"
|
||||
>
|
||||
<van-button @click="show.lightTheme = true">
|
||||
<van-button type="primary" @click="show.lightTheme = true">
|
||||
{{ t('lightTheme') }}
|
||||
</van-button>
|
||||
</van-popover>
|
||||
@@ -57,4 +57,10 @@ export default {
|
||||
|
||||
<style lang="less">
|
||||
@import '../../style/var';
|
||||
|
||||
.demo-popover {
|
||||
.van-popover__wrapper {
|
||||
margin-left: @padding-md;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
Reference in New Issue
Block a user