<template>
  <div>
    <hive-button @click="onClick">
      显示Modal
    </hive-button>
    <hive-modal
      v-model="showModal"
      title="这里是 Modal 标题"
      width="400"
      :destroy="false"
    >
      <div>
        <p>这是一个不销毁的 Modal</p>
      </div>
    </hive-modal>
  </div>
</template>

<script>
export default {
  data() {
    return {
      showModal: false
    };
  },

  methods: {
    onClick() {
      this.showModal = true;
    }
  }
};
</script>
