Добалвлен крестик в строку поиска
This commit is contained in:
@@ -27,8 +27,11 @@
|
|||||||
placeholder="Найти"
|
placeholder="Найти"
|
||||||
v-model="search"
|
v-model="search"
|
||||||
@click.stop
|
@click.stop
|
||||||
/>
|
>
|
||||||
|
<template v-slot:append>
|
||||||
|
<q-icon v-if="search !== ''" name="la la-times" class="cursor-pointer" @click.stop="resetSearch"/>
|
||||||
|
</template>
|
||||||
|
</q-input>
|
||||||
<span v-html="props.cols[2].label"></span>
|
<span v-html="props.cols[2].label"></span>
|
||||||
</q-th>
|
</q-th>
|
||||||
</q-tr>
|
</q-tr>
|
||||||
@@ -106,7 +109,7 @@ export default @Component({
|
|||||||
})
|
})
|
||||||
class RecentBooksPage extends Vue {
|
class RecentBooksPage extends Vue {
|
||||||
loading = false;
|
loading = false;
|
||||||
search = null;
|
search = '';
|
||||||
tableData = [];
|
tableData = [];
|
||||||
columns = [];
|
columns = [];
|
||||||
pagination = {};
|
pagination = {};
|
||||||
@@ -244,6 +247,11 @@ class RecentBooksPage extends Vue {
|
|||||||
this.updating = false;
|
this.updating = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
resetSearch() {
|
||||||
|
this.search = '';
|
||||||
|
this.$refs.input.focus();
|
||||||
|
}
|
||||||
|
|
||||||
wordEnding(num) {
|
wordEnding(num) {
|
||||||
const endings = ['', 'а', 'и', 'и', 'и', '', '', '', '', ''];
|
const endings = ['', 'а', 'и', 'и', 'и', '', '', '', '', ''];
|
||||||
const deci = num % 100;
|
const deci = num % 100;
|
||||||
|
|||||||
Reference in New Issue
Block a user