mirror of
https://github.com/dataease/dataease.git
synced 2026-05-24 06:18:10 +08:00
feat(仪表板、数据大屏): 图片组件支持绑定数据集
This commit is contained in:
@@ -61,6 +61,9 @@ export function findNewComponent(componentName, innerType, staticMap?) {
|
||||
textValue: ''
|
||||
}
|
||||
}
|
||||
if (newComponent.innerType === 'Picture') {
|
||||
newComponent.style['adaptation'] = 'adaptation'
|
||||
}
|
||||
if (dvMainStore.curOriginThemes === 'light') {
|
||||
newComponent['commonBackground'] = cloneDeep(COMMON_COMPONENT_BACKGROUND_LIGHT)
|
||||
} else {
|
||||
|
||||
@@ -78,3 +78,11 @@ export const componentsMap = {
|
||||
export default function findComponent(key) {
|
||||
return componentsMap[key]
|
||||
}
|
||||
|
||||
export function findComponentAttr(component) {
|
||||
const key =
|
||||
component.component === 'UserView' && component.innerType === 'Picture'
|
||||
? 'PictureAttr'
|
||||
: component.component + 'Attr'
|
||||
return componentsMap[key]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user