通过v-bind使用嵌套数据到子表

时间:2019-11-28 13:30:39

标签: javascript asp.net-mvc vue.js asp.net-web-api

我正在编写一个asp.net应用程序,并希望将数据传递给行扩展中的子表。对于UI,我正在使用元素UI库,这是一些代码:


<el-table ref="table" v-bind:data="data">
   <el-table-column type="expand">
      <template slot-scope="props">
         <el-table v-bind:data="data.Calculations"> border <!-- here is an problem -->
              <el-table-column>
                   {{props.row.CalcId}}
              </el-table-column>        
         </el-table>
   </el-table-column>

   <el-table-column>
          {{props.row.DataId}}
   </el-table-column>
...
...
</el-table>


我尝试过在v-bind:data-props.row.Calculations中使用,但似乎没有用。

您能建议我如何解决此问题吗?

0 个答案:

没有答案