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

<view class="custom-class {{ utils.bem('loading', { vertical }) }}">
    <view
            class="van-loading__spinner van-loading__spinner--{{ type }}"
            style="{{ computed.spinnerStyle({ color, size }) }}"
    >
        <view
                class="van-loading__dot"
                wx:for="{{ array12 }}"
                wx:if="{{ type === 'spinner' }}"
                wx:key="index"
        />
    </view>
    <view class="van-loading__text" style="{{ computed.textStyle({ textSize }) }}">
        <slot/>
    </view>
</view>
