Skip to content

Commit cdee7cf

Browse files
committed
add api doc
1 parent 1b5c54f commit cdee7cf

File tree

2 files changed

+14
-4
lines changed
  • examples/src/docs

2 files changed

+14
-4
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,12 +485,17 @@ export const db = {
485485
data: [
486486
{
487487
name: "scrollTo",
488-
desc: `Scrolls the table to the specified position`,
488+
desc: `Scrolls the table to the specified position <a href='#/en/doc/table/instance-methods?anchor=scrollto'>Refer To Demo</a>`,
489489
param: "Refer to <a href='https://developer.mozilla.org/zh-CN/docs/Web/API/Element/scrollTo'> MDN scrollTo</a>",
490490
},
491491
{
492492
name: "scrollToRowKey",
493-
desc: `Scroll the table to the location of the row key`,
493+
desc: `Scroll the table to the column position <a href='#/en/doc/table/instance-methods?anchor=scrolltocolkey-column-scroll-method'>Refer To Demo</a>`,
494+
param: "{rowKey}",
495+
},
496+
{
497+
name: "scrollToRowKey",
498+
desc: `Scroll the table to the location of the row key <a href='#/en/doc/table/instance-methods?anchor=scrolltorowkey'>Refer To Demo</a>`,
494499
param: "{rowKey}",
495500
},
496501
{

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,12 +491,17 @@ export const db = {
491491
data: [
492492
{
493493
name: "scrollTo",
494-
desc: `使表格滚动到指定的位置`,
494+
desc: `使表格滚动到指定的位置 <a href='#/zh/doc/table/instance-methods?anchor=scrollto-gun-dong-fang-fa'>参考示例</a>`,
495495
param: "参考<a href='https://developer.mozilla.org/zh-CN/docs/Web/API/Element/scrollTo'> MDN scrollTo</a>",
496496
},
497+
{
498+
name: "scrollToColKey",
499+
desc: `将指定的列显示在可视区域 <a href='#/zh/doc/table/instance-methods?anchor=scrolltocolkey-lie-gun-dong-fang-fa'>参考示例</a>`,
500+
param: "{ rowKey, colKey }",
501+
},
497502
{
498503
name: "scrollToRowKey",
499-
desc: `将表格滚动到行为rowKey的位置`,
504+
desc: `将表格滚动到行为rowKey的位置 <a href='#/zh/doc/table/instance-methods?anchor=scrolltorowkey-gun-dong-fang-fa'>参考示例</a>`,
500505
param: "{rowKey}",
501506
},
502507
{

0 commit comments

Comments
 (0)