<template>
    <span
        v-if="renderOnce"
        v-once
        :class="$style.iconfont"
    >
        <slot/>
    </span>
    <span
        v-else
        :class="$style.iconfont"
    >
        <slot/>
    </span>
</template>

<script>
    export default {
        name: 'IconFont',
        props:{
            renderOnce:{
                default:true
            }
        }
    }
</script>
<style module lang="scss">
    .iconfont{
        font-family:'AdminIcon';
        font-size: 1em;
    }
</style>