ant-design-vue嵌入html,ant-design-vue 气泡自定义HTML弹窗

{{manageOptionCodes ? manageOptionCodes : '--'}}

// 自定义html的弹窗

popover(){

// 上面的index好像是第几个参数就是

return function (index) {

let result = "";

if(this.swindleAccountList[index].manageOptionCodes){

let manageOptionItems= this.swindleAccountList[index].manageOptionCodes.split(',');

manageOptionItems.forEach(item => {

let name = (this.swindleAccountInfo.manageOptionItems.find(temp => temp.code === item) || {}).name;

result+=`

${item}:${name}

`

})

result+=`

是否久悬:${this.swindleAccountList[index].hangingLongFlag === 'Y' ? "是" : "否" }

`

} else {

result = '--';

}

return result;

}

}

你可能感兴趣的:(ant-design-vue嵌入html,ant-design-vue 气泡自定义HTML弹窗)