File tree 3 files changed +26
-12
lines changed
3 files changed +26
-12
lines changed Original file line number Diff line number Diff line change 6
6
"start" : " next start"
7
7
},
8
8
"dependencies" : {
9
- "@ant-design/icons" : " ^4.7 .0" ,
10
- "antd" : " ^4.21.5 " ,
9
+ "@ant-design/icons" : " ^4.8 .0" ,
10
+ "antd" : " ^5.0.0 " ,
11
11
"next" : " latest" ,
12
12
"react" : " 18.2.0" ,
13
13
"react-dom" : " 18.2.0"
Original file line number Diff line number Diff line change 1
1
import type { AppProps } from 'next/app'
2
- import 'antd/dist/antd .css'
2
+ import 'antd/dist/reset .css'
3
3
import '../styles/vars.css'
4
4
import '../styles/global.css'
5
5
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import { SmileFilled } from '@ant-design/icons'
12
12
import Link from 'next/link'
13
13
14
14
const FormItem = Form . Item
15
- const Option = Select . Option
16
15
17
16
const content = {
18
17
marginTop : '100px' ,
@@ -61,14 +60,29 @@ export default function Home() {
61
60
</ FormItem >
62
61
63
62
< FormItem label = "Select" >
64
- < Select defaultValue = "lucy" style = { { width : 192 } } >
65
- < Option value = "jack" > jack</ Option >
66
- < Option value = "lucy" > lucy</ Option >
67
- < Option value = "disabled" disabled >
68
- disabled
69
- </ Option >
70
- < Option value = "yiminghe" > yiminghe</ Option >
71
- </ Select >
63
+ < Select
64
+ defaultValue = "lucy"
65
+ style = { { width : 192 } }
66
+ options = { [
67
+ {
68
+ value : 'jack' ,
69
+ label : 'Jack' ,
70
+ } ,
71
+ {
72
+ value : 'lucy' ,
73
+ label : 'Lucy' ,
74
+ } ,
75
+ {
76
+ value : 'disabled' ,
77
+ disabled : true ,
78
+ label : 'Disabled' ,
79
+ } ,
80
+ {
81
+ value : 'Yiminghe' ,
82
+ label : 'yiminghe' ,
83
+ } ,
84
+ ] }
85
+ />
72
86
</ FormItem >
73
87
74
88
< FormItem label = "DatePicker" >
You can’t perform that action at this time.
0 commit comments