mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 12:09:14 +08:00
4c91896abb
* refactor: use token instead of constant in size * fix: fix * fix: fix * test: update snap * fix: update snap * test: fix test case * fix: fix * fix: fix * fix: fix * fix: fix tast cov * fix: fix test case * chore: add comment * chore: add comment * chore: add comment * chore: rename * chore: rename * fix: fix test case * fix: fix test case * fix: fix * fix: fix * fix: fix * fix: fix * test: add test case * fix: fix * test: update snap * fix: fix * fix: fix * test: update * test: update * chore: fix * fix: type * test: remove test
18 lines
382 B
TypeScript
18 lines
382 B
TypeScript
import React from 'react';
|
|
|
|
export interface SpaceContextType {
|
|
latestIndex: number;
|
|
horizontalSize: number;
|
|
verticalSize: number;
|
|
supportFlexGap: boolean;
|
|
}
|
|
|
|
export const SpaceContext = React.createContext<SpaceContextType>({
|
|
latestIndex: 0,
|
|
horizontalSize: 0,
|
|
verticalSize: 0,
|
|
supportFlexGap: false,
|
|
});
|
|
|
|
export const SpaceContextProvider = SpaceContext.Provider;
|