mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-05 21:39:53 +08:00
872 B
872 B
title | description | type | group | menuName | icon | order |
---|---|---|---|---|---|---|
UUID 字段 | 0 | null | UUID 字段 | 30 |
基本用法
随机生成一个 id,可以用于防止表单重复提交。
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"debug": true,
"controls": [
{
"type": "uuid",
"name": "uuid"
}
]
}
这个字段是不显示的,上面这个例子之所以显示是因为加了 debug: true
。
length
目前 uuid 的唯一可设置参数是 length,用于生成短随机数
{
"type": "form",
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
"debug": true,
"controls": [
{
"type": "uuid",
"name": "uuid",
"length": 8
}
]
}