x-render / docs /playground /json /input.json
AbdulElahGwaith's picture
Upload folder using huggingface_hub
c9d0005 verified
Raw
History Blame Contribute Delete
2.13 kB
{
"schema": {
"type": "object",
"properties": {
"string": {
"title": "字符串",
"description": "带清空x按钮",
"type": "string",
"default": "hello world",
"props": {
"allowClear": true
},
"width": "50%"
},
"string2": {
"title": "复杂校验",
"description": "pattern和message的用法",
"type": "string",
"rules": [
{ "pattern": "^[A-Za-z0-9]+$", "message": "请输入数字或英文字母" }
],
"placeholder": "请输入数字或英文",
"width": "50%"
},
"string3": {
"title": "长度控制",
"description": "长度在5-15个字之间",
"type": "string",
"minLength": 5,
"maxLength": 15,
"width": "50%"
},
"string4": {
"title": "前置/后置标签",
"type": "string",
"props": {
"addonBefore": "长度",
"addonAfter": "px"
},
"width": "50%"
},
"string5": {
"title": "前后缀",
"type": "string",
"rules": [
{
"pattern": "^[0-9]+$",
"message": "请输入数字"
}
],
"props": {
"prefix": "¥",
"suffix": "RMB"
},
"width": "50%"
},
"string6": {
"title": "置灰的输入框",
"type": "string",
"disabled": true,
"default": "hello world",
"width": "50%"
},
"string7": {
"title": "文本框",
"description": "固定高度",
"type": "string",
"format": "textarea",
"props": {
"row": 4
}
},
"string8": {
"title": "文本框",
"description": "自动高度",
"type": "string",
"format": "textarea",
"placeholder": "根据内容缩放",
"props": {
"autoSize": {
"minRows": 3,
"maxRows": 5
}
}
}
},
"required": ["string4", "string5"]
},
"formData": {}
}