mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-19 14:04:28 +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,
|
isRequired,
|
||||||
initialValue: '',
|
initialValue: '',
|
||||||
};
|
};
|
||||||
case 'Json':
|
|
||||||
return {
|
|
||||||
componentName: 'JsonSetter',
|
|
||||||
isRequired,
|
|
||||||
initialValue: '',
|
|
||||||
};
|
|
||||||
case 'color':
|
|
||||||
return {
|
|
||||||
componentName: 'ColorSetter',
|
|
||||||
isRequired,
|
|
||||||
initialValue: '',
|
|
||||||
};
|
|
||||||
|
|
||||||
case 'icon':
|
|
||||||
return {
|
|
||||||
componentName: 'IconSetter',
|
|
||||||
isRequired,
|
|
||||||
initialValue: '',
|
|
||||||
};
|
|
||||||
case 'number':
|
case 'number':
|
||||||
return {
|
return {
|
||||||
componentName: 'NumberSetter',
|
componentName: 'NumberSetter',
|
||||||
@ -77,14 +58,6 @@ function propTypeToSetter(propType: PropType): SetterType {
|
|||||||
isRequired,
|
isRequired,
|
||||||
initialValue: false,
|
initialValue: false,
|
||||||
};
|
};
|
||||||
case 'JSExpression':
|
|
||||||
return {
|
|
||||||
componentName: 'ExpressionSetter',
|
|
||||||
initialValue: {
|
|
||||||
type: 'JSExpression',
|
|
||||||
value: '',
|
|
||||||
},
|
|
||||||
};
|
|
||||||
case 'oneOf':
|
case 'oneOf':
|
||||||
const dataSource = ((propType as OneOf).value || []).map((value, index) => {
|
const dataSource = ((propType as OneOf).value || []).map((value, index) => {
|
||||||
const t = typeof value;
|
const t = typeof value;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user