<component :is="currentCom"></component>
 
import Grid from './component/grid';
 
methods: {
  condiation () {
    // ....some code
    this.currentCom = Grid
  }
}
 
currentCom就是你引入的组件 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-17
  • 2021-11-12
  • 2022-02-20
相关资源
相似解决方案