第一张图是安卓的, 第二张图是ios 发布的小程序有问题 , 微信开发者工具显示效果和第一张安卓端显示的效果一样
筛选时间的组件我是嵌套在组件里的
第一张图是安卓的, 第二张图是ios 发布的小程序有问题 , 微信开发者工具显示效果和第一张安卓端显示的效果一样
筛选时间的组件我是嵌套在组件里的
3***@qq.com (作者)
这是一个组件,
<template>
<v-tabs-column :isTabbar="true" height="calc(100vh - 120px)" :tabs="data" position="left" v-model="currentIndex" @change="sectionChange">
<CountStatistics ref="CountStatistics" v-if="currentIndex == 0" />
</v-tabs-column>
</template>
<script>
import CountStatistics from './CountStatistics'
export default {
components: {
CountStatistics,
},
data() {
return {
data: [
"单数分布",
],
currentIndex: 0,
}
},
methods: {
sectionChange(index) {
this.currentIndex = index;
switch (index) {
case 0:
this.$nextTick(() => {
this.$refs.CountStatistics.init();
})
break;
default:
break;
}
},
init() {
this.$nextTick(() => {
this.$refs.CountStatistics.init();
})
}
}
}
</script>
<style lang="scss" scoped>
.v-tabs-column {
display: flex;
::-webkit-scrollbar {
display: none;
}
&__bar {
padding-top: 46rpx;
&-item {
text-align: center;
position: relative;
transition: all 0.3s;
text-overflow: ellipsis;
overflow: hidden;
// white-space: nowrap;
height: 120upx;
}
}
&__container {
box-shadow: 0px 0px 16rpx rgba(0, 0, 0, 0.08);
}
}
</style>