| | |
| | | <el-table ref="multipleTable" v-loading="tableLoading" :border="border" :data="tableData" |
| | | :header-cell-style="{ background: '#F0F1F5', color: '#333333' }" height="calc(100vh - 18.5em)" |
| | | :highlight-current-row="highlightCurrentRow" :row-class-name="rowClassName" :row-style="rowStyle" |
| | | :row-key="rowKey" stripe style="width: 100%" tooltip-effect="dark" @row-click="rowClick" |
| | | :row-key="rowKey" style="width: 100%" tooltip-effect="dark" @row-click="rowClick" |
| | | @current-change="currentChange" @selection-change="handleSelectionChange" class="lims-table"> |
| | | <el-table-column align="center" type="selection" width="55" /> |
| | | <el-table-column align="center" label="序号" type="index" width="60" /> |
| | |
| | | <el-table-column v-for="(item, index) in column" :key="index" :column-key="item.columnKey" |
| | | :filter-method="item.filterHandler" :filter-multiple="item.filterMultiple" :filtered-value="item.filteredValue" |
| | | :filters="item.filters" :fixed="item.fixed" :label="item.label" :prop="item.prop" |
| | | :show-overflow-tooltip="!(item.dataType === 'action' || item.dataType === 'slot')" |
| | | :min-width="item.dataType == 'action' ? btnWidth : item.width" |
| | | :sortable="!!item.sortable" :type="item.type" :width="item.dataType == 'action' ? btnWidth : item.width" align="center"> |
| | | show-overflow-tooltip :align="item.align" |
| | | :sortable="!!item.sortable" :type="item.type" :width="item.width"> |
| | | <template v-if="item.hasOwnProperty('colunmTemplate')" #[item.colunmTemplate]="scope"> |
| | | <slot v-if="item.theadSlot" :name="item.theadSlot" :index="scope.$index" :row="scope.row" /> |
| | | </template> |
| | |
| | | </script> |
| | | |
| | | <style scoped lang="scss"> |
| | | >>>.cell { |
| | | padding: 0 !important; |
| | | } |
| | | .cell { |
| | | white-space: nowrap; |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | padding-right: 0 !important; |
| | | padding-left: 0 !important; |
| | | } |
| | | </style> |