mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-23 17:50:25 +08:00
fix(formItem): Fix labelcol type mismatch (#903)
*修复antdv升级后formItem中labelCol没有类型style的bug
This commit is contained in:
parent
8832a074dc
commit
03b17a8f8b
@ -1,6 +1,6 @@
|
|||||||
import type { NamePath } from 'ant-design-vue/lib/form/interface';
|
import type { NamePath } from 'ant-design-vue/lib/form/interface';
|
||||||
import type { ColProps } from 'ant-design-vue/lib/grid/Col';
|
import type { ColProps } from 'ant-design-vue/lib/grid/Col';
|
||||||
import type { VNodeChild } from 'vue';
|
import type { HTMLAttributes, VNodeChild } from 'vue';
|
||||||
|
|
||||||
export interface FormItem {
|
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>
|
* 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
|
* @type Col
|
||||||
*/
|
*/
|
||||||
labelCol?: ColProps;
|
labelCol?: ColProps & HTMLAttributes;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether provided or not, it will be generated by the validation rule.
|
* Whether provided or not, it will be generated by the validation rule.
|
||||||
|
Loading…
Reference in New Issue
Block a user