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.

39 lines
574 B

5 days ago
<template>
<view :class="'iconfont ' + type" :style="{ color: color,'line-height':size + 'px', 'font-size': size + 'px' }"
@click="_onClick" />
</template>
<script>
export default {
name: 'UniIcon',
props: {
type: {
type: String,
default: ''
},
color: {
type: String,
default: '#333333'
},
size: {
type: [Number, String],
default: 20
}
},
methods: {
_onClick() {
this.$emit('click')
}
}
}
</script>
<style>
@import './iconfont.css';
.iconfont {
display: inline-block;
font-weight: 400;
}
</style>