diff --git a/examples/with-ant-design/.babelrc b/examples/with-ant-design/.babelrc index d3c9e3f8382b3672644e79c41223c9a952027c4b..0a0cd952d5a0e5c0da971f21423047980226ea8b 100644 --- a/examples/with-ant-design/.babelrc +++ b/examples/with-ant-design/.babelrc @@ -1,10 +1,13 @@ { - "presets": [ - "next/babel" - ], + "presets": ["next/babel"], "plugins": [ - ["import", { - "libraryName": "antd" - }] + "transform-decorators-legacy", + [ + "import", + { + "libraryName": "antd", + "style": false + } + ] ] } diff --git a/examples/with-ant-design/index.js b/examples/with-ant-design/index.js new file mode 100644 index 0000000000000000000000000000000000000000..3eb3b5c016df385892a57b4401a7abd35f39b38d --- /dev/null +++ b/examples/with-ant-design/index.js @@ -0,0 +1,14 @@ +import Head from 'next/head' +export default ({ children }) => +
+ + + + + + + {children} +
diff --git a/examples/with-ant-design/pages/index.js b/examples/with-ant-design/pages/index.js index 83320a26a606bdefbd650fe94ec661d31a7cd8ac..edc813031fb9abe10315c36513aab7120df24990 100644 --- a/examples/with-ant-design/pages/index.js +++ b/examples/with-ant-design/pages/index.js @@ -1,4 +1,4 @@ -import Head from 'next/head' +import Layout from '../index.js' import { Form, Select, InputNumber, DatePicker, Switch, Slider, Button, LocaleProvider } from 'antd' import enUS from 'antd/lib/locale-provider/en_US' @@ -6,69 +6,68 @@ const FormItem = Form.Item const Option = Select.Option export default () => ( - -
- - - -
- + +
+ + - - Link - + + Link + - - - + + - - - + + - - - + + - - - - + + - - - - -
-
+
+ +
+
+ )