Skip to content

Bottom Sheet ​

Vue 已实现 · 还原验收 0/1 · 上游演示 · 固定版本源码

预览 ​

用法 ​

vue
<script setup lang="ts">
import { ref } from 'vue'
import { BottomSheet, ButtonBase } from 'beui-vue'
const open = ref(false)
</script>
<template><ButtonBase @click="open=true">Open sheet</ButtonBase><BottomSheet v-model:open="open" title="Activity" description="Drag the handle to resize the sheet." :snap-points="[.35,.6,.85]"><ul><li>Launch brief updated</li><li>New design shared</li><li>Release notes published</li></ul></BottomSheet></template>

API ​

v-model:open 控制面板。snapPoints 指定视口高度比例。拖动手柄或按上下方向键调整高度。

还原验收 ​

基于 beUI 的独立 Vue 移植,依 MIT 许可证分发。