Skip to content

Morph Select ​

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

预览 ​

用法 ​

vue
<script setup lang="ts">
import { SelectMorph } from 'beui-vue'
import { ref } from 'vue'
const framework = ref('next')
const options = [{ value: 'next', label: 'Next.js' }, { value: 'remix', label: 'Remix' }, { value: 'astro', label: 'Astro' }, { value: 'vite', label: 'Vite' }]
</script>
<template><SelectMorph v-model="framework" class="framework" :options="options" label="Pick a framework" /></template>
<style scoped>.framework { max-width: 14rem; }</style>

API ​

使用 options、v-model 和 label 配置选择框。浮层从触发器边缘揭开,方向键与回车完成选择。

上游变体 ​

还原验收 ​

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