diff --git a/doc/public_properties_methods.md b/doc/public_properties_methods.md index 8bb8dc4e..df2f76d7 100644 --- a/doc/public_properties_methods.md +++ b/doc/public_properties_methods.md @@ -31,6 +31,7 @@ Key | Type | Optional | Default value -------------- | -------- | -------- | ------------------------------------------- | ------------------- defaultPlugins | Array | true | ['system', 'network', 'element', 'storage'] | Listed built-in plugins will be inited and loaded into vConsole. onReady | Function | true | | Trigger after vConsole is inited and default plugins is loaded. +onClearLog | Function | true | | Trigger after click "Clear" button in Log and System panel. maxLogNumber | Number | true | 1000 | Overflow logs will be removed from log tabs. Example: diff --git a/doc/public_properties_methods_CN.md b/doc/public_properties_methods_CN.md index 1e7bfce7..04c834a3 100644 --- a/doc/public_properties_methods_CN.md +++ b/doc/public_properties_methods_CN.md @@ -31,6 +31,7 @@ vConsole.version // => "3.0.0" -------------- | -------- | -------- | ------------------------------------------- | ------------------- defaultPlugins | Array | true | ['system', 'network', 'element', 'storage'] | 需要自动初始化并加载的内置插件。 onReady | Function | true | | 回调方法,当 vConsole 完成初始化并加载完内置插件后触发。 +onClearLog | Function | true | | 回调方法,点击 Log 或 System 面板的 "Clear" 按钮后出发。 maxLogNumber | Number | true | 1000 | 超出上限的日志会被自动清除。 例子: