|
|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div class="rollcon" :ref="'r_'+myref">
|
|
|
- <span :class="{shenglv:(parentW < childW && !active)}" :ref="myref" :style="`transform: translateX(${translate}px);
|
|
|
- ${`width: ${(parentW < childW && !active)?`calc(100% - ${mgin||10}px)`:'auto'}`}`">{{name}}</span>
|
|
|
+ <span :class="{shenglv:(parentW < childW && !active)}" :ref="myref" :style="`transform: translateX(${translate}px);`">
|
|
|
+ {{ `${active ? name : name.slice(0,6)}`}}</span>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
@@ -74,12 +74,14 @@ export default {
|
|
|
<style lang="less" scoped>
|
|
|
.rollcon{
|
|
|
width: 100%;
|
|
|
+ font-size: 0;
|
|
|
display: inline-block;
|
|
|
>span{
|
|
|
width: auto;
|
|
|
display: inline-block;
|
|
|
// transition: 0.3s transform ease;
|
|
|
vertical-align:unset;
|
|
|
+ font-size: 14px;
|
|
|
}
|
|
|
.shenglv{
|
|
|
// text-overflow: ellipsis;
|