Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

<component :is="hasShop" slot="article"></component>

我现在想在hasShop这个组件的内部点击某个按钮的时候,显示另外一个组件,替换hasShop组件,不用路由的切换,只是在同样的位置显示另外一个组件,我目前折中的想法是把新组件绝对定位覆盖到现有组件上方,但是有没有什么方法可以直接改变is的绑定呢?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
922 views
Welcome To Ask or Share your Answers For Others

1 Answer

官方的例子很清楚了,你自己看动态组件


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...