WebApp【公共组件库】@前端(For Git Submodule)
‘chensiAb’
2025-03-05 81a67745b6bf51fc4d58ba8c2ccd971aaf5a29ae
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/**
 * CWaiting - 等待中
 * @author Tevin
 */
 
<template>
    <AtModal
        class="c-waiting"
        v-show="isOpened"
        :isOpened="isOpened"
        :closeOnClickOverlay="false"
    >
        <AtModalContent>
            <AtActivityIndicator />
            <view
                class="title"
                v-if="title"
            >{{title}}</view>
            <view
                v-if="sub"
                class="sub m-text-warning"
            >{{sub}}</view>
        </AtModalContent>
    </AtModal>
</template>
 
<script>
import Taro from '@tarojs/taro';
import { AtModal, AtModalContent, AtActivityIndicator } from 'taro-ui-vue';
import './cWaiting.scss';
 
export default {
    name: 'CWaiting',
    components: {
        AtModal,
        AtModalContent,
        AtActivityIndicator,
    },
    props: {
        // 是否显示
        isOpened: Boolean,
        // 标题
        title: String,
        // 次标题
        sub: String,
        // 次标题颜色类型
        subType: {
            type: String,
            default: 'warning',
        },
    },
    methods: {},
};
</script>