main
kgdxpr 2 years ago
parent cf18b17bb1
commit 357d7fac6b

@ -4407,6 +4407,14 @@ layui.config({ base: './ayq/modules/' }).define(["layer", 'flow', "laytpl", "ele
}); });
form.on('radio', function (data) { 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; var _json = options.selectItem;
switch (_json.tag) { switch (_json.tag) {
case 'radio': case 'radio':
@ -5177,11 +5185,7 @@ layui.config({ base: './ayq/modules/' }).define(["layer", 'flow', "laytpl", "ele
//显示当前的属性 //显示当前的属性
that.components[tag].property(options.selectItem, that); that.components[tag].property(options.selectItem, that);
that.bindPropertyEvent(options.selectItem); that.bindPropertyEvent();
<<<<<<< HEAD
=======
>>>>>>> 45a8873c05d0736b15112606aae1da04aa320be5
//移除 #formDesignerForm .layui-form-item 下所有的 active //移除 #formDesignerForm .layui-form-item 下所有的 active
$('#formDesignerForm .layui-form-item').removeClass('active'); $('#formDesignerForm .layui-form-item').removeClass('active');
//给当前元素增加class //给当前元素增加class

Loading…
Cancel
Save