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:
14
14
type =" tree"
15
15
:zoomable =" true"
16
16
:radius =" 4"
17
+ :duration =" 10"
17
18
></tree >
18
19
</div >
19
20
</template >
@@ -36,7 +37,8 @@ export default {
36
37
},
37
38
data () {
38
39
return {
39
- tree: null
40
+ tree: null ,
41
+ treeKey: ' key'
40
42
}
41
43
},
42
44
methods: {
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ Description:
22
22
23
23
<script >
24
24
import { mapState } from ' vuex'
25
- import { breadthFirstSearch } from ' ../../utils/search.util'
25
+ // import { breadthFirstSearch } from '../../utils/search.util'
26
26
27
27
export default {
28
28
data () {
Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ const mutations = {
261
261
[ types . COPY_ACTIVE_COMPONENT ] : ( state , payload ) => {
262
262
// copy activeComponentObj and place in the state but without children
263
263
const copy = { ...state . activeComponentObj } ;
264
- copy . componentName ;
264
+ // copy.componentName;
265
265
copy . children = [ ] ;
266
266
copy . isActive = false ;
267
267
state . copiedComponent = copy ;
@@ -278,7 +278,7 @@ const mutations = {
278
278
copiedComponent . y += 20 ;
279
279
const pastedComponent = { ...copiedComponent }
280
280
state . componentMap [ pastedComponent . componentName += ` (${ state . copyNumber } )` ] = pastedComponent ;
281
-
281
+
282
282
// increment copyNumber
283
283
state . copyNumber += 1 ;
284
284
// track for pastedComponent
You can’t perform that action at this time.
0 commit comments