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