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/dist/wave-ui.es.js
CHANGED
|
@@ -5736,10 +5736,12 @@ var wSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", render$g]]);
|
|
|
5736
5736
|
const _hoisted_1$6 = { class: "w-tabs__content" };
|
|
5737
5737
|
function render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5738
5738
|
return openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
5739
|
-
renderSlot(_ctx.$slots, "default")
|
|
5739
|
+
renderSlot(_ctx.$slots, "default", { item: $props.item })
|
|
5740
5740
|
]);
|
|
5741
5741
|
}
|
|
5742
|
-
const _sfc_main$f = {
|
|
5742
|
+
const _sfc_main$f = {
|
|
5743
|
+
props: { item: Object }
|
|
5744
|
+
};
|
|
5743
5745
|
var TabContent = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", render$f]]);
|
|
5744
5746
|
const _hoisted_1$5 = ["onClick", "onFocus", "tabindex", "onKeypress", "aria-selected"];
|
|
5745
5747
|
const _hoisted_2$3 = ["innerHTML"];
|
|
@@ -5807,27 +5809,29 @@ function render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5807
5809
|
(openBlock(), createBlock(KeepAlive, null, [
|
|
5808
5810
|
(openBlock(), createBlock(_component_tab_content, {
|
|
5809
5811
|
key: $options.activeTab._index,
|
|
5812
|
+
item: $options.activeTab,
|
|
5810
5813
|
class: normalizeClass($props.contentClass)
|
|
5811
5814
|
}, {
|
|
5812
|
-
default: withCtx(() => [
|
|
5813
|
-
_ctx.$slots[`item-content.${
|
|
5815
|
+
default: withCtx(({ item }) => [
|
|
5816
|
+
_ctx.$slots[`item-content.${item._index + 1}`] ? renderSlot(_ctx.$slots, `item-content.${item._index + 1}`, {
|
|
5814
5817
|
key: 0,
|
|
5815
|
-
item: $options.getOriginalItem(
|
|
5816
|
-
index:
|
|
5817
|
-
active: $options.activeTab._index
|
|
5818
|
+
item: $options.getOriginalItem(item),
|
|
5819
|
+
index: item._index + 1,
|
|
5820
|
+
active: item._index === $options.activeTab._index
|
|
5818
5821
|
}) : renderSlot(_ctx.$slots, "item-content", {
|
|
5819
5822
|
key: 1,
|
|
5820
|
-
item: $options.getOriginalItem(
|
|
5821
|
-
index:
|
|
5822
|
-
active: $options.activeTab._index
|
|
5823
|
+
item: $options.getOriginalItem(item),
|
|
5824
|
+
index: item._index + 1,
|
|
5825
|
+
active: item._index === $options.activeTab._index
|
|
5823
5826
|
}, () => [
|
|
5824
|
-
|
|
5825
|
-
|
|
5826
|
-
|
|
5827
|
+
item[$props.itemContentKey] ? (openBlock(), createElementBlock("div", {
|
|
5828
|
+
key: 0,
|
|
5829
|
+
innerHTML: item[$props.itemContentKey]
|
|
5830
|
+
}, null, 8, _hoisted_5$2)) : createCommentVNode("", true)
|
|
5827
5831
|
])
|
|
5828
5832
|
]),
|
|
5829
5833
|
_: 3
|
|
5830
|
-
}, 8, ["class"]))
|
|
5834
|
+
}, 8, ["item", "class"]))
|
|
5831
5835
|
], 1024))
|
|
5832
5836
|
]),
|
|
5833
5837
|
_: 3
|