【issues/1146】BasicTable使用headerCell全选框出不来 ---
parent
d183fc5274
commit
abf21d6c58
|
@ -20,7 +20,13 @@
|
||||||
<Table ref="tableElRef" v-bind="getBindValues" :rowClassName="getRowClassName" v-show="getEmptyDataIsShowTable" @resizeColumn="handleResizeColumn" @change="handleTableChange">
|
<Table ref="tableElRef" v-bind="getBindValues" :rowClassName="getRowClassName" v-show="getEmptyDataIsShowTable" @resizeColumn="handleResizeColumn" @change="handleTableChange">
|
||||||
<!-- antd的原生插槽直接传递 -->
|
<!-- antd的原生插槽直接传递 -->
|
||||||
<template #[item]="data" v-for="item in slotNamesGroup.native" :key="item">
|
<template #[item]="data" v-for="item in slotNamesGroup.native" :key="item">
|
||||||
<slot :name="item" v-bind="data || {}"></slot>
|
<!-- update-begin--author:liaozhiyang---date:20240424---for:【issues/1146】BasicTable使用headerCell全选框出不来 -->
|
||||||
|
<template v-if="item === 'headerCell'">
|
||||||
|
<CustomSelectHeader v-if="isCustomSelection(data.column)" v-bind="selectHeaderProps" />
|
||||||
|
<slot v-else :name="item" v-bind="data || {}"></slot>
|
||||||
|
</template>
|
||||||
|
<slot v-else :name="item" v-bind="data || {}"></slot>
|
||||||
|
<!-- update-begin--author:liaozhiyang---date:20240424---for:【issues/1146】BasicTable使用headerCell全选框出不来 -->
|
||||||
</template>
|
</template>
|
||||||
<template #headerCell="{ column }">
|
<template #headerCell="{ column }">
|
||||||
<!-- update-begin--author:sunjianlei---date:220230630---for:【QQYUN-5571】自封装选择列,解决数据行选择卡顿问题 -->
|
<!-- update-begin--author:sunjianlei---date:220230630---for:【QQYUN-5571】自封装选择列,解决数据行选择卡顿问题 -->
|
||||||
|
@ -393,6 +399,7 @@
|
||||||
tableAction,
|
tableAction,
|
||||||
redoHeight,
|
redoHeight,
|
||||||
handleResizeColumn: (w, col) => {
|
handleResizeColumn: (w, col) => {
|
||||||
|
console.log('col',col);
|
||||||
col.width = w;
|
col.width = w;
|
||||||
},
|
},
|
||||||
getFormProps: getFormProps as any,
|
getFormProps: getFormProps as any,
|
||||||
|
|
Loading…
Reference in New Issue