Skip to content

Commit ec2dab3

Browse files
committed
doc: update document what import pinyin method in v4
1 parent 2f12261 commit ec2dab3

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

docs/EXAMPLE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
```jsx
44
import React, { useState, useEffect } from 'react';
5-
import pinyin from '../lib/umd/pinyin';
5+
import { pinyin } from '../lib/umd/pinyin';
66
import { JsonViewer } from '@textea/json-viewer';
77

88
export default function() {

docs/api/v4/index.en-US.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ npm install pinyin --save
5252
for developer:
5353

5454
```typescript
55-
import pinyin from "pinyin";
55+
import { pinyin } from "pinyin";
5656

5757
console.log(pinyin("中心")); // [ [ 'zhōng' ], [ 'xīn' ] ]
5858

docs/api/v4/index.ko-KR.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ npm install pinyin --save
5252
개발자:
5353

5454
```typescript
55-
import pinyin from "pinyin";
55+
import { pinyin } from "pinyin";
5656

5757
console.log(pinyin("中心")); // [ [ 'zhōng' ], [ 'xīn' ] ]
5858

docs/api/v4/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ npm install pinyin --save
6161
开发者:
6262

6363
```typescript
64-
import pinyin from "pinyin";
64+
import { pinyin } from "pinyin";
6565

6666
console.log(pinyin("中心")); // [ [ 'zhōng' ], [ 'xīn' ] ]
6767

docs/index.en-US.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ npm install pinyin --save
5252
for developer:
5353

5454
```typescript
55-
import pinyin from "pinyin";
55+
import { pinyin } from "pinyin";
5656

5757
console.log(pinyin("中心")); // [ [ 'zhōng' ], [ 'xīn' ] ]
5858

docs/index.ko-KR.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ npm install pinyin --save
5252
개발자:
5353

5454
```typescript
55-
import pinyin from "pinyin";
55+
import { pinyin } from "pinyin";
5656

5757
console.log(pinyin("中心")); // [ [ 'zhōng' ], [ 'xīn' ] ]
5858

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ npm install pinyin --save
5353
开发者:
5454

5555
```typescript
56-
import pinyin from "pinyin";
56+
import { pinyin } from "pinyin";
5757

5858
console.log(pinyin("中心")); // [ [ 'zhōng' ], [ 'xīn' ] ]
5959

0 commit comments

Comments
 (0)