如何将将Button放到输入框内?
效果图:
步骤如下:
button 外围用template 包裹一层
<template #suffix v-if="row.WorkerRole == 'TPM'">
<el-inputtype="text"v-model="row.JobNumber"placeholder="请输入:"@change="val => changeInfo(row)"><template #suffix v-if="row.WorkerRole == 'TPM'"><el-buttontype="primary"@click="val => tpmClicked($index)"v-if="row.WorkerRole == 'TPM'"link><el-icon><Connection /></el-icon></el-button></template></el-input>