Skip to content

Commit 961f37f

Browse files
committed
Merge branch 'feature/#57' into next
2 parents 4f47855 + 36f1add commit 961f37f

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

docs/content/en/dynamic-modal.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,13 @@ type dynamicModalOptions = {
4949
bind?: { [key: string]: any}, // bind props and attrs to modal
5050
on?: { [key: string]: Function | Function[] } // register events to modal
5151
slots?: {
52-
[key: string]: { // slot name
53-
component: string | Component | AsyncComponent // slot component
54-
bind?: { [key: string]: any } // bind props and attrs to slot component
55-
on?: { [key: string]: Function | Function[] } // register events to slot component
56-
}
52+
[key: string]: // slot name
53+
| {
54+
component: string | Component | AsyncComponent // slot component
55+
bind?: { [key: string]: any } // bind props and attrs to slot component
56+
on?: { [key: string]: Function | Function[] } // register events to slot component
57+
}
58+
| string
5759
}
5860
}
5961
```

docs/content/zh-Hant/dynamic-modal.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,13 @@ type dynamicModalOptions = {
4949
bind?: { [key: string]: any}, // bind props and attrs to modal
5050
on?: { [key: string]: Function | Function[] } // register events to modal
5151
slots?: {
52-
[key: string]: { // slot name
53-
component: string | Component | AsyncComponent // slot component
54-
bind?: { [key: string]: any } // bind props and attrs to slot component
55-
on?: { [key: string]: Function | Function[] } // register events to slot component
56-
}
52+
[key: string]: // slot name
53+
| {
54+
component: string | Component | AsyncComponent // slot component
55+
bind?: { [key: string]: any } // bind props and attrs to slot component
56+
on?: { [key: string]: Function | Function[] } // register events to slot component
57+
}
58+
| string
5759
}
5860
}
5961
```

0 commit comments

Comments
 (0)