build: dropped use of lodash

This commit is contained in:
Fabio Di Stasio 2021-02-19 17:41:33 +01:00
parent 3b37b7432e
commit 9b60bfff8d
2 changed files with 8 additions and 5 deletions

View File

@ -58,7 +58,6 @@
"electron-updater": "^4.3.5",
"faker": "^5.3.1",
"keytar": "^7.3.0",
"lodash": "^4.17.20",
"moment": "^2.29.1",
"mssql": "^6.2.3",
"mysql": "^2.18.1",

View File

@ -117,7 +117,6 @@
<script>
import { mapGetters, mapActions } from 'vuex';
import _ from 'lodash';// TODO: remove
import Tables from '@/ipc-api/Tables';
import Views from '@/ipc-api/Views';
@ -172,6 +171,7 @@ export default {
isNewSchedulerModal: false,
localWidth: null,
debounceInterval: null,
isDatabaseContext: false,
isTableContext: false,
isMiscContext: false,
@ -199,9 +199,13 @@ export default {
}
},
watch: {
localWidth: _.debounce(function (val) {
this.changeExplorebarSize(val);
}, 500),
localWidth (val) {
clearTimeout(this.debounceInterval);
this.debounceInterval = setTimeout(() => {
this.changeExplorebarSize(val);
}, 500);
},
isSelected (val) {
if (val) this.localWidth = this.explorebarSize;
}