-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Icon): support input required type
- Loading branch information
anlyyao
committed
Sep 2, 2024
1 parent
825a748
commit 14b3ff3
Showing
7 changed files
with
79 additions
and
78 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* eslint-disable */ | ||
|
||
/** | ||
* 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC | ||
* */ | ||
|
||
import { TdIconProps } from './type'; | ||
const props: TdIconProps = { | ||
/** 图标颜色 */ | ||
color: { | ||
type: String, | ||
value: '', | ||
}, | ||
/** 图标名称或图片链接 */ | ||
name: { | ||
type: String, | ||
value: '', | ||
required: true, | ||
}, | ||
/** 自定义图标前缀 */ | ||
prefix: { | ||
type: String, | ||
value: '', | ||
}, | ||
/** 图标大小, 如 `20`, `20px`, `48rpx`, 默认单位是 `px` */ | ||
size: { | ||
type: null, | ||
}, | ||
}; | ||
|
||
export default props; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* eslint-disable */ | ||
|
||
/** | ||
* 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC | ||
* */ | ||
|
||
export interface TdIconProps { | ||
/** | ||
* 图标颜色 | ||
* @default '' | ||
*/ | ||
color?: { | ||
type: StringConstructor; | ||
value?: string; | ||
}; | ||
/** | ||
* 图标名称或图片链接 | ||
* @default '' | ||
*/ | ||
name: { | ||
type: StringConstructor; | ||
value?: string; | ||
required?: boolean; | ||
}; | ||
/** | ||
* 自定义图标前缀 | ||
* @default '' | ||
*/ | ||
prefix?: { | ||
type: StringConstructor; | ||
value?: string; | ||
}; | ||
/** | ||
* 图标大小, 如 `20`, `20px`, `48rpx`, 默认单位是 `px` | ||
*/ | ||
size?: { | ||
type: null; | ||
value?: string | number; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters