Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
e701c715
Unverified
Commit
e701c715
authored
Nov 18, 2022
by
Chuns Chen
Committed by
GitHub
Nov 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples(with-ant-design): bump antd v5.0.0 (#43062)
parent
b94b5beb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
12 deletions
+26
-12
package.json
examples/with-ant-design/package.json
+2
-2
_app.tsx
examples/with-ant-design/pages/_app.tsx
+1
-1
index.tsx
examples/with-ant-design/pages/index.tsx
+23
-9
No files found.
examples/with-ant-design/package.json
View file @
e701c715
...
@@ -6,8 +6,8 @@
...
@@ -6,8 +6,8 @@
"start"
:
"next start"
"start"
:
"next start"
},
},
"dependencies"
:
{
"dependencies"
:
{
"@ant-design/icons"
:
"^4.
7
.0"
,
"@ant-design/icons"
:
"^4.
8
.0"
,
"antd"
:
"^
4.21.5
"
,
"antd"
:
"^
5.0.0
"
,
"next"
:
"latest"
,
"next"
:
"latest"
,
"react"
:
"18.2.0"
,
"react"
:
"18.2.0"
,
"react-dom"
:
"18.2.0"
"react-dom"
:
"18.2.0"
...
...
examples/with-ant-design/pages/_app.tsx
View file @
e701c715
import
type
{
AppProps
}
from
'next/app'
import
type
{
AppProps
}
from
'next/app'
import
'antd/dist/
antd
.css'
import
'antd/dist/
reset
.css'
import
'../styles/vars.css'
import
'../styles/vars.css'
import
'../styles/global.css'
import
'../styles/global.css'
...
...
examples/with-ant-design/pages/index.tsx
View file @
e701c715
...
@@ -12,7 +12,6 @@ import { SmileFilled } from '@ant-design/icons'
...
@@ -12,7 +12,6 @@ import { SmileFilled } from '@ant-design/icons'
import
Link
from
'next/link'
import
Link
from
'next/link'
const
FormItem
=
Form
.
Item
const
FormItem
=
Form
.
Item
const
Option
=
Select
.
Option
const
content
=
{
const
content
=
{
marginTop
:
'100px'
,
marginTop
:
'100px'
,
...
@@ -61,14 +60,29 @@ export default function Home() {
...
@@ -61,14 +60,29 @@ export default function Home() {
</
FormItem
>
</
FormItem
>
<
FormItem
label=
"Select"
>
<
FormItem
label=
"Select"
>
<
Select
defaultValue=
"lucy"
style=
{
{
width
:
192
}
}
>
<
Select
<
Option
value=
"jack"
>
jack
</
Option
>
defaultValue=
"lucy"
<
Option
value=
"lucy"
>
lucy
</
Option
>
style=
{
{
width
:
192
}
}
<
Option
value=
"disabled"
disabled
>
options=
{
[
disabled
{
</
Option
>
value
:
'jack'
,
<
Option
value=
"yiminghe"
>
yiminghe
</
Option
>
label
:
'Jack'
,
</
Select
>
},
{
value
:
'lucy'
,
label
:
'Lucy'
,
},
{
value
:
'disabled'
,
disabled
:
true
,
label
:
'Disabled'
,
},
{
value
:
'Yiminghe'
,
label
:
'yiminghe'
,
},
]
}
/>
</
FormItem
>
</
FormItem
>
<
FormItem
label=
"DatePicker"
>
<
FormItem
label=
"DatePicker"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment