You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
458 B
Vue
20 lines
458 B
Vue
<template>
|
|
<ch-flex class="ch-empty" justify="center" items="center" direction="column">
|
|
<ch-icon name="empty" :size="100" color="#bbb"></ch-icon>
|
|
<text class="ch-empty--text">{{ emptyText }}</text>
|
|
</ch-flex>
|
|
</template>
|
|
|
|
<script setup name="ch-empty">
|
|
import { defineProps } from 'vue';
|
|
const props = defineProps({
|
|
emptyText: {
|
|
type: String,
|
|
default: '暂无数据'
|
|
}
|
|
})
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
@import './ch-empty.scss';
|
|
</style> |