mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
43 lines
719 B
Vue
43 lines
719 B
Vue
<template>
|
|
<button
|
|
class="btn btn--option btn--load-data"
|
|
v-if="!scrollNoMoreData && scrollDataLoaded && list.length >= 15"
|
|
@click="addHistoryData"
|
|
>
|
|
{{ $t('journal.load-data') }}
|
|
</button>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { PropType, defineComponent } from 'vue';
|
|
|
|
export default defineComponent({
|
|
props: {
|
|
scrollNoMoreData: {
|
|
type: Boolean,
|
|
required: true
|
|
},
|
|
|
|
scrollDataLoaded: {
|
|
type: Boolean,
|
|
required: true
|
|
},
|
|
|
|
list: {
|
|
type: Array as PropType<any[]>,
|
|
required: true
|
|
}
|
|
},
|
|
|
|
emits: ['addHistoryData'],
|
|
|
|
methods: {
|
|
addHistoryData() {
|
|
this.$emit('addHistoryData');
|
|
}
|
|
}
|
|
});
|
|
</script>
|
|
|
|
<style scoped></style>
|