Ellipsis .vue
<template>
<a-tooltip placement="topLeft">
<template slot="title">
<span>{{ value }}</span>
</template>
{{ value.substring(0,value.indexOf(".") + length+1) }}
</a-tooltip>
</template>
<script>
export default {
name: 'Ellipsis ',
props: {
value: {
type: String,
required: false,
default: ''
},
length: {
type: Number,
required: false,
default: 25
}
}
}
</script>
<style scoped>
</style>
<template>
<Ellipsis :value="ellipsis" :length="4"></JEllipsis>
</template>
<script>
import Ellipsis from '@/components/jeecg/JEllipsis.vue'
export default {
components: {
Ellipsis
},
data () {
return {
ellipsis: '1106.123456123456789789456132123456789456132',
}
},
methods: {}
}
</script>
<style scoped>
</style>