diff --git a/packages/client/src/components/timeline.vue b/packages/client/src/components/timeline.vue index 53697671b..a7af02c30 100644 --- a/packages/client/src/components/timeline.vue +++ b/packages/client/src/components/timeline.vue @@ -1,184 +1,143 @@ - diff --git a/packages/client/src/components/ui/pagination.vue b/packages/client/src/components/ui/pagination.vue index 79744e528..ab55b3c5b 100644 --- a/packages/client/src/components/ui/pagination.vue +++ b/packages/client/src/components/ui/pagination.vue @@ -59,6 +59,10 @@ const props = withDefaults(defineProps<{ displayLimit: 30, }); +const emit = defineEmits<{ + (e: 'queue', count: number): void; +}>(); + const rootEl = ref(); const items = ref([]); const queue = ref([]); @@ -235,7 +239,7 @@ const append = (item) => { watch(props.pagination.params, init, { deep: true }); watch(queue, (a, b) => { if (a.length === 0 && b.length === 0) return; - this.$emit('queue', queue.value.length); + emit('queue', queue.value.length); }, { deep: true }); init();