...
|
...
|
@@ -2,7 +2,7 @@ |
|
|
<div class="tab-item" :class="itemClass" @click="goPage(data)">
|
|
|
<i v-if="icon" class="tab-icon" :class=icon></i>
|
|
|
<div v-if="data.title" class="title" :class="titleClass">{{ data.title }}</div>
|
|
|
<slot><div class="text">{{ data.num }}</div></slot>
|
|
|
<slot><div class="text" :style="numStyle">{{ data.num }}</div></slot>
|
|
|
<i class="cubeic-arrow"></i>
|
|
|
</div>
|
|
|
</template>
|
...
|
...
|
@@ -42,6 +42,10 @@ export default { |
|
|
icon: {
|
|
|
type: String,
|
|
|
default: ''
|
|
|
},
|
|
|
numStyle: {
|
|
|
type: String,
|
|
|
default: ''
|
|
|
}
|
|
|
},
|
|
|
data() {
|
...
|
...
|
|