Open
Description
import { defineComponent, h } from "vue"
export default defineComponent({
name: 'MyButton',
props: {
disabled: {
type: Boolean,
default: false
},
},
render(content) {
return h('button', {
disabled: content.disabled,
onClick: () => {
content.$emit('custom-click')
}
}, content.$slots)
}
})