<template>
    <view :class="'custom-class van-loading ' + (vertical ? 'van-loading--vertical' : '')">
        <view :class="'van-loading__spinner van-loading__spinner--' + type" :style="'color: ' + color + '; width: ' + utils.addUnit(size) + '; height: ' + utils.addUnit(size)">
            <view v-if="type === 'spinner'" class="van-loading__dot" v-for="(item, index) in array12" :key="index"></view>
        </view>
        <view class="van-loading__text" :style="'font-size: ' + utils.addUnit(textSize) + ';'">
            <slot />
        </view>
    </view>
</template>
<script module="utils" lang="wxs" src="@/miniprogram_npm/@vant/weapp/wxs/utils.wxs"></script>
<script>
'use strict';
Object.defineProperty(exports, '__esModule', {
    value: true
});
var component_1 = require('../common/component');
component_1.VantComponent({
    props: {
        color: String,
        vertical: Boolean,
        type: {
            type: String,
            value: 'circular'
        },
        size: String,
        textSize: String
    },
    data: {
        array12: Array.from({
            length: 12
        })
    }
});
</script>
<style>
@import './index.css';
</style>
