mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
chore(components): improve types and JSDoc for better code hints (#21998)
This commit is contained in:
@@ -83,7 +83,7 @@ export const cascaderProps = buildProps({
|
||||
default: 1,
|
||||
},
|
||||
/**
|
||||
* @description native input id
|
||||
* @description whether show all selected tags when mouse hover text of collapse-tags. To use this, collapse-tags must be true
|
||||
*/
|
||||
collapseTagsTooltip: Boolean,
|
||||
/**
|
||||
|
||||
@@ -29,7 +29,7 @@ export const imageProps = buildProps({
|
||||
default: '',
|
||||
},
|
||||
/**
|
||||
* @description Indicates how the browser should load the image, same as [native](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-loading)
|
||||
* @description Indicates how the browser should load the image, same as [native](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/img#loading)
|
||||
*/
|
||||
loading: {
|
||||
type: String,
|
||||
|
||||
@@ -126,7 +126,7 @@ export const inputTagProps = buildProps({
|
||||
* @description native input autocomplete
|
||||
*/
|
||||
autocomplete: {
|
||||
type: String,
|
||||
type: definePropType<HTMLInputElement['autocomplete']>(String),
|
||||
default: 'off',
|
||||
},
|
||||
/**
|
||||
|
||||
@@ -82,7 +82,7 @@ export const inputProps = buildProps({
|
||||
* @description native input autocomplete
|
||||
*/
|
||||
autocomplete: {
|
||||
type: String,
|
||||
type: definePropType<HTMLInputElement['autocomplete']>(String),
|
||||
default: 'off',
|
||||
},
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user