Skip to content

Commit a55eb87

Browse files
committed
chore: update README
1 parent fda471d commit a55eb87

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ plugins: [
120120
| virtual | Use virtual scroll | boolean | false |
121121
| height | The height of list when using virtual | number | 400 |
122122
| itemHeight | Fixed row height when using virtual (Estimated row height used before measurement when `dynamicHeight` is true) | number | 20 |
123-
| dynamicHeight | Enable dynamic row heights (measured per row) | boolean | false |
123+
| dynamicHeight | Enable dynamic row heights (measured per row) | boolean | true |
124124
| selectedValue(v-model) | Selected data path | string, array | - |
125125
| rootPath | Root data path | string | `root` |
126126
| nodeSelectable | Defines whether a node supports selection | (node) => boolean | - |

README.zh_CN.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
| showDoubleQuotes | 展示 key 名的双引号 | boolean | true |
2424
| virtual | 使用虚拟滚动(大数据量) | boolean | false |
2525
| height | 使用虚拟滚动时,定义总高度 | number | 400 |
26-
| itemHeight | 使用虚拟滚动时,定义节点高度 | number | 20 |
26+
| itemHeight | 使用虚拟滚动时,定义节点高度(可为预估值) | number | 20 |
27+
| dynamicHeight | 使用虚拟滚动时,开启每一行可为动态高度 | boolean | true |
2728
| selectedValue(v-model) | 双向绑定选中的数据路径 | string, array | string, array |
2829
| rootPath | 定义最顶层数据路径 | string | `root` |
2930
| nodeSelectable | 定义哪些数据节点可以被选择 | function(node) | - |

example/VirtualList.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,7 @@ const defaultData = {
8080
for (let i = 0; i < 10000; i++) {
8181
defaultData.data.push({
8282
news_id: i,
83-
title: `Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.
84-
85-
The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham.`,
83+
title: `Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.`,
8684
source: 'Netease phone',
8785
});
8886
}

0 commit comments

Comments
 (0)