mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-10 17:42:45 +08:00
32 lines
593 B
Vue
32 lines
593 B
Vue
<template>
|
|
<div class="toolbox-handler">
|
|
<ElButton
|
|
type="primary"
|
|
:link="true"
|
|
@click="() => props.handler(value)"
|
|
>
|
|
{{ props.handlerText }}
|
|
</ElButton>
|
|
</div>
|
|
</template>
|
|
<script lang="ts" setup>
|
|
import { IToolboxItemCheckStatus } from '~/universal/types/enum'
|
|
|
|
interface IProps {
|
|
status: IToolboxItemCheckStatus
|
|
value: any
|
|
handlerText: string
|
|
handler: (value: any) => void | Promise<void>
|
|
}
|
|
|
|
const props = defineProps<IProps>()
|
|
|
|
</script>
|
|
<script lang="ts">
|
|
export default {
|
|
name: 'ToolboxHandler'
|
|
}
|
|
</script>
|
|
<style lang='stylus'>
|
|
</style>
|