|
|
@ -66206,7 +66206,7 @@ BI.shortcut("bi.dynamic_date_time_popup", BI.DynamicDateTimePopup);BI.DynamicDat |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
eventName: BI.SignEditor.EVENT_CHANGE, |
|
|
|
eventName: BI.SignEditor.EVENT_CHANGE, |
|
|
|
action: function () { |
|
|
|
action: function () { |
|
|
|
var value = self._autoSwitch(this.getLastChangedValue(), BI.DynamicDateTimeSelect.MINUTE); |
|
|
|
var value = self._autoSwitch(this.getValue(), BI.DynamicDateTimeSelect.MINUTE); |
|
|
|
this.setValue(value); |
|
|
|
this.setValue(value); |
|
|
|
} |
|
|
|
} |
|
|
|
}], |
|
|
|
}], |
|
|
@ -69129,9 +69129,7 @@ BI.MultiLayerSelectTreeTrigger = BI.inherit(BI.Trigger, { |
|
|
|
render: function () { |
|
|
|
render: function () { |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
if(o.itemsCreator === BI.emptyFn) { |
|
|
|
if(o.itemsCreator === BI.emptyFn) { |
|
|
|
this.tree = new BI.Tree(); |
|
|
|
this._initData(); |
|
|
|
this.nodes = BI.Tree.treeFormat(BI.deepClone(o.items)); |
|
|
|
|
|
|
|
this.tree.initTree(this.nodes); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
var content = { |
|
|
|
var content = { |
|
|
|
type: "bi.htape", |
|
|
|
type: "bi.htape", |
|
|
@ -69238,6 +69236,13 @@ BI.MultiLayerSelectTreeTrigger = BI.inherit(BI.Trigger, { |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_initData: function() { |
|
|
|
|
|
|
|
var o = this.options; |
|
|
|
|
|
|
|
this.tree = new BI.Tree(); |
|
|
|
|
|
|
|
this.nodes = BI.Tree.treeFormat(BI.deepClone(o.items)); |
|
|
|
|
|
|
|
this.tree.initTree(this.nodes); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_getSearchItems: function(keyword) { |
|
|
|
_getSearchItems: function(keyword) { |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
// 把数组搜索换成用BI.tree搜索节点, 搜到了就不再往下搜索
|
|
|
|
// 把数组搜索换成用BI.tree搜索节点, 搜到了就不再往下搜索
|
|
|
@ -69319,7 +69324,7 @@ BI.MultiLayerSelectTreeTrigger = BI.inherit(BI.Trigger, { |
|
|
|
|
|
|
|
|
|
|
|
populate: function (items) { |
|
|
|
populate: function (items) { |
|
|
|
this.options.items = items; |
|
|
|
this.options.items = items; |
|
|
|
this.nodes = BI.Tree.treeFormat(BI.deepClone(items)); |
|
|
|
this._initData(items); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
setValue: function (v) { |
|
|
@ -70305,9 +70310,7 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, { |
|
|
|
render: function () { |
|
|
|
render: function () { |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
if(o.itemsCreator === BI.emptyFn) { |
|
|
|
if(o.itemsCreator === BI.emptyFn) { |
|
|
|
this.tree = new BI.Tree(); |
|
|
|
this._initData(); |
|
|
|
this.nodes = BI.Tree.treeFormat(BI.deepClone(o.items)); |
|
|
|
|
|
|
|
this.tree.initTree(this.nodes); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
var content = { |
|
|
|
var content = { |
|
|
|
type: "bi.htape", |
|
|
|
type: "bi.htape", |
|
|
@ -70414,6 +70417,13 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, { |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_initData: function() { |
|
|
|
|
|
|
|
var o = this.options; |
|
|
|
|
|
|
|
this.tree = new BI.Tree(); |
|
|
|
|
|
|
|
this.nodes = BI.Tree.treeFormat(BI.deepClone(o.items)); |
|
|
|
|
|
|
|
this.tree.initTree(this.nodes); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_getSearchItems: function(keyword) { |
|
|
|
_getSearchItems: function(keyword) { |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
// 把数组搜索换成用BI.tree搜索节点, 搜到了就不再往下搜索
|
|
|
|
// 把数组搜索换成用BI.tree搜索节点, 搜到了就不再往下搜索
|
|
|
@ -70496,7 +70506,7 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, { |
|
|
|
|
|
|
|
|
|
|
|
populate: function (items) { |
|
|
|
populate: function (items) { |
|
|
|
this.options.items = items; |
|
|
|
this.options.items = items; |
|
|
|
this.nodes = BI.Tree.treeFormat(BI.deepClone(items)); |
|
|
|
this._initData(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
setValue: function (v) { |
|
|
|