扫码关注官方订阅号
something
在React里是通过this.props.children获得
this.props.children
通过v-ref只能在定义template的时候才能静态获得子对象
v-ref
template
光阴似箭催人老,日月如移越少年。
http://vuejs.org/guide/components.html#Child_Component_Refs
解决这个问题使用的是Solthttp://vuejs.org/guide/components.html#Content_Distribution_with_Slotshttp://cn.vuejs.org/guide/components.html#u4F7F_u7528_Slot__u5206_u53D1_u5185_u5BB9
Solt
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
http://vuejs.org/guide/components.html#Child_Component_Refs
解决这个问题使用的是
Solthttp://vuejs.org/guide/components.html#Content_Distribution_with_Slots
http://cn.vuejs.org/guide/components.html#u4F7F_u7528_Slot__u5206_u53D1_u5185_u5BB9