
	<wxs src="../wxs/array.wxs" module="tools"/>
	<mc-popup mc-class="mc-action-sheet mc-class" visible="{{ visible }}" round="{{ round }}" mask="{{ mask }}" hideTabBar="{{ hideTabBar }}" maskClosable="{{ maskClosable }}" maskStyle="{{ maskStyle }}" safeArea="{{ true }}" bind:close="handleClose">
		<view wx:if="{{ title }}" class="mc-hairline__bottom mc-action-sheet__title" style>
			{{ title }}
		</view>
		<view wx:if="{{ description }}" class="mc-action-sheet__description">
			{{ description }}
		</view>
		<button wx:for="{{ actions }}" wx:key="index" open-type="{{ item.openType }}" style="{{ item.color ? 'color: ' + item.color : '' }}" class="mc-action-sheet__item {{item.disabled ? 'is-disabled' : ''}} {{index === 0 && title ? '' : 'mc-hairline__top' }} {{ item.className || '' }}" hover-class="mc-action-sheet__item--hover" data-index="{{ index }}" bindtap="handleSelect" bindgetuserinfo="bindGetUserInfo" bindcontact="bindContact" bindgetphonenumber="bindGetPhoneNumber" binderror="bindError" bindlaunchapp="bindLaunchApp" bindopensetting="bindOpenSetting" lang="{{ lang }}" session-from="{{ sessionFrom }}" send-message-title="{{ sendMessageTitle }}" send-message-path="{{ sendMessagePath }}" send-message-img="{{ sendMessageImg }}" show-message-card="{{ showMessageCard }}" app-parameter="{{ appParameter }}">
			<view>
				<text>{{ item.name }}</text>
			</view>
			<!-- TODO: 存在问题，无法组织冒泡(button -> view可行，但原生事件不行) -->
			<block wx:if="{{ tools.isArray(item.extra) }}">
				<view wx:for="{{ item.extra }}" wx:for-index="$index" wx:for-item="$item" wx:key="$index" data-indexes="{{ index }}_{{ $index }}" catchtap="handleExtra" class="mc-action-sheet__extra">
					{{ $item.name }}
				</view>
			</block>
			<view wx:elif="{{ item.subname }}" class="mc-action-sheet__subname">
				<text>{{ item.subname }}</text>
			</view>
		</button>
		<slot></slot>
		<view wx:if="{{ cancelText }}" class="mc-action-sheet__cancel" hover-class="mc-action-sheet__cancel--hover" hover-stay-time="70" bind:tap="handleCancel">
			{{ cancelText }}
		</view>
	</mc-popup>
