星油企业版
This commit is contained in:
44
components/my-icon/my-icon.vue
Normal file
44
components/my-icon/my-icon.vue
Normal file
@@ -0,0 +1,44 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user