mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-02-28 12:50:38 +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',
|
||||
title: { type: 'i18n', 'zh-CN': '行内样式', 'en-US': 'Style' },
|
||||
setter: 'StyleSetter',
|
||||
extraProps: {
|
||||
display: 'block',
|
||||
},
|
||||
});
|
||||
}
|
||||
if (stylesGroup.length > 0) {
|
||||
|
||||
@ -69,7 +69,7 @@ function propTypeToSetter(propType: PropType): SetterType {
|
||||
const componentName = dataSource.length >= 4 ? 'SelectSetter' : 'RadioGroupSetter';
|
||||
return {
|
||||
componentName,
|
||||
props: { dataSource },
|
||||
props: { dataSource, options: dataSource },
|
||||
isRequired,
|
||||
initialValue: dataSource[0] ? dataSource[0].value : null,
|
||||
};
|
||||
@ -139,6 +139,11 @@ function propTypeToSetter(propType: PropType): SetterType {
|
||||
componentName: 'FunctionSetter',
|
||||
isRequired,
|
||||
};
|
||||
case 'color':
|
||||
return {
|
||||
componentName: 'ColorSetter',
|
||||
isRequired,
|
||||
};
|
||||
case 'oneOfType':
|
||||
return {
|
||||
componentName: 'MixedSetter',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user