| | |
| | | <template> |
| | | <view class="menu-box" @click="curMenuClick(curMenu)"> |
| | | <view> |
| | | <view v-if="imgShow"> |
| | | <u--image :src="curMenu.imgUrl" :width='curMenu.imgWidth || 54' :height='curMenu.imgHeight || 54' shape="circle"></u--image> |
| | | </view> |
| | | <view v-if="textShow" :style="{height: curMenu.numHeight ? curMenu.numHeight + 'px' : '56rpx'}"> |
| | | {{curMenu.num}} |
| | | </view> |
| | | <view :style="{height: curMenu.titleHeight ? curMenu.titleHeight + 'px' : '56rpx'}"> |
| | | {{curMenu.title}} |
| | |
| | | default: () => { |
| | | return {} |
| | | } |
| | | } |
| | | }, |
| | | |
| | | imgShow: { |
| | | type: Boolean, |
| | | default: true |
| | | }, |
| | | |
| | | textShow: { |
| | | type: Boolean, |
| | | default: false |
| | | }, |
| | | }, |
| | | |
| | | methods: { |