Skip to content

Commit

Permalink
fix(SplitButton): fix typescript type error , close alibaba-fusion#4037
Browse files Browse the repository at this point in the history
alibaba-fusion#4047 (alibaba-fusion#4048)

* fix(SplitButton): optimize ts, close alibaba-fusion#4037 alibaba-fusion#4047

* chore(*): add ts, close #40337 alibaba-fusion#4047 alibaba-fusion#4044

* chore(*): update upload itemRender ts, close #40337 alibaba-fusion#4047 alibaba-fusion#4044
  • Loading branch information
weinianyang authored Aug 25, 2022
1 parent 2d2656e commit a2232bf
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
6 changes: 6 additions & 0 deletions types/split-button/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ export interface SplitButtonProps extends HTMLAttributesWeak, CommonProps {
* 透传给 左侧按钮 的属性
*/
leftButtonProps?: ButtonProps;

/**
* 是否跟随滚动
*/
followTrigger?: boolean;

}

export default class SplitButton extends React.Component<SplitButtonProps, any> {
Expand Down
5 changes: 5 additions & 0 deletions types/tree-select/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,11 @@ export interface TreeSelectProps extends HTMLAttributesWeak, CommonProps {
filterLocal?: boolean;

immutable?: boolean;

/**
* 填充到选择框里的值的 key,默认是 value
*/
fillProps?: string;
}

export default class TreeSelect extends React.Component<TreeSelectProps, any> {}
20 changes: 20 additions & 0 deletions types/upload/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,16 @@ export interface CardProps extends HTMLAttributesWeak, CommonProps {
* 调用系统设备媒体
*/
capture?: string;

/**
* 自定义成功和失败的列表渲染方式
*/
itemRender?: (file: File, obj: { remove?: () => void }) => React.ReactNode;

/**
* 选择新文件上传并替换
*/
reUpload?: boolean;
}

export class Card extends React.Component<CardProps, any> {}
Expand Down Expand Up @@ -480,6 +490,16 @@ export interface UploadProps extends HTMLAttributesWeak, CommonProps {
* @version 1.24
*/
previewOnFileName?: boolean,

/**
* 自定义成功和失败的列表渲染方式
*/
itemRender?: (file: File, obj: { remove?: () => void }) => React.ReactNode;

/**
* 选择新文件上传并替换
*/
reUpload?: boolean;
}

export default class Upload extends React.Component<UploadProps, any> {
Expand Down

0 comments on commit a2232bf

Please sign in to comment.