<template>
  <BzDrawer v-bind="$attrs" title="Modal Title" width="50%" showFooter @ok="handleOk">
    <p class="h-20" v-for="index in 40" :key="index">根据屏幕高度自适应</p>
    <template #insertFooter>
      <bz-button> btn</bz-button>
    </template>
    <template #centerFooter>
      <bz-button> btn2</bz-button>
    </template>

    <template #appendFooter>
      <bz-button> btn3</bz-button>
    </template>

    <!-- <template #footer>
      <bz-button> customerFooter</bz-button>
    </template> -->
  </BzDrawer>
</template>
<script lang="ts">
  import { defineComponent } from 'vue';
  import { BzDrawer } from '/@/index';
  export default defineComponent({
    components: { BzDrawer },
    setup() {
      return {
        handleOk: () => {
          console.log('=====================');
          console.log('ok');
          console.log('======================');
        },
      };
    },
  });
</script>
