mirror of
https://github.com/fantastic-admin/basic.git
synced 2026-10-07 13:17:52 +08:00
29 lines
531 B
Vue
Executable File
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>
|