index.wxml 1.2 KB

1234567891011121314151617181920212223
  1. <view class="i-as-mask i-class-mask {{ visible ? 'i-as-mask-show' : '' }}" bindtap="handleClickMask"></view>
  2. <view class="i-class i-as {{ visible ? 'i-as-show' : '' }}">
  3. <view class="i-as-header i-class-header"><slot name="header"></slot></view>
  4. <view class="i-as-actions">
  5. <view class="i-as-action-item" wx:for="{{ actions }}" wx:key="{{ item.name }}">
  6. <i-button
  7. bind:click="handleClickItem"
  8. data-index="{{ index }}"
  9. open-type="{{ item.openType }}"
  10. type="ghost"
  11. size="large"
  12. long
  13. >
  14. <view class="i-as-btn-loading" wx:if="{{ item.loading }}"></view>
  15. <i-icon wx:if="{{ item.icon }}" type="{{ item.icon }}" i-class="i-as-btn-icon"></i-icon>
  16. <view class="i-as-btn-text" style="{{ item.color ? 'color: ' + item.color : '' }}">{{ item.name }}</view>
  17. </i-button>
  18. </view>
  19. </view>
  20. <view class="i-as-cancel" wx:if="{{ showCancel }}">
  21. <i-button i-class="i-as-cancel-btn" type="ghost" size="large" long="true" bind:click="handleClickCancel">{{ cancelText }}</i-button>
  22. </view>
  23. </view>