NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
# 如何绑定一个索引数字 ref使用 ``` v-model="attr.inputValue" :ref="`saveTagInput${index}`" ``` ${index} 加个tab上面的按钮 ``` <el-input class="input-new-tag" v-if="attr.inputVisible" v-model="attr.inputValue" :ref="`saveTagInput${index}`" size="small" @keyup.enter.native="handleInputConfirm(attr.inputValue, attr)" @blur="handleInputConfirm(attr.inputValue, attr)" > ``` js部分 ``` this.$nextTick((_) => { this.$refs[`saveTagInput${index}`][0].$refs.input.focus() }) ``` ``` <div v-for="o in num" :key='o'> ``` ``` :v-model="'formValue.links.'+ o +'.value'+o" ``` ``` num: 1, ```