---
layout: templateLayout
---
```vue
<template>
    <Tabs>
        <Tab :label="copm(1)">
            <p>1</p>
        </Tab>
        <Tab :label="copm(2)">
            <p>2</p>
        </Tab>
        <Tab :label="copm(3)">
            <p>3</p>
        </Tab>
    </Tabs>
</template>
<script>
export default {
    data(){
        return {
            copm: function(i){
                return new Vue({
                    data: function(){
                        return{
                            i
                        }
                    },
                    render(h){
                        return h("span", {
                        }, [`标签${this.i}`])
                    }
                })
            }
        }
    }
}
</script>
```