wave-ui 2.36.3 → 2.37.0

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.36.3",
3
+ "version": "2.37.0",
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",
@@ -65,6 +65,7 @@ export default {
65
65
  icon: { type: String, default: '' },
66
66
  itemLabelKey: { type: String, default: 'label' }, // Name of the label field.
67
67
  itemValueKey: { type: String, default: 'value' }, // Name of the value field.
68
+ itemClassKey: { type: String, default: 'value' }, // Name of the class field.
68
69
  itemColorKey: { type: String, default: 'color' }, // Support a different color per item.
69
70
  itemRouteKey: { type: String, default: 'route' }, // Name of the route field for `nav` lists.
70
71
  itemClass: { type: String },
@@ -161,7 +162,7 @@ export default {
161
162
  'w-list__item-label--selectable': this.isSelectable,
162
163
  [item.color]: !!item.color,
163
164
  [this.SelectionColor]: item._selected && !item.color && this.SelectionColor,
164
- [this.itemClass]: !!this.itemClass
165
+ [item[this.itemClassKey] || this.itemClass]: item[this.itemClassKey] || this.itemClass
165
166
  }
166
167
  },
167
168
 
@@ -16,7 +16,7 @@
16
16
 
17
17
  .grow {flex-grow: 1;flex-basis: auto;}
18
18
  .no-grow {flex-grow: 0;}
19
- .shrink {flex-shrink: 1;margin-left: auto;margin-right: auto;}
19
+ .shrink {flex-shrink: 1;}
20
20
  .no-shrink {flex-shrink: 0;}
21
21
  .fill-width {width: 100%;}
22
22
  .fill-height {height: 100%;}