切换导航条
此项目
正在载入...
登录
朱兆平
/
vue_cli
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
小范
3 years ago
提交
29b09c340fd559e05086ef51f86a02ad03db4f62
1 个父辈
abb2432f
新增tab组件拖动功能
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
20 行增加
和
1 行删除
src/components/TabMenu/index.vue
static/nmmsVer.json
src/components/TabMenu/index.vue
查看文件 @
29b09c3
...
...
@@ -31,6 +31,7 @@
<script>
import Assembly from "@/views/bus/Assembly";
import Sortable from "sortablejs"
export default {
name: 'TabMenu',
...
...
@@ -83,9 +84,27 @@
}
},
// changeView(val){
// if(val == 'table') {this.rowDrop()}
// this.initTab()
// },
rowDrop() {
const el= document.querySelector('.el-tabs__nav');
const _this = this;
Sortable.create(el, {
onEnd({ newIndex, oldIndex }) {
const currRow = _this.$store.state.openTab.splice(oldIndex, 1)[0]
_this.$store.state.openTab.splice(newIndex, 0, currRow)
}
})
},
},
mounted() {
this.initTab();
this.$nextTick(function () {
this.rowDrop(); //行拖拽效果
})
},
watch:{
'$route'(to,from){
...
...
static/nmmsVer.json
查看文件 @
29b09c3
{
"nmmsVer"
:
"1.1
4
"
"nmmsVer"
:
"1.1
5
"
}
...
...
请
注册
或
登录
后发表评论