<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import EMItemTypeGridViewBase from './emitem-type-grid-view-base.vue';

import view_grid from '@widgets/emitem-type/main-grid/main-grid.vue';
import view_searchform from '@widgets/emitem-type/default-searchform/default-searchform.vue';

/**
 * 物品类型
 *
 * @export
 * @class EMItemTypeGridView
 * @extends {EMItemTypeGridViewBase}
 */
@Component({
    components: {
        view_grid, 
        view_searchform, 
    },
    beforeRouteEnter: (to: any, from: any, next: any) => {
        next((vm: any) => {
            if(!Object.is(vm.navModel,"route")){
                vm.initNavDataWithTab(vm.viewCacheData);
            }
            vm.$store.commit('addCurPageViewtag', { fullPath: to.fullPath, viewtag: vm.viewtag });
        });
    },
})
export default class EMItemTypeGridView extends EMItemTypeGridViewBase { }
</script>