随笔分类 -  vue

摘要:pagination.vue store.js 调用: table.vue 阅读全文
posted @ 2017-01-23 10:31 lhy031 阅读(1630) 评论(1) 推荐(0)
摘要:一. 推荐开发环境 二. 安装环境 <!--?xml version="1.0" encoding="UTF-8"?--> 安装 nvm :curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.3/install.sh | b 阅读全文
posted @ 2017-01-04 14:49 lhy031 阅读(222) 评论(0) 推荐(0)
摘要:1. 安装chrome插件:Vue.js devtools(https://chrome.google.com/webstore/detail/vuejs-devtools/nhdogjmejiglipccpnnnanhbledajbpd?hl=zh-CN) 2. 下载vue-devtools (h 阅读全文
posted @ 2016-09-08 15:52 lhy031 阅读(5459) 评论(2) 推荐(2)
摘要:父子组件之间可以通过props进行通信: 组件的定义: 1.创建component类: var Profile = Vue.extend({ template: "<div>Lily</div>"; }) 2.注册一个tagnme: Vue.component("me-profile",Profil 阅读全文
posted @ 2016-08-05 15:19 lhy031 阅读(2414) 评论(0) 推荐(0)
摘要:1.过滤器: filters: { search(list) { es5 var _self = this; //return list.filter(menu => menu.childs.name.join("").indexOf(this.searchVal) > -1); return li 阅读全文
posted @ 2016-08-05 14:34 lhy031 阅读(3530) 评论(1) 推荐(1)