| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 | <template>	<view class="u-row" :style="{			alignItems: uAlignItem,			justifyContent: uJustify		}"		@tap="click"	>		<slot />	</view></template><script>		export default {		name: "u-row",		props: {						gutter: {				type: [String, Number],				default: 20			},						justify: {				type: String,				default: 'start'			},						align: {				type: String,				default: 'center'			},						stop: {				type: Boolean,				default: true			}		},		computed: {			uJustify() {				if (this.justify == 'end' || this.justify == 'start') return 'flex-' + this.justify;				else if (this.justify == 'around' || this.justify == 'between') return 'space-' + this.justify;				else return this.justify;			},			uAlignItem() {				if (this.align == 'top') return 'flex-start';				if (this.align == 'bottom') return 'flex-end';				else return this.align;			}		},		methods: {			click(e) {				this.$emit('click');			}		}	}</script><style lang="scss">	@import "../../libs/css/style.components.scss";	.u-row {		// 由于微信小程序编译后奇怪的页面结构,只能使用float布局实现,flex无法实现		/* #ifndef MP-WEIXIN || MP-QQ || MP-TOUTIAO */		@include vue-flex;		/* #endif */		flex-wrap: wrap;	}	.u-row:after {		/* #ifdef MP-WEIXIN || MP-QQ || MP-TOUTIAO */		display: table;		clear: both;		content: "";		/* #endif */	}</style>
 |