123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <template>
- <view class="applications">
- <view @click="itemClick(item)" class="applications-item" v-for="(item,index) in list" :key="index">
- <view class="applications-item-img">
- <image style="width: 84rpx;height: 84rpx;" :src="item.icon" mode=""></image>
- </view>
- <view class="applications-item-text">
- {{item.title}}
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- props: {
- list: {
- default: () => [],
- type: Array
- }
- },
- data() {
- return {
- }
- },
- methods: {
- itemClick(item, ) {
- this.$emit('itemClick', item)
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .applications {
- width: 100%;
- box-sizing: border-box;
- padding: 32rpx 0 0 0;
- background: #ffffff;
- border-radius: 5.33px;
- box-shadow: 0px 0px 6.67px 0px rgba(147, 147, 147, 0.20);
- display: flex;
- flex-wrap: wrap;
- .applications-item {
- display: flex;
- width: 25%;
- margin-bottom: 32rpx;
- justify-content: center;
- flex-direction: column;
- align-items: center;
- font-size: 24rpx;
- }
- }
- </style>
|