方法1: 在render中根据条件是否渲染组建 {condition==true?:null}; 方法2: 就像网页开发一样 父容器 overflow:"hidden" 子组件隐藏 left:-999;position:absolute;