vue elementui列表嵌套功能实现

本文详细介绍了如何在Vue项目中使用ElementUI实现列表的嵌套功能,包括了样式调整、方法实现和后台数据格式的要求,帮助开发者更好地理解和操作复杂的列表组件。
摘要由CSDN通过智能技术生成
    <div class="table_content">
        <el-table
          border
          :data="tableData"
          v-loading="loading"
          style="width: 100%"
          row-key="product_id"
          :row-style="rowSty"
          :expand-row-keys="expands"
          :row-class-name="isShowIcon">
          <el-table-column type="expand" class-name="row_a" width="1px">
            <template slot-scope="props">
              <el-table
                v-loading="loading_sub"
                :data="props.row.skuList"
                border
                :show-header="true"
                empty-text="数据正在加载中..."
                :header-cell-style="getRowClass"
                style="width: 100%;max-height: 615px;overflow-y:auto;">
                <el-table-column
                  align="center"
                  prop="id"
                  label="SKU ID"
                  width="150">
                </el-table-column>
                <el-table-column
                  align="center"
                  prop="specifications"
                  label="SKU规格"
                  width="150">
                </el-table-column>
                <el-table-column
                    align="center"
                    prop="image_url"
                    width="100"
                    label="SKU预览图">
                    <template slot-scope="scope">
                      <img :src="scope.row.image_url" width="50" height="50" class="head_pic" />
                    </template>
                  </el-table-column>
                <el-table-column
                  align="center"
                  pr
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值