Skip to content

Commit

Permalink
fix: QItemTile not rendering tag property #1638
Browse files Browse the repository at this point in the history
  • Loading branch information
rstoenescu committed Feb 24, 2018
1 parent f01a9ff commit cb08d03
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/list/QItemTile.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ export default {
sublabel: Boolean,
lines: [Number, String],

tag: {
type: String,
default: 'div'
},

color: String,
textColor: String // only for inverted icon/letter
},
Expand Down Expand Up @@ -67,6 +72,6 @@ export default {
data.props = { name: this.icon }
}

return h(this.icon ? QIcon : 'div', data, [ this.$slots.default ])
return h(this.icon ? QIcon : this.tag, data, [ this.$slots.default ])
}
}

0 comments on commit cb08d03

Please sign in to comment.