Skip to content

Commit 4f47855

Browse files
committed
feat(types): allow dynamic component slot assign a string
1 parent 1f05aae commit 4f47855

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

types/index.d.ts

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,24 @@ export interface DynamicModalOptions {
5454
* }
5555
* }
5656
* ```
57+
*
58+
* @example
59+
* ```js
60+
* {
61+
* slot: {
62+
* default: 'pure string'
63+
* }
64+
* }
65+
* ```
5766
*/
5867
slots?: {
59-
[key: string]: {
60-
component: string | Component
61-
bind?: { [key: string]: any }
62-
on?: { [key: string]: Function | Function[] }
63-
}
68+
[key: string]:
69+
| {
70+
component: string | Component
71+
bind?: { [key: string]: any }
72+
on?: { [key: string]: Function | Function[] }
73+
}
74+
| string
6475
}
6576
}
6677

0 commit comments

Comments
 (0)