<template>
	<view :style="{width:width+'rpx'}" class="z-button" @click="$emit('click')">
		<slot></slot>
	</view>
</template>

<script>
	export default{
		name:'z-button',
		props:{
			width:{
				type:String,
				value:'690'
			}
		}
	}
</script>

<style lang="scss" scoped>
	.z-button{
		width:690rpx;
		line-height:88rpx;
		background:#2481EE;
		color: white;
		border-radius:6rpx;
		margin: 0 auto;
		font-size:32rpx;
		font-weight:500;
		text-align: center;
	}
</style>
