/* 跳转首页组件 */
define(['jquery', 'vue', 'layer'], function ($, Vue, layer) {
    return Vue.component('jump-home', {
        template: '\
                <button v-if="displayBtn"  :disabled="disabled" type="button" class="btn btn_warning" @click="goHomeFn()" style="border-radius: 5px">\
                    <i class="iconfont icon-shouye" style="float: left; margin-right: 3px; font-size: 20px;"></i>首页\
                </button>\
        ',
        props: {
            disabled: {default: false},      // 是否禁用按钮，true时为禁用
            displayBtn: {default: true},    // 是否显示按钮，false时显示图标
        },
        data: function () {
            return {

            }
        },
        watch: {},
        mounted: function () {

        },
        computed: {

        },
        methods: {
            goHomeFn: function () {
                window.location = getContextPath() + '/pages/main/main.html'
            }
        }
    });
});