<template>
	<van-action-sheet
	  :show="show"
	  :actions="actions"
		cancel-text="取消"
		:close-on-click-overlay="true"
		@select="onSelect"
		@close="onCancel"
	  @cancel="onCancel"
	/>
</template>

<script>
	import VanActionSheet from '@/wxcomponents/vant/action-sheet/index'

	export default {
		options: {
			styleIsolation: 'shared'
		},
		components: {
			VanActionSheet
		},
		props: {
			shareInfo: null,
			show: Boolean
		},
		computed: {
		},
		watch: {
		},
		data() {
			return {
				actions: [

				// 	{
				// 	name: '生成海报',
				// 	value: 'download'
				// },

				{
					name: '分享好友',
					openType: 'share'
				}]
			}
		},
		created() {},
		mounted() {

    },
		methods: {
			onSelect(e) {
				if (e.value === 'download') {
					this.showAlertDialog('功能未上线')
				}
			},
			onCancel(e) {
				this.$emit('update:show', false)
			}
		}
	}
</script>
<style lang="scss">
</style>
