Skip to content

Commit dbca502

Browse files
committed
fix(docs openinula-vchart react-vchart): correct typo in 'vchartConstrouctor' prop name
1 parent 1245003 commit dbca502

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+76
-76
lines changed

docs/assets/guide/en/tutorial_docs/Cross-terminal_and_Developer_Ecology/openinula.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ interface VChartSimpleProps extends EventsProps {
441441
*
442442
* @since 1.8.3
443443
**/
444-
vchartConstrouctor: IVChartConstructor;
444+
vchartConstructor: IVChartConstructor;
445445
}
446446
```
447447

docs/assets/guide/en/tutorial_docs/Cross-terminal_and_Developer_Ecology/react-lynx.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ For example, developers can register the callback events that need to be trigger
111111

112112
## `<VChartSimple />` tag with lazy loading
113113

114-
The usage of this tag is similar to `<VChart />`. This tag supports the lazy loading feature of VChart. When using it, you need to configure an additional `vchartConstrouctor` field to pass in the VChart.
114+
The usage of this tag is similar to `<VChart />`. This tag supports the lazy loading feature of VChart. When using it, you need to configure an additional `vchartConstructor` field to pass in the VChart.
115115

116116
```ts
117117
import { VChartSimple } from '@dp/lynx-vchart';
@@ -122,7 +122,7 @@ export default function Demo() {
122122
<view>
123123
<VChartSimple
124124
// vchart核心包
125-
vchartConstrouctor={VChartCore}
125+
vchartConstructor={VChartCore}
126126
width="700rpx"
127127
height="900rpx"
128128
spec={spec}

docs/assets/guide/en/tutorial_docs/Cross-terminal_and_Developer_Ecology/react.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ interface VChartSimpleProps extends EventsProps {
452452
*
453453
* @since 1.8.3
454454
**/
455-
vchartConstrouctor: IVChartConstructor;
455+
vchartConstructor: IVChartConstructor;
456456
}
457457
```
458458

docs/assets/guide/zh/tutorial_docs/Cross-terminal_and_Developer_Ecology/openinula.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ interface VChartSimpleProps extends EventsProps {
449449
*
450450
* @since 1.8.3
451451
**/
452-
vchartConstrouctor: IVChartConstructor;
452+
vchartConstructor: IVChartConstructor;
453453
}
454454
```
455455

docs/assets/guide/zh/tutorial_docs/Cross-terminal_and_Developer_Ecology/react-lynx.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ interface VChartProps extends EventsProps {
113113

114114
## 按需加载标签 `<VChartSimple />`
115115

116-
该标签的主要使用方法和`<VChart />`类似,该标签支持 VChart 的按需加载功能,使用的时候需要额外配置一个`vchartConstrouctor`字段,将 VChart 传入
116+
该标签的主要使用方法和`<VChart />`类似,该标签支持 VChart 的按需加载功能,使用的时候需要额外配置一个`vchartConstructor`字段,将 VChart 传入
117117

118118
```ts
119119
import { VChartSimple } from '@dp/lynx-vchart';
@@ -124,7 +124,7 @@ export default function Demo() {
124124
<view>
125125
<VChartSimple
126126
// vchart核心包
127-
vchartConstrouctor={VChartCore}
127+
vchartConstructor={VChartCore}
128128
width="700rpx"
129129
height="900rpx"
130130
spec={spec}

docs/assets/guide/zh/tutorial_docs/Cross-terminal_and_Developer_Ecology/react.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ interface VChartSimpleProps extends EventsProps {
459459
*
460460
* @since 1.8.3
461461
**/
462-
vchartConstrouctor: IVChartConstructor;
462+
vchartConstructor: IVChartConstructor;
463463
}
464464
```
465465

docs/assets/guide/zh/tutorial_docs/Load_on_Demand.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ interface VChartSimpleProps extends EventsProps {
163163
*
164164
* @since 1.8.3
165165
**/
166-
vchartConstrouctor: IVChartConstructor;
166+
vchartConstructor: IVChartConstructor;
167167
}
168168
```
169169

packages/openinula-vchart/src/VChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ export { VChartCore };
55
export type VChartProps = Omit<BaseChartProps, 'container' | 'data' | 'width' | 'height' | 'type'>;
66

77
export const VChart = createChart<VChartProps>('VChart', {
8-
vchartConstrouctor: VChartCore
8+
vchartConstructor: VChartCore
99
});
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { IVChartConstructor } from '@visactor/vchart';
22
import { BaseChartProps, createChart } from './charts/BaseChart';
33

4-
export type VChartSimpleProps = Omit<BaseChartProps, 'container' | 'data' | 'width' | 'height' | 'vchartConstrouctor'>;
4+
export type VChartSimpleProps = Omit<BaseChartProps, 'container' | 'data' | 'width' | 'height' | 'vchartConstructor'>;
55

6-
export const VChartSimple = createChart<VChartSimpleProps & { vchartConstrouctor: IVChartConstructor }>('VChartSimple');
6+
export const VChartSimple = createChart<VChartSimpleProps & { vchartConstructor: IVChartConstructor }>('VChartSimple');

packages/openinula-vchart/src/charts/AreaChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ export interface AreaChartProps
99

1010
export const AreaChart = createChart<React.PropsWithChildren<AreaChartProps> & { type: 'area' }>('AreaChart', {
1111
type: 'area',
12-
vchartConstrouctor: VChart
12+
vchartConstructor: VChart
1313
});

0 commit comments

Comments
 (0)