<wxs module="computed" src="./index.wxs"/>

<view
        bindtap="onClick"
        class="{{ computed.rootClass({ classPrefix, name }) }}"
        style="{{ computed.rootStyle({ customStyle, color, size }) }}"
>
    <van-info
            custom-class="van-icon__info info-class"
            dot="{{ dot }}"
            info="{{ info }}"
            wx:if="{{ info !== null || dot }}"
    />
    <image
            class="van-icon__image"
            mode="aspectFit"
            src="{{ name }}"
            wx:if="{{ computed.isImage(name) }}"
    />
</view>
