<view class="card_plugin {{className}}"
  style="border: 1rpx solid #ddd;margin-bottom: 24rpx;border-radius: 8rpx;{{customStyle}}"
  bind:tap="click">
  <view class="header"
    style="border-bottom: 1rpx solid #ddd;padding: 16rpx 24rpx;font-weight: bold;{{headerStyle || ''}}">
    <slot name="header" />
  </view>
  <view class="content" style="padding:16rpx 24rpx;{{contentStyle || ''}}">
    <block wx:if="{{showAll}}">
      <view id="contentSlot">
        <slot name="content" />
      </view>
    </block>
    <block wx:else>
      <view id="contentSlot"
        style="height: {{showMoreBar ? showMore ? 'auto' : 'calc(3em * 1.57)' : 'auto'}};overflow: hidden;">
        <slot name="content" />
      </view>
      <view wx:if="{{showMoreBar}}" class="show-more" catch:tap="showMoreTap">
        <view>{{showMore ? '收起' : '显示更多' }}</view>
        <t-icon name="{{showMore ? 'chevron-up' : 'chevron-down' }}" />
      </view>
    </block>
  </view>
  <view class="footer" style="{{footerStyle||''}}">
    <slot name="footer" />
  </view>
</view>