Socket
Book a DemoInstallSign in
Socket

@kyfe/ks-table2

Package Overview
Dependencies
Maintainers
17
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kyfe/ks-table2

ks-table2

latest
npmnpm
Version
1.0.12
Version published
Maintainers
17
Created
Source

参数

参数名说明默认值
headerRowHeight表头高度28
rowHeight表格行高32
columns表格列配置[]
data表格数据(每行必须有id字段)[]
showIndex是否显示序号

事件

事件名说明
sort-change排序事件,点击表头触发,返回排序类型(升序、降序)和排序字段
cell-click单元格点击事件,参数(行数据、列配置、索引)

方法

方法名说明
scrollToColumn滚动到某一列
scrollToRow滚动到某一行

slot

--------|------ | empty | 暂无数据的插槽 |

FAQs

Package last updated on 28 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts