<!-- components/chenghao-tag/chenghao-tag.wxml -->
<view
  class="tag-root {{shapeClass}} {{animationClass}}"
  style="{{inlineStyle}}"
>
  <image
    wx:if="{{imageUrl && !isPill}}"
    class="tag-bg-image"
    src="{{imageUrl}}"
    mode="aspectFill"
    binderror="onImageError"
  />
  <text
    class="tag-text"
    style="color: {{textColor}}; font-size: {{textSize}}rpx;"
  >{{mingcheng}}</text>
</view>
