mirror of
https://github.com/antd-tiny-vue/antd-tiny-vue.git
synced 2025-07-06 19:59:06 +08:00
feat: add button
This commit is contained in:
9
components/button/button.tsx
Normal file
9
components/button/button.tsx
Normal file
@ -0,0 +1,9 @@
|
||||
import { defineComponent } from 'vue'
|
||||
export default defineComponent({
|
||||
name: 'AButton',
|
||||
setup(props, { slots }) {
|
||||
return () => {
|
||||
return <button>{slots.default?.()}</button>
|
||||
}
|
||||
}
|
||||
})
|
Reference in New Issue
Block a user