vue
Marchanges
这个作者很懒,什么都没留下…
展开
-
Vue.js中data,props和computed数据
阿斯蒂芬原创 2017-08-08 15:13:03 · 21154 阅读 · 0 评论 -
[Vue warn]: Failed to mount component: template or render function not defined. (found in root insta
在开始一个新的项目的时候报了个错 [Vue warn]: Failed to mount component: template or render function not defined. (found in root instanew Vue({ el: '#app', router, template: '', components: { App }})我原创 2017-08-09 10:29:42 · 3622 阅读 · 0 评论 -
vue的mixins属性
首先先给出官网 https://vuejs.org/v2/guide/mixins.html今天在开发项目的时候要改变一个标签的属性,因为项目中有多个地方都要改(业务逻辑相同),所以就看有没办法只改变一个地方,把方法加进去,最后找官网就发现这个属性。下面是我的-mixin.js 文件import {mapGetters, mapMutations, mapActions} from '原创 2017-08-23 19:44:38 · 4975 阅读 · 0 评论 -
Vue里引入three.js
最近因为three.js的项目要用Vue.js 来重构,所以不太清楚在Vue里面怎么引入。找了很多方法都是一直报错,最后在Stack Overflow找到了。首先是下载包,直接用 npm install three --save 就行了。然后就是在component里面引入。<template> <div> <div id="cont...原创 2018-09-20 11:26:26 · 38798 阅读 · 8 评论