mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:48:13 +08:00
parent
6011308802
commit
80e93078be
@ -154,10 +154,7 @@ export class TableCell extends React.Component<TableCellProps> {
|
|||||||
<Component
|
<Component
|
||||||
rowSpan={rowSpan > 1 ? rowSpan : undefined}
|
rowSpan={rowSpan > 1 ? rowSpan : undefined}
|
||||||
style={style}
|
style={style}
|
||||||
className={cx(
|
className={cx(className)}
|
||||||
className,
|
|
||||||
column.classNameExpr ? filter(column.classNameExpr, data) : null
|
|
||||||
)}
|
|
||||||
tabIndex={tabIndex}
|
tabIndex={tabIndex}
|
||||||
onKeyUp={onKeyUp}
|
onKeyUp={onKeyUp}
|
||||||
>
|
>
|
||||||
|
@ -993,16 +993,6 @@ export default class Table2 extends React.Component<Table2Props, object> {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 设置了单元格样式
|
|
||||||
if (column.classNameExpr) {
|
|
||||||
clone.className = (record: any, rowIndex: number) => {
|
|
||||||
const className = filter(column.classNameExpr, {record, rowIndex});
|
|
||||||
return `${className}${
|
|
||||||
column.className ? ` ${column.className}` : ''
|
|
||||||
}`;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
// 设置了列搜索
|
// 设置了列搜索
|
||||||
if (column.searchable) {
|
if (column.searchable) {
|
||||||
clone.filterDropdown = (
|
clone.filterDropdown = (
|
||||||
|
Loading…
Reference in New Issue
Block a user