mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
type(Grid): enhance autocompletion for Col
(#41453)
* fix: better autocompletion * chore: fix lint
This commit is contained in:
parent
16dc06cfe6
commit
022274d088
@ -3,11 +3,12 @@ import * as React from 'react';
|
||||
import { ConfigContext } from '../config-provider';
|
||||
import RowContext from './RowContext';
|
||||
import { useColStyle } from './style';
|
||||
import type { LiteralUnion } from '../_util/type';
|
||||
|
||||
// https://github.com/ant-design/ant-design/issues/14324
|
||||
type ColSpanType = number | string;
|
||||
|
||||
type FlexType = number | 'none' | 'auto' | string;
|
||||
type FlexType = number | LiteralUnion<'none' | 'auto'>;
|
||||
|
||||
export interface ColSize {
|
||||
flex?: FlexType;
|
||||
|
Loading…
Reference in New Issue
Block a user