How does the iview poptip component close by clicking the OK button in poptip?

now the way to close poptip is to click on the place outside the poptip bubble to close, how to make it close after clicking the OK button?

clipboard.png
]

how can I write in Create to close poptip after clicking OK? The method of closing bubbles is not clearly indicated in the official documents

Feb.10,2022

well, I was too careless. There is a way to give this question in the document.

<Poptip v-model="visible">
    <a>Click</a>
    <div slot="title"><i>Custom title</i></div>
    <div slot="content">
        <a @click="close">close</a>
    </div>
</Poptip>


export default {
    data () {
        return {
            visible: false
        }
    },
    methods: {
        close () {
            this.visible = false;
        }
    }
}

bind a visible attribute to poptip to control whether it is displayed or hidden. Just convert its value between true and false.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b310e8-2bd7d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b310e8-2bd7d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?