Переход на Vue 3, в процессе

This commit is contained in:
Book Pauk
2021-10-29 15:27:04 +07:00
parent 00cb2dc274
commit 76e09ef34e
7 changed files with 31 additions and 25 deletions

View File

@@ -279,7 +279,7 @@ class Reader {
this.reader = this.$store.state.reader;
this.config = this.$store.state.config;
this.$root.addKeyHook(this.keyHook);
this.$root.addEventHook('key', this.keyHook);
this.lastActivePage = false;

View File

@@ -14,7 +14,7 @@
:data="tableData"
:columns="columns"
row-key="key"
:pagination.sync="pagination"
v-model:pagination="pagination"
separator="cell"
hide-bottom
virtual-scroll

View File

@@ -149,7 +149,7 @@ class TextPage {
await this.doPageAnimation();
}, 10);
this.$root.$on('resize', async() => {
this.$root.addEventHook('resize', async() => {
this.$nextTick(this.onResize);
await utils.sleep(500);
this.$nextTick(this.onResize);