mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-13 04:53:11 +08:00
chore: grid (#35847)
This commit is contained in:
parent
a434ec7614
commit
e1b5595f83
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
// deps-lint-skip-all
|
// deps-lint-skip-all
|
||||||
import type { CSSObject } from '@ant-design/cssinjs';
|
import type { CSSObject } from '@ant-design/cssinjs';
|
||||||
import type { GenerateStyle, FullToken } from '../../_util/theme';
|
import type { FullToken, GenerateStyle } from '../../_util/theme';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../_util/theme';
|
import { genComponentStyleHook, mergeToken } from '../../_util/theme';
|
||||||
|
|
||||||
interface GridRowToken extends FullToken<'Grid'> {}
|
interface GridRowToken extends FullToken<'Grid'> {}
|
||||||
@ -154,7 +154,7 @@ export const useRowStyle = genComponentStyleHook('Grid', token => [genGridRowSty
|
|||||||
|
|
||||||
export const useColStyle = genComponentStyleHook('Grid', token => {
|
export const useColStyle = genComponentStyleHook('Grid', token => {
|
||||||
const gridToken: GridColToken = mergeToken<GridColToken>(token, {
|
const gridToken: GridColToken = mergeToken<GridColToken>(token, {
|
||||||
gridColumns: 24, // FIXME: hardcode in v4
|
gridColumns: 24, // Row is divided into 24 parts in Grid
|
||||||
});
|
});
|
||||||
|
|
||||||
const gridMediaSizesMap = {
|
const gridMediaSizesMap = {
|
||||||
|
Loading…
Reference in New Issue
Block a user