Question(提问)
我引用了Layout组件之后出现如下报错:
该段的源代码如下:
`
export default {
name: 'MenuItem',
functional: true,
props: {
icon: {
type: String,
default: ''
},
title: {
type: String,
default: ''
}
},
render(h, context) {
const { icon, title } = context.props
const vnodes = []
if (icon) {
vnodes.push(
<svg-icon icon-class={icon}/>
)
}
if (title) {
vnodes.push(
<span slot='title'>{(title)}</span>
)
}
return vnodes
}
}
`
4条答案
按热度按时间3xiyfsfu1#
我也遇到了相同的问题, 同问
k75qkfdt2#
me, too
chhqkbe13#
It's sth wrong about Babel settings, please ensure your babel.config.js looks like below
nvbavucw4#
报错解决了吗