mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Merge pull request #626 from Human-Connection/613_revert-empty-component-to-use-img-tag
Refactor to use <img> instead of <hc-image> component for images
This commit is contained in:
commit
d73ec2288e
@ -5,8 +5,8 @@
|
|||||||
:margin="margin"
|
:margin="margin"
|
||||||
>
|
>
|
||||||
<ds-text>
|
<ds-text>
|
||||||
<hc-image
|
<img
|
||||||
:image-props="{ src: imgSrc }"
|
:src="iconPath"
|
||||||
width="80"
|
width="80"
|
||||||
class="hc-empty-icon"
|
class="hc-empty-icon"
|
||||||
style="margin-bottom: 5px"
|
style="margin-bottom: 5px"
|
||||||
@ -24,12 +24,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import HcImage from '~/components/Image'
|
|
||||||
export default {
|
export default {
|
||||||
name: 'HcEmpty',
|
name: 'HcEmpty',
|
||||||
components: {
|
|
||||||
HcImage
|
|
||||||
},
|
|
||||||
props: {
|
props: {
|
||||||
/**
|
/**
|
||||||
* Icon that should be shown
|
* Icon that should be shown
|
||||||
@ -58,7 +54,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
imgSrc() {
|
iconPath() {
|
||||||
return `/img/empty/${this.icon}.svg`
|
return `/img/empty/${this.icon}.svg`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user