|
|
|
@ -4535,20 +4535,20 @@ layui.config({ base: './ayq/modules/' }).define(["layer", 'flow', "laytpl", "ele
|
|
|
|
|
var that = this
|
|
|
|
|
, options = that.config;
|
|
|
|
|
|
|
|
|
|
// options.data.forEach(function (item, index) {
|
|
|
|
|
// if (item.tag == "grid") {
|
|
|
|
|
// item.columns.forEach(function (columnsItem, columnsIndex) {
|
|
|
|
|
// columnsItem.list.forEach(function (listItem, listIndex) {
|
|
|
|
|
// that.bindPropertyEvent(listItem);
|
|
|
|
|
// });
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
options.data.forEach(function (item, index) {
|
|
|
|
|
if (item.tag == "grid") {
|
|
|
|
|
item.columns.forEach(function (columnsItem, columnsIndex) {
|
|
|
|
|
columnsItem.list.forEach(function (listItem, listIndex) {
|
|
|
|
|
that.bindPropertyEvent(listItem);
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// if (index === 0) {
|
|
|
|
|
// options.selectItem = item;
|
|
|
|
|
// }
|
|
|
|
|
// that.bindPropertyEvent(item);
|
|
|
|
|
// });
|
|
|
|
|
if (index === 0) {
|
|
|
|
|
options.selectItem = item;
|
|
|
|
|
}
|
|
|
|
|
that.bindPropertyEvent(item);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
if (options.viewOrDesign) {
|
|
|
|
|
var that = this
|
|
|
|
|