mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
10 lines
412 B
Plaintext
10 lines
412 B
Plaintext
<wxs src="../wxs/utils.wxs" module="utils" />
|
|
|
|
<view class="van-circle">
|
|
<canvas class="van-circle__canvas" type="{{ type }}" style="width: {{ utils.addUnit(size) }};height:{{ utils.addUnit(size) }}" id="van-circle" canvas-id="van-circle"></canvas>
|
|
<view wx:if="{{ !text }}" class="van-circle__text">
|
|
<slot></slot>
|
|
</view>
|
|
<cover-view wx:else class="van-circle__text">{{ text }}</cover-view>
|
|
</view>
|