mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 10:59:42 +08:00
doc
This commit is contained in:
parent
5cc8c28dba
commit
30c545157b
@ -27,6 +27,20 @@ order: 27
|
||||
}
|
||||
```
|
||||
|
||||
### 接口返回格式
|
||||
|
||||
```json
|
||||
{
|
||||
"status": 0,
|
||||
"msg": "",
|
||||
"data": {
|
||||
"value": "xxxx"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
- value:必须返回该字段用作回显,一般是文件资源地址
|
||||
|
||||
## 限制文件类型
|
||||
|
||||
可以配置`accept`来限制可选择的文件类型,格式是文件后缀名`.xxx`
|
||||
@ -99,9 +113,13 @@ order: 27
|
||||
|
||||
```json
|
||||
{
|
||||
"status": 0,
|
||||
"msg": "",
|
||||
"data": {
|
||||
"value": "xxxxxxx",
|
||||
"filename": "xxxx.csv",
|
||||
"filename": "xxxx.jpg",
|
||||
"url": "http://xxxx.xxx.xxx"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user