Skip to content

Commit 36f1add

Browse files
committed
docs: update dynamic-modal.md
1 parent b20eb5c commit 36f1add

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)