难受就摸头盖骨
摘要: 解释:集中响应式数据管理,一处修改多处使用,主要应用于大中型项目。 安装: 第一:index.js:(注册store仓库) npm install vuex -D // 下载vuex import Vue from 'vue'; import vuex from 'vuex' // 全局引入 Vue.use(vuex) // 全局注册 import ac... 阅读全文
posted @ 2019-04-26 21:26 longpanda_怪怪哉 阅读(379) 评论(0) 推荐(0) 编辑
摘要: { title: '开始时间', key: 'planDateFrom', minWidth: 120, sortable: true, align: 'center', render: (h, params) => { return h('DatePicker', { props: { ... 阅读全文
posted @ 2019-04-26 21:18 longpanda_怪怪哉 阅读(1280) 评论(0) 推荐(0) 编辑
摘要: .class名 .ivu-input-group-prepend{ background:rgba(255,255,255,0); color: #fff; } 阅读全文
posted @ 2018-10-10 15:49 longpanda_怪怪哉 阅读(1212) 评论(0) 推荐(0) 编辑
摘要: .ivu-table-fixed{ box-shadow:0 0 0 #fff; }注:最好前面再嵌套一个自定义类,否则会污染到全局的样式 阅读全文
posted @ 2018-10-10 15:48 longpanda_怪怪哉 阅读(937) 评论(0) 推荐(0) 编辑
摘要: 场景:A首页、B列表页、C详情页B >C 缓存‘列表1’详情的数据A >C 读取‘列表1’详情的数据B >C (希望清除‘列表1’的缓存,变成缓存‘列表2’详情的数据) A >C 问题出现了,读取的竟然还是‘列表1’的缓存数据。 router.js 1 { meta:{ keepAlive:true 阅读全文
posted @ 2018-09-19 16:28 longpanda_怪怪哉 阅读(4803) 评论(0) 推荐(0) 编辑
摘要: git冲突处理 (场景:A和B修改相同的文件,A先提交到远程仓库,然后B提交push报错,远程仓库有更改,git自动合并失败,需要手动合并 git冲突处理 (场景:A和B修改相同的文件,A先提交到远程仓库,然后B提交push报错,远程仓库有更改,git自动合并失败,需要手动合并 提示错误:Autom 阅读全文
posted @ 2018-09-07 12:06 longpanda_怪怪哉 阅读(2747) 评论(0) 推荐(0) 编辑
摘要: //父组件<template> <Button @click='openChild'><Button> <child-modal :modalStatus="Status" @parentClick='click'></child-modal> //其次,父的自定义事件parenClick被触发</ 阅读全文
posted @ 2018-09-06 18:32 longpanda_怪怪哉 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 渲染proptip组件 columns: [{ title: '产品图', key: 'pic', sortable: true, render: function(h, para){ return h('div', [ h('Button', [ h('Poptip', { props: { co 阅读全文
posted @ 2018-09-05 18:29 longpanda_怪怪哉 阅读(543) 评论(0) 推荐(0) 编辑
摘要: 相信很多使用iview的朋友,在用到table,都会遇到需要使用selection的场景,但是总会有那么一个产品汪,觉得iview的单选效果不好,非要用selection的来做单选,那么下面这个方法就能解决这个问题:{ title: '选中', align:'center', key: 'check 阅读全文
posted @ 2018-09-05 18:28 longpanda_怪怪哉 阅读(10840) 评论(0) 推荐(2) 编辑
摘要: 动态渲染menu时,如果需要active-name,那么name只能绑定index,动态渲染的数组初始必须有一个空对象。否则无法使用active-name属性。注:仅限3.0版本,不排除新版本修复的可能! 阅读全文
posted @ 2018-09-05 18:17 longpanda_怪怪哉 阅读(4259) 评论(0) 推荐(1) 编辑
下定决心了,要把写不出代码就摸后脑勺的习惯给改了! 如果可以~单身待解救~~