mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
47 lines
775 B
Vue
47 lines
775 B
Vue
<template>
|
|
<demo-section>
|
|
<demo-block :title="$t('title1')">
|
|
<van-loading />
|
|
<van-loading color="white" />
|
|
</demo-block>
|
|
|
|
<demo-block :title="$t('title2')">
|
|
<van-loading type="spinner" />
|
|
<van-loading
|
|
type="spinner"
|
|
color="white"
|
|
/>
|
|
</demo-block>
|
|
</demo-section>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
i18n: {
|
|
'zh-CN': {
|
|
title1: 'Circular',
|
|
title2: 'Spinner'
|
|
},
|
|
'en-US': {
|
|
title1: 'Circular',
|
|
title2: 'Spinner'
|
|
}
|
|
}
|
|
};
|
|
</script>
|
|
|
|
<style lang="less">
|
|
.demo-loading {
|
|
.van-loading {
|
|
display: inline-block;
|
|
margin: 5px 0 5px 20px;
|
|
}
|
|
|
|
.van-loading--white {
|
|
padding: 10px;
|
|
border-radius: 3px;
|
|
background-color: rgba(0, 0, 0, .5);
|
|
}
|
|
}
|
|
</style>
|