You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
547 B
35 lines
547 B
2 months ago
|
<template>
|
||
|
<image :style="`width:${width};height:${height};${styleSvg}`" :src="require(`../../static/svg/${name}.svg`)"></image>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
name: 'svgImage',
|
||
|
props: {
|
||
|
name: {
|
||
|
type: [Number, String],
|
||
|
default: 'user'
|
||
|
},
|
||
|
width: {
|
||
|
type: [Number, String],
|
||
|
default: '80rpx'
|
||
|
},
|
||
|
height: {
|
||
|
type: [Number, String],
|
||
|
default: '80rpx'
|
||
|
},
|
||
|
styleSvg: {
|
||
|
type: [Number, String],
|
||
|
default: ''
|
||
|
}
|
||
|
},
|
||
|
data() {
|
||
|
return {};
|
||
|
},
|
||
|
mounted() {},
|
||
|
methods: {}
|
||
|
};
|
||
|
</script>
|
||
|
|
||
|
<style lang="scss"></style>
|