comparison client/src/components/layers/Layers.vue @ 1669:16fb9667ddf8

refac: use dynamic imports for components
author Thomas Junk <thomas.junk@intevation.de>
date Mon, 24 Dec 2018 13:12:11 +0100
parents 0ded4c56978e
children a08e0f532304
comparison
equal deleted inserted replaced
1668:eb832d81b67a 1669:16fb9667ddf8
42 * 42 *
43 * Author(s): 43 * Author(s):
44 * Thomas Junk <thomas.junk@intevation.de> 44 * Thomas Junk <thomas.junk@intevation.de>
45 * Markus Kottländer <markus.kottlaender@intevation.de> 45 * Markus Kottländer <markus.kottlaender@intevation.de>
46 */ 46 */
47 import Layerselect from "./Layerselect";
48 import { mapGetters, mapState } from "vuex"; 47 import { mapGetters, mapState } from "vuex";
49 export default { 48 export default {
50 name: "layers", 49 name: "layers",
51 components: { 50 components: {
52 Layerselect 51 Layerselect: () => import("./Layerselect")
53 }, 52 },
54 computed: { 53 computed: {
55 ...mapGetters("map", ["layersForLegend"]), 54 ...mapGetters("map", ["layersForLegend"]),
56 ...mapState("application", ["showLayers"]) 55 ...mapState("application", ["showLayers"])
57 }, 56 },