catwarrior / catwarrior.github.io

This is my knowledge base.
0 stars 0 forks source link

vue #38

Open catwarrior opened 7 years ago

catwarrior commented 7 years ago

https://github.com/Chanran/heweather

技术栈

vue2.x + vue-router2.x + axios + vuex2.x + vux2.x

开发环境依赖

catwarrior commented 7 years ago

F7 + Vue

https://github.com/nolimits4web/Framework7-Vue-Webpack-Template.git

catwarrior commented 7 years ago

SUE

http://m.sui.taobao.org/demos/

catwarrior commented 6 years ago

https://www.cnblogs.com/wisewrong/p/6834270.html https://www.cnblogs.com/wisewrong/p/6344390.html 在父组件处理事件

在通用组件中,通常会需要有各种事件,

比如复选框的 change 事件,或者组件中某个按钮的 click 事件

这些事件的处理方法应当尽量放到父组件中,通用组件本身只作为一个中转

catwarrior commented 6 years ago

https://www.zhihu.com/question/38213423

catwarrior commented 6 years ago

vue 调试

http://www.orzzone.com/vuejs-project-debug.html

针对vue-cli webpack官方脚手架,打开build/webpack.dev.conf.js文件,找到下面这句:

devtool: '#cheap-module-eval-source-map', 将其修改为: devtool: '#eval-source-map ',

现在是具体调试了。假设我们想调试App.vue这个组件,可以在想要调试的代码前添加debugger方法,

然后运行npm run dev(

catwarrior commented 6 years ago

如何优雅的使用VUE

https://zhuanlan.zhihu.com/p/31905148