mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-17 11:13:50 +00:00
fix: 适配vs-style,vs-select
This commit is contained in:
parent
55a9e26d1a
commit
a69c1e427f
@ -178,6 +178,9 @@ export default function (metadata: TransformedComponentMetadata): TransformedCom
|
|||||||
name: 'style',
|
name: 'style',
|
||||||
title: { type: 'i18n', 'zh-CN': '行内样式', 'en-US': 'Style' },
|
title: { type: 'i18n', 'zh-CN': '行内样式', 'en-US': 'Style' },
|
||||||
setter: 'StyleSetter',
|
setter: 'StyleSetter',
|
||||||
|
extraProps: {
|
||||||
|
display: 'block',
|
||||||
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (stylesGroup.length > 0) {
|
if (stylesGroup.length > 0) {
|
||||||
|
|||||||
@ -69,7 +69,7 @@ function propTypeToSetter(propType: PropType): SetterType {
|
|||||||
const componentName = dataSource.length >= 4 ? 'SelectSetter' : 'RadioGroupSetter';
|
const componentName = dataSource.length >= 4 ? 'SelectSetter' : 'RadioGroupSetter';
|
||||||
return {
|
return {
|
||||||
componentName,
|
componentName,
|
||||||
props: { dataSource },
|
props: { dataSource, options: dataSource },
|
||||||
isRequired,
|
isRequired,
|
||||||
initialValue: dataSource[0] ? dataSource[0].value : null,
|
initialValue: dataSource[0] ? dataSource[0].value : null,
|
||||||
};
|
};
|
||||||
@ -139,6 +139,11 @@ function propTypeToSetter(propType: PropType): SetterType {
|
|||||||
componentName: 'FunctionSetter',
|
componentName: 'FunctionSetter',
|
||||||
isRequired,
|
isRequired,
|
||||||
};
|
};
|
||||||
|
case 'color':
|
||||||
|
return {
|
||||||
|
componentName: 'ColorSetter',
|
||||||
|
isRequired,
|
||||||
|
};
|
||||||
case 'oneOfType':
|
case 'oneOfType':
|
||||||
return {
|
return {
|
||||||
componentName: 'MixedSetter',
|
componentName: 'MixedSetter',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user