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

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

 

 

 

 

转载于:https://www.cnblogs.com/qinStore/p/9817431.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值