Skip to content

Commit 94865b0

Browse files
tenglonghhhongtenglong
andauthored
fix:修改axislineWidth,以及各个图表中的RNViewBase (#31)
Signed-off-by: hongtenglong <hongtenglong1@h-partners.com> Co-authored-by: hongtenglong <hongtenglong1@h-partners.com>
1 parent ac51970 commit 94865b0

File tree

10 files changed

+1
-19
lines changed

10 files changed

+1
-19
lines changed

harmony/charts-wrapper/src/main/ets/AxisBase.ets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export const setAxis =
172172
}
173173

174174
//设置图表周围边框的宽度,单位为vp。 axisLineWidth
175-
if (xAxis instanceof XAxis && xAxis?.axisLineWidth != undefined) {
175+
if (axis instanceof XAxis && xAxis?.axisLineWidth != undefined) {
176176
axis?.setAxisLineWidth(xAxis?.axisLineWidth);
177177
} else if (yAxisLeft?.axisLineWidth != undefined && isyAxis === 'yAxisLeft') {
178178
axis?.setAxisLineWidth(yAxisLeft?.axisLineWidth);

harmony/charts-wrapper/src/main/ets/BarCharts.ets

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,8 @@ export struct BarCharts {
8989
}
9090

9191
build() {
92-
RNViewBase({ ctx: this.ctx, tag: this.tag }) {
9392
BarChart({
9493
model: this.model
9594
})
96-
}
9795
}
9896
}

harmony/charts-wrapper/src/main/ets/BubbleCharts.ets

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,8 @@ export struct BubbleCharts {
7070
}
7171

7272
build() {
73-
RNViewBase({ ctx: this.ctx, tag: this.tag }) {
7473
BubbleChart({
7574
model: this.model
7675
})
77-
}
7876
}
7977
}

harmony/charts-wrapper/src/main/ets/CandleStickCharts.ets

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,8 @@ export struct CandleStickCharts {
7676
}
7777

7878
build() {
79-
RNViewBase({ ctx: this.ctx, tag: this.tag }) {
8079
CandleStickChart({
8180
model: this.model
8281
})
83-
}
8482
}
8583
}

harmony/charts-wrapper/src/main/ets/CombinedCharts.ets

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,8 @@ export struct CombinedCharts {
110110
}
111111

112112
build() {
113-
RNViewBase({ ctx: this.ctx, tag: this.tag }) {
114113
CombinedChart({
115114
model: this.model
116115
})
117-
}
118116
}
119117
}

harmony/charts-wrapper/src/main/ets/HorizontalBarCharts.ets

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,8 @@ export struct HorizontalBarCharts {
7272
}
7373

7474
build() {
75-
RNViewBase({ ctx: this.ctx, tag: this.tag }) {
7675
HorizontalBarChart({
7776
model: this.model
7877
})
79-
}
8078
}
8179
}

harmony/charts-wrapper/src/main/ets/LineCharts.ets

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,8 @@ export struct LineCharts {
7171
}
7272

7373
build() {
74-
RNViewBase({ ctx: this.ctx, tag: this.tag }) {
7574
LineChart({
7675
model: this.model
7776
})
78-
}
7977
}
8078
}

harmony/charts-wrapper/src/main/ets/PieCharts.ets

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,8 @@ export struct PieCharts {
161161
}
162162

163163
build() {
164-
RNViewBase({ ctx: this.ctx, tag: this.tag }) {
165164
PieChart({
166165
model: this.model
167166
})
168-
}
169167
}
170168
}

harmony/charts-wrapper/src/main/ets/RadarCharts.ets

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,8 @@ export struct RadarCharts {
126126
}
127127

128128
build() {
129-
RNViewBase({ ctx: this.ctx, tag: this.tag }) {
130129
RadarChart({
131130
model: this.model
132131
})
133-
}
134132
}
135133
}

harmony/charts-wrapper/src/main/ets/ScatterCharts.ets

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,8 @@ export struct ScatterCharts {
6868
}
6969

7070
build() {
71-
RNViewBase({ ctx: this.ctx, tag: this.tag }) {
7271
ScatterChart({
7372
model: this.model
7473
})
75-
}
7674
}
7775
}

0 commit comments

Comments
 (0)