vue

通过template的slot-scope属性获取数据,绑定原生href跳转到指定页面

  <el-table-column
      label="内容">
        <template slot-scope="scope">
          <el-link
           type="primary" 
          :href="scope.row.newsContent" >
          {{scope.row.newsContent}}
          </el-link>
        </template>
    </el-table-column>
Logo

前往低代码交流专区

更多推荐