<template>
    <div class="table">
        <table>
            <thead>
                <tr v-if="num == 5">
                    <td>参数</td>
                    <td>说明</td>
                    <td>类型</td>
                    <td>可选值</td>
                    <td>默认值</td>
                </tr>
                <tr v-else>
                    <td>name</td>
                    <td>描述</td>
                </tr>
            </thead>
            <tbody>
                <slot></slot>
            </tbody>
        </table>
    </div>
</template>

<script type="text/babel">
    export default {
        name: 'docs-table',
        props: {
            num: {
                type: Number,
                default: 5
            }
        }
    }
</script>
