fix: changed 'template' to '<custom-menu>'
This commit is contained in:
parent
3c934b5a46
commit
393efb703a
1 changed files with 1 additions and 1 deletions
|
@ -268,7 +268,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