index.wxml 1.65 KB
Newer Older
程智春 committed
1 2
<!--static/nativeComponents/FloatButton/index.wxml-->
<movable-area class="float-botton">
程智春 committed
3
  <movable-view class="movable-view  {{datas.componentData.style==0 ? 'icon-class':'img-class'}}" direction="all" style="width:{{datas.componentData['sizeInfo']['width'] * 2}}rpx;height:{{datas.componentData['sizeInfo']['width'] *2}}rpx;top:{{datas.componentData['position']['y'] * 12 * 2}}rpx;left:{{datas.componentData['position']['x'] * 12 * 2}}rpx;background-color:{{datas.componentData.style==0?datas.componentData['backgroundColor']:'transparent'}};box-shadow:{{(datas.componentData.style==0 && datas.componentData.boxShadow)?'rgba(0, 0, 0, 0.5) 0px 0px 10rpx':'none'}}" bindtap="clickHandler">
程智春 committed
4 5 6 7 8 9 10 11 12
    <view wx:if="{{datas.componentData.style==0}}" class="content">
      <view wx:if="{{datas.componentData.icon.type==1}}">
        <i 
          wx:if="{{datas.componentData.version}}" 
          class="content-img antt {{datas.componentData.icon.src}}" 
          style="font-size:1.6em;color:{{datas.componentData['contentColor']}}"
        ></i>
        <i
        wx:else
程智春 committed
13
        class="content-img iconfont antt {{datas.componentData.icon.src}}" 
程智春 committed
14 15 16 17 18 19 20
        style="font-size:1.6em;color:{{datas.componentData['contentColor']}}"
        >
        </i>
      </view>
      <image wx:elif="{{datas.componentData.icon.type==2}}" class="content-img" src="{{datas.componentData.icon.src}}"></image>
      <view class="content-name" style="font-size:{{datas.componentData['fontSize']}}em;color:{{datas.componentData['contentColor']}}">{{datas.componentData['content']}}</view>
    </view>
程智春 committed
21
    <image wx:else class="imgs" src="{{imgIcon}}" mode="aspectFit">
程智春 committed
22 23 24
    </image>
  </movable-view>
</movable-area>