mirror of https://github.com/Fabio286/antares.git
build: dropped use of lodash
This commit is contained in:
parent
3b37b7432e
commit
9b60bfff8d
|
@ -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",
|
||||
|
|
|
@ -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) {
|
||||
localWidth (val) {
|
||||
clearTimeout(this.debounceInterval);
|
||||
|
||||
this.debounceInterval = setTimeout(() => {
|
||||
this.changeExplorebarSize(val);
|
||||
}, 500),
|
||||
}, 500);
|
||||
},
|
||||
isSelected (val) {
|
||||
if (val) this.localWidth = this.explorebarSize;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue