Merge branch 'develop' into pr/12085
This commit is contained in:
commit
6a8375b045
51 changed files with 543 additions and 129 deletions
|
|
@ -102,6 +102,7 @@ const props = withDefaults(defineProps<{
|
|||
|
||||
const emit = defineEmits<{
|
||||
(ev: 'queue', count: number): void;
|
||||
(ev: 'status', error: boolean): void;
|
||||
}>();
|
||||
|
||||
let rootEl = $shallowRef<HTMLElement>();
|
||||
|
|
@ -193,6 +194,11 @@ watch(queue, (a, b) => {
|
|||
emit('queue', queue.value.size);
|
||||
}, { deep: true });
|
||||
|
||||
watch(error, (n, o) => {
|
||||
if (n === o) return;
|
||||
emit('status', n);
|
||||
});
|
||||
|
||||
async function init(): Promise<void> {
|
||||
items.value = new Map();
|
||||
queue.value = new Map();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue