xd们为什么elementui不需要作用域插槽,有的又需要呢,往子组件里面插入不是需要作用域插槽吗
<el-table-column prop="prop" label="属性值名称列表" width="width">
<template slot-scope="{row,$index}">
<el-tag :key="tag.id" v-for="(tag,index) in row.spuSaleAttrValueList" :disable-transitions="false" @close="row.spuSaleAttrValueList.splice(index,1)" closable>
{{tag.saleAttrValueName}}
</el-tag>
<el-input class="input-new-tag" v-if="row.inputVisible" v-model="row.inputValue" ref="saveTagInput" size="small" @keyup.enter.native="handleInputConfirm(row)" @blur="handleInputConfirm(row)">
</el-input>
<el-button v-else class="button-new-tag" size="small" @click="addSaleAttrValue(row)">添加</el-button>
</template>
</el-table-column>
<el-dialog :visible.sync="dialogVisible">
<img width="100%" :src="dialogImageUrl" alt="">
</el-dialog>