Commit 2ad0aa92 authored by rockyl's avatar rockyl

修改滚动列表列数的属性为行列数

parent eb39753c
...@@ -417,8 +417,8 @@ export default { ...@@ -417,8 +417,8 @@ export default {
type: 'inputNumber', type: 'inputNumber',
value: 0, value: 0,
}, },
itemCol: { cols: {
title: '列数', title: '列数',
type: 'inputNumber', type: 'inputNumber',
value: 1, value: 1,
}, },
......
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
:allow-drop="allowDrop" :allow-drop="allowDrop"
:filter-node-method="filterNodeMethod" :filter-node-method="filterNodeMethod"
@node-click="handleNodeClick" @node-click="handleNodeClick"
@node-drop="onNodeDrop"
> >
<div slot-scope="{ node, data }" class="tree-node"> <div slot-scope="{ node, data }" class="tree-node">
<div class="node-name"> <div class="node-name">
...@@ -209,6 +210,9 @@ ...@@ -209,6 +210,9 @@
return dropNode.parent.parent || type === 'inner'; return dropNode.parent.parent || type === 'inner';
} }
}, },
onNodeDrop(){
this.makeProjectDirty();
},
/** /**
* 点击左侧视图列表 * 点击左侧视图列表
*/ */
...@@ -299,7 +303,7 @@ ...@@ -299,7 +303,7 @@
break; break;
} }
}, },
...mapMutations(['copyNode', 'pasteNode', 'deleteNode', 'addNode']), ...mapMutations(['copyNode', 'pasteNode', 'deleteNode', 'addNode', 'makeProjectDirty']),
...mapActions(['exportView', 'importView', 'importPsd']) ...mapActions(['exportView', 'importView', 'importPsd'])
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment