mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-05 09:49:57 +08:00
502dac12aa
* docs: fix code * feat: lint * feat: prettier * feat: test * feat: review * feat: format html * feat: format html
13 lines
276 B
TypeScript
13 lines
276 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;
|