You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

chat.vue 472 B

4 years ago
1234567891011121314151617181920
  1. <template>
  2. <view class="cu-chat">
  3. <slot></slot>
  4. <view v-if="empty" class="padding text-gray text-center">{{ emptyTips }}</view>
  5. <view v-if="!empty && nomore" class="padding text-gray text-center">{{ nomoreTips }}</view>
  6. </view>
  7. </template>
  8. <script>
  9. export default {
  10. name: 'l-chat',
  11. props: {
  12. empty: {},
  13. emptyTips: { default: '暂无消息' },
  14. nomore: { default: true },
  15. nomoreTips: { default: '没有更多消息了' }
  16. }
  17. }
  18. </script>