<template>
    <div @click="runEvent" @dblclick="runEvent" :class="showField.textShowType == 'overflow' ? 'cell el-tooltip' : 'cell'">
        {{result}}
    </div>
</template>

<script>
    import ColumnFormatParentRender from "./columnFormatParentRender";
    export default {
        name: "batch-remote-request-render",
        extends:ColumnFormatParentRender,
        data(){
            return {
                result:"",
            }
        },
        created(){
            this.initData();
        },
        watch:{
            value(){
                this.initData();
            }
        },
        methods:{
            initData(){
                let afterCacheObj = this.afterRenderComp.afterCacheObj;
                let dealMethod = this.configData.dealMethod;
                let arr = ['result','rowData'];
                this.result = new Function(...arr,dealMethod)(afterCacheObj,this.rowData);
            }
        }
    }
</script>

<style scoped>

</style>