Skip to content

Commit

Permalink
fix(Form.Item): add fullWidth type
Browse files Browse the repository at this point in the history
  • Loading branch information
zuoqi705 authored and youluna committed Jun 1, 2021
1 parent 2fc359d commit fbd41ae
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion types/form/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,11 @@ export interface ItemProps extends React.HTMLAttributes<HTMLElement>, CommonProp
* 子元素的 value 名称
*/
valueName?: string;

/**
* 单个 Item 中表单类组件宽度是否是 100%
*/
fullWidth?: boolean;
}

export class Item extends React.Component<ItemProps, any> {}
Expand Down Expand Up @@ -268,7 +273,7 @@ export interface SubmitProps extends HTMLAttributesWeak, CommonProps {
| 'xl'
| 'xxl'
| 'xxxl';

fullWidth
/**
* 当 component = 'button' 时,设置 button 标签的 type 值
*/
Expand Down

0 comments on commit fbd41ae

Please sign in to comment.