/**
 *@author       叶章浩
 *@date          17:38
 *@Copyright    天源迪科信息技术股份有限公司
 *@Description
 */
import {Spin} from 'iview';
const httpLoading = {

}
//note 加载中
httpLoading.showLoading = (message) => {
    Spin.show({
        render: (h) => {
            return h('div', {}, [
                h('Icon', {
                    'class': 'spin-icon-load',
                    props: {
                        type: 'ios-loading',
                        size: 30
                    }
                }),
                h('div', message || '加载中')
            ])
        }
    });
}
httpLoading.closeLoading = () => {
    Spin.hide()
}
export default  httpLoading;