Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
250 views
in Technique[技术] by (71.8m points)

javascript - 通过v-bind使用嵌套数据到子表(Using nested data to sub table by v-bind)

I'm writing an asp.net application and want to pass data to subtable in row expand.

(我正在编写一个asp.net应用程序,并希望将数据传递给行扩展中的子表。)

For UI I am using element UI library, here is some code:

(对于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>


What I've tried is to use in v-bind:data - props.row.Calculations but I doesn't seems work.

(我试过的是在v-bind:data - props.row.Calculations但是我似乎没有用。)

Could you advice me how to resolve this problem?

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

  ask by Grzegorz G. translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...