forked from fanruan/fineui
Browse Source
* commit '7e07f11ed26413160ea5e774dc27203787325065': KERNEL-552 feat: 日期类型控件可配置是否可编辑 KERNEL-552 feat: 日期类型控件允许配置是否可以输入 KERNEL-551 feat: 时分秒控件支持格式化配置es6
windy
6 years ago
25 changed files with 2099 additions and 233 deletions
@ -0,0 +1,48 @@
|
||||
/** |
||||
* Created by Dailer on 2017/7/13. |
||||
*/ |
||||
Demo.TimeCombo = BI.inherit(BI.Widget, { |
||||
props: { |
||||
baseCls: "" |
||||
}, |
||||
|
||||
render: function () { |
||||
var self = this; |
||||
return { |
||||
type: "bi.horizontal_auto", |
||||
items: [{ |
||||
type: "bi.time_combo", |
||||
ref: function (_ref) { |
||||
self.timeCombo = _ref; |
||||
}, |
||||
// allowEdit: true,
|
||||
// format: "%H:%M:%S", // HH:mm:ss
|
||||
// format: "%I:%M:%S", // hh:mm:ss
|
||||
// format: "%l:%M:%S", // h:mm:ss
|
||||
// format: "%k:%M:%S", // H:mm:ss
|
||||
// format: "%l:%M:%S %p", // h:mm:ss a
|
||||
// format: "%l:%M", // h:mm
|
||||
// format: "%k:%M", // H:mm
|
||||
// format: "%I:%M", // hh:mm
|
||||
// format: "%H:%M", // HH:mm
|
||||
// format: "%M:%S", // mm:ss
|
||||
value: { |
||||
hour: 12, |
||||
minute: 0, |
||||
second: 0 |
||||
}, |
||||
width: 300 |
||||
}, { |
||||
type: "bi.button", |
||||
text: "getValue", |
||||
handler: function () { |
||||
BI.Msg.toast(JSON.stringify(self.timeCombo.getValue())); |
||||
}, |
||||
width: 300 |
||||
}], |
||||
vgap: 20 |
||||
}; |
||||
} |
||||
}); |
||||
|
||||
BI.shortcut("demo.time_combo", Demo.TimeCombo); |
@ -0,0 +1,4 @@
|
||||
.bi-time-trigger .show-text { |
||||
background-color: rgba(255, 255, 255, 0); |
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00ffffff,endColorstr=#00ffffff); |
||||
} |
@ -0,0 +1,8 @@
|
||||
@import "../../index"; |
||||
|
||||
.bi-time-trigger{ |
||||
& .show-text { |
||||
// ie10一下无背景色会鼠标穿透 |
||||
.background-color(@background-color-default, 0); |
||||
} |
||||
} |
Loading…
Reference in new issue