index.wxml 412 B

123456789
  1. <wxs src="../wxs/utils.wxs" module="utils" />
  2. <view class="van-circle">
  3. <canvas class="van-circle__canvas" type="{{ type }}" style="width: {{ utils.addUnit(size) }};height:{{ utils.addUnit(size) }}" id="van-circle" canvas-id="van-circle"></canvas>
  4. <view wx:if="{{ !text }}" class="van-circle__text">
  5. <slot></slot>
  6. </view>
  7. <cover-view wx:else class="van-circle__text">{{ text }}</cover-view>
  8. </view>