Files
basic/apps/example/src/views/component_example/dropdown/_demo2.vue
T
Hooray 749c55edbc refactor!: 重构多个子包
- 移除 unbuild --stub 模式
- faToast -> useFaToast
2026-05-17 03:54:49 +08:00

29 lines
531 B
Vue
Executable File

<script setup lang="ts">
function handleClick(text: string) {
useFaToast()(text)
}
</script>
<template>
<FaDropdown
:items="[
[
{ label: 'Open', handle: () => handleClick('Open') },
{
label: 'More',
items: [
[
{ label: 'Save Page...', handle: () => handleClick('Save Page...') },
],
],
},
],
]"
>
<FaButton>
Actions
<FaIcon name="i-ep:caret-bottom" />
</FaButton>
</FaDropdown>
</template>