iview组件select无法手动设置值

听小伙伴说iview的作者已经修复这个bug了,因为我们的组件库是copyiview后修改的,所以没有更新代码

这里提供一个方法

   <i-select :ref="'signSlectRef'"><i-option >{{ item1.label }}</i-option></i-select>

 

 this.$refs['signSlectRef'][0]._data.model = value;

猜你喜欢

转载自www.cnblogs.com/liris/p/9243732.html