amis-rpc-design/node_modules/rc-overflow/es/Item.d.ts

25 lines
871 B
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
import * as React from 'react';
import type { ComponentType } from './RawItem';
export interface ItemProps<ItemType> extends React.HTMLAttributes<any> {
prefixCls: string;
item?: ItemType;
className?: string;
style?: React.CSSProperties;
renderItem?: (item: ItemType) => React.ReactNode;
responsive?: boolean;
/**
* @private To make node structure stable. We need keep wrap with ResizeObserver.
* But disable it when it's no need to real measure.
*/
responsiveDisabled?: boolean;
itemKey?: React.Key;
registerSize: (key: React.Key, width: number | null) => void;
children?: React.ReactNode;
display: boolean;
order: number;
component?: ComponentType;
invalidate?: boolean;
}
declare const Item: React.ForwardRefExoticComponent<ItemProps<unknown> & React.RefAttributes<any>>;
export default Item;