Closed martinhearn closed 7 years ago
@martinhearn Sorry, reply too later.
Currently, tabs
supports Vue 2.0. If your data's type is Array, this.items = []
or this.$set('items', [])
is not reactive. See http://rc.vuejs.org/guide/reactivity.html or http://vuejs.org/guide/reactivity.html.
There is an example https://github.com/fundon/vue-admin/blob/next/client/views/components/Tabs.vue#L135-L170, maybe can help you.
If I dynamically generate some tab-panes like:
and then later refresh components do not get updated (in fact the content all disappears).
items
array using Ajax - theIf I empty the contents of
items
(this.$set('items', [])
) before refreshing with Ajax the component refreshes successfully as expected.Any ideas?
Thanks!