Blame view

天文台pc/tianwentai-ui/node_modules/@mui/material/esm/TableRow/TableRow.d.ts 1.6 KB
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
  import * as React from 'react';
  import { SxProps } from '@mui/system';
  import { Theme } from "../styles/index.js";
  import { OverridableComponent, OverrideProps } from "../OverridableComponent/index.js";
  import { TableRowClasses } from "./tableRowClasses.js";
  export interface TableRowOwnProps {
    /**
     * Should be valid `<tr>` children such as `TableCell`.
     */
    children?: React.ReactNode;
    /**
     * Override or extend the styles applied to the component.
     */
    classes?: Partial<TableRowClasses>;
    /**
     * If `true`, the table row will shade on hover.
     * @default false
     */
    hover?: boolean;
    /**
     * If `true`, the table row will have the selected shading.
     * @default false
     */
    selected?: boolean;
    /**
     * The system prop that allows defining system overrides as well as additional CSS styles.
     */
    sx?: SxProps<Theme>;
  }
  export interface TableRowTypeMap<AdditionalProps = {}, RootComponent extends React.ElementType = 'tr'> {
    props: AdditionalProps & TableRowOwnProps;
    defaultComponent: RootComponent;
  }
  /**
   * Will automatically set dynamic row height
   * based on the material table element parent (head, body, etc).
   *
   * Demos:
   *
   * - [Table](https://mui.com/material-ui/react-table/)
   *
   * API:
   *
   * - [TableRow API](https://mui.com/material-ui/api/table-row/)
   */
  declare const TableRow: OverridableComponent<TableRowTypeMap>;
  export type TableRowProps<RootComponent extends React.ElementType = TableRowTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<TableRowTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
    component?: React.ElementType;
  };
  export default TableRow;