Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
basic-vue-admin
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-vue-admin
Commits
03b17a8f
Unverified
提交
03b17a8f
authored
7月 18, 2021
作者:
lzdjack
提交者:
GitHub
7月 18, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(formItem): Fix labelcol type mismatch (#903)
*修复antdv升级后formItem中labelCol没有类型style的bug
上级
8832a074
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
91 行增加
和
91 行删除
+91
-91
formItem.ts
src/components/Form/src/types/formItem.ts
+91
-91
没有找到文件。
src/components/Form/src/types/formItem.ts
浏览文件 @
03b17a8f
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
{
/**
/**
* Used with label, whether to display : after label text.
* Used with label, whether to display : after label text.
* @default true
* @default true
* @type boolean
* @type boolean
*/
*/
colon
?:
boolean
;
colon
?:
boolean
;
/**
/**
* The extra prompt message. It is similar to help. Usage example: to display error message and prompt message at the same time.
* The extra prompt message. It is similar to help. Usage example: to display error message and prompt message at the same time.
* @type any (string | slot)
* @type any (string | slot)
*/
*/
extra
?:
string
|
VNodeChild
|
JSX
.
Element
;
extra
?:
string
|
VNodeChild
|
JSX
.
Element
;
/**
/**
* Used with validateStatus, this option specifies the validation status icon. Recommended to be used only with Input.
* Used with validateStatus, this option specifies the validation status icon. Recommended to be used only with Input.
* @default false
* @default false
* @type boolean
* @type boolean
*/
*/
hasFeedback
?:
boolean
;
hasFeedback
?:
boolean
;
/**
/**
* The prompt message. If not provided, the prompt message will be generated by the validation rule.
* The prompt message. If not provided, the prompt message will be generated by the validation rule.
* @type any (string | slot)
* @type any (string | slot)
*/
*/
help
?:
string
|
VNodeChild
|
JSX
.
Element
;
help
?:
string
|
VNodeChild
|
JSX
.
Element
;
/**
/**
* Label test
* Label test
* @type any (string | slot)
* @type any (string | slot)
*/
*/
label
?:
string
|
VNodeChild
|
JSX
.
Element
;
label
?:
string
|
VNodeChild
|
JSX
.
Element
;
/**
/**
* 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.
* @default false
* @default false
* @type boolean
* @type boolean
*/
*/
required
?:
boolean
;
required
?:
boolean
;
/**
/**
* The validation status. If not provided, it will be generated by validation rule. options: 'success' 'warning' 'error' 'validating'
* The validation status. If not provided, it will be generated by validation rule. options: 'success' 'warning' 'error' 'validating'
* @type string
* @type string
*/
*/
validateStatus
?:
''
|
'success'
|
'warning'
|
'error'
|
'validating'
;
validateStatus
?:
''
|
'success'
|
'warning'
|
'error'
|
'validating'
;
/**
/**
* The layout for input controls, same as labelCol
* The layout for input controls, same as labelCol
* @type Col
* @type Col
*/
*/
wrapperCol
?:
ColProps
;
wrapperCol
?:
ColProps
;
/**
/**
* Set sub label htmlFor.
* Set sub label htmlFor.
*/
*/
htmlFor
?:
string
;
htmlFor
?:
string
;
/**
/**
* text align of label
* text align of label
*/
*/
labelAlign
?:
'left'
|
'right'
;
labelAlign
?:
'left'
|
'right'
;
/**
/**
* a key of model. In the setting of validate and resetFields method, the attribute is required
* a key of model. In the setting of validate and resetFields method, the attribute is required
*/
*/
name
?:
NamePath
;
name
?:
NamePath
;
/**
/**
* validation rules of form
* validation rules of form
*/
*/
rules
?:
object
|
object
[];
rules
?:
object
|
object
[];
/**
/**
* Whether to automatically associate form fields. In most cases, you can setting automatic association.
* Whether to automatically associate form fields. In most cases, you can setting automatic association.
* If the conditions for automatic association are not met, you can manually associate them. See the notes below.
* If the conditions for automatic association are not met, you can manually associate them. See the notes below.
*/
*/
autoLink
?:
boolean
;
autoLink
?:
boolean
;
/**
/**
* Whether stop validate on first rule of error for this field.
* Whether stop validate on first rule of error for this field.
*/
*/
validateFirst
?:
boolean
;
validateFirst
?:
boolean
;
/**
/**
* When to validate the value of children node
* When to validate the value of children node
*/
*/
validateTrigger
?:
string
|
string
[]
|
false
;
validateTrigger
?:
string
|
string
[]
|
false
;
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论