chore(components): improve types and JSDoc for better code hints (#21998)

This commit is contained in:
Zhong
2025-09-02 09:02:00 +08:00
committed by GitHub
parent 8f6f00f5b0
commit df88ec60ec
4 changed files with 4 additions and 4 deletions

View File

@@ -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,
/**

View File

@@ -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,

View File

@@ -126,7 +126,7 @@ export const inputTagProps = buildProps({
* @description native input autocomplete
*/
autocomplete: {
type: String,
type: definePropType<HTMLInputElement['autocomplete']>(String),
default: 'off',
},
/**

View File

@@ -82,7 +82,7 @@ export const inputProps = buildProps({
* @description native input autocomplete
*/
autocomplete: {
type: String,
type: definePropType<HTMLInputElement['autocomplete']>(String),
default: 'off',
},
/**