From 9898dc0f64098781b3ef465182cd67a6819cbe0e Mon Sep 17 00:00:00 2001 From: Guillaume Chau Date: Mon, 30 Apr 2018 20:42:33 +0200 Subject: [PATCH] feat(ui): ItemLogo recognize images in 'icon' field --- packages/@vue/cli-ui/src/components/ItemLogo.vue | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/packages/@vue/cli-ui/src/components/ItemLogo.vue b/packages/@vue/cli-ui/src/components/ItemLogo.vue index ae662654d5..e155a76fbc 100644 --- a/packages/@vue/cli-ui/src/components/ItemLogo.vue +++ b/packages/@vue/cli-ui/src/components/ItemLogo.vue @@ -14,10 +14,10 @@ icon="done" /> @@ -65,6 +65,16 @@ export default { } }, + computed: { + imageEnabled () { + return this.image || (this.icon && this.icon.indexOf('.') !== -1) + }, + + imageUrl () { + return this.image || this.icon + } + }, + watch: { image: 'reset', selected: 'reset'