mirror of
https://github.com/dataease/dataease.git
synced 2026-05-16 05:50:45 +08:00
fix(仪表板、数据大屏): 修复新加tab可能无法拖动问题
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user