mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-05 05:18:34 +08:00
76 lines
2.5 KiB
JSON
76 lines
2.5 KiB
JSON
{
|
|
"$id": "https://houtai.baidu.com/v2/schemas/date.json#",
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"allOf": [
|
|
{
|
|
"$ref": "https://houtai.baidu.com/v2/schemas/date.json#/definitions/common"
|
|
},
|
|
{
|
|
"additionalProperties": false,
|
|
"dependencies": {},
|
|
"patternProperties": {
|
|
"^(\\$ref|className|format|valueFormat|placeholder|label|name|popOver|quickEdit|sortable|searchable|toggled|fixed)$": {}
|
|
},
|
|
"properties": {
|
|
"$schema": {
|
|
"format": "uri",
|
|
"type": "string",
|
|
"description": "绑定 JSON 格式说明,可忽略!"
|
|
},
|
|
"type": {
|
|
"description": "指定为日期展示类型",
|
|
"enum": [
|
|
"date",
|
|
"datetime",
|
|
"time"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"type"
|
|
],
|
|
"type": "object"
|
|
}
|
|
],
|
|
"definitions": {
|
|
"common": {
|
|
"description": "AMis date 渲染器格式说明。",
|
|
"properties": {
|
|
"$ref": {
|
|
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/$ref",
|
|
"description": "引用页面中的定义"
|
|
},
|
|
"className": {
|
|
"$ref": "https://houtai.baidu.com/v2/schemas/page.json#/definitions/className",
|
|
"description": "配置容器 className"
|
|
},
|
|
"format": {
|
|
"description": "展示的时间格式,参考 moment 中的格式说明。",
|
|
"type": "string"
|
|
},
|
|
"placeholder": {
|
|
"description": "占位符",
|
|
"type": "string"
|
|
},
|
|
"valueFormat": {
|
|
"description": "值的时间格式,参考 moment 中的格式说明。",
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"test": {
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
"date",
|
|
"datetime",
|
|
"time"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"description": "AMis date 渲染器格式说明。",
|
|
"type": "object"
|
|
} |