Merge pull request #3090 from Aleksey28/shadow
fix: changed 'template' to '<custom-menu>'
This commit is contained in:
commit
41243575ea
1 changed files with 1 additions and 1 deletions
|
@ -269,7 +269,7 @@ The shadow DOM template with proper slots:
|
|||
```
|
||||
|
||||
1. `<span slot="title">` goes into `<slot name="title">`.
|
||||
2. There are many `<li slot="item">` in the template, but only one `<slot name="item">` in the template. So all such `<li slot="item">` are appended to `<slot name="item">` one after another, thus forming the list.
|
||||
2. There are many `<li slot="item">` in the `<custom-menu>`, but only one `<slot name="item">` in the template. So all such `<li slot="item">` are appended to `<slot name="item">` one after another, thus forming the list.
|
||||
|
||||
The flattened DOM becomes:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue