1.0.0 • Published 2 years ago
scm-table v1.0.0
table组件vue2
注册方式
main.js里 import *** from “scm-table”
Vue.use(***)全局挂载
使用方式
"<"ScmTable">"
参数
columns: Array, //表头字段 [ title: "表头名", dataIndex: "字段名", key: "键名"]
dataSource: {}, //表数据 {
root: [
{ 数据 },
]
}
loading: Boolean, //loading
pagination: Object || false, //分页器
onChange: Function, //选中项发生变化时的回调
rowSelection: Object || null, //选中行
autoIndex: Boolean,
scroll: {}, //表宽高{ x: number | true, y: number }
bordered: "", //边框
title: Object || Function || "", //表格标题
content: Object,