首页 > 其他 > 详细

vue element el-table 传的值报_self.$scopedSlots.default is not a function

时间:2018-11-05 18:52:33      阅读:921      评论:0      收藏:0      [点我收藏+]

点击修改的时候,页面的预算占比呈现输入框的形式,确认修改之后,数据改变,也要把输入框关闭,变成文本形式。这里需要改变table的el-table-column值

技术分享图片

 

技术分享图片

 

 1     <el-table
 2         :data="newlist"
 3         style="width: 100%">
 4         <template v-for="(item,index) in tableHeaderData">
 5           <el-table-column
 6             :key="index"
 7             v-if="item.isProp"
 8             :prop="item.prop"
 9             :label="item.label">
10           </el-table-column>
11           <el-table-column
12             v-if="!item.isProp"
13             :label="item.label">
14             <template slot-scope="scope">
15               <el-input-number
16               :key="index+item.prop"
17               :max="100"
18               :min="0"
19               :step="1"
20               :precision="0"
21               controls-position="right"
22               placeholder="请输入内容"
23               v-model="scope.row.ratio"
24               @change="handleEdit(scope.row)"
25               ></el-input-number>
26             </template>
27           </el-table-column>
28         </template>
29       </el-table>

 出现_self.$scopedSlots.default is not a function错误的时候,要加上具有唯一标识的key值

技术分享图片技术分享图片

 

 

 

 

vue element el-table 传的值报_self.$scopedSlots.default is not a function

原文:https://www.cnblogs.com/qinStore/p/9817431.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!