zoukankan      html  css  js  c++  java
  • element-ui table 嵌套

    嵌套的时时候用template,数据 scope.row.xxx

    <template>
        <div>
                <el-table :data="urls" style=" 100%">
                    <el-table-column prop="name" label="技术栈">
                    </el-table-column>
                    <el-table-column label="文档地址">
                        <template slot-scope="scope">
                            <a v-bind:href="scope.row.link" target="_blank">{{scope.row.link}}</a>
                        </template>
                    </el-table-column>
                </el-table>
        </div>
    </template>
    
    <script>
        export default {
            name: "Doc",
            data() {
                return {
                    urls: [
                        {name:'Python', link:'https://www.python.org/'},
                        {name:'Django', link:'https://www.djangoproject.com/'},
                        {name:'Django中文', link:'https://docs.djangoproject.com/zh-hans/2.1/'},
                        {name:'Django Suit', link:'https://django-suit.readthedocs.io/en/latest/configuration.html'},
                        {name:'Bootstrap', link:'http://www.bootcss.com/'},
                        {name:'Vue', link:'https://cn.vuejs.org/'},
                        {name:'ElementUI', link:'http://element-cn.eleme.io/#/zh-CN'},
                    ]
                }
            }
        }
    </script>
    
    <style scoped>
    
    </style>
  • 相关阅读:
    MillerRabin
    BM算法总结
    高斯消元处理自由变元的方法
    [IOI2019]矩形区域
    费用流处理负圈的方法
    回文自动机(PAM)总结
    [TJOI2017]龙舟
    luogu P2252 [SHOI2002]取石子游戏|【模板】威佐夫博弈
    博弈论
    构造
  • 原文地址:https://www.cnblogs.com/dannyyao/p/10219653.html
Copyright © 2011-2022 走看看