2021年3月25日

Vue3手册译稿 - 深入组件 - 插槽

摘要: 插槽 本章节需要掌握组件基础 插槽内容 Vue实现一套优秀的内容分发接口,基于WEB组件草案,使用<slot>标签提供内容分发服务。 这允许你像这样构成一个组件: <todo-button> Add todo </todo-button> todo-button模板应该这样写: <!-- todo- 阅读全文

posted @ 2021-03-25 14:07 zhouyu 阅读(82) 评论(0) 推荐(0) 编辑

导航