Skip to content

Commit ab74c1c

Browse files
committed
chore: add .markdownlint.json
1 parent 8193251 commit ab74c1c

File tree

3 files changed

+11
-17
lines changed

3 files changed

+11
-17
lines changed

.markdownlint.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"blanks-around-fences": false
3+
}

docs/treeSub.md

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -92,27 +92,18 @@ const tree = [{
9292
}]
9393
}]
9494

95-
treeSub(tree, 'chartIndex') // object of sub tree
95+
treeSub(tree, 'chartIndexActive') // object of sub tree
9696
```
9797

9898
```json [结果]
9999
{
100-
"id": "chartIndex",
101-
"path": "/chart/index",
102-
"parentId": "chart",
103-
"children": [{
104-
"id": "chartIndexTop",
105-
"path": "/chart/index/top",
106-
"parentId": "chartIndex"
107-
}, {
108-
"id": "chartIndexActive",
109-
"path": "/chart/index/active",
110-
"parentId": "chartIndex",
100+
"id": "chartIndexActive",
101+
"path": "/chart/index/active",
102+
"parentId": "chartIndex",
111103
"children": [{
112-
"id": "chartIndexActiveMy",
113-
"path": "/chart/index/active/my",
114-
"parentId": "chartIndexActive"
115-
}]
104+
"id": "chartIndexActiveMy",
105+
"path": "/chart/index/active/my",
106+
"parentId": "chartIndexActive"
116107
}]
117108
}
118109
```

src/test/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default {
3939
{ name: 'tree', result: tree },
4040
{ name: 'tree2array', result: tree2array(tree) },
4141
{ name: 'treeFilter', result: treeFilter(cloneDeep(tree), i => !i.test) },
42-
{ name: 'treeSub', result: treeSub(tree, 'chartIndex') },
42+
{ name: 'treeSub', result: treeSub(tree, 'chartIndexActive') },
4343
{ name: 'treeNode', result: treeNode(tree, 'chartProjectMyTwo') },
4444
{ name: 'treePath', result: treePath(tree, 'chartProjectMyTwo') },
4545
{ name: 'treeDeep', result: treeDeep(tree) },

0 commit comments

Comments
 (0)