File tree 4 files changed +3245
-1815
lines changed
4 files changed +3245
-1815
lines changed Original file line number Diff line number Diff line change 33
33
"test:watch" : " vitest watch"
34
34
},
35
35
"dependencies" : {
36
- "@nuxt/kit" : " ^3.5.2" ,
37
36
"@ant-design/icons-vue" : " ^7.0.1" ,
38
- "ant-design-vue" : " ^4.0.1"
37
+ "@nuxt/kit" : " ^3.8.1" ,
38
+ "ant-design-vue" : " ^4.0.7"
39
39
},
40
40
"devDependencies" : {
41
41
"@nuxt/eslint-config" : " ^0.1.1" ,
42
42
"@nuxt/module-builder" : " ^0.4.0" ,
43
- "@nuxt/schema" : " ^3.5.2 " ,
44
- "@nuxt/test-utils" : " ^3.5 .1" ,
45
- "@types/node" : " ^18" ,
46
- "changelogen" : " ^0.5.3 " ,
47
- "eslint" : " ^8.41 .0" ,
48
- "nuxt" : " ^3.5 .1" ,
49
- "vitest" : " ^0.31.1 "
43
+ "@nuxt/schema" : " ^3.8.1 " ,
44
+ "@nuxt/test-utils" : " ^3.8 .1" ,
45
+ "@types/node" : " ^18.18.9 " ,
46
+ "changelogen" : " ^0.5.5 " ,
47
+ "eslint" : " ^8.53 .0" ,
48
+ "nuxt" : " ^3.8 .1" ,
49
+ "vitest" : " ^0.31.4 "
50
50
}
51
51
}
Original file line number Diff line number Diff line change 54
54
notification info
55
55
</a-button >
56
56
</a-space >
57
+ <a-flex gap =" middle" vertical >
58
+ <a-radio-group v-model:value =" value" >
59
+ <a-radio value =" horizontal" >horizontal</a-radio >
60
+ <a-radio value =" vertical" >vertical</a-radio >
61
+ </a-radio-group >
62
+ <a-flex :vertical =" value === 'vertical'" >
63
+ <div
64
+ v-for =" (item, index) in new Array(4)"
65
+ :key =" item"
66
+ :style =" { ...baseStyle, background: `${index % 2 ? '#1677ff' : '#1677ffbf'}` }"
67
+ />
68
+ </a-flex >
69
+ </a-flex >
57
70
</div >
58
71
</a-config-provider >
59
72
</template >
60
73
61
74
<script setup lang="ts">
62
75
import { theme as antdTheme } from " ant-design-vue"
63
- import { reactive } from " #imports" ;
76
+ import { reactive , ref } from " #imports" ;
64
77
const theme = reactive ({
65
78
algorithm: antdTheme .defaultAlgorithm
66
79
})
67
-
80
+ import type { CSSProperties } from ' vue' ;
81
+ const value = ref (' horizontal' );
82
+ const baseStyle: CSSProperties = {
83
+ width: ' 25%' ,
84
+ height: ' 54px' ,
85
+ };
68
86
const color = reactive ({
69
87
bg:" #fff" ,
70
88
color:" #000"
You can’t perform that action at this time.
0 commit comments