Merge pull request #3090 from Aleksey28/shadow

fix: changed 'template' to '<custom-menu>'
This commit is contained in:
Ilya Kantor 2022-07-10 23:47:23 +02:00 committed by GitHub
commit 41243575ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: