Merge remote-tracking branch 'baidu/master'

This commit is contained in:
liaoxuezhi 2020-11-01 11:58:40 +08:00
commit fe1c4aa05b
3 changed files with 20 additions and 3 deletions

View File

@ -28,6 +28,20 @@ order: 21
}
```
### 接口返回格式
```json
{
"status": 0,
"msg": "",
"data": {
"value": "xxxx"
}
}
```
- value必须返回该字段用作回显一般是文件资源地址
## 限制文件类型
可以配置`accept`来限制可选择的文件类型,格式是文件后缀名`.xxx`

View File

@ -1,6 +1,6 @@
{
"name": "amis",
"version": "1.0.18-beta.15",
"version": "1.0.18",
"description": "一种MIS页面生成工具",
"main": "lib/index.js",
"scripts": {

View File

@ -103,7 +103,8 @@ class Remark extends React.Component<RemarkProps> {
classnames: cx,
content,
data,
env
env,
tooltipClassName
} = this.props;
const finalIcon = tooltip?.icon ?? icon;
@ -114,7 +115,9 @@ class Remark extends React.Component<RemarkProps> {
classPrefix={ns}
classnames={cx}
tooltip={filterContents(tooltip || content, data)}
tooltipClassName={tooltip && tooltip.tooltipClassName}
tooltipClassName={
(tooltip && tooltip.tooltipClassName) || tooltipClassName
}
placement={(tooltip && tooltip.placement) || placement}
rootClose={(tooltip && tooltip.rootClose) || rootClose}
trigger={(tooltip && tooltip.trigger) || trigger}