added select all option for library items

This commit is contained in:
zipben 2025-06-05 01:08:08 +00:00
parent 140544ba77
commit 9baca4f16c
7 changed files with 169 additions and 10 deletions

View file

@ -1,7 +1,7 @@
<template>
<div class="page" :class="streamLibraryItem ? 'streaming' : ''">
<app-book-shelf-toolbar :page="id || ''" />
<app-lazy-bookshelf :page="id || ''" />
<app-book-shelf-toolbar :page="id || ''" @select-all-items="selectAllItems" />
<app-lazy-bookshelf ref="lazyBookshelf" :page="id || ''" />
</div>
</template>
@ -44,6 +44,13 @@ export default {
return this.$store.state.streamLibraryItem
}
},
methods: {}
methods: {
selectAllItems() {
if (this.$refs.lazyBookshelf) {
this.$refs.lazyBookshelf.selectAllItems()
} else {
}
}
}
}
</script>