update guide
This commit is contained in:
2
guide.md
2
guide.md
@@ -290,7 +290,7 @@ The replayer accepts options as its constructor's second parameter, and it has t
|
|||||||
| showDebug | false | whether to print debug messages during replay |
|
| showDebug | false | whether to print debug messages during replay |
|
||||||
| blockClass | 'rr-block' | element with the class name will display as a blocked area |
|
| blockClass | 'rr-block' | element with the class name will display as a blocked area |
|
||||||
| liveMode | false | whether to enable live mode |
|
| liveMode | false | whether to enable live mode |
|
||||||
| inertStyleRules | [] | accepts multiple CSS rule string, which will be injected into the replay iframe |
|
| insertStyleRules | [] | accepts multiple CSS rule string, which will be injected into the replay iframe |
|
||||||
| triggerFocus | true | whether to trigger focus during replay |
|
| triggerFocus | true | whether to trigger focus during replay |
|
||||||
| UNSAFE_replayCanvas | false | whether to replay the canvas element. **Enable this will remove the sandbox, which is unsafe.** |
|
| UNSAFE_replayCanvas | false | whether to replay the canvas element. **Enable this will remove the sandbox, which is unsafe.** |
|
||||||
| mouseTail | true | whether to show mouse tail during replay. Set to false to disable mouse tail. A complete config can be found in this [type](https://github.com/rrweb-io/rrweb/blob/9488deb6d54a5f04350c063d942da5e96ab74075/src/types.ts#L407) |
|
| mouseTail | true | whether to show mouse tail during replay. Set to false to disable mouse tail. A complete config can be found in this [type](https://github.com/rrweb-io/rrweb/blob/9488deb6d54a5f04350c063d942da5e96ab74075/src/types.ts#L407) |
|
||||||
|
|||||||
@@ -286,7 +286,7 @@ replayer.pause(5000);
|
|||||||
| showDebug | false | 是否在回放过程中打印 debug 信息 |
|
| showDebug | false | 是否在回放过程中打印 debug 信息 |
|
||||||
| blockClass | 'rr-block' | 需要在回放时展示为隐藏区域的元素类名 |
|
| blockClass | 'rr-block' | 需要在回放时展示为隐藏区域的元素类名 |
|
||||||
| liveMode | false | 是否开启直播模式 |
|
| liveMode | false | 是否开启直播模式 |
|
||||||
| inertStyleRules | [] | 可以传入多个 CSS rule string,用于自定义回放时 iframe 内的样式 |
|
| insertStyleRules | [] | 可以传入多个 CSS rule string,用于自定义回放时 iframe 内的样式 |
|
||||||
| triggerFocus | true | 回放时是否回放 focus 交互 |
|
| triggerFocus | true | 回放时是否回放 focus 交互 |
|
||||||
| UNSAFE_replayCanvas | false | 回放时是否回放 canvas 内容,**开启后将会关闭沙盒策略,导致一定风险** |
|
| UNSAFE_replayCanvas | false | 回放时是否回放 canvas 内容,**开启后将会关闭沙盒策略,导致一定风险** |
|
||||||
| mouseTail | true | 是否在回放时增加鼠标轨迹。传入 false 可关闭,传入对象可以定制轨迹持续时间、样式等,配置详见[类型](https://github.com/rrweb-io/rrweb/blob/9488deb6d54a5f04350c063d942da5e96ab74075/src/types.ts#L407) |
|
| mouseTail | true | 是否在回放时增加鼠标轨迹。传入 false 可关闭,传入对象可以定制轨迹持续时间、样式等,配置详见[类型](https://github.com/rrweb-io/rrweb/blob/9488deb6d54a5f04350c063d942da5e96ab74075/src/types.ts#L407) |
|
||||||
|
|||||||
Reference in New Issue
Block a user