wave-ui 2.32.2 → 2.32.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wave-ui",
3
- "version": "2.32.2",
3
+ "version": "2.32.3",
4
4
  "description": "An emerging UI framework for Vue.js (2 & 3) with only the bright side. :sunny:",
5
5
  "author": "Antoni Andre <antoniandre.web@gmail.com>",
6
6
  "main": "./dist/wave-ui.umd.js",
@@ -32,20 +32,21 @@
32
32
  transition(:name="transitionName" :mode="transitionMode")
33
33
  keep-alive
34
34
  //- Keep-alive only works with components, not with DOM nodes.
35
- tab-content(:key="activeTab._index" :class="contentClass")
36
- slot(
37
- v-if="$slots[`item-content.${activeTab.id || activeTab._index + 1}`]"
38
- :name="`item-content.${activeTab.id || activeTab._index + 1}`"
39
- :item="getOriginalItem(activeTab)"
40
- :index="activeTab._index + 1"
41
- :active="activeTab._index === activeTabIndex")
42
- slot(
43
- v-else
44
- name="item-content"
45
- :item="getOriginalItem(activeTab)"
46
- :index="activeTab._index + 1"
47
- :active="activeTab._index === activeTabIndex")
48
- div(v-html="activeTab[itemContentKey]")
35
+ tab-content(:key="activeTab._index" :item="activeTab" :class="contentClass")
36
+ template(#default="{ item }")
37
+ slot(
38
+ v-if="$slots[`item-content.${item._index + 1}`]"
39
+ :name="`item-content.${item._index + 1}`"
40
+ :item="getOriginalItem(item)"
41
+ :index="item._index + 1"
42
+ :active="item._index === activeTab._index")
43
+ slot(
44
+ v-else
45
+ name="item-content"
46
+ :item="getOriginalItem(item)"
47
+ :index="item._index + 1"
48
+ :active="item._index === activeTab._index")
49
+ div(v-if="item[itemContentKey]" v-html="item[itemContentKey]")
49
50
  </template>
50
51
 
51
52
  <script>
@@ -1,8 +1,11 @@
1
1
  <template lang="pug">
2
2
  .w-tabs__content
3
- slot
3
+ slot(:item="item")
4
4
  </template>
5
5
 
6
6
  <script>
7
7
  // Keep-alive only works with components, not with DOM nodes.
8
+ export default {
9
+ props: { item: Object }
10
+ }
8
11
  </script>