parent
4c559c86ab
commit
b0d226d33e
|
@ -1146,7 +1146,9 @@ export default {
|
||||||
getPopupContainer: contextGetPopupContainer,
|
getPopupContainer: contextGetPopupContainer,
|
||||||
transformCellText,
|
transformCellText,
|
||||||
}) {
|
}) {
|
||||||
const { showHeader, locale, getPopupContainer, ...restProps } = getOptionProps(this);
|
const { showHeader, locale, getPopupContainer, expandIcon, ...restProps } = getOptionProps(
|
||||||
|
this,
|
||||||
|
);
|
||||||
const data = this.getCurrentPageData();
|
const data = this.getCurrentPageData();
|
||||||
const expandIconAsCell = this.expandedRowRender && this.expandIconAsCell !== false;
|
const expandIconAsCell = this.expandedRowRender && this.expandIconAsCell !== false;
|
||||||
|
|
||||||
|
@ -1190,7 +1192,7 @@ export default {
|
||||||
const vcTableProps = {
|
const vcTableProps = {
|
||||||
key: 'table',
|
key: 'table',
|
||||||
props: {
|
props: {
|
||||||
expandIcon: this.renderExpandIcon(prefixCls),
|
expandIcon: expandIcon || this.renderExpandIcon(prefixCls),
|
||||||
...restProps,
|
...restProps,
|
||||||
customRow: (record, index) => this.onRow(prefixCls, record, index),
|
customRow: (record, index) => this.onRow(prefixCls, record, index),
|
||||||
components: this.sComponents,
|
components: this.sComponents,
|
||||||
|
|
|
@ -112,6 +112,7 @@ const Table = {
|
||||||
title: slotTitle,
|
title: slotTitle,
|
||||||
footer: slotFooter,
|
footer: slotFooter,
|
||||||
expandedRowRender = props.expandedRowRender,
|
expandedRowRender = props.expandedRowRender,
|
||||||
|
expandIcon,
|
||||||
} = $scopedSlots;
|
} = $scopedSlots;
|
||||||
title = title || slotTitle;
|
title = title || slotTitle;
|
||||||
footer = footer || slotFooter;
|
footer = footer || slotFooter;
|
||||||
|
@ -122,6 +123,7 @@ const Table = {
|
||||||
title,
|
title,
|
||||||
footer,
|
footer,
|
||||||
expandedRowRender,
|
expandedRowRender,
|
||||||
|
expandIcon: this.$props.expandIcon || expandIcon,
|
||||||
},
|
},
|
||||||
on: getListeners(this),
|
on: getListeners(this),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue