﻿<template>
    <div style="overflow:hidden;white-space: nowrap;text-overflow:ellipsis;max-width:20em;" :title="value" v-if="mode==='list'">
        {{value}}
    </div>
    <div v-else v-html="value">
    </div>
</template>
<script>
    export default {
        props: ['value', 'mode']
    };
</script>