Open g0ne150 opened 7 years ago
import Vue from 'vue'
import { Button } from 'element-ui'
console.log(Button)
export default Vue.extend({
render: function (h) {
return <Button>Hello element-ui</Button>
}
})
改成如下,就没毛病了
import Vue from 'vue'
import { Button } from 'element-ui'
console.log(Button)
const Ebtn = Button // 这样就 OK 了
export default Vue.extend({
render: function (h) {
return <Ebtn>Hello element-ui</Ebtn>
}
})
+1 got the same problem
代码:
webpack 输出:
浏览器控制台输出:
babelrc:
webpack版本: 2.4.1