Skip to content

Commit

Permalink
fix(List): delete unuseful props
Browse files Browse the repository at this point in the history
  • Loading branch information
ImJustAMan committed May 24, 2021
1 parent 5f7fab4 commit 7b57a29
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion src/List/ListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ const ListItem: React.FC<IListItemPropsType> = props => {
ListItem.defaultProps = {
subtitle: '',
extra: '',
showAll: false,
arrow: 'none',
};

Expand Down
10 changes: 0 additions & 10 deletions src/List/PropsType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ type listItemArrowType = 'up' | 'down' | 'horizontal' | 'none';
* List properties
*/
export interface IListPropsType {
/**
* @description 是否设置列表圆角
* @default false
*/
radius?: boolean;
/**
* @description 列表头部内容
* @default ""
Expand Down Expand Up @@ -44,11 +39,6 @@ export interface IListItemPropsType {
* @type string | React.ReactElement
*/
extra?: renderType;
/**
* @description 列表额外内容是否换行显示全部内容
* @default false
*/
showAll?: boolean;
/**
* @description 列表尾端箭头方向 设置none时不显示
* @default "none"
Expand Down
1 change: 0 additions & 1 deletion src/List/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ const List: React.FC<IListPropsType> & { Item: typeof ListItem } = props => {

List.Item = ListItem;
List.defaultProps = {
radius: false,
renderHeader: '',
renderFooter: '',
};
Expand Down

0 comments on commit 7b57a29

Please sign in to comment.