mirror of https://github.com/layui/layui
commit
581900bfe7
|
@ -214,7 +214,14 @@ layui.define(['laytpl', 'form'], function(exports){
|
||||||
,listElem = ['<li>'
|
,listElem = ['<li>'
|
||||||
,'<input type="checkbox" name="'+ arr[_index].checkName +'" lay-skin="primary" lay-filter="layTransferCheckbox" title="'+ item.title +'"'+ (item.disabled ? ' disabled' : '') + (item.checked ? ' checked' : '') +' value="'+ item.value +'">'
|
,'<input type="checkbox" name="'+ arr[_index].checkName +'" lay-skin="primary" lay-filter="layTransferCheckbox" title="'+ item.title +'"'+ (item.disabled ? ' disabled' : '') + (item.checked ? ' checked' : '') +' value="'+ item.value +'">'
|
||||||
,'</li>'].join('');
|
,'</li>'].join('');
|
||||||
|
//按照options.value顺序排列右侧数据
|
||||||
|
if(_index){
|
||||||
|
for(let key in options.value) {
|
||||||
|
if(options.value[key] == item.value && item.selected) arr[_index].views[key] = listElem;
|
||||||
|
}
|
||||||
|
}else{
|
||||||
arr[_index].views.push(listElem);
|
arr[_index].views.push(listElem);
|
||||||
|
}
|
||||||
delete item.selected;
|
delete item.selected;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue