0.1.4 • Published 2 years ago
data-for-table v0.1.4
data-for-table
Project setup
npm install
Compiles and hot-reloads for development
npm run serve
Compiles and minifies for production
npm run build
Customize configuration
@tableData表格数据源
@labelOption配置表头个字段的对应关系
{
name:"姓名, name对应表格中的姓名字段
}
或者
{
name:{
label:"姓名" name对应姓名字段
target:"input" 渲染成input标签(功能暂时关闭)
}
}
@operating 操作栏
{
name:"查询详情", 操作栏显示文字
event:(row,index)=>{} 点击的回调函数 index 当前行的索引 row.row为行数据
}
@tableProps 自定义时的prop(可不上传) 默认自动获取
['name','age','height']