-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用tabbar时候报错 #109
Labels
Comments
问题补充: |
|
我刚才没注意到你是以对象的形式引入的组件,所以
|
如果已经使用了 component 插件,就不用手动引入全部样式文件了,插件会自动引入对应组件的样式文件 |
谢谢,组件引用的问题解决了。整理如下。
注:按需加载组件需要使用babel-plugin-component,还有,还有,按需加载不要全局引如mint-ui.css. 注:阅读文档要心要细。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
项目开发环境:node v5.9.0; npm v3.7.3; mint-ui v0.1.17
使用vue 官方模板 webpack standard
使用mint-ui组件,按照实例给出的使用方式,选择了按需加载组件的方式。
使用代码如下:
main.js:
App.vue:
template
script
import {tabbar} from 'mint-ui'
export default {
components: {
tabbar
}
}
错误提示为:
[Vue warn]: Unknown custom element: - did you mean ? HTML is case-insensitive, remember to use kebab-case in templates.
google下,发现同样的问题,不过这个项目不使用了vuex,原因是vuex的错误。
注;我的项目中没有使用vuex
把tabbar替换成我自己的.vue 模板,可以正确在渲染。
在build 文件中,可以找到mint-ui的样式,说明mint-ui样式已经引入;
注:build 文件中出现了变量没有被编译的问题
The text was updated successfully, but these errors were encountered: