Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经制作了自己的 vuetable-2 组件,并且每次在我想显示列表的组件中调用这个组件。当我对父组件执行任何操作时,我想重新加载我的 vuetable-2 组件。
您可以refresh()用于 vuetable 。所以有很多方法可以从 parent 触发它。您可以通过在组件中设置ref或使用来直接调用该方法。watch
refresh()
ref
watch