-
Notifications
You must be signed in to change notification settings - Fork 6
/
Rendering.vue
50 lines (47 loc) · 928 Bytes
/
Rendering.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<template>
<div>
<div
style="min-height: 300px"
v-loading="loading"
>
<component
:is="component"
v-bind="Object.assign(props, $attrs)"
v-on="$listeners"
/>
</div>
<pagination
class="pagination"
v-model="props.datas"
v-on="$listeners"
v-bind="$attrs"
:filling="filling"
@loading="loading = true"
@loaded="loading = false"
/>
</div>
</template>
<script>
import Pagination from "@/components/common/Pagination";
export default {
name: "Rendering",
components: {Pagination},
props: {
component: { type: [Object, Function], required: true},
filling: { type: Function, required: true},
},
data() {
return {
loading: false,
props: {
datas: [],
}
}
}
}
</script>
<style scoped>
.pagination {
margin-top: 15px;
}
</style>