Skip to content

Commit a4f6cbf

Browse files
committed
docs: indent
1 parent afbecee commit a4f6cbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/zh/v1/guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export default function App() {
121121

122122
上面有两个 div. 使用`renderNode`选项控制内层 div 的渲染. 如: `renderNode: ({node}) => <div>{node.name}</div>`.
123123

124-
外层节点被称为`nodeBox`, 不要修改它的`margin, padding-left, padding-right`, 不要给它的父元素设置`gap`. 如果你想控制`nodeBox`或拖拽占位节点的渲染, 可以使用`renderNodeBox`选项, 这将覆盖`renderNode`. 标准的`renderNodeBox`如下:
124+
外层节点被称为`nodeBox`, 不要修改它的`margin, padding-left, padding-right`, 不要给它的父元素设置`gap`. 使用选项[`indent`](api#indent)控制节点的缩进. 如果你想控制`nodeBox`或拖拽占位节点的渲染, 可以使用`renderNodeBox`选项, 这将覆盖`renderNode`. 标准的`renderNodeBox`如下:
125125

126126
```tsx{4-7,9}
127127
renderNodeBox: ({ stat, attrs, isPlaceholder }) => (

0 commit comments

Comments
 (0)