You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design-vue/components/popover/demo/control.md

39 lines
597 B

7 years ago
<cn>
#### 从浮层内关闭
使用 `visible` 属性控制浮层显示。
</cn>
<us>
#### Controlling the close of the dialog
Use `visible` prop to control the display of the card.
</us>
```html
7 years ago
<template>
7 years ago
<a-popover
7 years ago
title="Title"
trigger="click"
v-model="visible"
>
7 years ago
<a @click="hide" slot="content">Close</a>
7 years ago
<a-button type="primary">Click me</a-button>
7 years ago
</a-popover>
7 years ago
</template>
<script>
export default {
data () {
return {
visible: false,
}
},
methods: {
hide () {
console.log(111)
this.visible = false
},
},
}
</script>
7 years ago
```