File tree Expand file tree Collapse file tree 1 file changed +14
-13
lines changed
docs/content/2.get-started/1.guide Expand file tree Collapse file tree 1 file changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -23,31 +23,32 @@ export type StyleValue = string | CSSProperties | (string | CSSProperties)[]
23
23
## ModalSlot
24
24
25
25
` ` ` 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
28
39
` ` `
29
40
30
41
## UseModalOptionsSlots
31
42
32
43
` ` ` ts
33
44
export type UseModalOptionsSlots = {
34
- slots? : string | Component | {
45
+ slots? : {
35
46
default: ModalSlot
36
47
[key : string ]: ModalSlot
37
48
}
38
49
}
39
50
` ` `
40
51
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
- ` ` `
51
52
52
53
## UseModalOptionsPrivate
53
54
You can’t perform that action at this time.
0 commit comments