1.0.0 • Published 5 years ago
seniortables v1.0.0
安装
# npm方式安装
npm i seniortables属性说明
| 属性名称 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
| v-model | Boolean | 必填 | 控制显示隐藏 |
| fileds | Array[] | 必填 | 右侧表格字段 后面详解 |
| tableData | Array[] | 必填 | 表格数据 |
| select | Boolean | -- | 是否显示选择框(默认true) |
| index | Boolean | -- | 是否显示索引(默认true) |
fileds
| 属性名称 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
| width | String | -- | 单元格的宽度(默认为'auto') |
| label | String | -- | 展示的表头 |
| prop | String | 必填 | 列展示的字段 |
| custom | Boolean | -- | 是否自定义 |
事件
| 事件名称 | 说明 | 返回值 |
|---|---|---|
| selectionChange | 表格选中事件处理 | 选中的数据Array[]:selection |
<template slot-scope="{row,$index}" slot="name">
{{row}}
</template>1.0.0
5 years ago