|
|
|
@ -60,19 +60,20 @@
|
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
return { |
|
|
|
|
type: "bi.horizontal_fill", |
|
|
|
|
cls: "bi-border bi-border-radius", |
|
|
|
|
columnSize: ["fill", this.constants.iconWidth], |
|
|
|
|
height: opts.height - 2, |
|
|
|
|
width: opts.width - 2, |
|
|
|
|
type: "bi.absolute", |
|
|
|
|
items: [{ |
|
|
|
|
el: { |
|
|
|
|
type: "bi.combo", |
|
|
|
|
cls: "bi-border bi-border-radius", |
|
|
|
|
container: opts.container, |
|
|
|
|
toggle: false, |
|
|
|
|
isNeedAdjustHeight: opts.isNeedAdjustHeight, |
|
|
|
|
isNeedAdjustWidth: opts.isNeedAdjustWidth, |
|
|
|
|
el: { |
|
|
|
|
type: "bi.horizontal_fill", |
|
|
|
|
columnSize: ["fill", this.constants.iconWidth], |
|
|
|
|
height: opts.height - 2, |
|
|
|
|
items: [{ |
|
|
|
|
type: "bi.time_trigger", |
|
|
|
|
height: opts.height - 2, |
|
|
|
|
allowEdit: opts.allowEdit, |
|
|
|
@ -150,6 +151,26 @@
|
|
|
|
|
self.fireEvent("EVENT_CONFIRM"); |
|
|
|
|
} |
|
|
|
|
}] |
|
|
|
|
}, { |
|
|
|
|
el: { |
|
|
|
|
type: "bi.icon_button", |
|
|
|
|
cls: "bi-trigger-icon-button time-font", |
|
|
|
|
width: this.constants.iconWidth, |
|
|
|
|
listeners: [{ |
|
|
|
|
eventName: BI.IconButton.EVENT_CHANGE, |
|
|
|
|
action: function () { |
|
|
|
|
if (self.combo.isViewVisible()) { |
|
|
|
|
// self.combo.hideView();
|
|
|
|
|
} else { |
|
|
|
|
self.combo.showView(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}], |
|
|
|
|
ref: function (_ref) { |
|
|
|
|
self.triggerBtn = _ref; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
}], |
|
|
|
|
}, |
|
|
|
|
adjustLength: this.constants.comboAdjustHeight, |
|
|
|
|
popup: { |
|
|
|
@ -171,25 +192,10 @@
|
|
|
|
|
self.combo = _ref; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
}, { |
|
|
|
|
el: { |
|
|
|
|
type: "bi.icon_button", |
|
|
|
|
cls: "bi-trigger-icon-button time-font", |
|
|
|
|
width: this.constants.iconWidth, |
|
|
|
|
listeners: [{ |
|
|
|
|
eventName: BI.IconButton.EVENT_CHANGE, |
|
|
|
|
action: function () { |
|
|
|
|
if (self.combo.isViewVisible()) { |
|
|
|
|
// self.combo.hideView();
|
|
|
|
|
} else { |
|
|
|
|
self.combo.showView(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}], |
|
|
|
|
ref: function (_ref) { |
|
|
|
|
self.triggerBtn = _ref; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
top: 0, |
|
|
|
|
left: 0, |
|
|
|
|
right: 0, |
|
|
|
|
bottom: 0 |
|
|
|
|
}] |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|