
<template>
    <div>
        <h-popup v-model="show" position="right">内容</h-popup>
        <button @click="aa">弹出</button>
    </div>
</template>

<script>
import hPopup from './index'
export default {
    name: "popup-demo",
    data() {
        return {
            show: false
        }
    },
    components: {
        hPopup
    },
    methods: {
        aa() {
            this.show = !this.show;
        }
    }
}
</script>