@ -1,4 +1,4 @@
/*! time: 2021-3-5 17:10:44 */
/*! time: 2021-3-9 09:50:45 */
/******/ ( function ( modules ) { // webpackBootstrap
/******/ ( function ( modules ) { // webpackBootstrap
/******/ // The module cache
/******/ // The module cache
/******/ var installedModules = { } ;
/******/ var installedModules = { } ;
@ -13912,6 +13912,22 @@ module.exports = function (exec) {
callLifeHook ( this , "created" ) ;
callLifeHook ( this , "created" ) ;
} ,
} ,
_initCurrent : function ( ) {
var o = this . options ;
if ( o . _baseCls || o . baseCls || o . extraCls || o . cls ) {
this . element . addClass ( ( o . _baseCls || "" ) + " " + ( o . baseCls || "" ) + " " + ( o . extraCls || "" ) + " " + ( o . cls || "" ) ) ;
}
if ( o . attributes ) {
this . element . attr ( o . attributes ) ;
}
if ( o . data ) {
this . element . data ( o . data ) ;
}
if ( o . css ) {
this . element . css ( o . css ) ;
}
} ,
/ * *
/ * *
* 初始化根节点
* 初始化根节点
* @ private
* @ private
@ -13939,18 +13955,7 @@ module.exports = function (exec) {
this . element = BI . Widget . _renderEngine . createElement ( this ) ;
this . element = BI . Widget . _renderEngine . createElement ( this ) ;
}
}
this . element . _isWidget = true ;
this . element . _isWidget = true ;
if ( o . _baseCls || o . baseCls || o . extraCls || o . cls ) {
this . _initCurrent ( ) ;
this . element . addClass ( ( o . _baseCls || "" ) + " " + ( o . baseCls || "" ) + " " + ( o . extraCls || "" ) + " " + ( o . cls || "" ) ) ;
}
if ( o . attributes ) {
this . element . attr ( o . attributes ) ;
}
if ( o . data ) {
this . element . data ( o . data ) ;
}
if ( o . css ) {
this . element . css ( o . css ) ;
}
} ,
} ,
_initElementWidth : function ( ) {
_initElementWidth : function ( ) {
@ -14041,10 +14046,10 @@ module.exports = function (exec) {
}
}
this . _mountChildren && this . _mountChildren ( ) ;
this . _mountChildren && this . _mountChildren ( ) ;
if ( layer === 0 ) {
if ( layer === 0 ) {
// mounted放到下一个宏任务里执行
// mounted里面会执行scrollTo之类的方法,如果放宏任务里会闪
setTimeout ( function ( ) {
// setTimeout(function () {
self . _ _afterMount ( lifeHook , predicate ) ;
self . _ _afterMount ( lifeHook , predicate ) ;
} , 0 ) ;
// }, 0);
}
}
return true ;
return true ;
} ,
} ,
@ -14346,6 +14351,15 @@ module.exports = function (exec) {
this . element . empty ( ) ;
this . element . empty ( ) ;
} ,
} ,
// 默认的populate方法就是干掉重来
populate : function ( ) {
this . purgeListeners ( ) ;
this . empty ( ) ;
this . _initCurrent ( ) ;
this . _init ( ) ;
this . _initRef ( ) ;
} ,
_destroy : function ( ) {
_destroy : function ( ) {
this . _ _d ( ) ;
this . _ _d ( ) ;
this . element . destroy ( ) ;
this . element . destroy ( ) ;
@ -19871,7 +19885,7 @@ BI.shortcut("bi.adaptive", BI.AdaptiveLayout);
BI . BorderLayout = BI . inherit ( BI . Layout , {
BI . BorderLayout = BI . inherit ( BI . Layout , {
props : function ( ) {
props : function ( ) {
return BI . extend ( BI . BorderLayout . superclass . props . apply ( this , arguments ) , {
return BI . extend ( BI . BorderLayout . superclass . props . apply ( this , arguments ) , {
baseCls : "bi-border" ,
baseCls : "bi-border-layout " ,
items : { }
items : { }
} ) ;
} ) ;
} ,
} ,
@ -22488,10 +22502,6 @@ BI.Single = BI.inherit(BI.Widget, {
this . _hoverBinded = false ;
this . _hoverBinded = false ;
} ,
} ,
populate : function ( items ) {
this . items = items || [ ] ;
} ,
// opt: {container: '', belowMouse: false}
// opt: {container: '', belowMouse: false}
setTitle : function ( title , opt ) {
setTitle : function ( title , opt ) {
this . options . title = title ;
this . options . title = title ;
@ -23849,6 +23859,7 @@ BI.CollectionView = BI.inherit(BI.Widget, {
}
}
} ,
} ,
// mounted之后绑定事件
mounted : function ( ) {
mounted : function ( ) {
var o = this . options ;
var o = this . options ;
if ( o . scrollLeft !== 0 || o . scrollTop !== 0 ) {
if ( o . scrollLeft !== 0 || o . scrollTop !== 0 ) {
@ -25610,7 +25621,7 @@ BI.Navigation = BI.inherit(BI.Widget, {
} ) ;
} ) ;
} ,
} ,
moun ted: function ( ) {
crea ted: function ( ) {
var o = this . options ;
var o = this . options ;
if ( o . showIndex !== false ) {
if ( o . showIndex !== false ) {
this . setSelect ( o . showIndex ) ;
this . setSelect ( o . showIndex ) ;
@ -25719,6 +25730,7 @@ BI.Navigation.EVENT_CHANGE = "EVENT_CHANGE";
BI . shortcut ( "bi.navigation" , BI . Navigation ) ;
BI . shortcut ( "bi.navigation" , BI . Navigation ) ;
/***/ } ) ,
/***/ } ) ,
/* 413 */
/* 413 */
/***/ ( function ( module , exports ) {
/***/ ( function ( module , exports ) {
@ -26418,7 +26430,7 @@ BI.Tab = BI.inherit(BI.Widget, {
}
}
} ,
} ,
moun ted: function ( ) {
crea ted: function ( ) {
var o = this . options ;
var o = this . options ;
if ( o . showIndex !== false ) {
if ( o . showIndex !== false ) {
this . setSelect ( o . showIndex ) ;
this . setSelect ( o . showIndex ) ;
@ -26494,6 +26506,7 @@ BI.Tab.EVENT_CHANGE = "EVENT_CHANGE";
BI . shortcut ( "bi.tab" , BI . Tab ) ;
BI . shortcut ( "bi.tab" , BI . Tab ) ;
/***/ } ) ,
/***/ } ) ,
/* 416 */
/* 416 */
/***/ ( function ( module , exports ) {
/***/ ( function ( module , exports ) {
@ -26819,6 +26832,7 @@ BI.GridView = BI.inherit(BI.Widget, {
}
}
} ,
} ,
// mounted之后绑定事件
mounted : function ( ) {
mounted : function ( ) {
var o = this . options ;
var o = this . options ;
if ( o . scrollLeft !== 0 || o . scrollTop !== 0 ) {
if ( o . scrollLeft !== 0 || o . scrollTop !== 0 ) {
@ -27295,6 +27309,7 @@ BI.Popover = BI.inherit(BI.Widget, {
} ) ;
} ) ;
} ,
} ,
// mounted之后绑定事件
mounted : function ( ) {
mounted : function ( ) {
var self = this ; var o = this . options ;
var self = this ; var o = this . options ;
this . dragger . element . mousedown ( function ( e ) {
this . dragger . element . mousedown ( function ( e ) {
@ -27788,6 +27803,7 @@ BI.ListView = BI.inherit(BI.Widget, {
} ;
} ;
} ,
} ,
// mounted之后绑定事件
mounted : function ( ) {
mounted : function ( ) {
var self = this , o = this . options ;
var self = this , o = this . options ;
this . _populate ( ) ;
this . _populate ( ) ;
@ -27921,6 +27937,7 @@ BI.VirtualList = BI.inherit(BI.Widget, {
} ;
} ;
} ,
} ,
// mounted之后绑定事件
mounted : function ( ) {
mounted : function ( ) {
var self = this , o = this . options ;
var self = this , o = this . options ;
this . _populate ( ) ;
this . _populate ( ) ;
@ -28776,10 +28793,6 @@ BI.Button = BI.inherit(BI.BasicButton, {
unHighLight : function ( ) {
unHighLight : function ( ) {
this . text . unHighLight . apply ( this . text , arguments ) ;
this . text . unHighLight . apply ( this . text , arguments ) ;
} ,
destroy : function ( ) {
BI . Button . superclass . destroy . apply ( this , arguments ) ;
}
}
} ) ;
} ) ;
BI . shortcut ( "bi.button" , BI . Button ) ;
BI . shortcut ( "bi.button" , BI . Button ) ;
@ -30592,8 +30605,8 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
} ,
} ,
left : 4 ,
left : 4 ,
right : 4 ,
right : 4 ,
top : 4 ,
top : 2 ,
bottom : 4
bottom : 2
} ]
} ]
} ) ;
} ) ;
@ -31918,10 +31931,6 @@ BI.shortcut("bi.radio", BI.Radio);
if ( ! this . isReadOnly ( ) ) {
if ( ! this . isReadOnly ( ) ) {
this . text . setValue ( v ) ;
this . text . setValue ( v ) ;
}
}
} ,
populate : function ( ) {
BI . AbstractLabel . superclass . populate . apply ( this , arguments ) ;
}
}
} ) ;
} ) ;
} ( ) ) ;
} ( ) ) ;
@ -36207,7 +36216,7 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, {
} ;
} ;
} ,
} ,
moun ted: function ( ) {
crea ted: function ( ) {
var o = this . options ;
var o = this . options ;
if ( BI . isKey ( o . value ) ) {
if ( BI . isKey ( o . value ) ) {
this . _checkError ( o . value ) ;
this . _checkError ( o . value ) ;
@ -36304,6 +36313,7 @@ BI.SearchTextValueComboPopup = BI.inherit(BI.Pane, {
} ;
} ;
} ,
} ,
// mounted之后做check
mounted : function ( ) {
mounted : function ( ) {
this . check ( ) ;
this . check ( ) ;
} ,
} ,
@ -36330,6 +36340,7 @@ BI.SearchTextValueComboPopup = BI.inherit(BI.Pane, {
BI . SearchTextValueComboPopup . EVENT _CHANGE = "EVENT_CHANGE" ;
BI . SearchTextValueComboPopup . EVENT _CHANGE = "EVENT_CHANGE" ;
BI . shortcut ( "bi.search_text_value_combo_popup" , BI . SearchTextValueComboPopup ) ;
BI . shortcut ( "bi.search_text_value_combo_popup" , BI . SearchTextValueComboPopup ) ;
/***/ } ) ,
/***/ } ) ,
/* 507 */
/* 507 */
/***/ ( function ( module , exports ) {
/***/ ( function ( module , exports ) {
@ -42725,7 +42736,7 @@ BI.DynamicDatePane = BI.inherit(BI.Widget, {
} ;
} ;
} ,
} ,
moun ted: function ( ) {
crea ted: function ( ) {
this . setValue ( this . options . value ) ;
this . setValue ( this . options . value ) ;
} ,
} ,
@ -42757,7 +42768,6 @@ BI.DynamicDatePane = BI.inherit(BI.Widget, {
}
}
} ,
} ,
setValue : function ( v ) {
setValue : function ( v ) {
v = v || { } ;
v = v || { } ;
var type = v . type || BI . DynamicDateCombo . Static ;
var type = v . type || BI . DynamicDateCombo . Static ;
@ -43454,7 +43464,7 @@ BI.DynamicDateTimePane = BI.inherit(BI.Widget, {
} ;
} ;
} ,
} ,
moun ted: function ( ) {
crea ted: function ( ) {
this . setValue ( this . options . value ) ;
this . setValue ( this . options . value ) ;
} ,
} ,
@ -44917,7 +44927,7 @@ BI.DynamicDateCombo = BI.inherit(BI.Single, {
} ;
} ;
} ,
} ,
moun ted: function ( ) {
crea ted: function ( ) {
this . _checkDynamicValue ( this . storeValue ) ;
this . _checkDynamicValue ( this . storeValue ) ;
} ,
} ,
@ -45002,6 +45012,7 @@ BI.extend(BI.DynamicDateCombo, {
Dynamic : 2
Dynamic : 2
} ) ;
} ) ;
/***/ } ) ,
/***/ } ) ,
/* 569 */
/* 569 */
/***/ ( function ( module , exports ) {
/***/ ( function ( module , exports ) {
@ -46009,7 +46020,7 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
} ;
} ;
} ,
} ,
moun ted: function ( ) {
crea ted: function ( ) {
this . _checkDynamicValue ( this . storeValue ) ;
this . _checkDynamicValue ( this . storeValue ) ;
} ,
} ,
@ -46094,6 +46105,7 @@ BI.extend(BI.DynamicDateTimeCombo, {
Dynamic : 2
Dynamic : 2
} ) ;
} ) ;
/***/ } ) ,
/***/ } ) ,
/* 573 */
/* 573 */
/***/ ( function ( module , exports ) {
/***/ ( function ( module , exports ) {
@ -67688,7 +67700,7 @@ BI.StaticYearMonthCard = BI.inherit(BI.Widget, {
} ;
} ;
} ,
} ,
moun ted: function ( ) {
crea ted: function ( ) {
this . _checkMonthStatus ( this . selectedYear ) ;
this . _checkMonthStatus ( this . selectedYear ) ;
} ,
} ,
@ -75615,11 +75627,11 @@ BI.prepares.push(function () {
BI . Widget . _renderEngine . createElement ( "body" ) . append ( canvas ) ;
BI . Widget . _renderEngine . createElement ( "body" ) . append ( canvas ) ;
var ctx = canvas . getContext ( "2d" ) ;
var ctx = canvas . getContext ( "2d" ) ;
ctx . font = "12px Georgia " ;
ctx . font = "12px Helvetica Neue,Arial,PingFang SC,Hiragino Sans GB,Microsoft YaHei,微软雅黑,Heiti,黑体,sans-serif " ;
var w = ctx . measureText ( param ) . width + 4 ;
var w = ctx . measureText ( param ) . width + 4 ;
canvas . width = w * ratio ;
canvas . width = w * ratio ;
canvas . height = 16 * ratio ;
canvas . height = 16 * ratio ;
ctx . font = 12 * ratio + "px Georgia " ;
ctx . font = 12 * ratio + "px Helvetica Neue,Arial,PingFang SC,Hiragino Sans GB,Microsoft YaHei,微软雅黑,Heiti,黑体,sans-serif " ;
ctx . fillStyle = fillStyle || "#3685f2" ;
ctx . fillStyle = fillStyle || "#3685f2" ;
ctx . textBaseline = "middle" ;
ctx . textBaseline = "middle" ;
// ctx.fillStyle = "#EAF2FD";
// ctx.fillStyle = "#EAF2FD";
@ -93431,8 +93443,8 @@ BI.ColorChooser = BI.inherit(BI.Widget, {
ref : function ( _ref ) {
ref : function ( _ref ) {
self . trigger = _ref ;
self . trigger = _ref ;
} ,
} ,
width : o . width - 2 ,
width : o . el . type ? o . width : o . width - 2 ,
height : o . height - 2
height : o . el . type ? o . height : o . height - 2
} , o . el ) ,
} , o . el ) ,
popup : {
popup : {
el : BI . extend ( {
el : BI . extend ( {
@ -93683,6 +93695,7 @@ BI.HexColorChooserPopup = BI.inherit(BI.Widget, {
} ;
} ;
} ,
} ,
// 这里就实现的不好了,setValue里面有个editor,editor的setValue会检测错误然后出bubble提示
mounted : function ( ) {
mounted : function ( ) {
var self = this ;
var self = this ;
var o = this . options ;
var o = this . options ;
@ -93757,6 +93770,7 @@ BI.HexColorChooserPopup.EVENT_VALUE_CHANGE = "EVENT_VALUE_CHANGE";
BI . HexColorChooserPopup . EVENT _CHANGE = "EVENT_CHANGE" ;
BI . HexColorChooserPopup . EVENT _CHANGE = "EVENT_CHANGE" ;
BI . shortcut ( "bi.hex_color_chooser_popup" , BI . HexColorChooserPopup ) ;
BI . shortcut ( "bi.hex_color_chooser_popup" , BI . HexColorChooserPopup ) ;
/***/ } ) ,
/***/ } ) ,
/* 876 */
/* 876 */
/***/ ( function ( module , exports ) {
/***/ ( function ( module , exports ) {
@ -93978,6 +93992,7 @@ BI.ColorChooserPopup = BI.inherit(BI.Widget, {
} ;
} ;
} ,
} ,
// 这里就实现的不好了,setValue里面有个editor,editor的setValue会检测错误然后出bubble提示
mounted : function ( ) {
mounted : function ( ) {
var self = this ;
var self = this ;
var o = this . options ;
var o = this . options ;
@ -94052,6 +94067,7 @@ BI.ColorChooserPopup.EVENT_VALUE_CHANGE = "EVENT_VALUE_CHANGE";
BI . ColorChooserPopup . EVENT _CHANGE = "EVENT_CHANGE" ;
BI . ColorChooserPopup . EVENT _CHANGE = "EVENT_CHANGE" ;
BI . shortcut ( "bi.color_chooser_popup" , BI . ColorChooserPopup ) ;
BI . shortcut ( "bi.color_chooser_popup" , BI . ColorChooserPopup ) ;
/***/ } ) ,
/***/ } ) ,
/* 878 */
/* 878 */
/***/ ( function ( module , exports ) {
/***/ ( function ( module , exports ) {
@ -95598,7 +95614,7 @@ BI.Farbtastic = BI.inherit(BI.BasicButton, {
} ;
} ;
} ,
} ,
moun ted: function ( ) {
crea ted: function ( ) {
var o = this . options ;
var o = this . options ;
if ( BI . isKey ( o . value ) ) {
if ( BI . isKey ( o . value ) ) {
this . setValue ( o . value ) ;
this . setValue ( o . value ) ;
@ -95697,8 +95713,6 @@ BI.Farbtastic = BI.inherit(BI.BasicButton, {
// Saturation/Luminance gradient
// Saturation/Luminance gradient
this . colorWrapper . element . css ( "backgroundColor" , this . _pack ( this . _HSLToRGB ( [ this . hsl [ 0 ] , 1 , 0.5 ] ) ) ) ;
this . colorWrapper . element . css ( "backgroundColor" , this . _pack ( this . _HSLToRGB ( [ this . hsl [ 0 ] , 1 , 0.5 ] ) ) ) ;
this . fireEvent ( BI . Farbtastic . EVENT _CHANGE , this . getValue ( ) , this ) ;
} ,
} ,
_absolutePosition : function ( el ) {
_absolutePosition : function ( el ) {
@ -95775,6 +95789,7 @@ BI.Farbtastic = BI.inherit(BI.BasicButton, {
var lum = Math . max ( 0 , Math . min ( 1 , - ( pos . y / this . constants . SQUARE ) + . 5 ) ) ;
var lum = Math . max ( 0 , Math . min ( 1 , - ( pos . y / this . constants . SQUARE ) + . 5 ) ) ;
this . _setHSL ( [ this . hsl [ 0 ] , sat , lum ] ) ;
this . _setHSL ( [ this . hsl [ 0 ] , sat , lum ] ) ;
}
}
this . fireEvent ( BI . Farbtastic . EVENT _CHANGE , this . getValue ( ) , this ) ;
} ,
} ,
doClick : function ( event ) {
doClick : function ( event ) {
@ -95797,6 +95812,7 @@ BI.Farbtastic = BI.inherit(BI.BasicButton, {
BI . Farbtastic . EVENT _CHANGE = "EVENT_CHANGE" ;
BI . Farbtastic . EVENT _CHANGE = "EVENT_CHANGE" ;
BI . shortcut ( "bi.farbtastic" , BI . Farbtastic ) ;
BI . shortcut ( "bi.farbtastic" , BI . Farbtastic ) ;
/***/ } ) ,
/***/ } ) ,
/* 889 */
/* 889 */
/***/ ( function ( module , exports ) {
/***/ ( function ( module , exports ) {