Browse Source

Pull request #1491: KERNEL-5172 时间控件宽度增加后样式有问题

Merge in VISUAL/fineui from ~TELLER/fineui:bugfix to master

* commit '5390913d48ddeb12528e2803ebfd06be8a02a592':
  KERNEL-5172 fix: 时间控件宽度增加后样式有问题
master
guy 4 years ago
parent
commit
a1deecae4d
  1. 4
      src/widget/time/time.combo.js
  2. 13
      src/widget/timeinterval/timeperiods.js

4
src/widget/time/time.combo.js

@ -14,8 +14,8 @@
}, },
props: { props: {
baseCls: "bi-time-combo bi-border bi-border-radius bi-focus-shadow", baseCls: "bi-time-combo bi-border bi-border-radius bi-focus-shadow",
width: 78, // width: 78,
height: 22, // height: 22,
format: "", format: "",
allowEdit: false allowEdit: false
}, },

13
src/widget/timeinterval/timeperiods.js

@ -9,8 +9,8 @@
constants: { constants: {
height: 24, height: 24,
width: 24, width: 24,
lgap: 15, hgap: 15,
offset: 0 offset: -15
}, },
props: { props: {
extraCls: "bi-time-interval", extraCls: "bi-time-interval",
@ -43,6 +43,7 @@
el: { el: {
type: "bi.center", type: "bi.center",
height: this.constants.height, height: this.constants.height,
hgap: this.constants.hgap,
items: [{ items: [{
type: "bi.absolute", type: "bi.absolute",
items: [{ items: [{
@ -52,9 +53,9 @@
} }
}, this._createCombo(o.value.start)), }, this._createCombo(o.value.start)),
left: this.constants.offset, left: this.constants.offset,
right: this.constants.width / 2, right: 0,
top: 0, top: 0,
bottom: 0 bottom: 0,
}] }]
}, { }, {
type: "bi.absolute", type: "bi.absolute",
@ -64,10 +65,10 @@
self.right = _ref; self.right = _ref;
} }
}, this._createCombo(o.value.end)), }, this._createCombo(o.value.end)),
left: this.constants.width / 2, left: 0,
right: this.constants.offset, right: this.constants.offset,
top: 0, top: 0,
bottom: 0 bottom: 0,
}] }]
}] }]
}, },

Loading…
Cancel
Save