mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-21 01:02:59 +08:00
refactor(components): [link & text] optimize boolean type (#17610)
This commit is contained in:
parent
1cdf1b9687
commit
9a9afd4734
@ -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`
|
||||
*/
|
||||
|
@ -23,9 +23,7 @@ export const textProps = buildProps({
|
||||
/**
|
||||
* @description render ellipsis
|
||||
*/
|
||||
truncated: {
|
||||
type: Boolean,
|
||||
},
|
||||
truncated: Boolean,
|
||||
/**
|
||||
* @description maximum lines
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user