mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
27 lines
569 B
Vue
27 lines
569 B
Vue
<template>
|
|
<div class="van-loading" :class="['van-loading--' + type, 'van-loading--' + color]">
|
|
<span class="van-loading__spinner" :class="['van-loading__spinner--' + type, 'van-loading__spinner--' + color]">
|
|
<i v-if="type === 'spinner'" v-for="item in 12" />
|
|
</span>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import install from '../utils/install';
|
|
|
|
export default {
|
|
install,
|
|
name: 'van-loading',
|
|
props: {
|
|
type: {
|
|
type: String,
|
|
default: 'gradient-circle'
|
|
},
|
|
color: {
|
|
type: String,
|
|
default: 'black'
|
|
}
|
|
}
|
|
};
|
|
</script>
|