1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <template>
- <view class="custom-reach-bottom">
- <text v-if="!nomore" class="cuIcon-loading1 loading"></text>
- <text>{{ nomore ? '没有更多了' : '加载中' }}</text>
- </view>
- </template>
- <script>
- export default {
- props: {
- nomore: Boolean
- }
- }
- </script>
- <style lang="scss" scoped>
- .custom-reach-bottom {
- height: 88rpx;
- background: #FFFFFF;
- display: flex;
- justify-content: center;
- align-items: center;
- color: #000000;
- font-size: 24rpx;
- .loading {
- animation: bottom-loading 1s infinite linear;
- animation-fill-mode: forwards;
- }
- text {
- margin-left: 16rpx;
- }
- }
- @keyframes bottom-loading {
- 0% {
- transform: rotateZ(0deg);
- }
- 100% {
- transform: rotateZ(360deg);
- }
- }
- </style>
|