Skip to content

Commit bbcd847

Browse files
committed
docs: update docs
1 parent 216222b commit bbcd847

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

docs/content/2.get-started/1.guide/4.types.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,31 +23,32 @@ export type StyleValue = string | CSSProperties | (string | CSSProperties)[]
2323
## ModalSlot
2424
2525
```ts
26-
interface UseModalOptionsBase { component: Raw<Component>; attrs?: Record<string, any> }
27-
type ModalSlot = string | Component | UseModalOptionsBase
26+
export interface ModalSlotOptions { component: Raw<Component>; attrs?: Record<string, any> }
27+
export type ModalSlot = string | Component | ModalSlotOptions
28+
```
29+
30+
## UseModalOptions
31+
32+
```ts
33+
export type UseModalOptions = {
34+
defaultModelValue?: boolean
35+
context?: Vfm
36+
component?: Raw<Component>
37+
attrs?: Record<string, any>
38+
} & UseModalOptionsSlots
2839
```
2940
3041
## UseModalOptionsSlots
3142
3243
```ts
3344
export type UseModalOptionsSlots = {
34-
slots?: string | Component | {
45+
slots?: {
3546
default: ModalSlot
3647
[key: string]: ModalSlot
3748
}
3849
}
3950
```
4051
41-
## UseModalOptions
42-
43-
```ts
44-
export type UseModalOptions = {
45-
defaultModelValue?: boolean
46-
context?: Vfm
47-
component: Raw<Component>
48-
attrs?: Record<string, any>
49-
} & UseModalOptionsSlots
50-
```
5152
5253
## UseModalOptionsPrivate
5354

0 commit comments

Comments
 (0)