Skip to content

Commit 873a6a7

Browse files
committed
feat(types): allow dynamic component slot assign a string
1 parent f02a373 commit 873a6a7

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

types/index.d.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,24 @@ export interface DynamicModalOptions {
3636
* }
3737
* }
3838
* ```
39+
*
40+
* @example
41+
* ```js
42+
* {
43+
* slot: {
44+
* default: 'pure string'
45+
* }
46+
* }
47+
* ```
3948
*/
4049
slots?: {
41-
[key: string]: {
50+
[key: string]:
51+
| {
4252
component: string | Component | AsyncComponent
4353
bind?: { [key: string]: any }
4454
on?: { [key: string]: Function | Function[] }
4555
}
56+
| string
4657
}
4758
}
4859

0 commit comments

Comments
 (0)