Skip to content

Drawer 抽屉 ​

从右侧滑出的详情。遮罩点击和 Esc 会关上。不影响背后的主布局。

vue
<CkButton type="primary" @click="open = true">查看详情</CkButton>
<CkDrawer v-model:open="open" title="巡检详情">
  <p>调车作业 · 化工I · 当日第 5 轮</p>
</CkDrawer>

API ​

属性说明类型默认
open / v-model:open是否展开booleanfalse
title标题string—
placement滑出方向'right' | 'left''right'
width面板宽度。数字按 pxnumber | string420
mask显示遮罩booleantrue
mask-closable点击遮罩关闭booleantrue
closable显示关闭按钮booleantrue
插槽说明
default正文
title自定义标题
footer底部操作
事件说明
close关闭时触发