ant-design / ant-motion

:bicyclist: Animate specification and components of Ant Design
http://motion.ant.design
MIT License
4.59k stars 358 forks source link

nav链接问题 #124

Closed jamieego closed 6 years ago

jamieego commented 7 years ago

如果要在导航一、二、三加链接,是不是在Nav.jsx模板里添加?还是用别的什么方式。

jljsj33 commented 7 years ago

https://ant.design/components/menu-cn/#components-menu-demo-horizontal

jamieego commented 6 years ago

添加“分屏锚点”这个组件,会渲染不出来呢! @jljsj33

jljsj33 commented 6 years ago

???什么情况下渲染不出来???说下你的使用场景与操作步骤吧。。。

jamieego commented 6 years ago

https://motion.ant.design/edit/#t%3Dnav_0_0%2Ccontent_0_0%2Ccontent_2_0%2Ccontent_3_0%2Ccontent_4_0%2Cfooter_0_0

Home中的index调用了point整个页面都无法加载;不调用point组件,页面就渲染的出来。

520Yanxiaofei commented 6 years ago

@jamieego 嗨,你好,我也遇到这个问题了,编辑好后生产代码,引入项目当中,就报这个提示

warning.js?6327:33 Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in. Check the render method of Point.

请问你是怎么解决的尼

jljsj33 commented 6 years ago

把你生产的代码的短链接给我,,我明天看看。。 @520Yanxiaofei