wave-ui 1.63.0 → 1.63.1
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": "1.63.
|
|
3
|
+
"version": "1.63.1",
|
|
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
|
"homepage": "https://antoniandre.github.io/wave-ui",
|
|
@@ -61,7 +61,15 @@ export default {
|
|
|
61
61
|
computed: {
|
|
62
62
|
buttonProps () {
|
|
63
63
|
const { tooltip, tooltipProps, ...props } = this.$props
|
|
64
|
-
return {
|
|
64
|
+
return {
|
|
65
|
+
...props,
|
|
66
|
+
...this.$attrs,
|
|
67
|
+
// Vue 2 specific:
|
|
68
|
+
// The classes and styles are not in $attrs. Add them from $vnode.data.staticClass, so
|
|
69
|
+
// the button gets these classes wen used with tooltip.
|
|
70
|
+
// https://v2.vuejs.org/v2/guide/components-props.html#Disabling-Attribute-Inheritance
|
|
71
|
+
class: this.tooltip && this.$vnode.data.staticClass
|
|
72
|
+
}
|
|
65
73
|
}
|
|
66
74
|
}
|
|
67
75
|
}
|
|
@@ -78,6 +78,7 @@ export default {
|
|
|
78
78
|
counts: { type: Boolean },
|
|
79
79
|
itemIconKey: { type: String, default: 'icon' }, // Support a different icon per item.
|
|
80
80
|
iconColor: { type: String }, // Applies a color on all the label item icons.
|
|
81
|
+
itemLabelKey: { type: String, default: 'label' }, // Specify a different key for the item label.
|
|
81
82
|
itemIconColorKey: { type: String, default: 'iconColor' }, // Applies a specific color on each label item icons.
|
|
82
83
|
itemRouteKey: { type: String, default: 'route' }, // Uses a router link if the item has the `route` key.
|
|
83
84
|
itemDisabledKey: { type: String, default: 'disabled' }, // Disables the item click and selection.
|
|
@@ -117,7 +118,7 @@ export default {
|
|
|
117
118
|
this.currentDepthItems.push({
|
|
118
119
|
originalItem: item, // Store the original item to return it on event emits.
|
|
119
120
|
_uid: this.depth.toString() + (i + 1),
|
|
120
|
-
label: item.
|
|
121
|
+
label: item[this.itemLabelKey],
|
|
121
122
|
children: !!item.children, // The children tree remains available in originalItem.
|
|
122
123
|
branch: item.branch,
|
|
123
124
|
route: item[this.itemRouteKey],
|