更新组件
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="emptyWrap">
|
<div class="emptyWrap">
|
||||||
<img class="emptyImg" src="https://cdn.cunwuyun.cn/dvcp/h5/Empty.png">
|
<img class="emptyImg" :src="emptyImg">
|
||||||
<div class="emptyText">{{ description }}</div>
|
<div class="emptyText">{{ description }}</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -9,10 +9,17 @@
|
|||||||
export default {
|
export default {
|
||||||
name: "AiEmpty",
|
name: "AiEmpty",
|
||||||
props: {
|
props: {
|
||||||
|
img: {default: "https://cdn.cunwuyun.cn/dvcp/h5/Empty.png"},
|
||||||
|
noPermit: Boolean,
|
||||||
description: {
|
description: {
|
||||||
default: '暂无相关信息',
|
default: '暂无相关信息',
|
||||||
type: String
|
type: String
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
emptyImg() {
|
||||||
|
return this.noPermit ? "https://cdn.cunwuyun.cn/dvcp/h5/no-admin.png" : this.img
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user