fix(formItem): Fix labelcol type mismatch (#903)

*修复antdv升级后formItem中labelCol没有类型style的bug
This commit is contained in:
lzdjack 2021-07-18 23:25:51 +08:00 committed by GitHub
parent 8832a074dc
commit 03b17a8f8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
import type { NamePath } from 'ant-design-vue/lib/form/interface';
import type { ColProps } from 'ant-design-vue/lib/grid/Col';
import type { VNodeChild } from 'vue';
import type { HTMLAttributes, VNodeChild } from 'vue';
export interface FormItem {
/**
@ -39,7 +39,7 @@ export interface FormItem {
* The layout of label. You can set span offset to something like {span: 3, offset: 12} or sm: {span: 3, offset: 12} same as with <Col>
* @type Col
*/
labelCol?: ColProps;
labelCol?: ColProps & HTMLAttributes;
/**
* Whether provided or not, it will be generated by the validation rule.