mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
perf: 优化层级展示, 优化失焦隐藏代码
This commit is contained in:
@@ -843,7 +843,8 @@ export const useChartEditStore = defineStore({
|
||||
)
|
||||
}
|
||||
this.updateComponentList(index, targetItem)
|
||||
this.setTargetSelectChart(undefined)
|
||||
// 锁定添加失焦效果
|
||||
if(status) this.setTargetSelectChart(undefined)
|
||||
loadingFinish()
|
||||
return
|
||||
}
|
||||
@@ -876,14 +877,10 @@ export const useChartEditStore = defineStore({
|
||||
)
|
||||
}
|
||||
this.updateComponentList(index, targetItem)
|
||||
this.setTargetSelectChart(undefined)
|
||||
loadingFinish()
|
||||
|
||||
// 取消选择隐藏
|
||||
if (status) {
|
||||
const chartEditStore = useChartEditStore()
|
||||
chartEditStore.setTargetSelectChart(undefined)
|
||||
}
|
||||
// 隐藏添加失焦效果
|
||||
if (status) this.setTargetSelectChart(undefined)
|
||||
}
|
||||
} catch (value) {
|
||||
loadingError()
|
||||
|
||||
Reference in New Issue
Block a user