Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
erosXXX
uni-app
提交
cf5442c6
U
uni-app
项目概览
erosXXX
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
cf5442c6
编写于
9月 23, 2020
作者:
d-u-a
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
docs: uniCloud schema
上级
d4739cd3
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
16 addition
and
16 deletion
+16
-16
docs/uniCloud/schema.md
docs/uniCloud/schema.md
+16
-16
未找到文件。
docs/uniCloud/schema.md
浏览文件 @
cf5442c6
...
...
@@ -99,7 +99,7 @@ MongoDB支持JSON Schema的草案4,包括核心规范和验证规范,但有
|format|'url'
|
'email'||
|defaultValue|string
|
Object|默认值||
|forceDefaultValue|string
|
Object|覆盖默认值,参考defaultValue|
|
m
essage|string
|
Object |验证提示||
|
errorM
essage|string
|
Object |验证提示||
|order|int|表单排序||
|group|string|分组名称||
|component|Object|组件信息||
...
...
@@ -130,15 +130,15 @@ defaultValue指定新增时当前字段默认值,客户端可以修改此值
```
###
m
essage属性
###
errorM
essage属性
类型为对象时可定义多个
{} 为占位符,可定义已有属性
|属性|类型|描述|
|:-|:-|:-|
|minLength|string|
message
|
|maxLength|string|
message
|
|minLength|string|
消息
|
|maxLength|string|
消息
|
|...|...|...|
示例
...
...
@@ -152,7 +152,7 @@ defaultValue指定新增时当前字段默认值,客户端可以修改此值
"label"
:
"姓名"
,
"minLength"
:
2
,
"maxLength"
:
8
,
"
m
essage"
:
{
"
errorM
essage"
:
{
"required"
:
"{label}必填"
,
"minLength"
:
"{label}不能小于{minLength}个字符"
,
"maxLength"
:
"{label}不能大于{maxLength}个字符"
...
...
@@ -164,7 +164,7 @@ defaultValue指定新增时当前字段默认值,客户端可以修改此值
"label"
:
"年龄"
,
"minimum"
:
1
,
"maximum"
:
150
,
"
m
essage"
:
"{label}应该大于 {minimum} 岁,小于 {maximum} 岁"
"
errorM
essage"
:
"{label}应该大于 {minimum} 岁,小于 {maximum} 岁"
}
}
}
...
...
@@ -196,7 +196,7 @@ defaultValue指定新增时当前字段默认值,客户端可以修改此值
"label"
:
"姓名"
,
"minLength"
:
2
,
"maxLength"
:
8
,
"
m
essage"
:
{
"
errorM
essage"
:
{
"required"
:
"{label}必填"
,
"minLength"
:
"{label}不能小于{minLength}个字符"
},
...
...
@@ -216,7 +216,7 @@ defaultValue指定新增时当前字段默认值,客户端可以修改此值
"label"
:
"年龄"
,
"minimum"
:
1
,
"maximum"
:
150
,
"
m
essage"
:
"{label}应该大于 {minimum} 岁,小于 {maximum} 岁"
,
"
errorM
essage"
:
"{label}应该大于 {minimum} 岁,小于 {maximum} 岁"
,
"component"
:
{
"name"
:
"uni-field"
,
"props"
:
{
...
...
@@ -228,7 +228,7 @@ defaultValue指定新增时当前字段默认值,客户端可以修改此值
"bsonType"
:
"int"
,
"label"
:
"选项"
,
"enum"
:
[
1
,
2
,
3
],
"
m
essage"
:
"{label}无效"
,
"
errorM
essage"
:
"{label}无效"
,
"component"
:
{
"name"
:
"select"
,
"props"
:
{
...
...
@@ -273,7 +273,7 @@ defaultValue指定新增时当前字段默认值,客户端可以修改此值
"group"
:
"基本信息"
,
"minLength"
:
2
,
"maxLength"
:
8
,
"
m
essage"
:
{
"
errorM
essage"
:
{
"required"
:
"{label}必填"
,
"minLength"
:
"{label}不能小于{{minLength}}个字符"
,
"maxLength"
:
"{label}不能大于{{maxLength}}个字符"
...
...
@@ -296,7 +296,7 @@ defaultValue指定新增时当前字段默认值,客户端可以修改此值
"group"
:
"基本信息"
,
"minimum"
:
0
,
"maximum"
:
150
,
"
m
essage"
:
"{label}应该大于 {minimum} 岁,小于 {maximum} 岁"
,
"
errorM
essage"
:
"{label}应该大于 {minimum} 岁,小于 {maximum} 岁"
,
"component"
:
{
"name"
:
"uni-field"
,
"props"
:
{
...
...
@@ -335,7 +335,7 @@ defaultValue指定新增时当前字段默认值,客户端可以修改此值
"name"
:
{
"bsonType"
:
"string"
,
"label"
:
"姓名"
,
"
m
essage"
:
"{label}不能为空"
"
errorM
essage"
:
"{label}不能为空"
}
}
}
...
...
@@ -353,7 +353,7 @@ defaultValue指定新增时当前字段默认值,客户端可以修改此值
"bsonType"
:
"string"
,
"label"
:
"姓名"
,
"minLength"
:
2
,
"
m
essage"
:
{
"
errorM
essage"
:
{
"required"
:
"{label}不能为空"
,
"minLength"
:
"{label}不能小于 {minLength} 个字符"
}
...
...
@@ -373,7 +373,7 @@ defaultValue指定新增时当前字段默认值,客户端可以修改此值
"name"
:
{
"bsonType"
:
"string"
,
"label"
:
"姓名"
,
"
message"
:
'类型无效'
"
errorMessage"
:
"类型无效"
}
}
}
...
...
@@ -391,7 +391,7 @@ defaultValue指定新增时当前字段默认值,客户端可以修改此值
"bsonType"
:
"string"
,
"label"
:
"邮箱"
,
"format"
:
"email"
,
"
m
essage"
:
{
"
errorM
essage"
:
{
"required"
:
"{label}不能为空"
,
"format"
:
"{label}格式无效"
}
...
...
@@ -412,7 +412,7 @@ defaultValue指定新增时当前字段默认值,客户端可以修改此值
"bsonType"
:
"string"
,
"label"
:
"姓名"
,
"pattern"
:
""
,
"
m
essage"
:
{
"
errorM
essage"
:
{
"required"
:
"{label}不能为空"
,
"pattern"
:
"{label}格式无效"
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录