forked from fanruan/fineui
Browse Source
Merge in DEC/fineui from ~DAILER/fineui-decision:feature/x to feature/x * commit '7dd7228eb6ce513ff87fb3c8177a44318b746318': (56 commits) auto upgrade version to 2.0.20221101100519 auto upgrade version to 2.0.20221031221611 REPORT-82014 fix:补齐AFTER_HIDEVIEW事件 auto upgrade version to 2.0.20221031190602 auto upgrade version to 2.0.20221031135635 BI-115201 fix: 【6.0.3.3】下拉树下拉后不选择任何内容,前端多发一个data请求 BI-115201 fix: 【6.0.3.3】下拉树下拉后不选择任何内容,前端多发一个data请求 auto upgrade version to 2.0.20221031101438 auto upgrade version to 2.0.20221031095439 bugfix auto upgrade version to 2.0.20221028191610 feature: 增加instruction组件 feature: 增加instruction组件 REPORT-83214 fix: 不允许编辑的下拉树展示多了滚动条(finui的bi.multilayer_single_tree_combo组件) auto upgrade version to 2.0.20221028145548 auto upgrade version to 2.0.20221028143506 update update update KERNEL-13158: 优化 ...research/test
Dailer-刘荣歆
2 years ago
40 changed files with 578 additions and 358 deletions
@ -0,0 +1,76 @@ |
|||||||
|
BI.Instruction = BI.inherit(BI.Widget, { |
||||||
|
_defaultConfig: function () { |
||||||
|
var conf = BI.Link.superclass._defaultConfig.apply(this, arguments); |
||||||
|
return BI.extend(conf, { |
||||||
|
baseCls: (conf.baseCls || "") + " bi-instruction", |
||||||
|
height: 20, |
||||||
|
level: "error", |
||||||
|
textAlign: "left", |
||||||
|
whiteSpace: "nowrap", |
||||||
|
hgap: 5 |
||||||
|
}); |
||||||
|
}, |
||||||
|
|
||||||
|
render: function () { |
||||||
|
var self = this, o = this.options; |
||||||
|
|
||||||
|
return { |
||||||
|
type: "bi.label", |
||||||
|
ref: function (_ref) { |
||||||
|
self.text = _ref; |
||||||
|
}, |
||||||
|
cls: "instruction-" + o.level, |
||||||
|
textAlign: o.textAlign, |
||||||
|
whiteSpace: o.whiteSpace, |
||||||
|
textHeight: o.height, |
||||||
|
height: o.height, |
||||||
|
hgap: o.hgap, |
||||||
|
rgap: o.rgap, |
||||||
|
lgap: o.lgap, |
||||||
|
vgap: o.vgap, |
||||||
|
text: o.text, |
||||||
|
keyword: o.keyword, |
||||||
|
value: o.value, |
||||||
|
py: o.py |
||||||
|
}; |
||||||
|
}, |
||||||
|
|
||||||
|
doRedMark: function () { |
||||||
|
this.text.doRedMark.apply(this.text, arguments); |
||||||
|
}, |
||||||
|
|
||||||
|
unRedMark: function () { |
||||||
|
this.text.unRedMark.apply(this.text, arguments); |
||||||
|
}, |
||||||
|
|
||||||
|
doHighLight: function () { |
||||||
|
this.text.doHighLight.apply(this.text, arguments); |
||||||
|
}, |
||||||
|
|
||||||
|
unHighLight: function () { |
||||||
|
this.text.unHighLight.apply(this.text, arguments); |
||||||
|
}, |
||||||
|
|
||||||
|
setText: function (v) { |
||||||
|
this.options.text = v; |
||||||
|
this.text.setText(v); |
||||||
|
}, |
||||||
|
|
||||||
|
getText: function () { |
||||||
|
return this.options.text; |
||||||
|
}, |
||||||
|
|
||||||
|
setStyle: function (css) { |
||||||
|
this.text.setStyle(css); |
||||||
|
}, |
||||||
|
|
||||||
|
setValue: function (v) { |
||||||
|
this.text.setValue(v); |
||||||
|
}, |
||||||
|
|
||||||
|
getValue: function () { |
||||||
|
this.text.getValue(); |
||||||
|
} |
||||||
|
}); |
||||||
|
|
||||||
|
BI.shortcut("bi.instruction", BI.Instruction); |
@ -0,0 +1,31 @@ |
|||||||
|
@import "../../index.less"; |
||||||
|
|
||||||
|
.bi-instruction { |
||||||
|
.border-radius(2px); |
||||||
|
|
||||||
|
&.instruction-error{ |
||||||
|
background: @color-bi-background-bubble-error; |
||||||
|
color: @color-bi-text-failure; |
||||||
|
} |
||||||
|
|
||||||
|
&.instruction-common{ |
||||||
|
background: @color-bi-background-bubble-normal; |
||||||
|
color: @color-bi-text-highlight; |
||||||
|
} |
||||||
|
|
||||||
|
&.instruction-success{ |
||||||
|
background: @color-bi-background-bubble-success; |
||||||
|
color: @color-bi-text-success; |
||||||
|
} |
||||||
|
|
||||||
|
&.instruction-warning{ |
||||||
|
background: @color-bi-background-bubble-warning; |
||||||
|
color: @color-bi-text-redmark; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.bi-theme-dark { |
||||||
|
.bi-instruction.instruction-error { |
||||||
|
background: @color-bi-background-bubble-error-theme-dark; |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,13 @@ |
|||||||
|
import { Widget } from '../../core/widget'; |
||||||
|
|
||||||
|
export declare class DynamicYearPopup extends Widget { |
||||||
|
static xtype: string; |
||||||
|
static BUTTON_CLEAR_EVENT_CHANGE: string; |
||||||
|
static BUTTON_lABEL_EVENT_CHANGE: string; |
||||||
|
static BUTTON_OK_EVENT_CHANGE: string; |
||||||
|
static EVENT_CHANGE: string; |
||||||
|
|
||||||
|
setMinDate(minDate?: string): void; |
||||||
|
|
||||||
|
setMaxDate(maxDate?: string): void; |
||||||
|
} |
Loading…
Reference in new issue