15 lines
271 B
TypeScript
15 lines
271 B
TypeScript
import type { SetupContext } from 'vue'
|
|
import type { SuspendButtonEmits } from '../types'
|
|
|
|
export const useSuspendButton = (
|
|
emits: SetupContext<SuspendButtonEmits>['emit']
|
|
) => {
|
|
const clickHandle = () => {
|
|
emits('click')
|
|
}
|
|
|
|
return {
|
|
clickHandle,
|
|
}
|
|
}
|