Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix issue with harmony props ignore function #3047

Merged
merged 1 commit into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions packages/harmony_vchart/entry/src/main/ets/pages/Chart.ets
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { VChart } from '@visactor/harmony-vchart';
// import { VisActor } from './canvas';
import { router } from '@kit.ArkUI';
import promptAction from '@ohos.promptAction';
import lineSpec from './data/line';

interface IRouterParams {
label: string,
Expand All @@ -14,10 +15,14 @@ const params: IRouterParams = router.getParams() as IRouterParams;
@Entry
@Component
struct Chart {
@State spec: Object = params.spec;
@State spec: Object | null = null;
private t: number = 0;
@State delta: number = 0;

onPageShow(): void {
this.spec = params.spec;
}

build() {
Row() {
Column() {
Expand All @@ -26,7 +31,7 @@ struct Chart {
.fontWeight(FontWeight.Bold)
// Stage({ bg: 'red', h: 500 })
VChart({
spec: params.spec, w: 300, h: 300,
spec: this.spec, w: 300, h: 300,
onChartInitCb: () => {},
onChartReadyCb: () => {},
initOption: {
Expand Down
2 changes: 1 addition & 1 deletion packages/harmony_vchart/library/BuildProfile.ets
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default class BuildProfile {
static readonly HAR_VERSION = '1.11.3';
static readonly HAR_VERSION = '1.11.10';
static readonly BUILD_MODE_NAME = 'debug';
static readonly DEBUG = true;
}
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export struct VChart {
private context: CanvasRenderingContext2D = new CanvasRenderingContext2D(this.settings)
private w: number = 300;
private h: number = 300;
@Prop @Watch('onSpecUpdate') private spec: Object | null = null;
@Link @Watch('onSpecUpdate') private spec: Object | null;
private vchart: VChartConstructor | null = null;
@State time: string = '';

Expand Down
2 changes: 1 addition & 1 deletion rush.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,4 @@
"shouldPublish": false
}
]
}
}
Loading