Skip to content

Commit

Permalink
Fixed compatibility with previous versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Imiss-U1025 committed Dec 23, 2024
1 parent 6556dfc commit f86c8ec
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion client/packages/lowcoder-comps/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lowcoder-comps",
"version": "2.5.3",
"version": "2.5.4",
"type": "module",
"license": "MIT",
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import {
uiChildren,
clickEvent,
styleControl,
EchartsStyle,
EchartDefaultChartStyle,
EchartDefaultTextStyle
} from "lowcoder-sdk";
Expand Down Expand Up @@ -279,7 +278,7 @@ let chartJsonModeChildren: any = {
opacity:withDefault(NumberControl,trans('funnelChart.defaultOpacity'))
}

if (EchartsStyle) {
if (EchartDefaultChartStyle && EchartDefaultTextStyle) {
chartJsonModeChildren = {
...chartJsonModeChildren,
chartStyle: styleControl(EchartDefaultChartStyle, 'chartStyle'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import {
uiChildren,
clickEvent,
styleControl,
EchartsStyle,
EchartDefaultChartStyle,
EchartDefaultTextStyle
} from "lowcoder-sdk";
Expand Down Expand Up @@ -281,7 +280,7 @@ let chartJsonModeChildren: any = {
progressBarWidth:withDefault(NumberControl,trans('gaugeChart.defaultProgressBarWidth')),

}
if (EchartsStyle) {
if (EchartDefaultChartStyle && EchartDefaultTextStyle) {
chartJsonModeChildren = {
...chartJsonModeChildren,
chartStyle: styleControl(EchartDefaultChartStyle, 'chartStyle'),
Expand Down

0 comments on commit f86c8ec

Please sign in to comment.