<template>
    <div class="ht-base-card-demo">
        <ht-base-card dis-hover style="width:350px">
            <p slot="title">
                标准尺寸卡片
            </p>
            <a href="#" slot="extra">
                更多
            </a>
            <ul class="demo-card-content">
                <li v-for="item in randomMovieList">
                    {{ item.name }}
                </li>
            </ul>
        </ht-base-card>
        <br/>
        <br/>
        <ht-base-card dis-hover size="small" style="width:350px">
            <p slot="title">
                小尺寸卡片
            </p>
            <a href="#" slot="extra">
                更多
            </a>
            <ul class="demo-small-card">
                <li v-for="item in randomMovieList">
                    {{ item.name }}
                </li>
            </ul>
        </ht-base-card>
    </div>
</template>

<script>
    export default {
        name: 'HtBaseCardDemo',
        data() {
            return {
                randomMovieList: [
                    {
                        name: '卡片内容'
                    },
                    {
                        name: '卡片内容'
                    },
                    {
                        name: '卡片内容'
                    }
                ]
            }
        }
    }
</script>
<style lang="less">
    .ht-base-card-demo {
        .demo-card-content {
            li {
                line-height: 30px;
                font-size: 14px;
                a {
                    color: #228EF8;
                }
            }
        }
        .demo-small-card {
            li {
                line-height: 26px;
                font-size: 12px;
                a {
                    color: #228EF8;
                }
            }
        }
    }
</style>

