fix(仪表板、数据大屏): 修复新加tab可能无法拖动问题

This commit is contained in:
wangjiahao
2025-02-26 17:38:38 +08:00
committed by 王嘉豪
parent 3dca69d0f2
commit 07ab3085b3

View File

@@ -64,6 +64,10 @@ export function findNewComponent(componentName, innerType, staticMap?) {
componentList.forEach(comp => {
if (comp.component === componentName || comp.component === innerType) {
newComponent = cloneDeep(comp)
if (newComponent.component === 'DeTabs') {
newComponent.propValue[0].name = guid()
newComponent['titleBackground'] = deepCopy(COMMON_TAB_TITLE_BACKGROUND)
}
newComponent.innerType = innerType
if (newComponent.innerType === 'richText') {
newComponent.propValue = {