<view class="smart-popover custom-class">

  <smart-overlay
    show="{{ currentShow }}"
    z-index="{{ zIndex }}"
    custom-style="{{ overlayStyle }}"
    bind:click="onClose"
    duration="{{ 1 }}"
    close-on-click-overlay
    bind:close="onClose"
  >
   
  </smart-overlay>

  <view wx:if="{{trigger === 'longpress'}}" class="smart-popover-button" catch:longpress="onClick">
    <slot />
    <view catch:tap="noop" wx:if="{{currentShow}}" class="smart-popover-overlay" style="left: {{left}};top: {{top}}; bottom:{{bottom}};right:{{right}}; transform:{{transform}}; {{customStyle}}; {{showStyle}}">
      <slot name="overlay" />
      <smart-icon class="smart-popover-overlay-arrow" name="{{iconSrc}}" style=" transform: {{iconTransform}}; {{iconPos}}: {{iconPosVal}}px;background-size: {{iconWidth}} {{iconHeight}};{{iconStyle}}"></smart-icon>
    </view>
  </view>

  <view wx:else class="smart-popover-button" catch:tap="onClick">
    <slot />
    <view catch:tap="noop" wx:if="{{currentShow}}" class="smart-popover-overlay" style="left: {{left}};top: {{top}}; bottom:{{bottom}};right:{{right}}; transform:{{transform}}; {{customStyle}}; {{showStyle}}">
      <slot name="overlay" />
      <smart-icon class="smart-popover-overlay-arrow" name="{{iconSrc}}" style=" transform: {{iconTransform}}; {{iconPos}}: {{iconPosVal}}px;background-size: {{iconWidth}} {{iconHeight}};{{iconStyle}}"></smart-icon>
    </view>
  </view>

</view>