From 30c545157be488a345aff67be1227cd5a4b7e4f7 Mon Sep 17 00:00:00 2001 From: RickCole21 Date: Thu, 24 Dec 2020 16:32:22 +0800 Subject: [PATCH] doc --- docs/components/form/image.md | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/docs/components/form/image.md b/docs/components/form/image.md index 76eebc93a..1136a74e6 100755 --- a/docs/components/form/image.md +++ b/docs/components/form/image.md @@ -27,6 +27,20 @@ order: 27 } ``` +### 接口返回格式 + +```json +{ + "status": 0, + "msg": "", + "data": { + "value": "xxxx" + } +} +``` + +- value:必须返回该字段用作回显,一般是文件资源地址 + ## 限制文件类型 可以配置`accept`来限制可选择的文件类型,格式是文件后缀名`.xxx` @@ -99,9 +113,13 @@ order: 27 ```json { - "value": "xxxxxxx", - "filename": "xxxx.csv", - "url": "http://xxxx.xxx.xxx" + "status": 0, + "msg": "", + "data": { + "value": "xxxxxxx", + "filename": "xxxx.jpg", + "url": "http://xxxx.xxx.xxx" + } } ```