话不多说,直接代码。 <el-input> <template v-for="(slot, key) in $slots" v-slot:[key]> <slot :name="key" :slot="slot">