icon.wxml 381 B

123456
  1. <view class="{{ prefix ? prefix : classPrefix}} {{componentPrefix}}-class" style="{{ iconStyle }}" bind:tap="onTap">
  2. <view wx:if="{{ isImage }}" class="{{classPrefix}}--image">
  3. <image src="{{ name }}" mode="aspectFit" class="{{classPrefix}}__image" />
  4. </view>
  5. <label wx:else class="{{ prefix ? prefix : classPrefix }}-{{ name }} {{ classPrefix }}-base"> </label>
  6. </view>