mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-16 01:41:02 +08:00
c51031ae53
* type: optimize type * Apply suggestions from code review Signed-off-by: afc163 <afc163@gmail.com> --------- Signed-off-by: afc163 <afc163@gmail.com> Co-authored-by: afc163 <afc163@gmail.com>
12 lines
275 B
TypeScript
12 lines
275 B
TypeScript
import React from 'react';
|
|
import type { ListGridType } from '.';
|
|
|
|
export interface ListConsumerProps {
|
|
grid?: ListGridType;
|
|
itemLayout?: string;
|
|
}
|
|
|
|
export const ListContext = React.createContext<ListConsumerProps>({});
|
|
|
|
export const ListConsumer = ListContext.Consumer;
|