|
@@ -134,6 +134,7 @@ const widgetVariableConfigMap: WidgetVariableConfigMap = {
|
|
|
'props.value': { type: 'int32_t' },
|
|
'props.value': { type: 'int32_t' },
|
|
|
'props.animationTime': { type: 'uint32_t' },
|
|
'props.animationTime': { type: 'uint32_t' },
|
|
|
'props.animation': { type: 'bool' },
|
|
'props.animation': { type: 'bool' },
|
|
|
|
|
+ 'props.startanimation': { type: 'bool' },
|
|
|
'props.mode': { type: 'enum', enumMap: barModeEnumMap },
|
|
'props.mode': { type: 'enum', enumMap: barModeEnumMap },
|
|
|
'props.startValue': { type: 'int32_t' }
|
|
'props.startValue': { type: 'int32_t' }
|
|
|
},
|
|
},
|
|
@@ -142,6 +143,9 @@ const widgetVariableConfigMap: WidgetVariableConfigMap = {
|
|
|
'props.min': { type: 'int32_t' },
|
|
'props.min': { type: 'int32_t' },
|
|
|
'props.max': { type: 'int32_t' },
|
|
'props.max': { type: 'int32_t' },
|
|
|
'props.value': { type: 'int32_t' },
|
|
'props.value': { type: 'int32_t' },
|
|
|
|
|
+ 'props.animationTime': { type: 'uint32_t' },
|
|
|
|
|
+ 'props.animation': { type: 'bool' },
|
|
|
|
|
+ 'props.startanimation': { type: 'bool' },
|
|
|
'props.mode': { type: 'enum', enumMap: barModeEnumMap },
|
|
'props.mode': { type: 'enum', enumMap: barModeEnumMap },
|
|
|
'props.startValue': { type: 'int32_t' }
|
|
'props.startValue': { type: 'int32_t' }
|
|
|
},
|
|
},
|
|
@@ -316,7 +320,9 @@ const withVariableConfig = (
|
|
|
return nextSchema
|
|
return nextSchema
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export const enhanceWidgetVariableConfig = (widget: IComponentModelConfig): IComponentModelConfig => {
|
|
|
|
|
|
|
+export const enhanceWidgetVariableConfig = (
|
|
|
|
|
+ widget: IComponentModelConfig
|
|
|
|
|
+): IComponentModelConfig => {
|
|
|
const configMap = {
|
|
const configMap = {
|
|
|
...commonWidgetVariableConfig,
|
|
...commonWidgetVariableConfig,
|
|
|
...(widgetVariableConfigMap[widget.key] || {})
|
|
...(widgetVariableConfigMap[widget.key] || {})
|