| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <template>
- <div :class="item_klass" @click="handleClick">
- <div class="history-item-icon">{{ $t('conversation.history_loadmore') }}</div>
- </div>
- </template>
- <script setup>
- import { computed } from 'vue';
- const props = defineProps({
- history: Object,
- index: Number
- });
- const emit = defineEmits(['loadmore']);
- const item_klass = computed(() => {
- const obj = {
- 'conversation-history-item': true
- };
- obj['load-more'] = true;
- return obj;
- });
- /**
- * 点击事件
- * 分发ID值
- */
- const handleClick = () => {
- emit('loadmore');
- };
- </script>
- <style lang="css" scoped>
- .history-item-icon {
- background-color: var(--color-bg-1);
- padding: 20px 30px 20px 30px;
- border-radius: 20px;
- margin-top: 10px;
- margin-bottom: 10px;
- color: var(--color-text-1);
- display: flex;
- justify-content: center;
- align-items: center;
- cursor: pointer;
- }
- </style>
|