Skip to content

Commit 01a359c

Browse files
author
huangshuwei
committed
文档优化
1 parent 689a12c commit 01a359c

File tree

5 files changed

+11
-12
lines changed

5 files changed

+11
-12
lines changed

examples/src/demo/index.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export default {
126126
// ---------------table options---------------
127127
sourceData: [],
128128
tableData: [],
129-
scrollStartIndex: 0,
129+
startRowIndex: 0,
130130
// filter condition
131131
filterConditions: [],
132132
cellStyleOption: {
@@ -432,17 +432,17 @@ export default {
432432
methods: {
433433
// virtual scrolling
434434
scrolling({
435-
scrollStartIndex,
435+
startRowIndex,
436436
visibleStartIndex,
437437
visibleEndIndex,
438438
visibleAboveCount,
439439
visibleBelowCount
440440
}) {
441-
this.scrollStartIndex = scrollStartIndex;
441+
this.startRowIndex = startRowIndex;
442442
},
443443
444444
renderRowIndex({ row, column, rowIndex }) {
445-
return <span>{rowIndex + this.scrollStartIndex + 1}</span>;
445+
return <span>{rowIndex + this.startRowIndex + 1}</span>;
446446
},
447447
448448
// search by name field

examples/src/docs/en/ve-table/api/db.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ export const db = {
607607
param: "scrolling",
608608
desc: `滚动回调事件。`,
609609
type:
610-
"<code>Function({scrollStartIndex,visibleStartIndex,visibleEndIndex,visibleAboveCount,visibleBelowCount})</code>",
610+
"Function({scrollStartIndex,visibleStartIndex,visibleEndIndex,visibleAboveCount,visibleBelowCount})",
611611
optionalVal: "-",
612612
default: "42"
613613
}

examples/src/docs/zh/ve-table/api/db.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ export const db = {
597597
{
598598
param: "scrolling",
599599
desc: `滚动回调事件。`,
600-
type: "<code>Function({scrollStartIndex,visibleStartIndex,visibleEndIndex,visibleAboveCount,visibleBelowCount})</code>",
600+
type: "Function({startRowIndex,visibleStartIndex,visibleEndIndex,visibleAboveCount,visibleBelowCount})",
601601
optionalVal: "-",
602602
default: "42"
603603
}

examples/src/docs/zh/ve-table/footer-summary/virtual-scroll.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
export default {
2222
data() {
2323
return {
24-
scrollStartIndex: 0,
2524
virtualScrollOption: {
2625
// 是否开启
2726
enable: true,

examples/src/docs/zh/ve-table/virtual-scroll/row-index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
export default {
2020
data() {
2121
return {
22-
scrollStartIndex: 0,
22+
startRowIndex: 0,
2323
virtualScrollOption: {
2424
// 是否开启
2525
enable: true,
@@ -44,15 +44,15 @@
4444
methods: {
4545
// virtual scrolling
4646
scrolling({
47-
scrollStartIndex,
47+
startRowIndex,
4848
visibleStartIndex,
4949
visibleEndIndex,
5050
visibleAboveCount,
5151
visibleBelowCount,
5252
}) {
53-
this.scrollStartIndex = scrollStartIndex;
53+
this.startRowIndex = startRowIndex;
5454
/* console.log(
55-
scrollStartIndex,
55+
startRowIndex,
5656
visibleStartIndex,
5757
visibleEndIndex,
5858
visibleAboveCount,
@@ -62,7 +62,7 @@
6262
renderRowIndex({ row, column, rowIndex }) {
6363
return (
6464
<span class="text-bold" style="color:#1890ff;">
65-
{rowIndex + this.scrollStartIndex + 1}
65+
{rowIndex + this.startRowIndex + 1}
6666
</span>
6767
);
6868
},

0 commit comments

Comments
 (0)