feat: more actions in status card
This commit is contained in:
parent
2422c809e0
commit
e9c9ecefc8
7 changed files with 157 additions and 87 deletions
18
components/common/dropdown/Dropdown.vue
Normal file
18
components/common/dropdown/Dropdown.vue
Normal file
|
@ -0,0 +1,18 @@
|
|||
<script setup lang="ts">
|
||||
import { dropdownContextKey } from './ctx'
|
||||
|
||||
const dropdown = $ref<any>()
|
||||
|
||||
provide(dropdownContextKey, {
|
||||
hide: () => dropdown.hide(),
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<VDropdown v-bind="$attrs" ref="dropdown">
|
||||
<slot />
|
||||
<template #popper="scope">
|
||||
<slot name="popper" v-bind="scope" />
|
||||
</template>
|
||||
</VDropdown>
|
||||
</template>
|
Loading…
Add table
Add a link
Reference in a new issue