Skip to content

Commit 1f32b83

Browse files
laurentpayotrstoenescu
authored andcommitted
QIcon: generating ion-icon component for ioniocons v4 (quasarframework#1325)
* QIcon: generating ion-icon component for ioniocons v4 * Update QIcon.js
1 parent dd7d7ef commit 1f32b83

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/components/icon/QIcon.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ export default {
3434
else if (icon.startsWith('ion-') || icon.startsWith('icon-')) {
3535
cls = `${icon}`
3636
}
37+
else if (icon.startsWith('ion4-')) {
38+
if (!ctx.children) {
39+
ctx.children = []
40+
}
41+
ctx.children.push(h('ion-icon', {attrs: {name: icon.substr(5)}}))
42+
}
3743
else if (icon.startsWith('mdi-')) {
3844
cls = `mdi ${icon}`
3945
}

0 commit comments

Comments
 (0)