mirror of
https://github.com/antd-tiny-vue/antd-tiny-vue.git
synced 2024-11-10 17:49:18 +08:00
14 lines
237 B
TypeScript
14 lines
237 B
TypeScript
import { defineComponent } from 'vue'
|
|
|
|
const Button = defineComponent({
|
|
name: 'AButton',
|
|
props: {},
|
|
setup(props, { slots }) {
|
|
return () => {
|
|
return <button>{slots.default?.()}</button>
|
|
}
|
|
}
|
|
})
|
|
|
|
export default Button
|