Add reactive new properties to objects
Target object, property name, property value
this.$set(obj,'property',value)
var temp = '123'
this.$set(this.lampArr[index],'faultNumber',temp)
Disable select dropdown
Add style to the dropdown box
<select name="name" id="select" class="select" style="pointer-events: none;"></select>
Added fixed positioning elements will be off-label and affect layout problems
Search can add parent or sibling block-level elements of the same width and height to fixed-positioned elements,
or add margin-top/margin-bottom to front or rear sibling elements, but it doesn't work?
dynamically binding styles
:class=“{‘selectDisabled’ : indexs <= 19 ? true : false }”
<combox-search emptyTips="无匹配选项"
:isJSON="true"
:keyName="keyName"
:candidates="roadInfoList"
:placeholder="items.roadName"
@getValue="getValue($event,indexs,'json')"
:isDisabled="indexs <= 19 ? true : false"
:class="{'selectDisabled' : indexs <= 19 ? true : false }"
>
</combox-search>
.selectDisabled{
pointer-events: none;
}