wujingjing
2024-08-06 0dc8bb825b1fb47e0f477a6e4dc93638b2dedf95
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<view class="fui-list__cell {{highlight?'fui-highlight':''}} {{background?'':'fui-list__cell-background'}}"
  style="padding:{{padding || c_padding}};background:{{background}};margin-top:{{marginTop}}rpx;margin-bottom:{{marginBottom}}rpx;border-radius:{{radius}}"
  bindtap="handleClick">
  <view wx:if="{{topBorder}}" style="background:{{borderColor}};left:{{topLeft}}rpx;right:{{topRight}}rpx"
    class="fui-cell__border-top {{borderColor?'':'fui-cell__border-color'}}"></view>
  <slot></slot>
  <view wx:if="{{bottomBorder}}" style="background:{{borderColor}};left:{{parse.getBottomLeft(bottomLeft,c_bottomLeft)}}rpx;right:{{bottomRight}}rpx"
    class="fui-cell__border-bottom {{borderColor?'':'fui-cell__border-color'}}"></view>
  <view class="fui-cell__arrow" wx:if="{{arrow}}" style="border-color:{{arrowColor || c_arrowColor}}"></view>
</view>
 
<wxs module="parse">
module.exports={
  getBottomLeft:function(bottomLeft,c_bottomLeft) {
      var left = bottomLeft;
      if (left === -1) {
        left = (c_bottomLeft === undefined || c_bottomLeft === null) ? 32 : c_bottomLeft
      }
      return left
    }
}
</wxs>