上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 20 下一页
摘要: <template> <div> <div class="risk-tab-top"> <div class="risk-tab-cont" @click="tabChange(index)" v-for="(item,index) in tabList " :class="[activeIndex 阅读全文
posted @ 2020-02-17 16:07 影思密达ing 阅读(3629) 评论(0) 推荐(0)
摘要: 原因: 解决方法:1.在computed中添加get和set 2.将v-model改成:value 阅读全文
posted @ 2020-01-07 14:27 影思密达ing 阅读(763) 评论(1) 推荐(1)
摘要: vue组件 <transition name="carHistory"> <car-History-Line v-show="showHistoryLine" @closeHitsory='closeHitsory'></car-History-Line> </transition> css .ca 阅读全文
posted @ 2019-12-18 13:35 影思密达ing 阅读(3554) 评论(0) 推荐(1)
摘要: index.vue main.js utils/directive/index export default { cdirective(el, data, vnode) { el.style['color'] = data.value; }, cfont(el, data, vnode) { el. 阅读全文
posted @ 2019-12-13 15:05 影思密达ing 阅读(1245) 评论(0) 推荐(0)
摘要: 将回调延迟到下次 DOM 更新循环之后执行。在修改数据之后立即使用它,然后等待 DOM 更新。它跟全局方法 Vue.nextTick 一样,不同的是回调的 this 自动绑定到调用它的实例上。 场景解释: <template> <div> <input id="keywords" v-show="b 阅读全文
posted @ 2019-12-13 11:17 影思密达ing 阅读(934) 评论(0) 推荐(0)
摘要: <template> <div> list1Son <div class="ck-cont"> <div class="ck-cont-t0"> <div v-for="(navItem,index) in nav" :key="index" class="ck-cont-t" @click="na 阅读全文
posted @ 2019-12-12 15:18 影思密达ing 阅读(508) 评论(0) 推荐(0)
摘要: 一、props / $emit 没什么说的,vue官网就够了,easy,没有所谓的奇淫技巧 二、 $children / $parent this.$parent为父组件的实例对象,this.$children为子组件的实例对象 奇淫技巧: 1>当一个组件内有多个子组件或者一个子组件的父级有多个兄弟 阅读全文
posted @ 2019-12-11 10:37 影思密达ing 阅读(466) 评论(0) 推荐(0)
摘要: 先来目录层级 store/index import Vue from 'vue' import Vuex from 'vuex' import moduleA from './module/a' import moduleB from './module/b' Vue.use(Vuex) const 阅读全文
posted @ 2019-12-10 11:15 影思密达ing 阅读(367) 评论(0) 推荐(0)
摘要: vue data里的数据 listThematicChecked: [], subjectList: [ { menu: '辖区态势图', img: '/static/images/icon-tuli/tuli_xiaqutaishitu_icon.png', isCheck: false, fou 阅读全文
posted @ 2019-12-03 09:13 影思密达ing 阅读(6131) 评论(0) 推荐(0)
摘要: 可以看出来DOM结构 最主要的为 阅读全文
posted @ 2019-11-22 16:54 影思密达ing 阅读(2842) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 20 下一页