zhangzengfei
2021-06-04 570c4304b907150335f3f8e9d19c4bec6a425757
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<template>
    <view class="m-icon" :class="['m-icon-'+type]" @click="onClick()"></view>
</template>
 
<script>
    export default {
        props: {
            /**
             * 图标类型
             */
            type: String
        },
        methods: {
            onClick() {
                this.$emit('click')
            }
        }
    }
</script>
 
<style>
    @import "./m-icon.css";
</style>