emis-app/components/tpx-empty/tpx-empty.vue
2024-05-23 15:21:41 +08:00

54 lines
689 B
Vue

<template>
<view :style="`padding: ${kongSizeMap[size].pdTB}rpx 0;`">
<u-empty text="无数据" :icon="getCdnUrl('kong.png')" textSize="28" :width="kongSizeMap[size].width" :height="kongSizeMap[size].height">
</u-empty>
</view>
</template>
<script>
const kongSizeMap = {
dfl: {
width: 86,
height: 97,
pdTB: 100,
},
sm: {
width: 42,
height: 48,
pdTB: 30,
}
}
export default {
computed: {
},
props: {
size: {
default () {
return 'dfl'
}
},
},
data() {
return {
kongSizeMap
}
},
created() {
},
onHide() {
},
unmounted() {},
methods: {
}
}
</script>
<style scoped lang="scss">
</style>