vscode控制台会报warning:
"export ‘LabelInput’ was not found in ‘…/components/label-input.vue’
运行起来页面报错:
vue.runtime.esm.js?2b0e:619 [Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the “name” option.
解决方法:
引入组件时不要加大括号
import LabelInput from '../components/label-input.vue';