1.0.5 • Published 3 years ago
lano-vue-table v1.0.5
蓝奥教育 vue table 组件
发布
更改package.json版本
yarn run build
npm publish
注:镜像源需切换回 NPM 官方源
链接
示例
cd example
yarn
yarn start
使用之前
该组件依赖于 vue,element-ui,af-table-column 使用前自行配置 vue
何时使用
- 项目需要构建 vue table 表格时
API
<div className="masker">
<lano-table :tableData="tableData" :columns="colData" :loading="tableLoading">
</lano-table>
</div>
tableLoading:false,
colData: [
{ title: '序号', istrue: true, closeSort: true, fieldName: 'number' },
{ title: '学号', istrue: true, fieldName: 'studentCode', minWidth: 100 },
{ title: '姓名', istrue: true, fieldName: 'studentName' }
],
tableData:[];
form props
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
tableData | 表单数据 | Array | --- |
tableLoading | table 是否处于 loading 状态 | boolean | --- |
colData | 表格列字段信息 | Array | --- |