| | |
| | | <div class="content" v-loading="loading" element-loading-background="rgba(5, 5, 15, 0.6)" |
| | | element-loading-text="加载中..."> |
| | | <EmptyState v-if="!sceneList.length && !loading" /> |
| | | <div class="scene-card" v-else v-for="(item, index) in sceneList" :key="index"> |
| | | <div class="scene-card" v-else v-for="(item, index) in sceneList" :key="index" @click="emit('click', item)"> |
| | | <div class="card-header"> |
| | | <el-tooltip class="title-tooltip" :content="item.sceneName || '-'" placement="top" effect="dark" |
| | | :show-after="200"> |
| | |
| | | } |
| | | } |
| | | |
| | | const emit = defineEmits(['click']) |
| | | |
| | | const fetchList = async () => { |
| | | // 只有超过200ms才显示loading,避免闪烁 |
| | | loadingTimer.value = setTimeout(() => { |