|
|
发表于 2024-7-17 09:45:59|来自:
|
显示全部楼层
试试看
表单只读的情况下,单选框要显示值并且不可编辑
1、在单选框组件的queryLoad事件里写脚本:
this.target.isReadonly = function(){
return false;
}
2、在单选框组件加载的事件中动态的去设置单选按钮不可编辑
var node = this.target.node;
var inputs = node.getElements('input')
inputs.each(function(item, index){
item.set('disabled', 'disabled');
}); |
|