<template>
    <div class="ht-base-poptip-demo">
        <div class="demo-top">
            <ht-base-poptip title="Title" content="content" placement="top-start">
                <ht-base-button>上左</ht-base-button>
            </ht-base-poptip>
            <ht-base-poptip title="Title" content="content" placement="top">
                <ht-base-button>上边</ht-base-button>
            </ht-base-poptip>
            <ht-base-poptip title="Title" content="content" placement="top-end">
                <ht-base-button>上右</ht-base-button>
            </ht-base-poptip>
        </div>
        <div class="demo-center">
            <div class="demo-center-left">
                <ht-base-poptip title="Title" content="content" placement="left-start">
                    <ht-base-button>左上</ht-base-button>
                </ht-base-poptip>
                <br><br>
                <ht-base-poptip title="Title" content="content" placement="left">
                    <ht-base-button>左边</ht-base-button>
                </ht-base-poptip>
                <br><br>
                <ht-base-poptip title="Title" content="content" placement="left-end">
                    <ht-base-button>左下</ht-base-button>
                </ht-base-poptip>
            </div>
            <div class="demo-center-right">
                <ht-base-poptip title="Title" content="content" placement="right-start">
                    <ht-base-button>右上</ht-base-button>
                </ht-base-poptip>
                <br><br>
                <ht-base-poptip title="Title" content="content" placement="right">
                    <ht-base-button>右边</ht-base-button>
                </ht-base-poptip>
                <br><br>
                <ht-base-poptip title="Title" content="content" placement="right-end">
                    <ht-base-button>右下</ht-base-button>
                </ht-base-poptip>
            </div>
        </div>
        <div class="demo-bottom">
            <ht-base-poptip title="Title" content="content" placement="bottom-start">
                <ht-base-button>下左</ht-base-button>
            </ht-base-poptip>
            <ht-base-poptip title="Title" content="content" placement="bottom">
                <ht-base-button>下边</ht-base-button>
            </ht-base-poptip>
            <ht-base-poptip title="Title" content="content" placement="bottom-end">
                <ht-base-button>下右</ht-base-button>
            </ht-base-poptip>
        </div>
    </div>
</template>

<script>
    export default {
        name: 'HtBasePoptipDemo',
    }
</script>
<style lang="less">
    .ht-base-poptip-demo {
        .demo-top, .demo-bottom {
            text-align: center;
        }
        .demo-center {
            width: 300px;
            margin: 10px auto;
            overflow: hidden;
            .demo-center-left {
                float: left;
            }
            .demo-center-right {
                float: right;
            }
        }
    }
</style>

