2018-07-01 21:37:18 +08:00
|
|
|
<template>
|
|
|
|
<div class="md-scroll-view-more">
|
2018-07-04 20:15:39 +08:00
|
|
|
<template v-if="!isFinished">
|
|
|
|
{{ loadingText }}
|
|
|
|
</template>
|
|
|
|
<template v-else>
|
|
|
|
{{ finishedText }}
|
|
|
|
</template>
|
2018-07-01 21:37:18 +08:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2021-03-02 13:27:32 +08:00
|
|
|
<script>
import {t} from '../_locale'
|
|
|
|
|
|
|
|
export default {
|
2018-07-01 21:37:18 +08:00
|
|
|
name: 'md-scroll-view-more',
|
2018-07-04 20:15:39 +08:00
|
|
|
props: {
|
|
|
|
loadingText: {
|
|
|
|
type: String,
|
2021-07-16 13:24:11 +08:00
|
|
|
default: t('md.scroll_view.more.loading'),
|
2018-07-04 20:15:39 +08:00
|
|
|
},
|
|
|
|
finishedText: {
|
|
|
|
type: String,
|
2021-07-16 13:24:11 +08:00
|
|
|
default: t('md.scroll_view.more.allLoaded'),
|
2018-07-04 20:15:39 +08:00
|
|
|
},
|
|
|
|
isFinished: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false,
|
|
|
|
},
|
|
|
|
},
|
2018-07-01 21:37:18 +08:00
|
|
|
}
|
2021-03-02 13:27:32 +08:00
|
|
|
</script>
|
2018-07-01 21:37:18 +08:00
|
|
|
|
|
|
|
<style lang="stylus">
|
|
|
|
.md-scroll-view-more
|
|
|
|
padding v-gap-lg 0
|
|
|
|
font-size font-minor-large
|
|
|
|
text-align center
|
|
|
|
color color-text-caption
|
2021-03-02 13:27:32 +08:00
|
|
|
</style>
|