码迷,mamicode.com
首页 >  
搜索关键字:components    ( 1669个结果
vue小细节
1.vue.js里的vm: 实例名称~vm ~他是new出来的, 官方api用的vm,只是一个实例 2.vm.$el解读: var vm = new Vue({ el: '#app', router, template: '<App/>', components: {App} }); console ...
分类:其他好文   时间:2018-10-18 19:20:12    阅读次数:152
Vue+koa2开发一款全栈小程序(8.图书列表页)
1.图书列表页获取数据 1.在server/routes/index.js中新增路由 2.在server/controllers下新增booklist.js 3.在mydemo/src/pages/books/index.vue中 效果图 2.图书卡片显示数据 1.在src/components目录 ...
分类:微信   时间:2018-10-18 10:53:01    阅读次数:213
slot内容分发
vue实现了一套内容分发的API,这套API基于当前的web components规范草案,将<slot>元素作为承载分发内容的出口。 在前面的父子组件中,我们提到过,在vue中,组件实例的作用域是孤立的,默认情况下,父子组件的数据是不能共享的。所以子组件的内容应当写在子组件里面,父组件的内容应该写 ...
分类:其他好文   时间:2018-10-18 01:07:19    阅读次数:160
vue-router路由
在components文件夹中新建一个.vue文件 修改App.vue,增加组件链接<router-link to=''></router-link> 修改router文件夹中的index.js文件 导入组件 import,设置路由 ...
分类:其他好文   时间:2018-10-16 14:28:01    阅读次数:137
[Angular] Write Compound Components with Angular’s ContentChild
Allow the user to control the view of the toggle component. Break the toggle component up into multiple composable components that can be rearranged b ...
分类:其他好文   时间:2018-10-09 19:59:22    阅读次数:152
VUE搭建
const Login = () => import('@/components/Login') 通过import来实现懒加载 ...
分类:其他好文   时间:2018-10-09 11:43:04    阅读次数:162
vuex应用实例-this.$store.commit()触发
新建文件夹store,store下: action.js getter.js mutation-types.js mutations.js index.js 头部公共组件components文件夹下 v-header.vue v-title.vue App.vue main.js 页面调用index ...
分类:其他好文   时间:2018-10-08 14:02:54    阅读次数:4328
[React] {svg, css module, sass} support in Create React App 2.0
create-react-app version 2.0 added a lot of new features. One of the new features is added the svgr webpack loader to wrap SVGs in React components as ...
分类:移动开发   时间:2018-10-05 10:50:58    阅读次数:213
create-react-app脚手架的安装和目录结构介绍
1.对脚手架的初步了解 编程领域中的“脚手架”指的是能够快速搭建项目“骨架”的一类工具,例如大多数的React项目都有src,public,webpack配置文件等等,而src目录中又包含components目录等等。每次在新建项目时,手动创建这些固定的文件目录。脚手架的作用就是帮助你完成这些重复性 ...
分类:移动开发   时间:2018-10-01 17:13:48    阅读次数:1682
Vue 温故而知新 props如何双向属性绑定
传送门:https://vuejs.org/v2/guide/components-custom-events.html#sync-Modifier https://segmentfault.com/q/1010000012055834/a-1020000012055960 1、最单纯的做法:事件回 ...
分类:其他好文   时间:2018-09-28 22:39:48    阅读次数:238
1669条   上一页 1 ... 47 48 49 50 51 ... 167 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!