mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:58:05 +08:00
parent
6011308802
commit
80e93078be
@ -154,10 +154,7 @@ export class TableCell extends React.Component<TableCellProps> {
|
||||
<Component
|
||||
rowSpan={rowSpan > 1 ? rowSpan : undefined}
|
||||
style={style}
|
||||
className={cx(
|
||||
className,
|
||||
column.classNameExpr ? filter(column.classNameExpr, data) : null
|
||||
)}
|
||||
className={cx(className)}
|
||||
tabIndex={tabIndex}
|
||||
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) {
|
||||
clone.filterDropdown = (
|
||||
|
Loading…
Reference in New Issue
Block a user