docs: add documentation of all typings (#9359)

This commit is contained in:
neverland
2021-08-31 15:51:38 +08:00
committed by GitHub
parent 43b78002d3
commit 317035e9f5
129 changed files with 661 additions and 79 deletions
+14 -1
View File
@@ -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).