cellFoundation.ts 376 B

1234567891011
  1. import BaseFoundation, { DefaultAdapter } from '../base/foundation';
  2. export interface TableCellAdapter extends DefaultAdapter {
  3. notifyClick: (record: Record<string, any>, e: any) => void;
  4. }
  5. export default class TableCellFoundation extends BaseFoundation<TableCellAdapter> {
  6. handleClick(e: any) {
  7. this._adapter.notifyClick(this.getProp('record'), e);
  8. }
  9. }