mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-05 09:47:20 +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,
|
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