19 lines
634 B
Vue
19 lines
634 B
Vue
<script setup lang="ts">
|
||
// 最常用:右侧滑出,v-model:open 控制,cancel 事件表示「被关闭」
|
||
import { ref } from 'vue'
|
||
import { G3Button, G3Drawer, G3Message } from '@g3soft/ui'
|
||
|
||
const open = ref(false)
|
||
</script>
|
||
|
||
<template>
|
||
<div>
|
||
<G3Button @click="open = true">打开抽屉</G3Button>
|
||
|
||
<G3Drawer v-model:open="open" title="筛选条件" @cancel="G3Message.info('已关闭')">
|
||
<p style="margin: 0">抽屉内容区域可滚动,适合承载较长的表单或列表。</p>
|
||
<p style="margin: 8px 0 0; color: #6b7280">拖动左边缘可以调整宽度。</p>
|
||
</G3Drawer>
|
||
</div>
|
||
</template>
|