index.axml 549 B

123456789101112131415
  1. <view class='circle-index {{className}}' style='{{style}}' ref='saveChildRef0'>
  2. <import-sjs from='../wxs/utils.sjs' name='utils'>
  3. </import-sjs>
  4. <view class='van-circle'>
  5. <canvas class='van-circle__canvas' width='{{_size}}' height='{{_size}}' style='width: {{ utils.addUnit(size) }};height:{{ utils.addUnit(size) }}' id='{{id}}'>
  6. </canvas>
  7. <view a:if='{{ !text }}' class='van-circle__text'>
  8. <slot>
  9. </slot>
  10. </view>
  11. <cover-view a:else class='van-circle__text'>
  12. {{ text }}
  13. </cover-view>
  14. </view>
  15. </view>