| | |
| | | <el-table ref="eltable" :data="tableData" style="width: 100%;" height="100%" tooltip-effect="dark" border |
| | | @selection-change="selectChange" @select="select" v-loading="loading" @sort-change="sortChange" |
| | | @row-click="rowClick" :show-summary="data.countFleid!=undefined && data.countFleid.length > 0" |
| | | :summary-method="getSummaries" :row-class-name="tableRowClassName" :row-key="record=>record.id" |
| | | :summary-method="getSummaries" :row-class-name="tableRowClassName" :row-key="record=>record[rowKey]" |
| | | :current-row-key="data.currentId" :highlight-current-row="data.highlight===undefined||data.highlight" |
| | | :span-method="spanMethod" :key="specialKey"> |
| | | <el-table-column type="selection" :width="selectionWidth" v-if="data.showSelect" :key="Math.random()"> |
| | |
| | | tableRowClassName: { |
| | | type: Function |
| | | }, |
| | | rowKey: { |
| | | type: String, |
| | | default: ()=>{ |
| | | return 'id' |
| | | } |
| | | }, |
| | | url: { |
| | | type: String, |
| | | default: () => null |