diff --git a/docs/tab/index.md b/docs/tab/index.md index 957570f4b2..db01f518df 100644 --- a/docs/tab/index.md +++ b/docs/tab/index.md @@ -33,8 +33,8 @@ Fusion 提供了三级选项卡,分别用于不同的场景。 | 参数 | 说明 | 类型 | 默认值 | | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | -------- | -| activeKey | 被激活的选项卡的 key, 赋值则tab为受控组件, 用户无法切换 | Number/String | - | | size | 尺寸

**可选值**:
'small', 'medium' | Enum | 'medium' | +| activeKey | 被激活的选项卡的 key, 赋值则tab为受控组件, 用户无法切换 | Number/String | - | | shape | 外观形态

**可选值**:
'pure', 'wrapped', 'text', 'capsule' | Enum | 'pure' | | defaultActiveKey | 初始化时被激活的选项卡的 key | Number/String | - | | animation | 是否开启动效 | Boolean | true | diff --git a/docs/upload/index.md b/docs/upload/index.md index b509ffefbc..ee474121e7 100644 --- a/docs/upload/index.md +++ b/docs/upload/index.md @@ -52,6 +52,7 @@ | progressProps | 透传给Progress props | Object | - | | isPreview | 是否为预览态 | Boolean | - | | renderPreview | 预览态模式下渲染的内容

**签名**:
Function(value: number) => void
**参数**:
_value_: {number} 评分值 | Function | - | +| fileKeyName | 文件对象的 key name | String | - | ### Upload.Card diff --git a/src/upload/upload.jsx b/src/upload/upload.jsx index e0e7328940..9326142f6b 100644 --- a/src/upload/upload.jsx +++ b/src/upload/upload.jsx @@ -167,6 +167,10 @@ class Upload extends Base { * @param {number} value 评分值 */ renderPreview: PropTypes.func, + /** + * 文件对象的 key name + */ + fileKeyName: PropTypes.string, }; static defaultProps = { @@ -472,6 +476,8 @@ class Upload extends Base { rtl, isPreview, renderPreview, + name, + fileKeyName = name, ...others } = this.props; @@ -534,6 +540,7 @@ class Upload extends Base {