perf:复制变量不继承折叠状态
This commit is contained in:
@@ -457,9 +457,10 @@ export default {
|
|||||||
copyVariable (item) {
|
copyVariable (item) {
|
||||||
const temp = JSON.parse(JSON.stringify(item))
|
const temp = JSON.parse(JSON.stringify(item))
|
||||||
temp.name = temp.name ? temp.name + '_copy' : ''
|
temp.name = temp.name ? temp.name + '_copy' : ''
|
||||||
|
temp.collapse = false
|
||||||
this.editPanel.param.variables.push(temp)
|
this.editPanel.param.variables.push(temp)
|
||||||
},
|
},
|
||||||
// 删除复制变量
|
// 删除变量
|
||||||
removeVariable (index) {
|
removeVariable (index) {
|
||||||
this.editPanel.param.variables.splice(index, 1)
|
this.editPanel.param.variables.splice(index, 1)
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user