Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b137622

Browse files
fix: updated map chart options,examples url
1 parent 1f41ce7 commit b137622

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

‎client/packages/lowcoder-comps/src/comps/chartComp/chartConfigs/chartUrls.tsx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ const echartsUrlLocale = language === "zh" ? "zh" : "en";
44
export const optionUrl = `https://echarts.apache.org/${echartsUrlLocale}/option.html`;
55
export const examplesUrl = `https://echarts.apache.org/examples/${echartsUrlLocale}/index.html`;
66
export const xAxisTypeUrl = `${optionUrl}#xAxis.type`;
7-
export const googleMapsApiUrl = `https://maps.googleapis.com/maps/api/js`;
7+
export const googleMapsApiUrl = `https://maps.googleapis.com/maps/api/js`;
8+
export const mapOptionUrl = `https://github.com/plainheart/echarts-extension-gmap`;
9+
export const mapExamplesUrl = `https://codepen.io/plainheart/pen/VweLGbR`;

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
controlItem,
1313
} from "lowcoder-sdk";
1414
import { trans } from "i18n/comps";
15-
import { examplesUrl, optionUrl } from "./chartConfigs/chartUrls";
15+
import { examplesUrl, mapExamplesUrl,mapOptionUrl,optionUrl } from "./chartConfigs/chartUrls";
1616

1717
export function chartPropertyView(
1818
children: ChartCompChildrenType,
@@ -175,12 +175,12 @@ export function chartPropertyView(
175175
styleName: "higher",
176176
tooltip: (
177177
<div>
178-
<a href={optionUrl} target="_blank" rel="noopener noreferrer">
179-
{trans("chart.echartsOptionTooltip")}
178+
<a href={mapOptionUrl} target="_blank" rel="noopener noreferrer">
179+
{trans("chart.echartsMapOptionTooltip")}
180180
</a>
181181
<br />
182-
<a href={examplesUrl} target="_blank" rel="noopener noreferrer">
183-
{trans("chart.echartsOptionExamples")}
182+
<a href={mapExamplesUrl} target="_blank" rel="noopener noreferrer">
183+
{trans("chart.echartsMapOptionExamples")}
184184
</a>
185185
</div>
186186
),

‎client/packages/lowcoder-comps/src/i18n/comps/locales/en.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ export const en = {
5757
echartsOptionLabel: "Option",
5858
echartsOptionTooltip: "ECharts option",
5959
echartsOptionExamples: "ECharts examples",
60+
echartsMapOptionTooltip: "ECharts Map Option",
61+
echartsMapOptionExamples: "ECharts Map Examples",
6062
selectDesc: "Triggered when the user selects part of the data in the chart",
6163
unselectDesc: "Triggered when the user unselects part of the data in the chart",
6264
selectedPointsDesc: "Selected points",

‎client/packages/lowcoder-comps/src/i18n/comps/locales/zh.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ export const zh = {
5656
echartsOptionLabel: "选项",
5757
echartsOptionTooltip: "ECharts选项",
5858
echartsOptionExamples: "ECharts示例",
59+
echartsMapOptionTooltip: "ECharts地图选项",
60+
echartsMapOptionExamples: "ECharts地图示例",
5961
selectDesc: "当用户选择图表中的部分数据时触发",
6062
unselectDesc: "当用户取消选择图表中的部分数据时触发",
6163
selectedPointsDesc: "已选中的数据点",

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /