<template>
    <div class="ht-base-spin-demo">
        <ht-base-row>
            <ht-base-col class="demo-spin-col" span="8">
                <ht-base-spin fix>加载中...</ht-base-spin>
            </ht-base-col>
            <ht-base-col class="demo-spin-col" span="8">
                <ht-base-spin fix>
                    <ht-base-icon type='LiRa_refresh' color="#8C8C8C" size=12 class="demo-spin-icon-load"
                                  style="padding: 10px;"/>
                    <ht-base-icon type='LiRa_refresh' color="#8C8C8C" size=18 class="demo-spin-icon-load"
                                  style="padding: 10px;"/>
                    <ht-base-icon type='LiRa_refresh' color="#8C8C8C" size=24 class="demo-spin-icon-load"
                                  style="padding: 10px;"/>
                </ht-base-spin>
            </ht-base-col>
            <ht-base-col class="demo-spin-col" span="8">
                <ht-base-spin fix>
                    <img class="demo-spin-img" style="width: 10px;margin-right: 10px;" src="http://39.106.250.14:8082/base-components/static/LiRa_refresh1.svg" alt=""/>
                    <img class="demo-spin-img" style="width: 20px;margin-right: 10px;" src="http://39.106.250.14:8082/base-components/static/LiRa_refresh1.svg" alt=""/>
                    <img class="demo-spin-img" src="http://39.106.250.14:8082/base-components/static/LiRa_refresh1.svg" alt=""/>
                </ht-base-spin>
            </ht-base-col>
            <ht-base-col class="demo-spin-col" span="8">
                <ht-base-spin fix>
                    <ht-base-icon type='LiRa_refresh2' color="#8C8C8C" size=12 class="demo-spin-icon-load"
                                  style="padding: 10px;"/>
                    <ht-base-icon type='LiRa_refresh2' color="#8C8C8C" size=18 class="demo-spin-icon-load"
                                  style="padding: 10px;"/>
                    <ht-base-icon type='LiRa_refresh2' color="#8C8C8C" size=24 class="demo-spin-icon-load"
                                  style="padding: 10px;"/>
                </ht-base-spin>
            </ht-base-col>
            <ht-base-col class="demo-spin-col" span="8">
                <ht-base-spin fix></ht-base-spin>
            </ht-base-col>
            <ht-base-col class="demo-spin-col" span="8">
                <ht-base-spin fix>
                    <ht-base-icon type='LiRa_refresh' color="#8C8C8C" size=18 class="demo-spin-icon-load"/>
                    <div style=" color:#333333">加载中...</div>
                </ht-base-spin>
            </ht-base-col>
            <ht-base-col class="demo-spin-col" span="8">
                <ht-base-spin fix>
                    <img class="demo-spin-img" src="http://39.106.250.14:8082/base-components/static/LiRa_refresh1.svg" alt=""/>
                    <ht-base-icon type='LiRa_refresh1' size=18 class="demo-spin-icon-load"/>
                    <div>加载中...</div>
                </ht-base-spin>
            </ht-base-col>
            <ht-base-col class="demo-spin-col" span="8">
                <ht-base-spin fix>
                    <ht-base-icon type='LiRa_refresh2' color="#8C8C8C" size=18 class="demo-spin-icon-load"/>
                    <div style=" color:#333333">加载中...</div>
                </ht-base-spin>
            </ht-base-col>
            <ht-base-col class="demo-spin-col" span="8">
                <ht-base-spin fix>
                    <ht-base-icon type='LiRa_loading' color="#228EF8" size=18 class="demo-spin-icon-load"/>
                    <div style=" color:#228EF8">加载中...</div>
                </ht-base-spin>
            </ht-base-col>
        </ht-base-row>
    </div>
</template>

<script>
    export default {
        name: 'HtBaseSpinDemo'
    }
</script>
<style lang="less">
    .ht-base-spin-demo {
        .demo-spin-icon-load {
            animation: ani-demo-spin 1s linear infinite;
        }
        @keyframes ani-demo-spin {
            from {
                transform: rotate(0deg);
            }
            50% {
                transform: rotate(180deg);
            }
            to {
                transform: rotate(360deg);
            }
        }

        .demo-spin-col {
            height: 100px;
            position: relative;
            border: 1px solid #eee;
        }

        @-webkit-keyframes spin {
            from {
                -webkit-transform: rotate(0deg);
            }
            to {
                -webkit-transform: rotate(360deg);
            }
        }
        @keyframes spin {
            from {
                transform: rotate(0deg);
            }
            to {
                transform: rotate(360deg);
            }
        }
        .demo-spin-img {
            width: 30px;
            -webkit-animation: spin 1s linear 1s 5 alternate;
            animation: spin 1s linear infinite;
        }
    }
</style>

