docs: add documentation of all typings (#9359)
This commit is contained in:
+14
-1
@@ -349,7 +349,18 @@ Use [ref](https://v3.vuejs.org/guide/component-template-refs.html) to get Calend
|
||||
|
||||
### Types
|
||||
|
||||
Get the type definition of the Calendar instance through `CalendarInstance`.
|
||||
The component exports the following type definitions:
|
||||
|
||||
```ts
|
||||
import type {
|
||||
CalendarType,
|
||||
CalendarDayItem,
|
||||
CalendarDayType,
|
||||
CalendarInstance,
|
||||
} from 'vant';
|
||||
```
|
||||
|
||||
`CalendarInstance` is the type of component instance:
|
||||
|
||||
```ts
|
||||
import { ref } from 'vue';
|
||||
@@ -360,6 +371,8 @@ const calendarRef = ref<CalendarInstance>();
|
||||
calendarRef.value?.reset();
|
||||
```
|
||||
|
||||
## 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