slot-scope photo{}

            <el-table-column label="AAA" width="120">

              <template slot-scope="{}">

                <div>{
   
   { data.A+ data.B}}</div>

              </template>

            </el-table-column>

If the value of scope.row is not placed in the template, slot-scope can directly write {}

Guess you like

Origin blog.csdn.net/xichi_12396/article/details/131060159