<template>
    <div class="ht-base-poptip-table-demo">
        <ht-base-poptip placement="right" width="400">
            <ht-base-button>表格气泡</ht-base-button>
            <div class="demo-api" slot="content">
                <ht-base-table :columns="columns1" :data="data1"></ht-base-table>
            </div>
        </ht-base-poptip>
    </div>
</template>

<script>
    export default {
        name: 'HtBasePoptipTableDemo',
        data() {
            return {
                columns1: [
                    {
                        title: 'Name',
                        key: 'name'
                    },
                    {
                        title: 'Age',
                        key: 'age'
                    },
                    {
                        title: 'Address',
                        key: 'address'
                    }
                ],
                data1: [
                    {
                        name: 'John Brown',
                        age: 18,
                        address: 'New York No. 1 Lake Park',
                        date: '2016-10-03'
                    },
                    {
                        name: 'Jim Green',
                        age: 24,
                        address: 'London No. 1 Lake Park',
                        date: '2016-10-01'
                    },
                    {
                        name: 'Joe Black',
                        age: 30,
                        address: 'Sydney No. 1 Lake Park',
                        date: '2016-10-02'
                    },
                    {
                        name: 'Jon Snow',
                        age: 26,
                        address: 'Ottawa No. 2 Lake Park',
                        date: '2016-10-04'
                    }
                ]
            }
        }
    }
</script>
<style>
    .ht-base-poptip-table-demo {

    }
</style>

