wave-ui 2.32.0 → 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.cjs.js +1 -1
- package/dist/wave-ui.es.js +28 -19
- package/dist/wave-ui.umd.js +1 -1
- package/package.json +1 -1
- package/src/wave-ui/components/w-icon.vue +12 -2
- package/src/wave-ui/components/w-list.vue +0 -86
- package/src/wave-ui/components/w-tabs/index.vue +15 -14
- package/src/wave-ui/components/w-tabs/tab-content.vue +4 -1
- package/src/wave-ui/core.js +0 -1
package/dist/wave-ui.es.js
CHANGED
|
@@ -419,8 +419,6 @@ var colors = [
|
|
|
419
419
|
]
|
|
420
420
|
}
|
|
421
421
|
];
|
|
422
|
-
const consoleWarn = (message) => console.warn(`Wave UI: ${message}`);
|
|
423
|
-
const consoleError = (message) => console.error(`Wave UI: ${message}`);
|
|
424
422
|
const shadeColor = (col, amt) => {
|
|
425
423
|
return "#" + col.slice(1).match(/../g).map((x) => (x = +`0x${x}` + amt, x < 0 ? 0 : x > 255 ? 255 : x).toString(16).padStart(2, 0)).join("");
|
|
426
424
|
};
|
|
@@ -2691,10 +2689,9 @@ const _sfc_main$w = {
|
|
|
2691
2689
|
}),
|
|
2692
2690
|
computed: {
|
|
2693
2691
|
ligature() {
|
|
2694
|
-
var _a, _b;
|
|
2695
2692
|
if (!config.iconsLigature)
|
|
2696
2693
|
return false;
|
|
2697
|
-
const [fontName, icon] =
|
|
2694
|
+
const [fontName, icon] = this.icon.split(" ");
|
|
2698
2695
|
return fontName === config.iconsLigature && { fontName, icon };
|
|
2699
2696
|
},
|
|
2700
2697
|
forcedSize() {
|
|
@@ -2705,7 +2702,7 @@ const _sfc_main$w = {
|
|
|
2705
2702
|
},
|
|
2706
2703
|
classes() {
|
|
2707
2704
|
return {
|
|
2708
|
-
[this
|
|
2705
|
+
[this.icon]: true,
|
|
2709
2706
|
[this.color]: this.color,
|
|
2710
2707
|
[`${this.bgColor}--bg`]: this.bgColor,
|
|
2711
2708
|
[`size--${this.presetSize}`]: this.presetSize && !this.forcedSize,
|
|
@@ -2726,9 +2723,17 @@ const _sfc_main$w = {
|
|
|
2726
2723
|
styles() {
|
|
2727
2724
|
return this.forcedSize && `font-size: ${this.forcedSize}`;
|
|
2728
2725
|
}
|
|
2726
|
+
},
|
|
2727
|
+
created() {
|
|
2728
|
+
this.icon = this.$slots.default && this.$slots.default()[0].children;
|
|
2729
|
+
},
|
|
2730
|
+
updated() {
|
|
2731
|
+
this.icon = this.$slots.default && this.$slots.default()[0].children;
|
|
2729
2732
|
}
|
|
2730
2733
|
};
|
|
2731
2734
|
var wIcon = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", render$w]]);
|
|
2735
|
+
const consoleWarn = (message) => console.warn(`Wave UI: ${message}`);
|
|
2736
|
+
const consoleError = (message) => console.error(`Wave UI: ${message}`);
|
|
2732
2737
|
const _hoisted_1$j = {
|
|
2733
2738
|
key: 0,
|
|
2734
2739
|
class: "w-image__loader"
|
|
@@ -5731,10 +5736,12 @@ var wSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", render$g]]);
|
|
|
5731
5736
|
const _hoisted_1$6 = { class: "w-tabs__content" };
|
|
5732
5737
|
function render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5733
5738
|
return openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
5734
|
-
renderSlot(_ctx.$slots, "default")
|
|
5739
|
+
renderSlot(_ctx.$slots, "default", { item: $props.item })
|
|
5735
5740
|
]);
|
|
5736
5741
|
}
|
|
5737
|
-
const _sfc_main$f = {
|
|
5742
|
+
const _sfc_main$f = {
|
|
5743
|
+
props: { item: Object }
|
|
5744
|
+
};
|
|
5738
5745
|
var TabContent = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", render$f]]);
|
|
5739
5746
|
const _hoisted_1$5 = ["onClick", "onFocus", "tabindex", "onKeypress", "aria-selected"];
|
|
5740
5747
|
const _hoisted_2$3 = ["innerHTML"];
|
|
@@ -5802,27 +5809,29 @@ function render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5802
5809
|
(openBlock(), createBlock(KeepAlive, null, [
|
|
5803
5810
|
(openBlock(), createBlock(_component_tab_content, {
|
|
5804
5811
|
key: $options.activeTab._index,
|
|
5812
|
+
item: $options.activeTab,
|
|
5805
5813
|
class: normalizeClass($props.contentClass)
|
|
5806
5814
|
}, {
|
|
5807
|
-
default: withCtx(() => [
|
|
5808
|
-
_ctx.$slots[`item-content.${
|
|
5815
|
+
default: withCtx(({ item }) => [
|
|
5816
|
+
_ctx.$slots[`item-content.${item._index + 1}`] ? renderSlot(_ctx.$slots, `item-content.${item._index + 1}`, {
|
|
5809
5817
|
key: 0,
|
|
5810
|
-
item: $options.getOriginalItem(
|
|
5811
|
-
index:
|
|
5812
|
-
active: $options.activeTab._index
|
|
5818
|
+
item: $options.getOriginalItem(item),
|
|
5819
|
+
index: item._index + 1,
|
|
5820
|
+
active: item._index === $options.activeTab._index
|
|
5813
5821
|
}) : renderSlot(_ctx.$slots, "item-content", {
|
|
5814
5822
|
key: 1,
|
|
5815
|
-
item: $options.getOriginalItem(
|
|
5816
|
-
index:
|
|
5817
|
-
active: $options.activeTab._index
|
|
5823
|
+
item: $options.getOriginalItem(item),
|
|
5824
|
+
index: item._index + 1,
|
|
5825
|
+
active: item._index === $options.activeTab._index
|
|
5818
5826
|
}, () => [
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
|
|
5827
|
+
item[$props.itemContentKey] ? (openBlock(), createElementBlock("div", {
|
|
5828
|
+
key: 0,
|
|
5829
|
+
innerHTML: item[$props.itemContentKey]
|
|
5830
|
+
}, null, 8, _hoisted_5$2)) : createCommentVNode("", true)
|
|
5822
5831
|
])
|
|
5823
5832
|
]),
|
|
5824
5833
|
_: 3
|
|
5825
|
-
}, 8, ["class"]))
|
|
5834
|
+
}, 8, ["item", "class"]))
|
|
5826
5835
|
], 1024))
|
|
5827
5836
|
]),
|
|
5828
5837
|
_: 3
|