Skip to content

Commit 9b5c600

Browse files
committed
themeriver chart config
1 parent af7f08d commit 9b5c600

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import {
2+
BoolControl,
3+
MultiCompBuilder,
4+
showLabelPropertyView,
5+
} from "lowcoder-sdk";
6+
import { ThemeRiverSeriesOption } from "echarts";
7+
import { trans } from "i18n/comps";
8+
9+
export const ThemeriverChartConfig = (function () {
10+
return new MultiCompBuilder(
11+
{
12+
showLabel: BoolControl,
13+
},
14+
(props): ThemeRiverSeriesOption => {
15+
const config: ThemeRiverSeriesOption = {
16+
type: "themeRiver",
17+
};
18+
return config;
19+
}
20+
)
21+
.setPropertyViewFn((children) => (
22+
<>
23+
{showLabelPropertyView(children)}
24+
{children.type.propertyView({
25+
label: trans("themeriverChart.themeriverType"),
26+
radioButton: true,
27+
})}
28+
</>
29+
))
30+
.build();
31+
})();

0 commit comments

Comments
 (0)