File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ Description:
1414 type =" tree"
1515 :zoomable =" true"
1616 :radius =" 4"
17+ :duration =" 10"
1718 ></tree >
1819 </div >
1920</template >
@@ -36,7 +37,8 @@ export default {
3637 },
3738 data () {
3839 return {
39- tree: null
40+ tree: null ,
41+ treeKey: ' key'
4042 }
4143 },
4244 methods: {
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ Description:
2222
2323<script >
2424import { mapState } from ' vuex'
25- import { breadthFirstSearch } from ' ../../utils/search.util'
25+ // import { breadthFirstSearch } from '../../utils/search.util'
2626
2727export default {
2828 data () {
Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ const mutations = {
261261 [ types . COPY_ACTIVE_COMPONENT ] : ( state , payload ) => {
262262 // copy activeComponentObj and place in the state but without children
263263 const copy = { ...state . activeComponentObj } ;
264- copy . componentName ;
264+ // copy.componentName;
265265 copy . children = [ ] ;
266266 copy . isActive = false ;
267267 state . copiedComponent = copy ;
@@ -278,7 +278,7 @@ const mutations = {
278278 copiedComponent . y += 20 ;
279279 const pastedComponent = { ...copiedComponent }
280280 state . componentMap [ pastedComponent . componentName += ` (${ state . copyNumber } )` ] = pastedComponent ;
281-
281+
282282 // increment copyNumber
283283 state . copyNumber += 1 ;
284284 // track for pastedComponent
You can’t perform that action at this time.
0 commit comments