no-title.vue 335 B

123456789101112
  1. <template>
  2. <el-button type="primary" style="margin-left: 16px" @click="drawer = true"> open </el-button>
  3. <el-drawer v-model="drawer" title="I am the title" :with-header="false">
  4. <span>Hi there!</span>
  5. </el-drawer>
  6. </template>
  7. <script lang="ts" setup>
  8. import { ref } from 'vue'
  9. const drawer = ref(false)
  10. </script>