|
@ -2,7 +2,6 @@ |
|
|
<div> |
|
|
<div> |
|
|
<q-table |
|
|
<q-table |
|
|
ref="tableRef" |
|
|
ref="tableRef" |
|
|
v-bind="attrs" |
|
|
|
|
|
v-model:pagination="table.pagination" |
|
|
v-model:pagination="table.pagination" |
|
|
v-model:selected="table.selected" |
|
|
v-model:selected="table.selected" |
|
|
flat |
|
|
flat |
|
@ -11,6 +10,7 @@ |
|
|
separator="cell" |
|
|
separator="cell" |
|
|
:no-data-label="table.noDataLabel" |
|
|
:no-data-label="table.noDataLabel" |
|
|
:loading-label="table.loadingLabel" |
|
|
:loading-label="table.loadingLabel" |
|
|
|
|
|
v-bind="attrs" |
|
|
:rows="table.rows" |
|
|
:rows="table.rows" |
|
|
:columns="extractTableColumns" |
|
|
:columns="extractTableColumns" |
|
|
:rows-per-page-options="pagination.rowsPerPage && table.refHeightWidth.middleWidth > 600 ? table.pagination.rowsPerPageOptions : []" |
|
|
:rows-per-page-options="pagination.rowsPerPage && table.refHeightWidth.middleWidth > 600 ? table.pagination.rowsPerPageOptions : []" |
|
@ -57,10 +57,11 @@ |
|
|
<template v-if="columnTitleState.columnTitleRowNum > 1"> |
|
|
<template v-if="columnTitleState.columnTitleRowNum > 1"> |
|
|
<q-tr v-for="(r, rIndex) in columnTitleState.columnTitleArr" :key="rIndex"> |
|
|
<q-tr v-for="(r, rIndex) in columnTitleState.columnTitleArr" :key="rIndex"> |
|
|
<q-th |
|
|
<q-th |
|
|
v-if="rIndex === 0 && (!attrs.selection || attrs.selection !== 'none')" |
|
|
v-if="rIndex === 0 && (!attrs.selection || attrs.selection === 'multiple')" |
|
|
:rowspan="columnTitleState.columnTitleRowNum" |
|
|
:rowspan="columnTitleState.columnTitleRowNum" |
|
|
:style="moreColumnTitleTableSelectionStyle" |
|
|
:style="moreColumnTitleTableSelectionStyle" |
|
|
> |
|
|
> |
|
|
|
|
|
<q-checkbox v-model="scope.selected" flat /> |
|
|
</q-th> |
|
|
</q-th> |
|
|
<q-th v-if="rIndex === 0 && props.sortNo" :rowspan="columnTitleState.columnTitleRowNum" :style="moreColumnTitleTableSortNoStyle"> 序号 </q-th> |
|
|
<q-th v-if="rIndex === 0 && props.sortNo" :rowspan="columnTitleState.columnTitleRowNum" :style="moreColumnTitleTableSortNoStyle"> 序号 </q-th> |
|
|
<q-th |
|
|
<q-th |
|
|