-
-
Notifications
You must be signed in to change notification settings - Fork 201
Open
Description
import { defineComponent, h } from "vue"
export default defineComponent({
name: 'MyButton',
props: {
disabled: {
type: Boolean
}
},
emits: ['custom-click'],
render() {
return h('button', {
disabled: this.$props.disabled,
onClick: () => this.$emit('custom-click')
}, this.$slots.default())
}
})