Skip to content

Commit 433cf67

Browse files
committed
unused code removed
1 parent c102b59 commit 433cf67

File tree

2 files changed

+1
-66
lines changed

2 files changed

+1
-66
lines changed

client/packages/lowcoder-comps/src/comps/chartComp/chartConstants.tsx

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,6 @@ export const ChartTypeOptions = [
5252
},
5353
] as const;
5454

55-
export const EchartsTypeOptions = [
56-
{
57-
label: trans("chart.funnel"),
58-
value: "funnel",
59-
},
60-
{
61-
label: trans("chart.gauge"),
62-
value: "gauge",
63-
},
64-
] as const;
65-
6655
export const UIEventOptions = [
6756
{
6857
label: trans("chart.select"),

client/packages/lowcoder-comps/src/comps/chartComp/chartPropertyView.tsx

Lines changed: 1 addition & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { changeChildAction, CompAction } from "lowcoder-core";
2-
import { ChartCompChildrenType, ChartTypeOptions, EchartsTypeOptions,getDataKeys } from "./chartConstants";
2+
import { ChartCompChildrenType, ChartTypeOptions,getDataKeys } from "./chartConstants";
33
import { newSeries } from "./seriesComp";
44
import {
55
CustomModal,
@@ -134,60 +134,6 @@ export function chartPropertyView(
134134

135135
const jsonModePropertyView = (
136136
<>
137-
<Section name={trans("chart.config")}>
138-
{children.echartsOption.propertyView({
139-
label: trans("chart.echartsOptionLabel"),
140-
styleName: "higher",
141-
tooltip: (
142-
<div>
143-
<a href={optionUrl} target="_blank" rel="noopener noreferrer">
144-
{trans("chart.echartsOptionTooltip")}
145-
</a>
146-
<br />
147-
<a href={examplesUrl} target="_blank" rel="noopener noreferrer">
148-
{trans("chart.echartsOptionExamples")}
149-
</a>
150-
</div>
151-
),
152-
})}
153-
<Dropdown
154-
value={children.echartsConfig.children.compType.getView()}
155-
options={EchartsTypeOptions}
156-
label={trans("chart.chartType")}
157-
onChange={(value) => {
158-
// keep the previous value
159-
if (children.echartsConfig.children.comp.children.hasOwnProperty("showLabel")) {
160-
children.echartsConfig.dispatchChangeValueAction({
161-
compType: value as any,
162-
comp: {
163-
showLabel: (
164-
children.echartsConfig.children.comp.children as any
165-
).showLabel.toJsonValue(),
166-
},
167-
});
168-
} else {
169-
children.echartsConfig.dispatchChangeValueAction({
170-
compType: value,
171-
});
172-
}
173-
}}
174-
/>
175-
{children.echartsConfig.children.compType.getView() === "funnel" &&
176-
<>
177-
{children.echartsLegendConfig.getPropertyView()}
178-
{children.echartsLabelConfig.getPropertyView()}
179-
</>}
180-
{children.echartsTitle.propertyView({ label: trans("echarts.title") })}
181-
{children.tooltip.propertyView({label: trans("echarts.tooltip")})}
182-
{children.legendVisibility.propertyView({label: trans("echarts.legendVisibility")})}
183-
</Section>
184-
<Section name={sectionNames.interaction}>
185-
{children.onEvent.propertyView()}
186-
</Section>
187-
<Section name={sectionNames.style}>
188-
{children.style.getPropertyView()}
189-
</Section>
190-
<Section name={sectionNames.layout}>{hiddenPropertyView(children)}</Section>
191137
</>
192138
);
193139

0 commit comments

Comments
 (0)