mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-13 09:41:57 +00:00
Merge branch fix/wrong-proptype into release/1.0.0
Title: fix: remove wrong propType match 处理 propType 不当支持问题 Link: https://code.aone.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/codereview/3930158
This commit is contained in:
commit
3c871e7c38
@ -46,25 +46,6 @@ function propTypeToSetter(propType: PropType): SetterType {
|
||||
isRequired,
|
||||
initialValue: '',
|
||||
};
|
||||
case 'Json':
|
||||
return {
|
||||
componentName: 'JsonSetter',
|
||||
isRequired,
|
||||
initialValue: '',
|
||||
};
|
||||
case 'color':
|
||||
return {
|
||||
componentName: 'ColorSetter',
|
||||
isRequired,
|
||||
initialValue: '',
|
||||
};
|
||||
|
||||
case 'icon':
|
||||
return {
|
||||
componentName: 'IconSetter',
|
||||
isRequired,
|
||||
initialValue: '',
|
||||
};
|
||||
case 'number':
|
||||
return {
|
||||
componentName: 'NumberSetter',
|
||||
@ -77,14 +58,6 @@ function propTypeToSetter(propType: PropType): SetterType {
|
||||
isRequired,
|
||||
initialValue: false,
|
||||
};
|
||||
case 'JSExpression':
|
||||
return {
|
||||
componentName: 'ExpressionSetter',
|
||||
initialValue: {
|
||||
type: 'JSExpression',
|
||||
value: '',
|
||||
},
|
||||
};
|
||||
case 'oneOf':
|
||||
const dataSource = ((propType as OneOf).value || []).map((value, index) => {
|
||||
const t = typeof value;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user