docs: add documentation of all typings (#9359)
This commit is contained in:
@@ -193,7 +193,17 @@ Use [ref](https://v3.vuejs.org/guide/component-template-refs.html) to get Dropdo
|
||||
|
||||
### Types
|
||||
|
||||
Get the type definition of the DropdownItem instance through `DropdownItemInstance`.
|
||||
The component exports the following type definitions:
|
||||
|
||||
```ts
|
||||
import type {
|
||||
DropdownItemOption,
|
||||
DropdownItemInstance,
|
||||
DropdownMenuDirection,
|
||||
} from 'vant';
|
||||
```
|
||||
|
||||
`DropdownItemInstance` is the type of component instance:
|
||||
|
||||
```ts
|
||||
import { ref } from 'vue';
|
||||
@@ -212,6 +222,8 @@ dropdownItemRef.value?.toggle();
|
||||
| value | Value | _number \| string_ |
|
||||
| icon | Left icon | _string_ |
|
||||
|
||||
## Theming
|
||||
|
||||
### CSS Variables
|
||||
|
||||
The component provides the following CSS variables, which can be used to customize styles. Please refer to [ConfigProvider component](#/en-US/config-provider).
|
||||
|
||||
Reference in New Issue
Block a user