* chore: update type col

* fix(textarea type):autosize to autoSize
pull/2725/head^2
binhaoCen 2020-08-19 21:44:47 +08:00 committed by GitHub
parent bd71e3806b
commit a60c0d37bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 70 additions and 67 deletions

27
types/grid/col.d.ts vendored
View File

@ -5,81 +5,84 @@
import { AntdComponent } from '../component'; import { AntdComponent } from '../component';
type ColSpanType = number | string; type ColSpanType = number | string;
export declare class Col extends AntdComponent { export declare class Col extends AntdComponent {
$props: {
/** /**
* raster number of cells to occupy, 0 corresponds to display: none * raster number of cells to occupy, 0 corresponds to display: none
* @default none (0) * @default none (0)
* @type ColSpanType * @type ColSpanType
*/ */
span: ColSpanType; span?: ColSpanType;
/** /**
* raster order, used in flex layout mode * raster order, used in flex layout mode
* @default 0 * @default 0
* @type ColSpanType * @type ColSpanType
*/ */
order: ColSpanType; order?: ColSpanType;
/** /**
* the layout fill of flex * the layout fill of flex
* @default none * @default none
* @type ColSpanType * @type ColSpanType
*/ */
flex: ColSpanType; flex?: ColSpanType;
/** /**
* the number of cells to offset Col from the left * the number of cells to offset Col from the left
* @default 0 * @default 0
* @type ColSpanType * @type ColSpanType
*/ */
offset: ColSpanType; offset?: ColSpanType;
/** /**
* the number of cells that raster is moved to the right * the number of cells that raster is moved to the right
* @default 0 * @default 0
* @type ColSpanType * @type ColSpanType
*/ */
push: ColSpanType; push?: ColSpanType;
/** /**
* the number of cells that raster is moved to the left * the number of cells that raster is moved to the left
* @default 0 * @default 0
* @type ColSpanType * @type ColSpanType
*/ */
pull: ColSpanType; pull?: ColSpanType;
/** /**
* <576px and also default setting, could be a span value or an object containing above props * <576px and also default setting, could be a span value or an object containing above props
* @type { span: ColSpanType, offset: ColSpanType } | ColSpanType * @type { span: ColSpanType, offset: ColSpanType } | ColSpanType
*/ */
xs: { span: ColSpanType; offset: ColSpanType } | ColSpanType; xs?: { span: ColSpanType; offset: ColSpanType } | ColSpanType;
/** /**
* 576px, could be a span value or an object containing above props * 576px, could be a span value or an object containing above props
* @type { span: ColSpanType, offset: ColSpanType } | ColSpanType * @type { span: ColSpanType, offset: ColSpanType } | ColSpanType
*/ */
sm: { span: ColSpanType; offset: ColSpanType } | ColSpanType; sm?: { span: ColSpanType; offset: ColSpanType } | ColSpanType;
/** /**
* 768px, could be a span value or an object containing above props * 768px, could be a span value or an object containing above props
* @type { span: ColSpanType, offset: ColSpanType } | ColSpanType * @type { span: ColSpanType, offset: ColSpanType } | ColSpanType
*/ */
md: { span: ColSpanType; offset: ColSpanType } | ColSpanType; md?: { span: ColSpanType; offset: ColSpanType } | ColSpanType;
/** /**
* 992px, could be a span value or an object containing above props * 992px, could be a span value or an object containing above props
* @type { span: ColSpanType, offset: ColSpanType } | ColSpanType * @type { span: ColSpanType, offset: ColSpanType } | ColSpanType
*/ */
lg: { span: ColSpanType; offset: ColSpanType } | ColSpanType; lg?: { span: ColSpanType; offset: ColSpanType } | ColSpanType;
/** /**
* 1200px, could be a span value or an object containing above props * 1200px, could be a span value or an object containing above props
* @type { span: ColSpanType, offset: ColSpanType } | ColSpanType * @type { span: ColSpanType, offset: ColSpanType } | ColSpanType
*/ */
xl: { span: ColSpanType; offset: ColSpanType } | ColSpanType; xl?: { span: ColSpanType; offset: ColSpanType } | ColSpanType;
/** /**
* 1600px, could be a span value or an object containing above props * 1600px, could be a span value or an object containing above props
* @type { span: ColSpanType, offset: ColSpanType } | ColSpanType * @type { span: ColSpanType, offset: ColSpanType } | ColSpanType
*/ */
xxl: { span: ColSpanType; offset: ColSpanType } | ColSpanType; xxl?: { span: ColSpanType; offset: ColSpanType } | ColSpanType;
}
} }

View File

@ -10,7 +10,7 @@ export declare class TextArea extends AntdComponent {
* @default false * @default false
* @type boolean | object * @type boolean | object
*/ */
autosize?: boolean | { minRows: number; maxRows: number }; autoSize?: boolean | { minRows: number; maxRows: number };
/** /**
* The initial input content * The initial input content