guy
8 years ago
15 changed files with 4 additions and 262 deletions
@ -1,7 +1,5 @@
|
||||
@import "../../bibase"; |
||||
|
||||
.bi-arrangement-droppable{ |
||||
background:@color-bi-background-virtual-blue; |
||||
.opacity(0.8); |
||||
z-index: @zIndex-layer; |
||||
} |
@ -1,5 +1,4 @@
|
||||
@import "../../../bibase"; |
||||
|
||||
.bi-date-picker{ |
||||
background: @color-bi-background-gray; |
||||
.bi-date-picker { |
||||
} |
@ -1,7 +0,0 @@
|
||||
@import "../../../../bibase"; |
||||
.bi-image-button-href { |
||||
& .image-button-href-icon-button{ |
||||
z-index: 1; |
||||
font-size: @font-size-16 |
||||
} |
||||
} |
@ -1,6 +0,0 @@
|
||||
@import "../../../../bibase"; |
||||
.bi-image-button-size{ |
||||
& .image-button-size-button-group{ |
||||
font-size: @font-size-12; |
||||
} |
||||
} |
@ -1,16 +0,0 @@
|
||||
@import "../../bibase"; |
||||
.bi-upload-image{ |
||||
& .upload-image-text-button-label{ |
||||
font-size: @font-size-14; |
||||
color: @font-color-tips |
||||
} |
||||
|
||||
& .upload-image-icon-button{ |
||||
z-index: 1; |
||||
font-size: @font-size-16; |
||||
} |
||||
|
||||
& .upload-image-delete-label{ |
||||
font-size: @font-size-14; |
||||
} |
||||
} |
@ -1,65 +0,0 @@
|
||||
/** |
||||
* Created by GameJian on 2016/1/28. |
||||
*/ |
||||
BI.ImageButtonHref = BI.inherit(BI.Single, { |
||||
|
||||
_defaultConfig: function () { |
||||
return BI.extend(BI.ImageButtonHref.superclass._defaultConfig.apply(this, arguments), { |
||||
baseCls: "bi-image-button-href", |
||||
title: BI.i18nText("BI-Add_Href") |
||||
}) |
||||
}, |
||||
|
||||
_init: function () { |
||||
BI.ImageButtonHref.superclass._init.apply(this, arguments); |
||||
var self = this, o = this.options; |
||||
this.trigger = BI.createWidget({ |
||||
type: "bi.icon_button", |
||||
cls: "img-href-font", |
||||
title: o.title, |
||||
height: 24, |
||||
width: 24 |
||||
}); |
||||
|
||||
this.input = BI.createWidget({ |
||||
type: "bi.clear_editor", |
||||
watermark: BI.i18nText("BI-Input_Href"), |
||||
width: 255, |
||||
height: 30 |
||||
}); |
||||
this.input.on(BI.ClearEditor.EVENT_CONFIRM, function () { |
||||
self.combo.hideView(); |
||||
}); |
||||
|
||||
this.combo = BI.createWidget({ |
||||
type: "bi.combo", |
||||
element: this, |
||||
direction: "bottom,left", |
||||
adjustYOffset: 3, |
||||
el: this.trigger, |
||||
popup: { |
||||
el: this.input, |
||||
stopPropagation: false, |
||||
minWidth: 255 |
||||
} |
||||
}); |
||||
|
||||
this.combo.on(BI.Combo.EVENT_AFTER_POPUPVIEW, function () { |
||||
self.input.focus() |
||||
}); |
||||
|
||||
this.combo.on(BI.Combo.EVENT_BEFORE_HIDEVIEW, function () { |
||||
self.fireEvent(BI.ImageButtonHref.EVENT_CHANGE, arguments) |
||||
}) |
||||
}, |
||||
|
||||
getValue: function () { |
||||
return this.input.getValue(); |
||||
}, |
||||
|
||||
setValue: function (url) { |
||||
this.input.setValue(url) |
||||
} |
||||
}); |
||||
BI.ImageButtonHref.EVENT_CHANGE = "BI.ImageButtonHref.EVENT_CHANGE"; |
||||
BI.shortcut("bi.image_button_href", BI.ImageButtonHref); |
Loading…
Reference in new issue