mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2025-02-17 17:40:31 +08:00
To implement slot trait, we do the following changes 1. Nestable components should embed <Slot /> inside itself. 2. Attachable components should use the slot trait to indicate which container they will be attached to. During app render, we will resolve the nested relation by traversing the components spec. This process will return top-level components and a resolved slots tree. Top-level components will be rendered directly. The resolved slots tree will be passed into every <Slot />, so the embed <Slot /> can render which has been attached to itself. |
||
---|---|---|
assets | ||
config | ||
packages | ||
spec/zh_CN | ||
.gitignore | ||
lerna.json | ||
LICENSE | ||
package.json | ||
tsconfig.json | ||
yarn.lock |