Skip to content

Commit b87b722

Browse files
authored
Merge pull request #1579 from easyops-cn/abert/eo-modal
chore(): 添加 eo-modal 支持sidebar 插槽的文档
2 parents a457577 + 565c7b9 commit b87b722

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

bricks/containers/docs/eo-modal.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,3 +151,45 @@
151151
properties:
152152
textContent: Content
153153
```
154+
155+
### sidebar slot
156+
157+
```yaml preview minHeight="320px"
158+
- brick: eo-button
159+
properties:
160+
textContent: open
161+
events:
162+
click:
163+
- target: "#modal"
164+
method: open
165+
- brick: eo-modal
166+
portal: true
167+
properties:
168+
modalTitle: 模态框标题
169+
id: "modal"
170+
placement: left
171+
keyboard: true
172+
width: 700px
173+
events:
174+
open:
175+
- action: message.success
176+
args:
177+
- modal Open
178+
close:
179+
- action: message.success
180+
args:
181+
- modal Close
182+
slots:
183+
"":
184+
bricks:
185+
- brick: div
186+
properties:
187+
textContent: Content
188+
type: bricks
189+
sidebar:
190+
bricks:
191+
- brick: div
192+
properties:
193+
textContent: Sidebar
194+
type: bricks
195+
```

0 commit comments

Comments
 (0)