feat(MB): 添加 MBLoading 组件
This commit is contained in:
parent
b182536fed
commit
970bc7b95c
33
components/MB/MBLoading.vue
Normal file
33
components/MB/MBLoading.vue
Normal file
@ -0,0 +1,33 @@
|
||||
<template>
|
||||
<view class="loading">
|
||||
<uni-load-more
|
||||
:contentText="{
|
||||
contentrefresh: 'loading...',
|
||||
}"
|
||||
:status="'loading'"
|
||||
/>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {defineOptions} from 'vue'
|
||||
|
||||
defineOptions({
|
||||
name: 'MBLoading'
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.loading {
|
||||
display: flex;
|
||||
margin: 20px auto;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
.label {
|
||||
font-size: 14px;
|
||||
line-height: 22px;
|
||||
color: #999;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Loading…
x
Reference in New Issue
Block a user