From cb08d03d9a23c1f809e67b9e09443842974e2e52 Mon Sep 17 00:00:00 2001 From: Razvan Stoenescu Date: Sat, 24 Feb 2018 23:33:06 +0200 Subject: [PATCH] fix: QItemTile not rendering tag property #1638 --- src/components/list/QItemTile.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/list/QItemTile.js b/src/components/list/QItemTile.js index 11340e224a4..8183ac807a4 100644 --- a/src/components/list/QItemTile.js +++ b/src/components/list/QItemTile.js @@ -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 }, @@ -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 ]) } }