-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
软件版本
0.0.2-beta.5
运行环境
MacOS
运行架构
None
重现步骤
复现demo,在点击展开(组件内open值变化)后控制台会报warn:
<script setup lang="ts">
import { SButton } from 'soy-ui';
const { setLocale } = useI18n();
const languageItems = ref([
{
isGroupLabel: true,
value: 'language',
label: '选择语言',
separator: true
},
{
value: 'zh',
label: '简体中文',
prefix: '🇨🇳'
},
{
value: 'en',
label: 'English',
prefix: '🇺🇸'
}
]);
const handleChange = (value: string) => {
console.log(value)
};
</script>
<template>
<SDropdownMenu :items="languageItems" placement="bottom-end" @change="handleChange">
<template #trigger>
<SButton variant="ghost" size="sm" class="w-9 px-0" title="切换语言">
<span class="i-lucide-languages h-4 w-4" />
</SButton>
</template>
</SDropdownMenu>
</template>
期望的结果是什么?
组件表现正常
实际的结果是什么?

日志记录(可选)
补充说明(可选)
No response
Metadata
Metadata
Assignees
Labels
No labels