码迷,mamicode.com
首页 >  
搜索关键字:vue2    ( 977个结果
vue2.x插槽应用总结
1 <template> 2 <div class="slot-test"> 3 <!-- vue插槽应用总结: --> 4 5 <!-- 1. 具名插槽:给插槽添加一个name属性; --> 6 7 <!-- eg1: --> 8 <!-- 子组件: --> 9 <div class="conta ...
分类:其他好文   时间:2021-04-29 11:40:50    阅读次数:0
VSCode编辑器在开发时使用的一些插件记录
插件 Code Runner 代码一键运行插件 Prettier - Code formatter 代码格式插件 (可设置保存就直接格式化) ***** Vue VSCode Snippets Vue2快速代码补全插件 ***** ...
分类:其他好文   时间:2021-04-26 13:17:53    阅读次数:0
json数据编辑器
1、安装依赖 npm install vue2-ace-editor 2、导入依赖,注册为子组件 import Editor from 'vue2-ace-editor' //在页面组件中通过components ,注册导入的组件 components:{ Editor } 3、组件使用 <edit ...
分类:Web程序   时间:2021-04-24 11:50:04    阅读次数:0
「Vue — 插件」日期时间选择vue2-datepicke
网址:https://www.npmjs.com/package/vue2-datepicker 实例:只能选择整点或者半点 npm install vue2-datepicker --save <date-picker :open.sync="open" v-model="BeginTimes" ...
分类:其他好文   时间:2021-03-18 13:59:13    阅读次数:0
跑马灯(广播消息轮播组件)
###基于vue2的垂直跑马灯(广播消息轮播组件) npm install vue-marquee new Vue({ el: 'body', data: function(){ return { listData: ['item1', 'item2', 'item3'] } }, componen ...
分类:其他好文   时间:2021-03-09 13:56:40    阅读次数:0
Vue3 CompositionAPI 组合式API 子组件向父组件传递数据(通信)
Vue3 CompositionAPI 组合式API 子组件向父组件传递数据(通信) 传递给 setup 函数的第二个参数是 context。context 是一个普通的 JavaScript 对象,它暴露三个组件的 property:attrs,slots和emits,其中emit就是Vue2中的 ...
分类:Windows程序   时间:2021-03-08 13:20:17    阅读次数:0
vue3 CompositionAPI
##CompositionAPI 起源 逻辑复用,是对vue2.0Mixin的优化,以函数的形式封装公共逻辑,它通过显式的返回一个对象,让开发人员能在组件中直接了解到被引入的字段 ###函数 setup(props,context){ // props 响应式,可用props.attrs获取到值,e ...
分类:Windows程序   时间:2021-03-06 14:20:00    阅读次数:0
vue ERROR in [copy-webpack-plugin] unable to locate ‘/xxx/xxxx‘ at ‘/xxx/xxxx‘
vue2的 npm run build 打包时报此错误log的情况下 拓展 https://www.cnblogs.com/leiting/p/8442214.html 1.检查报错路径下是否有报错所指的文件夹 2.没有的话 人工添加一个就OK 人工添加此文件 ...
分类:Web程序   时间:2021-02-26 13:10:46    阅读次数:0
Vue2.x Methods of use v-for
Introduction: It's a paper to reorganize the knowledge of List Rendering in Vue official guide. So a lot of content is from the Vue Official guide. Th ...
分类:其他好文   时间:2021-02-16 12:03:49    阅读次数:0
Vue2.x Class & Style Bindings
Intoduciton: The way of using '' in html part confused me when I was learning Class&Style Bindings in Vue's official guide.(of course it's also becaus ...
分类:其他好文   时间:2021-02-15 12:40:17    阅读次数:0
977条   上一页 1 2 3 4 ... 98 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!