File tree Expand file tree Collapse file tree 5 files changed +343
-6
lines changed Expand file tree Collapse file tree 5 files changed +343
-6
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ export type IButtonSize = 'lg' | 'md' | 'sm' | 'xs';
7
7
8
8
import './button.scss' ;
9
9
10
- export const Button = defineComponent ( {
10
+ export default defineComponent ( {
11
11
props : {
12
12
id : {
13
-
13
+ type : [ String , Number ]
14
14
} ,
15
15
type : {
16
16
type : String as ( ) => IButtonType ,
Original file line number Diff line number Diff line change 17
17
"@commitlint/cli" : " ^11.0.0" ,
18
18
"@commitlint/config-conventional" : " ^11.0.0" ,
19
19
"@vitejs/plugin-vue" : " ^1.0.4" ,
20
+ "@vitejs/plugin-vue-jsx" : " ^1.1.0" ,
20
21
"@vue/compiler-sfc" : " ^3.0.5" ,
21
22
"@vuedx/typecheck" : " ^0.4.1" ,
22
23
"@vuedx/typescript-plugin-vue" : " ^0.4.1" ,
Original file line number Diff line number Diff line change 102
102
<script lang="ts">
103
103
import { defineComponent } from ' vue'
104
104
import AppContent from ' ./components/app-content.vue'
105
- import DevUIButton from ' ../devui/button/button.vue '
105
+ import DevUIButton from ' ../devui/button/button'
106
106
107
107
export default defineComponent ({
108
108
name: ' App' ,
Original file line number Diff line number Diff line change 1
- import { defineConfig } from 'vite'
2
- import vue from '@vitejs/plugin-vue'
1
+ import { defineConfig } from 'vite' ;
2
+ import vue from '@vitejs/plugin-vue' ;
3
+ import vueJsx from '@vitejs/plugin-vue-jsx' ;
3
4
4
5
export default defineConfig ( {
5
- plugins : [ vue ( ) ]
6
+ plugins : [
7
+ vue ( ) ,
8
+ vueJsx ( { } )
9
+ ] ,
6
10
} )
You can’t perform that action at this time.
0 commit comments