u
This commit is contained in:
1 parent
f572dce2f6
commit
e99a9fb274
356 files changed
+28877
-1055
No files matched your search
@@ -0,0 +1,18 @@
|
||||
<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>
|
||||
Reference in new issue
Block a user