oak-frontend-base/es/components/actionBtnPanel/index.xml

32 lines
1.1 KiB
XML

<block wx:if="{{ newItems && newItems.length > 0 }}">
<view class="panel-container">
<block wx:if="{{ moreItems && moreItems.length > 0 }}">
<view id='more' class="more" catchtap="handleMoreClick">
更多
</view>
<popover id='popover' class="morePopover" fixed="{{fixed}}">
<block wx:for="{{ moreItems }}" wx:key="index">
<popover-item hasline catchtap='handleClick' data-type="popover" data-item="{{ item }}">{{ item.text }}</popover-item>
</block>
</popover>
</block>
<view class="btn-container">
<block wx:for="{{ newItems }}" wx:key="index">
<l-button plain="{{item.plain}}" shape="{{ item.buttonProps.shape || 'square' }}" catchtap="handleClick" data-item="{{ item }}" type="{{item.color || 'default'}}">
{{item.text}}
</l-button>
</block>
</view>
</view>
<l-dialog id="my-action-btn-dialog" bind:linconfirm="linconfirm" bind:lincancel="lincancel" />
</block>