<template>
  <BzDrawer v-bind="$attrs" @register="register" title="Drawer Title" width="50%">
    Drawer Info.
    <bz-button type="primary" @click="closeDrawer"> 内部关闭drawer </bz-button>
  </BzDrawer>
</template>
<script lang="ts">
  import { defineComponent } from 'vue';
  import { BzDrawer, useDrawerInner } from '/@/index';
  export default defineComponent({
    components: { BzDrawer },
    setup() {
      const [register, { closeDrawer }] = useDrawerInner();
      return { register, closeDrawer };
    },
  });
</script>
