9fc34a7d5e
This reverts commit d4033c32c4.
50 lines
713 B
Vue
50 lines
713 B
Vue
<template>
|
|
<i class="ui-loading" :class="{'is-big': isBig }"></i>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
export default {
|
|
name: 'uiLoading',
|
|
|
|
props: {
|
|
isBig: {
|
|
type: Boolean,
|
|
default: false
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
.ui-loading
|
|
{
|
|
display: inline-block;
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 40px;
|
|
border: 2px solid var(--color-box);
|
|
border-left-color: var(--color-text);
|
|
will-change: transform;
|
|
animation: loadingRotation 0.8s linear infinite;
|
|
|
|
&.is-big
|
|
{
|
|
width: 36px;
|
|
height: 36px;
|
|
border-width: 2px;
|
|
}
|
|
}
|
|
|
|
@keyframes loadingRotation
|
|
{
|
|
0%
|
|
{
|
|
transform: rotate(0)
|
|
}
|
|
100%
|
|
{
|
|
transform: rotate(1turn)
|
|
}
|
|
}
|
|
</style> |