Skip to content

Commit a6c0caf

Browse files
committed
docs: 修复文档拼写检查错误
1 parent a8bbf1f commit a6c0caf

File tree

8 files changed

+33
-11
lines changed

8 files changed

+33
-11
lines changed

.cspell.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
version: "0.2"
2+
ignorePaths:
3+
- archive
4+
- dist
5+
- node_modules
6+
dictionaries:
7+
- en_US
8+
- softwareTerms
9+
- bash
10+
- node
11+
- npm
12+
- html
13+
- css
14+
- typescript
15+
- filetypes
16+
words:
17+
- dtcor
18+
- lcov
19+
- nojekyll
20+
- oscs
21+
- postversion
22+
- preinstall
23+
- preversion
24+
- totree
25+
ignoreWords:
26+
- zhengxs

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"codecov",
2626
"mediinfo",
2727
"runkit",
28-
"sourcemap"
28+
"sourcemap",
29+
"zhengxs"
2930
],
3031
"cSpell.ignoreWords": [
3132
"filesize",

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,6 @@
2929
<a href="https://unpkg.com/@zhengxs/js.tree/dist/js.tree.min.js">
3030
<img src="https://img.badgesize.io/https:/unpkg.com/@zhengxs/js.tree/dist/js.tree.min.js?compression=gzip&style=flat" alt="Gzip Size" />
3131
</a>
32-
<a href="https://david-dm.org/zhengxs2018/js.tree">
33-
<img src="https://img.shields.io/david/zhengxs2018/js.tree" alt="Dependency Status" />
34-
</a>
35-
<a href="https://david-dm.org/zhengxs2018/js.tree?type=dev">
36-
<img src="https://img.shields.io/david/dev/zhengxs2018/js.tree" alt="DevDependency Status" />
37-
</a>
3832
<a href="https://dashboard.cypress.io/projects/dtcor7/runs">
3933
<img src="https://img.shields.io/endpoint?url=https://dashboard.cypress.io/badge/simple/dtcor7/main&style=flat&logo=cypress" alt="Cypress" />
4034
</a>

docs/operators/each.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ each(data, (node) => {
3333
// -> 角色维护
3434
```
3535

36-
默认子级列表的属性名称是 **chilren**,可以通过第三个参数修改
36+
默认子级列表的属性名称是 **children**,可以通过第三个参数修改
3737

3838
```js
3939
import { each } from '@zhengxs/js.tree'

docs/operators/exclude.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const result = exclude(data, (node, index, parents) => {
3939
// ]
4040
```
4141

42-
默认子级列表的属性名称是 **chilren**,可以通过第三个参数修改
42+
默认子级列表的属性名称是 **children**,可以通过第三个参数修改
4343

4444
```js
4545
import { exclude } from '@zhengxs/js.tree'

docs/operators/filter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const result = filter(data, (node, index, parents) => {
4949
// ]
5050
```
5151

52-
默认子级列表的属性名称是 **chilren**,可以通过第三个参数修改
52+
默认子级列表的属性名称是 **children**,可以通过第三个参数修改
5353

5454
```js
5555
import { filter } from '@zhengxs/js.tree'

docs/operators/map.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const result = map(data, (node, index, parents) => {
5858
// ]
5959
```
6060

61-
默认子级列表的属性名称是 **chilren**,可以通过第三个参数修改
61+
默认子级列表的属性名称是 **children**,可以通过第三个参数修改
6262

6363
```js
6464
import { map } from '@zhengxs/js.tree'

tools/generate.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ function sleep(ms) {
77
return new Promise((resolve) => setTimeout(resolve, ms))
88
}
99

10+
// cSpell: ignore ctitle cparagraph
1011
async function makeItem(parentId, depth) {
1112
const menuItem = mock({
1213
id: Random.uuid(),

0 commit comments

Comments
 (0)