refactor(components): [link & text] optimize boolean type (#17610)

This commit is contained in:
chouchouji 2024-07-21 21:26:14 +08:00 committed by GitHub
parent 1cdf1b9687
commit 9a9afd4734
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 4 deletions

View File

@ -21,7 +21,7 @@ export const linkProps = buildProps({
/**
* @description whether the component is disabled
*/
disabled: { type: Boolean, default: false },
disabled: Boolean,
/**
* @description same as native hyperlink's `href`
*/

View File

@ -23,9 +23,7 @@ export const textProps = buildProps({
/**
* @description render ellipsis
*/
truncated: {
type: Boolean,
},
truncated: Boolean,
/**
* @description maximum lines
*/