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
514 B
35 lines
514 B
<template>
|
|
<text :style="{ color: color, 'font-size': size + 'px'}" class="iconfont icon-check" @click="_onClick"></text>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'UniIcons',
|
|
props: {
|
|
type: {
|
|
type: String,
|
|
default: ''
|
|
},
|
|
color: {
|
|
type: String,
|
|
default: '#333333'
|
|
},
|
|
size: {
|
|
type: [Number, String],
|
|
default: 16
|
|
}
|
|
},
|
|
data() {
|
|
return {
|
|
}
|
|
},
|
|
methods: {
|
|
_onClick() {
|
|
this.$emit('click')
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
</style>
|
|
|