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