From 1e19c7fac260d1a1e7bc1cb155c97a63f2ad2586 Mon Sep 17 00:00:00 2001 From: aibayanyu Date: Fri, 10 Mar 2023 22:11:33 +0800 Subject: [PATCH] feat: add button --- components/button/button.tsx | 13 +++++++++++++ components/button/index.ts | 8 ++++++++ 2 files changed, 21 insertions(+) create mode 100644 components/button/button.tsx create mode 100644 components/button/index.ts diff --git a/components/button/button.tsx b/components/button/button.tsx new file mode 100644 index 0000000..2ee6fa3 --- /dev/null +++ b/components/button/button.tsx @@ -0,0 +1,13 @@ +import { defineComponent } from 'vue' + +const Button = defineComponent({ + name: 'AButton', + props: {}, + setup(props, { slots }) { + return () => { + return + } + } +}) + +export default Button diff --git a/components/button/index.ts b/components/button/index.ts new file mode 100644 index 0000000..2956aae --- /dev/null +++ b/components/button/index.ts @@ -0,0 +1,8 @@ +import type { App } from 'vue' +import Button from './button' + +Button.install = function (app: App) { + app.component(Button.name, Button) +} + +export default Button