摘要: 一,vue组件 1)全局注册 渲染后: <slot> 元素可以用一个特殊的属性 name 来配置如何分发内容。多个 slot 可以有不同的名字。具名 slot 将匹配内容片段中有对应 slot 特性的元素。 2)局部注册 通过使用组件实例选项注册,可以使组件仅在另一个实例/组件的作用域中可用。 使用 阅读全文
posted @ 2017-02-13 17:11 Colorful_coco 阅读(5925) 评论(0) 推荐(0)