|
|
|
@ -4407,6 +4407,14 @@ layui.config({ base: './ayq/modules/' }).define(["layer", 'flow', "laytpl", "ele
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
form.on('radio', function (data) {
|
|
|
|
|
|
|
|
|
|
var thisName = $(this).attr("name");
|
|
|
|
|
options.data.forEach(function (item, index) {
|
|
|
|
|
if (item.id === thisName) {
|
|
|
|
|
options.selectItem = item;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
var _json = options.selectItem;
|
|
|
|
|
switch (_json.tag) {
|
|
|
|
|
case 'radio':
|
|
|
|
@ -4421,7 +4429,7 @@ layui.config({ base: './ayq/modules/' }).define(["layer", 'flow', "laytpl", "ele
|
|
|
|
|
}
|
|
|
|
|
_json.options[i].checked = false;
|
|
|
|
|
}
|
|
|
|
|
that.components[_json.tag].update(_json,that);
|
|
|
|
|
that.components[_json.tag].update(_json, that);
|
|
|
|
|
break;
|
|
|
|
|
case 'select':
|
|
|
|
|
case 'carousel':
|
|
|
|
@ -4434,7 +4442,7 @@ layui.config({ base: './ayq/modules/' }).define(["layer", 'flow', "laytpl", "ele
|
|
|
|
|
}
|
|
|
|
|
_json.options[i].checked = false;
|
|
|
|
|
}
|
|
|
|
|
that.components[_json.tag].update(_json,that);
|
|
|
|
|
that.components[_json.tag].update(_json, that);
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
break;
|
|
|
|
@ -4516,7 +4524,7 @@ layui.config({ base: './ayq/modules/' }).define(["layer", 'flow', "laytpl", "ele
|
|
|
|
|
Class.prototype.render = function () {
|
|
|
|
|
var that = this
|
|
|
|
|
, options = that.config;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
options.data.forEach(function (item, index) {
|
|
|
|
|
if (index === 0) {
|
|
|
|
|
options.selectItem = item;
|
|
|
|
@ -5177,11 +5185,7 @@ layui.config({ base: './ayq/modules/' }).define(["layer", 'flow', "laytpl", "ele
|
|
|
|
|
|
|
|
|
|
//显示当前的属性
|
|
|
|
|
that.components[tag].property(options.selectItem, that);
|
|
|
|
|
that.bindPropertyEvent(options.selectItem);
|
|
|
|
|
<<<<<<< HEAD
|
|
|
|
|
=======
|
|
|
|
|
|
|
|
|
|
>>>>>>> 45a8873c05d0736b15112606aae1da04aa320be5
|
|
|
|
|
that.bindPropertyEvent();
|
|
|
|
|
//移除 #formDesignerForm .layui-form-item 下所有的 active
|
|
|
|
|
$('#formDesignerForm .layui-form-item').removeClass('active');
|
|
|
|
|
//给当前元素增加class
|
|
|
|
|