mirror of
https://github.com/element-plus/element-plus.git
synced 2025-08-14 18:11:48 +08:00
16 lines
332 B
Vue
16 lines
332 B
Vue
<template>
|
|
<el-button type="primary" style="margin-left: 16px" @click="drawer = true">
|
|
open
|
|
</el-button>
|
|
|
|
<el-drawer v-model="drawer" title="I am the title" :with-header="false">
|
|
<span>Hi there!</span>
|
|
</el-drawer>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { ref } from 'vue'
|
|
|
|
const drawer = ref(false)
|
|
</script>
|