今天刚使用antd 遇到一些问题 本人新手这个问题想了好久没解决,是需要引入一些其他东西吗
import { Button,Layout} from 'ant-design-vue';
Vue.component(Button.name, Button)
Vue.component(Layout.name, Layout)
这一段代码不生效 搬官网的
<a-layout>
<a-layout-sider>Sider</a-layout-sider>
<a-layout>
<a-layout-header>Header</a-layout-header>
<a-layout-content>Content</a-layout-content>
<a-layout-footer>Footer</a-layout-footer>
</a-layout>
</a-layout>
报错提示是:Unknown custom element: <a-layout-content> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
这个是我的页面(代码是直接copy官网的)
这是官网页面
还需要在main.js中注册内部属性