会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Stitchhhhh
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
2022年4月21日
vue实现内容拖拽,刷新页面后保持拖拽后的样式
摘要: 插件文档:https://www.itxst.com/sortablejs/neuinffi.html 本来想直接存innerHTML的,但是发现点击事件会失效 npm安装方式 下载:npm install sortablejs --save 页面引入:import Sortable from 's
阅读全文
posted @ 2022-04-21 16:50 Stitchhhhh
阅读(312)
评论(0)
推荐(0)
2022年4月19日
el-form表单v-if判断太多导致值未成功反显
摘要: 应该给el-form-item加key
阅读全文
posted @ 2022-04-19 17:53 Stitchhhhh
阅读(108)
评论(0)
推荐(0)
2022年4月15日
el-tbale实现翻页多选保留其他页的选项
摘要: multipleSelections: [],//当前页选择项 selectItem: [],//返回数据对比当前页数据的结果 multipleList: []//实际选择项 // 确认按钮,返回最后的结果 getMulRows() { const list = [] this.multipleLi
阅读全文
posted @ 2022-04-15 10:07 Stitchhhhh
阅读(241)
评论(0)
推荐(0)
table加横向滚动条并修改滚动条样式
摘要: 需要在table外加一个div(注:修改滚动条样式的内容不支持ie) .unifiedContractTextBox { width: 100%; overflow-x: auto; table{ width: 100%; border-collapse: collapse; td{ line-he
阅读全文
posted @ 2022-04-15 09:59 Stitchhhhh
阅读(947)
评论(0)
推荐(0)
使用Vuex 报错 unknown action type:XXX
摘要: 在组件里面调用 actions 下面的方法,一直报错,未知的操作类型,可以自己在store 里面明明定义了嘛。费解。。。。 //this.$store.commit()触发 >mutaions //this.$store.dispatch()触发 >actions 我原来是这样写的 this.$st
阅读全文
posted @ 2022-04-15 09:51 Stitchhhhh
阅读(1154)
评论(0)
推荐(0)
2022年3月30日
css选择器
摘要: 1、群组选择器(',') /* 表示既h1,又h2 */ h1, h2 { color: red; } 2、后代选择器(空格) /* 表示 h1 下面的所有 span 元素,不管是否以 h1 为直接父元素 */ h1 span {} 3、子元素选择器('>') 选择直接子元素 /* 表示 h1 下面
阅读全文
posted @ 2022-03-30 14:14 Stitchhhhh
阅读(38)
评论(0)
推荐(0)
2022年3月22日
vue axios 封装请求,用户过期时及时中断后续请求
摘要: 1.使用vuex全局变量存取const store = new Vuex.Store ({ state: { axiosCancelArr: [] }, mutations: { PUSH_CANCEL(state, cancel) { state.axiosCancelArr.push(cance
阅读全文
posted @ 2022-03-22 17:58 Stitchhhhh
阅读(553)
评论(0)
推荐(0)
2022年2月15日
el-select + el-tree选择(包含模糊查询功能)
摘要: 本文内容是我自己写的简单封装,如需功能齐全的可以自己补充或者使用其它现有的组件库:vue-treeselect <div class="menuSearch"> <el-select class="el-select-menu" ref="selectTree" v-model="filterMen
阅读全文
posted @ 2022-02-15 11:47 Stitchhhhh
阅读(1326)
评论(0)
推荐(0)
防止路由重复跳转报错
摘要: 1、在 router 文件夹下里面的文件index.js里面找到如下位置 Vue.use(VueRouter) const router = new VueRouter({ mode: 'history', routes }) // 防止重复跳转 const VueRouterPush = VueR
阅读全文
posted @ 2022-02-15 11:40 Stitchhhhh
阅读(166)
评论(0)
推荐(0)
2022年2月8日
让CSS flex布局最后一行列表左对齐的N种方法
摘要: 一、让CSS flex布局最后一行列表左对齐的N种方法(点击连接)
阅读全文
posted @ 2022-02-08 11:24 Stitchhhhh
阅读(89)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
公告