<template>
	<view class="quick-action3">
		<view class="quick-action3_li" :style="{width: (730/2) + 'rpx'}" v-for="(item,index) in widget" :key="index">
			<view class="quick-action3_li-box" @click="to(item.link.url)">
				<view class="quick-action3_li-box-icon" :style="{borderColor: item.bgColor + ';'}">
					<x-icon style="height: 25px;line-height: 25px;" :name="item.icon.name" size="20" :color="item.bgColor"></x-icon>
				</view>
				<view class="quick-action3_li-box_t">
				   <text class="quick-action3_li-box_t-p1">{{item.link.name}}啊实打实大师阿发as</text>
				   <text class="quick-action3_li-box_t-p2">{{item.prompt}}啊实打实大师阿发</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import mixin from '@/service/mixins'
	export default {
		mixins: [mixin],
		props:{
			widget:{}
		}
	}
</script>

<style lang="scss">
.quick-action3{
	flex-direction: row;
	flex-wrap: wrap;
	padding: 10rpx;
	&_li{
		&-box{
			border-style: solid;
			border-width: 1rpx;
			border-color: #F5F5F5;
			flex-direction: row;
			align-items: center;
			padding: 20rpx;
			border-radius: 6rpx;
			&-icon{
				width: 40px;
				height: 40px;
				border-radius: 40px;
				flex-direction: row;
				align-items: center;
				justify-content: center;
				border-style: solid;
				border-width: 1rpx;
			}
			&_t{
				padding-left: 15rpx;
				&-p1{
					width: 210rpx;
					font-size: 32rpx;
					color: #575962;
					text-overflow: ellipsis;
					overflow: hidden;     
					/* #ifdef H5 */
					white-space: nowrap;
					/* #endif */
					lines: 1; 
				}
				&-p2{
					width: 220rpx;
					margin-top: 5rpx;
					font-size: 28rpx;
					color: #c0c4cc;
					text-overflow: ellipsis;
					overflow: hidden;     
					/* #ifdef H5 */
					white-space: nowrap;
					/* #endif */
					lines: 1; 
				}
			}
		}
	}
}
</style>
