Unverified Commit e701c715 authored by Chuns Chen's avatar Chuns Chen Committed by GitHub

examples(with-ant-design): bump antd v5.0.0 (#43062)

parent b94b5beb
...@@ -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"
......
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'
......
...@@ -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">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment