docs: add page footer

This commit is contained in:
Hufe921
2023-03-25 19:41:16 +08:00
committed by Hufe
parent 21626cc41b
commit 45a17ba756
3 changed files with 20 additions and 3 deletions
+6 -2
View File
@@ -17,7 +17,7 @@
- 右键菜单(内部、自定义)
- 快捷键(内部、自定义)
- 文字、元素、控件拖拽
- 页眉、页码
- 页眉、页脚、页
- 页边距
- 水印
- 分页
@@ -55,7 +55,7 @@ new Editor(document.querySelector(".canvas-editor"), [
], {})
```
- 包含正文页眉内容
- 包含正文页眉、页脚内容
```javascript
import Editor from "@hufe921/canvas-editor"
@@ -66,6 +66,10 @@ new Editor(document.querySelector(".canvas-editor"), {
}],
main: [{
value: "Hello World"
}],
footer: [{
value: 'canvas-editor',
size: 12
}]
}, {})
```