diff --git a/sheep/components/s-block-item/s-block-item.vue b/sheep/components/s-block-item/s-block-item.vue index 60e7280c..3d19d856 100644 --- a/sheep/components/s-block-item/s-block-item.vue +++ b/sheep/components/s-block-item/s-block-item.vue @@ -5,7 +5,7 @@ - + diff --git a/sheep/components/s-menu-button/s-menu-button.vue b/sheep/components/s-menu-button/s-menu-button.vue index 5bf52c3a..50886d0e 100644 --- a/sheep/components/s-menu-button/s-menu-button.vue +++ b/sheep/components/s-menu-button/s-menu-button.vue @@ -21,12 +21,12 @@ :class="{ cur: state.cur == index }" > - + @@ -34,12 +34,12 @@ {{ item.badge.text }} - {{ item.title.text }} + {{ item.title }} @@ -206,15 +206,9 @@ }); // 生成数据 - const menuList = computed(() => splitData(props.data.list, props.data.row * props.data.col)); - const swiperHeight = computed(() => props.data.row * (props.data.layout == 1 ? 200 : 180)); + const menuList = computed(() => splitData(props.data.list, props.data.row * props.data.column)); + const swiperHeight = computed(() => props.data.row * (props.data.layout === 'iconText' ? 200 : 180)); const windowWidth = sheep.$platform.device.windowWidth; - const clWidth = computed( - () => - (windowWidth - - (props.styles.marginLeft + props.styles.marginRight + props.styles.padding * 2)) / - props.data.col, - ); // current 改变时会触发 change 事件 const swiperChange = (e) => {