摘要: <KeepAlive> 缓存组件 注意:只支持H5端 <KeepAlive include = "" exclude = "" max = ""></KeepAlive> @说明:缓存被包裹的组件 先看段动态绑定组件代码: <component :is="activeComponent"></com 阅读全文
posted @ 2022-09-19 14:25 1024记忆 阅读(302) 评论(0) 推荐(0)
摘要: 默认插槽的定义与使用 <!-- 组件 test 定义 --> <template> <button> <slot>提交</slot> </button> </template> <!-- 父组件调用 --> <template> <test>保存</test> </template> 具名插槽的定义 阅读全文
posted @ 2022-09-19 08:27 1024记忆 阅读(324) 评论(0) 推荐(0)