Skip to content
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

如何使用第三方的UI框架 #2

Closed
wenboLee opened this issue Oct 24, 2018 · 4 comments
Closed

如何使用第三方的UI框架 #2

wenboLee opened this issue Oct 24, 2018 · 4 comments

Comments

@wenboLee
Copy link

找到一篇博客,有说怎么用第三方框架链接
但是如果按照里面的方法,需要用到一个库mpvue-entry
而且要改build/webpack.base.conf.js的配置
改了配置之后,小程序开发工具会报错,找不到app.json
刚入坑,想请教一下大佬~

@wenboLee
Copy link
Author

不过上文方案中的代码,却又能跑起来,说明是可以使用第三方的UI框架
但我更希望用mpvue-vuex-demo来作为基础框架,再使用第三方的UI框架

@davidlin88
Copy link
Owner

收到,我会进行重现,解决后第一时间给你答复,感谢issue~❤️

@davidlin88
Copy link
Owner

davidlin88 commented Oct 24, 2018

1.跳过文章对配置的所有改动,使用案例中的第三方库的方法:在页面文件夹下的main.js,如/me/main.js内,增加类似如下代码,这里的配置可以打包后应用到页面级的json配置中:

export default {
   usingComponents: {
            "i-button": "../../button/index"
        }
}

2.后续考虑看需求增加mpvue-entry~

@wenboLee
Copy link
Author

嗯嗯,解决了,Thanks♪(・ω・)ノ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants