diff --git a/src/views/home/widgets/components/StoreData.vue b/src/views/home/widgets/components/StoreData.vue index c391d37..2b1ae1f 100644 --- a/src/views/home/widgets/components/StoreData.vue +++ b/src/views/home/widgets/components/StoreData.vue @@ -20,6 +20,7 @@ @@ -45,7 +46,8 @@ export default { dateData:['',''], dateTab:'', resize:'', - dateBtn:false + dateBtn:false, + cardTabNum:0,//排行样式 } }, methods: { @@ -78,11 +80,14 @@ export default { }, mounted() { this.resize=new ResizeObserver((e)=>{ - if(e[0].contentRect.width<850){ + let width=e[0].contentRect.width + console.log(width) + if(width<850){ this.dateBtn=true }else{ this.dateBtn=false } + this.cardTabNum=width<=470?1:0 }) this.resize.observe(this.$refs.storeDataDom) @@ -114,7 +119,6 @@ export default { width: 100%; background: #fff; margin-bottom:16px; - min-width:535px; border:1px solid #e4e7ed; border-radius:4px; } @@ -166,4 +170,8 @@ export default { height: 50px; line-height: 50px; } + +::v-deep .el-range-editor.el-input__wrapper{ + width:245px; +} diff --git a/src/views/home/widgets/components/allDataFrom.vue b/src/views/home/widgets/components/allDataFrom.vue index 2befe94..dc4047f 100644 --- a/src/views/home/widgets/components/allDataFrom.vue +++ b/src/views/home/widgets/components/allDataFrom.vue @@ -1,6 +1,6 @@