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.
44 lines
594 B
44 lines
594 B
<template> |
|
<view class="van-icon"> |
|
<img :src="starUrl+iconName" class="van-icon__image"> |
|
</view> |
|
</template> |
|
|
|
<script> |
|
export default { |
|
props: { |
|
iconName: { |
|
type: String, |
|
default: '' |
|
} |
|
}, |
|
data() { |
|
return { |
|
starUrl: this.global.starUrl |
|
} |
|
}, |
|
methods: { |
|
|
|
} |
|
} |
|
</script> |
|
|
|
<style > |
|
.van-icon { |
|
position: relative; |
|
display: inline-block; |
|
font-size: 1rem; |
|
line-height: 1; |
|
font-size: inherit; |
|
text-rendering: auto; |
|
-webkit-font-smoothing: antialiased; |
|
} |
|
|
|
.van-icon__image { |
|
width: 1rem; |
|
height: 1em; |
|
background-size: cover; |
|
} |
|
|
|
|
|
</style>
|
|
|