forked from fanruan/fineui
windy
6 years ago
37 changed files with 510 additions and 170 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,53 @@ |
|||||||
|
/** |
||||||
|
* 专门为calendar的视觉加的button,作为私有button,不能配置任何属性,也不要用这个玩意 |
||||||
|
*/ |
||||||
|
BI.CalendarDateItem = BI.inherit(BI.BasicButton, { |
||||||
|
|
||||||
|
render: function () { |
||||||
|
var self = this, o = this.options; |
||||||
|
return { |
||||||
|
type: "bi.absolute", |
||||||
|
items: [{ |
||||||
|
el: { |
||||||
|
type: "bi.text_item", |
||||||
|
cls: "bi-list-item-select", |
||||||
|
textAlign: "center", |
||||||
|
whiteSpace: "normal", |
||||||
|
text: o.text, |
||||||
|
value: o.value, |
||||||
|
ref: function () { |
||||||
|
self.text = this; |
||||||
|
} |
||||||
|
}, |
||||||
|
left: o.lgap, |
||||||
|
right: o.rgap, |
||||||
|
top: 0, |
||||||
|
bottom: 0 |
||||||
|
}] |
||||||
|
}; |
||||||
|
}, |
||||||
|
|
||||||
|
doHighLight: function () { |
||||||
|
this.text.doHighLight.apply(this.text, arguments); |
||||||
|
}, |
||||||
|
|
||||||
|
unHighLight: function () { |
||||||
|
this.text.unHighLight.apply(this.text, arguments); |
||||||
|
}, |
||||||
|
|
||||||
|
setValue: function () { |
||||||
|
if (!this.isReadOnly()) { |
||||||
|
this.text.setValue.apply(this.text, arguments); |
||||||
|
} |
||||||
|
}, |
||||||
|
|
||||||
|
setSelected: function (b) { |
||||||
|
BI.CalendarDateItem.superclass.setSelected.apply(this, arguments); |
||||||
|
this.text.setSelected(b); |
||||||
|
}, |
||||||
|
|
||||||
|
getValue: function () { |
||||||
|
return this.text.getValue(); |
||||||
|
} |
||||||
|
}); |
||||||
|
BI.shortcut("bi.calendar_date_item", BI.CalendarDateItem); |
@ -0,0 +1,4 @@ |
|||||||
|
.bi-combo.bi-combo-popup:focus .bi-single-tree-trigger, |
||||||
|
.bi-combo.bi-combo-popup:hover .bi-single-tree-trigger { |
||||||
|
border-color: #3685f2; |
||||||
|
} |
@ -1,11 +1,11 @@ |
|||||||
@import "../../index"; |
@import "../../index"; |
||||||
|
|
||||||
.bi-combo { |
.bi-combo { |
||||||
//&.bi-combo-popup { |
&.bi-combo-popup { |
||||||
// &:focus { |
&:focus, &:hover { |
||||||
// & .bi-single-tree-trigger { |
& .bi-single-tree-trigger { |
||||||
// border-color: @color-bi-border-highlight; |
border-color: @color-bi-border-highlight; |
||||||
// } |
} |
||||||
// } |
} |
||||||
//} |
} |
||||||
} |
} |
Loading…
Reference in new issue