未验证 提交 7e209f0a 编写于 作者: J Jonathan Gabaut 提交者: GitHub

fix: add `flex` type to `ColSize` interface (#26578)

According to the API in the docs and based on my own usage, it's a valid value so let's make it official!
上级 9663b242
......@@ -9,6 +9,7 @@ type ColSpanType = number | string;
type FlexType = number | 'none' | 'auto' | string;
export interface ColSize {
flex?: FlexType;
span?: ColSpanType;
order?: ColSpanType;
offset?: ColSpanType;
......@@ -17,6 +18,7 @@ export interface ColSize {
}
export interface ColProps extends React.HTMLAttributes<HTMLDivElement> {
flex?: FlexType;
span?: ColSpanType;
order?: ColSpanType;
offset?: ColSpanType;
......@@ -29,7 +31,6 @@ export interface ColProps extends React.HTMLAttributes<HTMLDivElement> {
xl?: ColSpanType | ColSize;
xxl?: ColSpanType | ColSize;
prefixCls?: string;
flex?: FlexType;
}
function parseFlex(flex: FlexType): string {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册