mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-13 09:41:57 +00:00
fix: remove wrong propType match
This commit is contained in:
parent
0d7c02b2ba
commit
73e69fa1bb
@ -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