diff --git a/demo/documentation/components/log/enUS/event.md b/demo/documentation/components/log/enUS/event.md index fca8d6192..0911f26f9 100644 --- a/demo/documentation/components/log/enUS/event.md +++ b/demo/documentation/components/log/enUS/event.md @@ -14,7 +14,7 @@ Log has `require-more`, `reach-top` and `reach-bottom` event. Note that even if ```js function log () { const l = [] - for (let i = 0; i < 40; ++i) { + for (let i = 0; i < 10; ++i) { l.push((Math.random()).toString(16)) } return l.join('\n') + '\n' diff --git a/demo/documentation/components/log/enUS/index.md b/demo/documentation/components/log/enUS/index.md index 9b71f648c..d60468fcc 100644 --- a/demo/documentation/components/log/enUS/index.md +++ b/demo/documentation/components/log/enUS/index.md @@ -1,5 +1,7 @@ # Log +If you have some logs to show, use log. + Due to package size, Naive UI doesn't include highlight.js. If you want highlight logs, make sure you have set highlightjs before using it. @@ -29,4 +31,24 @@ event scroll highlight loading -``` \ No newline at end of file +``` + +## Props +|Name|Type|Default|Description| +|-|-|-|-| +|loading|`boolean`|`false`|| +|trim|`boolean`|`false`|| +|log|`string`|`null`|| +|lines|`Array`|`null`|| +|font-size|`number`|`14`|| +|line-height|`number`|`1.25`|| +|language|`string`|`null`|| +|rows|`number`|`15`|| +|hljs|`object`|`null`|| + +## Events +|Name|Parameters|Description| +|-|-|-| +|require-more|`(from: 'top' \| 'bottom')`|| +|reach-top|`()`| +|reach-bottom|`()`| \ No newline at end of file