|
@@ -1,20 +1,18 @@
|
1
|
1
|
<template>
|
2
|
|
- <van-empty v-if="!show" :image="image" :description="error">
|
3
|
|
- <template v-if="!image" v-slot:image></template>
|
4
|
|
- <template v-slot:default>
|
5
|
|
- <slot name="callback"></slot>
|
6
|
|
- </template>
|
7
|
|
- </van-empty>
|
|
2
|
+ <template v-if="!show">
|
|
3
|
+ <span style="display: inline-block" v-if="error">{{error}}</span>
|
|
4
|
+ <slot name="callback"></slot>
|
|
5
|
+ </template>
|
8
|
6
|
<slot v-else></slot>
|
9
|
7
|
</template>
|
10
|
8
|
|
11
|
9
|
<script>
|
12
|
10
|
import { computed } from 'vue'
|
|
11
|
+
|
13
|
12
|
export default {
|
14
|
13
|
props: {
|
15
|
14
|
check: undefined,
|
16
|
15
|
error: String,
|
17
|
|
- image: undefined,
|
18
|
16
|
},
|
19
|
17
|
|
20
|
18
|
setup(props) {
|