fix(select): add exposed methods to types

pull/7127/head
J-Michalek 2025-01-21 15:44:13 +01:00
parent 10694a2902
commit f385d72262
2 changed files with 26 additions and 14 deletions

View File

@ -55721,23 +55721,35 @@
},
"SelectMethods": {
"relatedProp": "",
"props": [
"props": [],
"methods": [
{
"name": "show",
"optional": false,
"readonly": false,
"type": "Function",
"default": ""
"parameters": [
{
"name": "isFocus",
"optional": true,
"type": "boolean",
"description": "Decides whether to focus on the component. Default value is false."
}
],
"returnType": "void",
"description": "Shows the overlay."
},
{
"name": "hide",
"optional": false,
"readonly": false,
"type": "Function",
"default": ""
"parameters": [
{
"name": "isFocus",
"optional": true,
"type": "boolean",
"description": "Decides whether to focus on the component. Default value is false."
}
],
"returnType": "void",
"description": "Hides the overlay."
}
],
"methods": []
]
}
}
},
@ -100709,4 +100721,4 @@
}
}
}
}
}

View File

@ -818,11 +818,11 @@ export interface SelectMethods {
* @group Component
*
*/
declare const Select: DefineComponent<SelectProps, SelectSlots, SelectEmits>;
declare const Select: DefineComponent<SelectProps, SelectSlots, SelectEmits, SelectMethods>;
declare module 'vue' {
export interface GlobalComponents {
Select: DefineComponent<SelectProps, SelectSlots, SelectEmits>;
Select: DefineComponent<SelectProps, SelectSlots, SelectEmits, SelectMethods>;
}
}