Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
240 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 Reply

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...