<template>
    <span @click="click()">{{data}}</span>
</template>

<script>
import mixin from "./mixin"
export default {
    name: "viewTpl",
    mixins:[mixin],
    methods:{
        /**
         * 渲染数据
         */
        async renderData(){
            //一般用于格式化数据并显示
        },
        click(){
            this.$emit("onEvent",this.data);
        }
    }
}
</script>

<style scoped>

</style>
