|
|
|
@ -4148,6 +4148,7 @@ layui.config({ base: './ayq/modules/' }).define(["layer", 'flow', "laytpl", "ele
|
|
|
|
|
$('#columnProperty').append(_html);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* 给字段属性绑定事件 实现双向绑定*/
|
|
|
|
|
Class.prototype.bindPropertyEvent = function (_json) {
|
|
|
|
|
var that = this
|
|
|
|
@ -4405,9 +4406,8 @@ layui.config({ base: './ayq/modules/' }).define(["layer", 'flow', "laytpl", "ele
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
form.on('radio', function (data) {
|
|
|
|
|
form.on('radio', function (data) {
|
|
|
|
|
var _json = options.selectItem;
|
|
|
|
|
|
|
|
|
|
switch (_json.tag) {
|
|
|
|
|
case 'radio':
|
|
|
|
|
var _index = parseInt($("#" + _json.id + " .layui-input-block div.layui-form-radio").index(data.othis[0]));
|
|
|
|
@ -4420,8 +4420,8 @@ layui.config({ base: './ayq/modules/' }).define(["layer", 'flow', "laytpl", "ele
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
_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,13 +4434,15 @@ 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;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
form.on('checkbox', function (data) {
|
|
|
|
|
var _json = options.selectItem;
|
|
|
|
|
switch (_json.tag) {
|
|
|
|
@ -4514,8 +4516,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,6 +5178,10 @@ layui.config({ base: './ayq/modules/' }).define(["layer", 'flow', "laytpl", "ele
|
|
|
|
|
//显示当前的属性
|
|
|
|
|
that.components[tag].property(options.selectItem, that);
|
|
|
|
|
that.bindPropertyEvent(options.selectItem);
|
|
|
|
|
<<<<<<< HEAD
|
|
|
|
|
=======
|
|
|
|
|
|
|
|
|
|
>>>>>>> 45a8873c05d0736b15112606aae1da04aa320be5
|
|
|
|
|
//移除 #formDesignerForm .layui-form-item 下所有的 active
|
|
|
|
|
$('#formDesignerForm .layui-form-item').removeClass('active');
|
|
|
|
|
//给当前元素增加class
|
|
|
|
|