|
|
@@ -22,7 +22,7 @@
|
|
|
<div>
|
|
|
<el-table :data="props.row.children">
|
|
|
<el-table-column v-for="column in secondaryColumns" :key="column.prop" :prop="column.prop"
|
|
|
- :label="column.label" :sortable="column.sortable ? 'custom' : false" :width="column.width">
|
|
|
+ :label="column.label" :sortable="column.sortable ? column.sortable=='default'?true:'custom' : false" :width="column.width">
|
|
|
<template #header>
|
|
|
<slot name="search" :slotData="column"></slot>
|
|
|
</template>
|
|
|
@@ -53,7 +53,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column v-if="showIndex" type="index" label="序号" width="55" />
|
|
|
<el-table-column v-for="column in columns" :key="column.prop" :prop="column.prop" :label="column.label"
|
|
|
- :sortable="column.sortable ? 'custom' : false" :width="column.width"
|
|
|
+ :sortable="column.sortable ? column.sortable=='default'?true:'custom' : false" :width="column.width"
|
|
|
:align="column.align ? column.align : 'center'">
|
|
|
<template #header>
|
|
|
<slot name="search" :slotData="column"></slot>
|