index.wxml 1.6 KB

123456789101112131415161718192021
  1. <l-popup show="{{show}}" showMask="{{true}}" contentAlign="bottom" locked="{{locked}}" bind:lintap="handleClickPopUp" z-index="{{zIndex}}">
  2. <view class="l-action-sheet">
  3. <view class="l-item-button l-class-title l-title-class" wx:if="{{title}}">
  4. {{ title }}
  5. </view>
  6. <view wx:for="{{ itemList }}" wx:key="name" hover-class="{{isHover?'list-hover':''}}">
  7. <l-button bind:lintap="handleClickItem" data-index="{{ index }}" data-item="{{ item }}" open-type="{{ item.openType }}" icon="{{ item.icon }}" type="default" size="large" special="{{true}}" long>
  8. <view style="{{ item.color ? 'color: ' + item.color : '' }}" class="l-item-button l-class-item l-item-class {{item.image || item.icon ? 'l-image-button':''}}">
  9. <image wx:if="{{item.image}}" class="l-button-image" src="{{item.image}}" style="{{item.imageStyle}}"/>
  10. <l-icon wx:elif="{{ item.icon }}" name="{{ item.icon }}" l-class="l-item-button" size="{{ item.iconSize }}" color="{{item.iconColor?item.iconColor:item.color}}"></l-icon>
  11. <text class="l-button-text">{{ item.name }}</text>
  12. </view>
  13. </l-button>
  14. </view>
  15. <view class="l-cancel l-class-cancel l-cancel-class {{isIphoneX ? 'l-cancel-x':''}}" wx:if="{{ showCancel }}" hover-class="{{isHover?'list-hover':''}}">
  16. <l-button type="default" size="large" long="true" bind:lintap="handleClickCancel" special="{{true}}">
  17. <view class="l-item-button l-cancel-button">{{ cancelText }}</view>
  18. </l-button>
  19. </view>
  20. </view>
  21. </l-popup>