From fb37fd45a910b14d997ff2cddd51450aa4ce6e0a Mon Sep 17 00:00:00 2001 From: thehrz Date: Tue, 3 Oct 2023 13:09:08 +0800 Subject: [PATCH] feat: add Button --- index.html | 1 - src/components.d.ts | 3 +-- src/components/Bar.vue | 5 ----- src/components/Btn.vue | 13 ------------- src/components/button.vue | 24 ++++++++++++++++++++++++ src/pages/index.vue | 14 +++++++++++++- 6 files changed, 38 insertions(+), 22 deletions(-) delete mode 100644 src/components/Bar.vue delete mode 100644 src/components/Btn.vue create mode 100644 src/components/button.vue diff --git a/index.html b/index.html index 3b3c8da..eff5285 100644 --- a/index.html +++ b/index.html @@ -2,7 +2,6 @@ - thehrz diff --git a/src/components.d.ts b/src/components.d.ts index 14bd05b..2f6b08d 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -7,8 +7,7 @@ export {} declare module 'vue' { export interface GlobalComponents { - Bar: typeof import('./components/Bar.vue')['default'] - Btn: typeof import('./components/Btn.vue')['default'] + Button: typeof import('./components/button.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] } diff --git a/src/components/Bar.vue b/src/components/Bar.vue deleted file mode 100644 index 27a3ae8..0000000 --- a/src/components/Bar.vue +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/src/components/Btn.vue b/src/components/Btn.vue deleted file mode 100644 index 9dbb249..0000000 --- a/src/components/Btn.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/components/button.vue b/src/components/button.vue new file mode 100644 index 0000000..6a94ab8 --- /dev/null +++ b/src/components/button.vue @@ -0,0 +1,24 @@ + + + + + diff --git a/src/pages/index.vue b/src/pages/index.vue index e3b22ca..a97ff0d 100644 --- a/src/pages/index.vue +++ b/src/pages/index.vue @@ -1,9 +1,21 @@ + +