forked from fanruan/fineui
Urthur
8 years ago
282 changed files with 202838 additions and 205894 deletions
@ -1,93 +1,93 @@ |
|||||||
if(![].indexOf){ |
if(![].indexOf){ |
||||||
/** |
/** |
||||||
* 检查指定的值是否在数组中 |
* 检查指定的值是否在数组中 |
||||||
* @param {Object} o 要检查的值 |
* @param {Object} o 要检查的值 |
||||||
* @return {Number} o在数组中的索引(如果不在数组中则返回-1) |
* @return {Number} o在数组中的索引(如果不在数组中则返回-1) |
||||||
*/ |
*/ |
||||||
Array.prototype.indexOf = function (o) { |
Array.prototype.indexOf = function (o) { |
||||||
for (var i = 0, len = this.length; i < len; i++) { |
for (var i = 0, len = this.length; i < len; i++) { |
||||||
if (_.isEqual(o, this[i])) { |
if (_.isEqual(o, this[i])) { |
||||||
return i; |
return i; |
||||||
} |
} |
||||||
} |
} |
||||||
return -1; |
return -1; |
||||||
} |
} |
||||||
} |
} |
||||||
if(![].lastIndexOf){ |
if(![].lastIndexOf){ |
||||||
/** |
/** |
||||||
* 检查指定的值是否在数组中 |
* 检查指定的值是否在数组中 |
||||||
* ie67不支持数组的这个方法 |
* ie67不支持数组的这个方法 |
||||||
* @param {Object} o 要检查的值 |
* @param {Object} o 要检查的值 |
||||||
* @return {Number} o在数组中的索引(如果不在数组中则返回-1) |
* @return {Number} o在数组中的索引(如果不在数组中则返回-1) |
||||||
*/ |
*/ |
||||||
Array.prototype.lastIndexOf = function (o) { |
Array.prototype.lastIndexOf = function (o) { |
||||||
for (var len = this.length, i = len - 1; i >= 0; i--) { |
for (var len = this.length, i = len - 1; i >= 0; i--) { |
||||||
if (_.isEqual(o, this[i])) { |
if (_.isEqual(o, this[i])) { |
||||||
return i; |
return i; |
||||||
} |
} |
||||||
} |
} |
||||||
return -1; |
return -1; |
||||||
} |
} |
||||||
}/** |
}/** |
||||||
* 特殊情况 |
* 特殊情况 |
||||||
* Created by wang on 15/6/23. |
* Created by wang on 15/6/23. |
||||||
*/ |
*/ |
||||||
//解决console未定义问题 guy
|
//解决console未定义问题 guy
|
||||||
window.console = window.console || (function () { |
window.console = window.console || (function () { |
||||||
var c = {}; |
var c = {}; |
||||||
c.log = c.warn = c.debug = c.info = c.error = c.time = c.dir = c.profile |
c.log = c.warn = c.debug = c.info = c.error = c.time = c.dir = c.profile |
||||||
= c.clear = c.exception = c.trace = c.assert = function () { |
= c.clear = c.exception = c.trace = c.assert = function () { |
||||||
}; |
}; |
||||||
return c; |
return c; |
||||||
})(); |
})(); |
||||||
/* |
/* |
||||||
* 前端缓存 |
* 前端缓存 |
||||||
*/ |
*/ |
||||||
window.localStorage || (window.localStorage = { |
window.localStorage || (window.localStorage = { |
||||||
items: {}, |
items: {}, |
||||||
setItem: function (k, v) { |
setItem: function (k, v) { |
||||||
BI.Cache.addCookie(k, v); |
BI.Cache.addCookie(k, v); |
||||||
}, |
}, |
||||||
getItem: function (k) { |
getItem: function (k) { |
||||||
return BI.Cache.getCookie(k); |
return BI.Cache.getCookie(k); |
||||||
}, |
}, |
||||||
removeItem: function (k) { |
removeItem: function (k) { |
||||||
BI.Cache.deleteCookie(k); |
BI.Cache.deleteCookie(k); |
||||||
}, |
}, |
||||||
key: function () { |
key: function () { |
||||||
|
|
||||||
}, |
}, |
||||||
clear: function () { |
clear: function () { |
||||||
this.items = {}; |
this.items = {}; |
||||||
} |
} |
||||||
});//修复ie9下sort方法的bug
|
});//修复ie9下sort方法的bug
|
||||||
!function (window) { |
!function (window) { |
||||||
var ua = window.navigator.userAgent.toLowerCase(), |
var ua = window.navigator.userAgent.toLowerCase(), |
||||||
reg = /msie|applewebkit.+safari/; |
reg = /msie|applewebkit.+safari/; |
||||||
if (reg.test(ua)) { |
if (reg.test(ua)) { |
||||||
var _sort = Array.prototype.sort; |
var _sort = Array.prototype.sort; |
||||||
Array.prototype.sort = function (fn) { |
Array.prototype.sort = function (fn) { |
||||||
if (!!fn && typeof fn === 'function') { |
if (!!fn && typeof fn === 'function') { |
||||||
if (this.length < 2) { |
if (this.length < 2) { |
||||||
return this; |
return this; |
||||||
} |
} |
||||||
var i = 0, j = i + 1, l = this.length, tmp, r = false, t = 0; |
var i = 0, j = i + 1, l = this.length, tmp, r = false, t = 0; |
||||||
for (; i < l; i++) { |
for (; i < l; i++) { |
||||||
for (j = i + 1; j < l; j++) { |
for (j = i + 1; j < l; j++) { |
||||||
t = fn.call(this, this[i], this[j]); |
t = fn.call(this, this[i], this[j]); |
||||||
r = (typeof t === 'number' ? t : |
r = (typeof t === 'number' ? t : |
||||||
!!t ? 1 : 0) > 0; |
!!t ? 1 : 0) > 0; |
||||||
if (r === true) { |
if (r === true) { |
||||||
tmp = this[i]; |
tmp = this[i]; |
||||||
this[i] = this[j]; |
this[i] = this[j]; |
||||||
this[j] = tmp; |
this[j] = tmp; |
||||||
} |
} |
||||||
} |
} |
||||||
} |
} |
||||||
return this; |
return this; |
||||||
} else { |
} else { |
||||||
return _sort.call(this); |
return _sort.call(this); |
||||||
} |
} |
||||||
}; |
}; |
||||||
} |
} |
||||||
}(window); |
}(window); |
@ -1,540 +1,416 @@ |
|||||||
/****添加计算宽度的--运算符直接需要space****/ |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-arrangement .arrangement-helper { |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
background: #3f8ce8; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
z-index: 1000000000; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
} |
||||||
.bi-arrangement .arrangement-helper { |
.bi-arrangement .arrangement-block { |
||||||
background: #3f8ce8; |
z-index: 1000000000; |
||||||
z-index: 1000000000; |
} |
||||||
} |
.bi-arrangement .arrangement-drop-container { |
||||||
.bi-arrangement .arrangement-block { |
z-index: 1000000000; |
||||||
z-index: 1000000000; |
} |
||||||
} |
.bi-arrangement .arrangement-drop-container .arrangement-drop-region { |
||||||
.bi-arrangement .arrangement-drop-container { |
overflow: hidden; |
||||||
z-index: 1000000000; |
} |
||||||
} |
.bi-arrangement .arrangement-drop-container .drop-devider { |
||||||
.bi-arrangement .arrangement-drop-container .arrangement-drop-region { |
z-index: 1000000001; |
||||||
overflow: hidden; |
background: #3f8ce8; |
||||||
} |
} |
||||||
.bi-arrangement .arrangement-drop-container .drop-devider { |
.bi-arrangement .arrangement-drop-container .top-left, |
||||||
z-index: 1000000001; |
.bi-arrangement .arrangement-drop-container .top-right, |
||||||
background: #3f8ce8; |
.bi-arrangement .arrangement-drop-container .bottom-left, |
||||||
} |
.bi-arrangement .arrangement-drop-container .bottom-right, |
||||||
.bi-arrangement .arrangement-drop-container .top-left, |
.bi-arrangement .arrangement-drop-container .top-left-second, |
||||||
.bi-arrangement .arrangement-drop-container .top-right, |
.bi-arrangement .arrangement-drop-container .top-right-second, |
||||||
.bi-arrangement .arrangement-drop-container .bottom-left, |
.bi-arrangement .arrangement-drop-container .bottom-left-second, |
||||||
.bi-arrangement .arrangement-drop-container .bottom-right, |
.bi-arrangement .arrangement-drop-container .bottom-right-second, |
||||||
.bi-arrangement .arrangement-drop-container .top-left-second, |
.bi-arrangement .arrangement-drop-container .top-center, |
||||||
.bi-arrangement .arrangement-drop-container .top-right-second, |
.bi-arrangement .arrangement-drop-container .bottom-center, |
||||||
.bi-arrangement .arrangement-drop-container .bottom-left-second, |
.bi-arrangement .arrangement-drop-container .left-center, |
||||||
.bi-arrangement .arrangement-drop-container .bottom-right-second, |
.bi-arrangement .arrangement-drop-container .right-center, |
||||||
.bi-arrangement .arrangement-drop-container .top-center, |
.bi-arrangement .arrangement-drop-container .top-center-second, |
||||||
.bi-arrangement .arrangement-drop-container .bottom-center, |
.bi-arrangement .arrangement-drop-container .bottom-center-second, |
||||||
.bi-arrangement .arrangement-drop-container .left-center, |
.bi-arrangement .arrangement-drop-container .left-center-second, |
||||||
.bi-arrangement .arrangement-drop-container .right-center, |
.bi-arrangement .arrangement-drop-container .right-center-second { |
||||||
.bi-arrangement .arrangement-drop-container .top-center-second, |
z-index: 1000000001; |
||||||
.bi-arrangement .arrangement-drop-container .bottom-center-second, |
background: #3f8ce8; |
||||||
.bi-arrangement .arrangement-drop-container .left-center-second, |
} |
||||||
.bi-arrangement .arrangement-drop-container .right-center-second { |
.bi-arrangement-droppable { |
||||||
z-index: 1000000001; |
z-index: 100000; |
||||||
background: #3f8ce8; |
} |
||||||
} |
/****添加计算宽度的--运算符直接需要space****/ |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-adapt-editor .adapt-editor-text { |
||||||
.bi-arrangement-droppable { |
font-size: 14px; |
||||||
z-index: 100000; |
} |
||||||
} |
/****添加计算宽度的--运算符直接需要space****/ |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
/*************BI.SearchEditor******************/ |
||||||
.bi-adapt-editor .adapt-editor-text { |
.bi-search-editor { |
||||||
font-size: 14px; |
border: 1px solid #d4dadd; |
||||||
} |
} |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
.bi-search-editor .close-font { |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
font-size: 20px; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
} |
||||||
/*************BI.SearchEditor******************/ |
.bi-search-editor .search-font { |
||||||
.bi-search-editor { |
font-size: 20px; |
||||||
border: 1px solid #d4dadd; |
} |
||||||
} |
/****添加计算宽度的--运算符直接需要space****/ |
||||||
.bi-search-editor .close-font { |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
font-size: 20px; |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
} |
/*************BI.SearchEditor******************/ |
||||||
.bi-search-editor .search-font { |
.bi-small-search-editor .bi-editor { |
||||||
font-size: 20px; |
font-size: 12px; |
||||||
} |
} |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
.bi-small-search-editor .bi-editor .bi-input { |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
font-size: 12px; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
} |
||||||
/*************BI.SearchEditor******************/ |
.bi-small-search-editor .bi-editor .bi-label { |
||||||
.bi-small-search-editor .bi-editor { |
font-size: 12px; |
||||||
font-size: 12px; |
} |
||||||
} |
.bi-small-search-editor .close-font { |
||||||
.bi-small-search-editor .bi-editor .bi-input { |
font-size: 18px; |
||||||
font-size: 12px; |
} |
||||||
} |
.bi-small-search-editor .search-font { |
||||||
.bi-small-search-editor .bi-editor .bi-label { |
font-size: 18px; |
||||||
font-size: 12px; |
} |
||||||
} |
/****添加计算宽度的--运算符直接需要space****/ |
||||||
.bi-small-search-editor .close-font { |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
font-size: 18px; |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
} |
.bi-sign-initial-editor .sign-initial-editor-text { |
||||||
.bi-small-search-editor .search-font { |
font-size: 14px; |
||||||
font-size: 18px; |
} |
||||||
} |
/****添加计算宽度的--运算符直接需要space****/ |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-sign-style-editor .sign-style-editor-text { |
||||||
.bi-sign-initial-editor .sign-initial-editor-text { |
max-width: 100%; |
||||||
font-size: 14px; |
font-size: 12px; |
||||||
} |
} |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
.bi-sign-style-editor .sign-style-editor-tip { |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
max-width: 100%; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
font-size: 12px; |
||||||
.bi-sign-style-editor .sign-style-editor-text { |
color: #808080; |
||||||
max-width: 100%; |
} |
||||||
font-size: 12px; |
/****添加计算宽度的--运算符直接需要space****/ |
||||||
} |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
.bi-sign-style-editor .sign-style-editor-tip { |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
max-width: 100%; |
.bi-text-editor { |
||||||
font-size: 12px; |
border: 1px solid #d4dadd; |
||||||
color: #808080; |
} |
||||||
} |
/****添加计算宽度的--运算符直接需要space****/ |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
/*************BI.SearchEditor******************/ |
||||||
.bi-text-editor { |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
border: 1px solid #d4dadd; |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
} |
.bi-date-trigger { |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
-webkit-border-radius: 2px; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
-moz-border-radius: 2px; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
border-radius: 2px; |
||||||
/*************BI.SearchEditor******************/ |
} |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-down-list-popup .bi-down-list-item .list-item-text { |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
max-width: 203px; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
} |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
.bi-date-trigger { |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
-webkit-border-radius: 2px; |
.bi-excel-table > div.bottom-right > div > div > table { |
||||||
-moz-border-radius: 2px; |
border-right: 1px solid #d4dadd; |
||||||
border-radius: 2px; |
} |
||||||
} |
.bi-theme-dark .bi-excel-table > div.bottom-right > div > div > table { |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
border-right: 1px solid #525466; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
} |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-excel-table-header-cell { |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
font-weight: bold; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
} |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
.bi-down-list-popup .bi-down-list-item .list-item-text { |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
max-width: 203px; |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
} |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-file-manager-nav-button .file-manager-nav-button-text { |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
max-width: 200px; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
} |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-file-manager-nav-button .file-manager-nav-button-text.active { |
||||||
.bi-excel-table > div.bottom-right > div > div > table { |
background-color: #eff1f4; |
||||||
border-right: 1px solid #d4dadd; |
color: #999999; |
||||||
} |
} |
||||||
.bi-theme-dark .bi-excel-table > div.bottom-right > div > div > table { |
.bi-file-manager-nav-button .file-manager-nav-button-triangle { |
||||||
border-right: 1px solid #525466; |
z-index: 1; |
||||||
} |
} |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
.bi-theme-dark .bi-file-manager-nav-button .file-manager-nav-button-text.active { |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
background-color: #191b2b; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
color: #999999; |
||||||
.bi-excel-table-header-cell { |
} |
||||||
font-weight: bold; |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
} |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
.bi-fine-tuning-number-editor { |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
-webkit-border-radius: 2px; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
-moz-border-radius: 2px; |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
border-radius: 2px; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
} |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-interactive-arrangement .interactive-arrangement-dragtag-line { |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
z-index: 1000000000; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
background-color: #f07d0a; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
} |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
.bi-interactive-arrangement .interactive-arrangement-dragtag-icon { |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
z-index: 1000000000; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
} |
||||||
.bi-file-manager-nav-button .file-manager-nav-button-text { |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
max-width: 200px; |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
} |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
.bi-file-manager-nav-button .file-manager-nav-button-text.active { |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
background-color: #eff1f4; |
.bi-month-trigger { |
||||||
color: #999999; |
-webkit-border-radius: 2px; |
||||||
} |
-moz-border-radius: 2px; |
||||||
.bi-file-manager-nav-button .file-manager-nav-button-triangle { |
border-radius: 2px; |
||||||
z-index: 1; |
} |
||||||
} |
.bi-multi-select-check-pane .multi-select-check-selected { |
||||||
.bi-theme-dark .bi-file-manager-nav-button .file-manager-nav-button-text.active { |
text-decoration: underline; |
||||||
background-color: #191b2b; |
} |
||||||
color: #999999; |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
} |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
.bi-multi-select-combo .multi-select-trigger-icon-button { |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
font-size: 16px; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
} |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-multi-select-trigger { |
||||||
.bi-fine-tuning-number-editor { |
-webkit-border-radius: 2px 2px 2px 2px; |
||||||
-webkit-border-radius: 2px; |
-moz-border-radius: 2px 2px 2px 2px; |
||||||
-moz-border-radius: 2px; |
border-radius: 2px 2px 2px 2px; |
||||||
border-radius: 2px; |
} |
||||||
} |
.bi-multi-select-search-pane .multi-select-toolbar { |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
color: #e85050; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
} |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-multi-select-check-selected-button { |
||||||
.bi-interactive-arrangement .interactive-arrangement-dragtag-line { |
z-index: 1; |
||||||
z-index: 1000000000; |
} |
||||||
background-color: #f07d0a; |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
} |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
.bi-interactive-arrangement .interactive-arrangement-dragtag-icon { |
.bi-multi-tree-check-pane .multi-tree-check-selected { |
||||||
z-index: 1000000000; |
color: #3f8ce8; |
||||||
} |
} |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-multi-tree-combo .multi-select-trigger-icon-button { |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
font-size: 16px; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
} |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-multi-tree-popup .popup-view-tree { |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
min-height: 170px; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
} |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
.bi-month-trigger { |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
-webkit-border-radius: 2px; |
.bi-multi-tree-check-selected-button .trigger-check-selected { |
||||||
-moz-border-radius: 2px; |
color: #3f8ce8; |
||||||
border-radius: 2px; |
z-index: 1; |
||||||
} |
} |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-numerical-interval .numerical-interval-small-editor { |
||||||
.bi-multi-select-check-pane .multi-select-check-selected { |
-moz-border-radius-topleft: 2px; |
||||||
text-decoration: underline; |
-webkit-border-top-left-radius: 2px; |
||||||
} |
-moz-border-radius-bottomleft: 2px; |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
-webkit-border-bottom-left-radius: 2px; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
border-top-left-radius: 2px; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
border-bottom-left-radius: 2px; |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
} |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
.bi-numerical-interval .numerical-interval-big-editor { |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
-moz-border-radius-topright: 2px; |
||||||
.bi-multi-select-combo .multi-select-trigger-icon-button { |
-webkit-border-top-right-radius: 2px; |
||||||
font-size: 16px; |
-moz-border-radius-bottomright: 2px; |
||||||
} |
-webkit-border-bottom-right-radius: 2px; |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
border-top-right-radius: 2px; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
border-bottom-right-radius: 2px; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
} |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
.bi-numerical-interval .numerical-interval-big-combo { |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
-moz-border-radius-topleft: 2px; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
-webkit-border-top-left-radius: 2px; |
||||||
.bi-multi-select-trigger { |
-moz-border-radius-bottomleft: 2px; |
||||||
-webkit-border-radius: 2px 2px 2px 2px; |
-webkit-border-bottom-left-radius: 2px; |
||||||
-moz-border-radius: 2px 2px 2px 2px; |
border-top-left-radius: 2px; |
||||||
border-radius: 2px 2px 2px 2px; |
border-bottom-left-radius: 2px; |
||||||
} |
} |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
.bi-numerical-interval .numerical-interval-big-combo .bi-icon-combo-trigger .icon-combo-trigger-icon { |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
font-size: 14px; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
} |
||||||
.bi-multi-select-search-pane .multi-select-toolbar { |
.bi-numerical-interval .numerical-interval-small-combo { |
||||||
color: #e85050; |
-moz-border-radius-topright: 2px; |
||||||
} |
-webkit-border-top-right-radius: 2px; |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
-moz-border-radius-bottomright: 2px; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
-webkit-border-bottom-right-radius: 2px; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
border-top-right-radius: 2px; |
||||||
.bi-multi-select-check-selected-button { |
border-bottom-right-radius: 2px; |
||||||
z-index: 1; |
} |
||||||
} |
.bi-numerical-interval .numerical-interval-small-combo .bi-icon-combo-trigger .icon-combo-trigger-icon { |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
font-size: 14px; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
} |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-numerical-interval.number-error .bi-input { |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
color: #e85050; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
} |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
.bi-multi-tree-check-pane .multi-tree-check-selected { |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
color: #3f8ce8; |
.bi-page-table-cell { |
||||||
} |
-webkit-user-select: initial; |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
-khtml-user-select: initial; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
-moz-user-select: initial; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
-ms-user-select: initial; |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
-o-user-select: initial; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
user-select: initial; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
} |
||||||
.bi-multi-tree-combo .multi-select-trigger-icon-button { |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
font-size: 16px; |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
} |
.bi-path-chooser .path-chooser-radio { |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
z-index: 1; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
} |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-path-region .path-region-label { |
||||||
.bi-multi-tree-popup .popup-view-tree { |
z-index: 1; |
||||||
min-height: 170px; |
} |
||||||
} |
.bi-preview-table-cell { |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
min-height: 25px; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
min-width: 80px; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
max-width: 220px; |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
} |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
.bi-preview-table { |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
-webkit-user-select: initial; |
||||||
.bi-multi-tree-check-selected-button .trigger-check-selected { |
-khtml-user-select: initial; |
||||||
color: #3f8ce8; |
-moz-user-select: initial; |
||||||
z-index: 1; |
-ms-user-select: initial; |
||||||
} |
-o-user-select: initial; |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
user-select: initial; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
} |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-preview-table > div > table > thead > tr.odd, |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
.bi-preview-table > div > div > div > table > thead > tr.odd { |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
background-color: #eff1f4; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
} |
||||||
.bi-numerical-interval .numerical-interval-small-editor { |
.bi-theme-dark .bi-preview-table > div > table > thead > tr.odd, |
||||||
-moz-border-radius-topleft: 2px; |
.bi-theme-dark .bi-preview-table > div > div > div > table > thead > tr.odd { |
||||||
-webkit-border-top-left-radius: 2px; |
background-color: #191b2b; |
||||||
-moz-border-radius-bottomleft: 2px; |
} |
||||||
-webkit-border-bottom-left-radius: 2px; |
.bi-preview-table-header-cell { |
||||||
border-top-left-radius: 2px; |
font-weight: bold; |
||||||
border-bottom-left-radius: 2px; |
min-height: 25px; |
||||||
} |
min-width: 80px; |
||||||
.bi-numerical-interval .numerical-interval-big-editor { |
max-width: 220px; |
||||||
-moz-border-radius-topright: 2px; |
} |
||||||
-webkit-border-top-right-radius: 2px; |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
-moz-border-radius-bottomright: 2px; |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
-webkit-border-bottom-right-radius: 2px; |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
border-top-right-radius: 2px; |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
border-bottom-right-radius: 2px; |
.bi-quarter-trigger { |
||||||
} |
-webkit-border-radius: 2px; |
||||||
.bi-numerical-interval .numerical-interval-big-combo { |
-moz-border-radius: 2px; |
||||||
-moz-border-radius-topleft: 2px; |
border-radius: 2px; |
||||||
-webkit-border-top-left-radius: 2px; |
} |
||||||
-moz-border-radius-bottomleft: 2px; |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
-webkit-border-bottom-left-radius: 2px; |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
border-top-left-radius: 2px; |
.bi-relation-view-region .relation-view-region-container { |
||||||
border-bottom-left-radius: 2px; |
z-index: 1; |
||||||
} |
-webkit-border-radius: 2px; |
||||||
.bi-numerical-interval .numerical-interval-big-combo .bi-icon-combo-trigger .icon-combo-trigger-icon { |
-moz-border-radius: 2px; |
||||||
font-size: 14px; |
border-radius: 2px; |
||||||
} |
} |
||||||
.bi-numerical-interval .numerical-interval-small-combo { |
.bi-relation-view-region .relation-view-region-container.other-package { |
||||||
-moz-border-radius-topright: 2px; |
border-style: dashed; |
||||||
-webkit-border-top-right-radius: 2px; |
} |
||||||
-moz-border-radius-bottomright: 2px; |
.bi-sequence-table-dynamic-number .sequence-table-title-cell { |
||||||
-webkit-border-bottom-right-radius: 2px; |
overflow: hidden; |
||||||
border-top-right-radius: 2px; |
overflow-x: hidden; |
||||||
border-bottom-right-radius: 2px; |
overflow-y: hidden; |
||||||
} |
-webkit-box-sizing: border-box; |
||||||
.bi-numerical-interval .numerical-interval-small-combo .bi-icon-combo-trigger .icon-combo-trigger-icon { |
/*Safari3.2+*/ |
||||||
font-size: 14px; |
-moz-box-sizing: border-box; |
||||||
} |
/*Firefox3.5+*/ |
||||||
.bi-numerical-interval.number-error .bi-input { |
-ms-box-sizing: border-box; |
||||||
color: #e85050; |
/*IE8*/ |
||||||
} |
box-sizing: border-box; |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
/*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/ |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
} |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-sequence-table-dynamic-number .sequence-table-number-cell { |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
-webkit-box-sizing: border-box; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
/*Safari3.2+*/ |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
-moz-box-sizing: border-box; |
||||||
.bi-page-table-cell { |
/*Firefox3.5+*/ |
||||||
-webkit-user-select: initial; |
-ms-box-sizing: border-box; |
||||||
-khtml-user-select: initial; |
/*IE8*/ |
||||||
-moz-user-select: initial; |
box-sizing: border-box; |
||||||
-ms-user-select: initial; |
/*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/ |
||||||
-o-user-select: initial; |
} |
||||||
user-select: initial; |
.bi-sequence-table-list-number .sequence-table-title-cell { |
||||||
} |
overflow: hidden; |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
overflow-x: hidden; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
overflow-y: hidden; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
-webkit-box-sizing: border-box; |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
/*Safari3.2+*/ |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
-moz-box-sizing: border-box; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
/*Firefox3.5+*/ |
||||||
.bi-path-chooser .path-chooser-radio { |
-ms-box-sizing: border-box; |
||||||
z-index: 1; |
/*IE8*/ |
||||||
} |
box-sizing: border-box; |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
/*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/ |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
} |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-sequence-table-list-number .sequence-table-number-cell { |
||||||
.bi-path-region .path-region-label { |
-webkit-box-sizing: border-box; |
||||||
z-index: 1; |
/*Safari3.2+*/ |
||||||
} |
-moz-box-sizing: border-box; |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
/*Firefox3.5+*/ |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
-ms-box-sizing: border-box; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
/*IE8*/ |
||||||
.bi-preview-table-cell { |
box-sizing: border-box; |
||||||
min-height: 25px; |
/*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/ |
||||||
min-width: 80px; |
} |
||||||
max-width: 220px; |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
} |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
.bi-sequence-table-tree-number .sequence-table-title-cell { |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
overflow: hidden; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
overflow-x: hidden; |
||||||
.bi-preview-table { |
overflow-y: hidden; |
||||||
-webkit-user-select: initial; |
-webkit-box-sizing: border-box; |
||||||
-khtml-user-select: initial; |
/*Safari3.2+*/ |
||||||
-moz-user-select: initial; |
-moz-box-sizing: border-box; |
||||||
-ms-user-select: initial; |
/*Firefox3.5+*/ |
||||||
-o-user-select: initial; |
-ms-box-sizing: border-box; |
||||||
user-select: initial; |
/*IE8*/ |
||||||
} |
box-sizing: border-box; |
||||||
.bi-preview-table > div > table > thead > tr.odd, |
/*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/ |
||||||
.bi-preview-table > div > div > div > table > thead > tr.odd { |
} |
||||||
background-color: #eff1f4; |
.bi-sequence-table-tree-number .sequence-table-number-cell { |
||||||
} |
-webkit-box-sizing: border-box; |
||||||
.bi-theme-dark .bi-preview-table > div > table > thead > tr.odd, |
/*Safari3.2+*/ |
||||||
.bi-theme-dark .bi-preview-table > div > div > div > table > thead > tr.odd { |
-moz-box-sizing: border-box; |
||||||
background-color: #191b2b; |
/*Firefox3.5+*/ |
||||||
} |
-ms-box-sizing: border-box; |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
/*IE8*/ |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
box-sizing: border-box; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
/*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/ |
||||||
.bi-preview-table-header-cell { |
} |
||||||
font-weight: bold; |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
min-height: 25px; |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
min-width: 80px; |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
max-width: 220px; |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
} |
.bi-year-popup .year-popup-navigation { |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
line-height: 30px; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
} |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-year-popup .year-popup-navigation > .center-element { |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
border-left: 1px solid #d4dadd; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
} |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-year-popup .year-popup-navigation > .first-element { |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
border-left: none; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
} |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-theme-dark .bi-year-popup .year-popup-navigation > .center-element { |
||||||
.bi-quarter-trigger { |
border-left: 1px solid #525466; |
||||||
-webkit-border-radius: 2px; |
} |
||||||
-moz-border-radius: 2px; |
.bi-theme-dark .bi-year-popup .year-popup-navigation > .first-element { |
||||||
border-radius: 2px; |
border-left: none; |
||||||
} |
} |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
.bi-year-trigger { |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
-webkit-border-radius: 2px; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
-moz-border-radius: 2px; |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
border-radius: 2px; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
} |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
|
||||||
.bi-relation-view-region .relation-view-region-container { |
|
||||||
z-index: 1; |
|
||||||
-webkit-border-radius: 2px; |
|
||||||
-moz-border-radius: 2px; |
|
||||||
border-radius: 2px; |
|
||||||
} |
|
||||||
.bi-relation-view-region .relation-view-region-container.other-package { |
|
||||||
border-style: dashed; |
|
||||||
} |
|
||||||
/****添加计算宽度的--运算符直接需要space****/ |
|
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
|
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
|
||||||
.bi-sequence-table-dynamic-number .sequence-table-title-cell { |
|
||||||
overflow: hidden; |
|
||||||
overflow-x: hidden; |
|
||||||
overflow-y: hidden; |
|
||||||
-webkit-box-sizing: border-box; |
|
||||||
/*Safari3.2+*/ |
|
||||||
-moz-box-sizing: border-box; |
|
||||||
/*Firefox3.5+*/ |
|
||||||
-ms-box-sizing: border-box; |
|
||||||
/*IE8*/ |
|
||||||
box-sizing: border-box; |
|
||||||
/*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/ |
|
||||||
} |
|
||||||
.bi-sequence-table-dynamic-number .sequence-table-number-cell { |
|
||||||
-webkit-box-sizing: border-box; |
|
||||||
/*Safari3.2+*/ |
|
||||||
-moz-box-sizing: border-box; |
|
||||||
/*Firefox3.5+*/ |
|
||||||
-ms-box-sizing: border-box; |
|
||||||
/*IE8*/ |
|
||||||
box-sizing: border-box; |
|
||||||
/*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/ |
|
||||||
} |
|
||||||
/****添加计算宽度的--运算符直接需要space****/ |
|
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
|
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
|
||||||
.bi-sequence-table-list-number .sequence-table-title-cell { |
|
||||||
overflow: hidden; |
|
||||||
overflow-x: hidden; |
|
||||||
overflow-y: hidden; |
|
||||||
-webkit-box-sizing: border-box; |
|
||||||
/*Safari3.2+*/ |
|
||||||
-moz-box-sizing: border-box; |
|
||||||
/*Firefox3.5+*/ |
|
||||||
-ms-box-sizing: border-box; |
|
||||||
/*IE8*/ |
|
||||||
box-sizing: border-box; |
|
||||||
/*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/ |
|
||||||
} |
|
||||||
.bi-sequence-table-list-number .sequence-table-number-cell { |
|
||||||
-webkit-box-sizing: border-box; |
|
||||||
/*Safari3.2+*/ |
|
||||||
-moz-box-sizing: border-box; |
|
||||||
/*Firefox3.5+*/ |
|
||||||
-ms-box-sizing: border-box; |
|
||||||
/*IE8*/ |
|
||||||
box-sizing: border-box; |
|
||||||
/*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/ |
|
||||||
} |
|
||||||
/****添加计算宽度的--运算符直接需要space****/ |
|
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
|
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
|
||||||
/****添加计算宽度的--运算符直接需要space****/ |
|
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
|
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
|
||||||
.bi-sequence-table-tree-number .sequence-table-title-cell { |
|
||||||
overflow: hidden; |
|
||||||
overflow-x: hidden; |
|
||||||
overflow-y: hidden; |
|
||||||
-webkit-box-sizing: border-box; |
|
||||||
/*Safari3.2+*/ |
|
||||||
-moz-box-sizing: border-box; |
|
||||||
/*Firefox3.5+*/ |
|
||||||
-ms-box-sizing: border-box; |
|
||||||
/*IE8*/ |
|
||||||
box-sizing: border-box; |
|
||||||
/*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/ |
|
||||||
} |
|
||||||
.bi-sequence-table-tree-number .sequence-table-number-cell { |
|
||||||
-webkit-box-sizing: border-box; |
|
||||||
/*Safari3.2+*/ |
|
||||||
-moz-box-sizing: border-box; |
|
||||||
/*Firefox3.5+*/ |
|
||||||
-ms-box-sizing: border-box; |
|
||||||
/*IE8*/ |
|
||||||
box-sizing: border-box; |
|
||||||
/*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/ |
|
||||||
} |
|
||||||
/****添加计算宽度的--运算符直接需要space****/ |
|
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
|
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
|
||||||
/****添加计算宽度的--运算符直接需要space****/ |
|
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
|
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
|
||||||
/****添加计算宽度的--运算符直接需要space****/ |
|
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
|
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
|
||||||
.bi-year-popup .year-popup-navigation { |
|
||||||
line-height: 30px; |
|
||||||
color: #3f8ce8; |
|
||||||
} |
|
||||||
.bi-year-popup .year-popup-navigation > .center-element { |
|
||||||
border-left: 1px solid #d4dadd; |
|
||||||
} |
|
||||||
.bi-year-popup .year-popup-navigation > .first-element { |
|
||||||
border-left: none; |
|
||||||
} |
|
||||||
.bi-theme-dark .bi-year-popup .year-popup-navigation > .center-element { |
|
||||||
border-left: 1px solid #525466; |
|
||||||
} |
|
||||||
.bi-theme-dark .bi-year-popup .year-popup-navigation > .first-element { |
|
||||||
border-left: none; |
|
||||||
} |
|
||||||
/****添加计算宽度的--运算符直接需要space****/ |
|
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
|
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
|
||||||
.bi-year-trigger { |
|
||||||
-webkit-border-radius: 2px; |
|
||||||
-moz-border-radius: 2px; |
|
||||||
border-radius: 2px; |
|
||||||
} |
|
||||||
|
@ -1,6 +1,3 @@ |
|||||||
/****添加计算宽度的--运算符直接需要space****/ |
|
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
|
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
|
||||||
.demo-face .face-config .config-label { |
.demo-face .face-config .config-label { |
||||||
font-size: 14px; |
font-size: 14px; |
||||||
} |
} |
||||||
|
@ -1,3 +0,0 @@ |
|||||||
/****添加计算宽度的--运算符直接需要space****/ |
|
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
|
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
|
@ -1,3 +0,0 @@ |
|||||||
/****添加计算宽度的--运算符直接需要space****/ |
|
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
|
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
|
@ -1,3 +0,0 @@ |
|||||||
/****添加计算宽度的--运算符直接需要space****/ |
|
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
|
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
|
@ -0,0 +1,215 @@ |
|||||||
|
/** |
||||||
|
* guy |
||||||
|
* 二级树 |
||||||
|
* @class BI.PlatformLevelTree |
||||||
|
* @extends BI.Select |
||||||
|
*/ |
||||||
|
BI.PlatformLevelTree = BI.inherit(BI.Widget, { |
||||||
|
props: { |
||||||
|
baseCls: "platform-level-tree", |
||||||
|
itemsCreator: BI.emptyFn |
||||||
|
}, |
||||||
|
|
||||||
|
render: function () { |
||||||
|
var self = this, o = this.options; |
||||||
|
this.tree = BI.createWidget({ |
||||||
|
type: "bi.custom_tree", |
||||||
|
element: this, |
||||||
|
expander: { |
||||||
|
type: "bi.select_tree_expander", |
||||||
|
isDefaultInit: false, |
||||||
|
el: {}, |
||||||
|
popup: { |
||||||
|
type: "bi.custom_tree" |
||||||
|
} |
||||||
|
}, |
||||||
|
|
||||||
|
itemsCreator: function (op, callback) { |
||||||
|
o.itemsCreator(op, function (items) { |
||||||
|
callback(self._formatItems(items)) |
||||||
|
}) |
||||||
|
}, |
||||||
|
|
||||||
|
el: { |
||||||
|
type: "bi.loader", |
||||||
|
next: false, |
||||||
|
el: { |
||||||
|
type: "bi.button_tree", |
||||||
|
chooseType: 0, |
||||||
|
layouts: [{ |
||||||
|
type: "bi.vertical" |
||||||
|
}] |
||||||
|
} |
||||||
|
} |
||||||
|
}); |
||||||
|
this.tree.on(BI.CustomTree.EVENT_CHANGE, function () { |
||||||
|
self.fireEvent(BI.PlatformLevelTree.EVENT_CHANGE, arguments); |
||||||
|
}) |
||||||
|
}, |
||||||
|
|
||||||
|
_formatItems: function (nodes) { |
||||||
|
var self = this; |
||||||
|
BI.each(nodes, function (i, node) { |
||||||
|
var extend = {}; |
||||||
|
if (node.isParent === true || BI.isNotEmptyArray(node.children)) { |
||||||
|
switch (i) { |
||||||
|
case 0 : |
||||||
|
extend.type = "bi.multilayer_select_tree_first_plus_group_node"; |
||||||
|
break; |
||||||
|
case nodes.length - 1 : |
||||||
|
extend.type = "bi.multilayer_select_tree_last_plus_group_node"; |
||||||
|
break; |
||||||
|
default : |
||||||
|
extend.type = "bi.multilayer_select_tree_mid_plus_group_node"; |
||||||
|
break; |
||||||
|
} |
||||||
|
BI.defaults(node, extend); |
||||||
|
} else { |
||||||
|
switch (i) { |
||||||
|
case nodes.length - 1: |
||||||
|
extend.type = "bi.multilayer_single_tree_last_tree_leaf_item"; |
||||||
|
break; |
||||||
|
default : |
||||||
|
extend.type = "bi.multilayer_single_tree_mid_tree_leaf_item"; |
||||||
|
} |
||||||
|
BI.defaults(node, extend); |
||||||
|
} |
||||||
|
}); |
||||||
|
return nodes; |
||||||
|
}, |
||||||
|
|
||||||
|
populate: function () { |
||||||
|
this.tree.populate(); |
||||||
|
}, |
||||||
|
|
||||||
|
getValue: function () { |
||||||
|
return this.tree.getValue(); |
||||||
|
} |
||||||
|
}); |
||||||
|
BI.PlatformLevelTree.EVENT_CHANGE = "EVENT_CHANGE"; |
||||||
|
BI.shortcut("bi.platform_level_tree", BI.PlatformLevelTree); |
||||||
|
|
||||||
|
|
||||||
|
BI.DemoLevelTree = BI.inherit(BI.Widget, { |
||||||
|
|
||||||
|
render: function () { |
||||||
|
var self = this; |
||||||
|
return { |
||||||
|
type: "bi.vtape", |
||||||
|
items: [{ |
||||||
|
el: { |
||||||
|
type: "bi.platform_level_tree", |
||||||
|
ref: function () { |
||||||
|
self.tree = this; |
||||||
|
}, |
||||||
|
itemsCreator: function (op, callback) { |
||||||
|
if (!op.node) {//根节点
|
||||||
|
callback([{ |
||||||
|
"id": 1, |
||||||
|
"pId": 0, |
||||||
|
text: "A", |
||||||
|
value: 1, |
||||||
|
isParent: true |
||||||
|
}, { |
||||||
|
"id": 2, |
||||||
|
"pId": 0, |
||||||
|
"text": "B", |
||||||
|
value: 2, |
||||||
|
isParent: true, |
||||||
|
open: true, |
||||||
|
}]) |
||||||
|
} else { |
||||||
|
if (op.node.id == 1) { |
||||||
|
callback([ |
||||||
|
{ |
||||||
|
"id": 11, |
||||||
|
"pId": 1, |
||||||
|
"text": "test11", |
||||||
|
value: 11, |
||||||
|
layer: 1, |
||||||
|
isParent: true |
||||||
|
}, |
||||||
|
{ |
||||||
|
"id": 12, |
||||||
|
"pId": 1, |
||||||
|
"text": "test12", |
||||||
|
value: 12, |
||||||
|
layer: 1, |
||||||
|
}, |
||||||
|
{ |
||||||
|
"id": 13, |
||||||
|
"pId": 1, |
||||||
|
"text": "test13", |
||||||
|
value: 13, |
||||||
|
layer: 1, |
||||||
|
}, |
||||||
|
{ |
||||||
|
"id": 14, |
||||||
|
"pId": 1, |
||||||
|
"text": "test14", |
||||||
|
value: 14, |
||||||
|
layer: 1, |
||||||
|
height: 35 |
||||||
|
}, |
||||||
|
{ |
||||||
|
"id": 15, |
||||||
|
"pId": 1, |
||||||
|
"text": "test15", |
||||||
|
value: 15, |
||||||
|
layer: 1, |
||||||
|
}, |
||||||
|
{ |
||||||
|
"id": 16, |
||||||
|
"pId": 1, |
||||||
|
"text": "test16", |
||||||
|
value: 16, |
||||||
|
layer: 1, |
||||||
|
}, |
||||||
|
{"id": 17, "pId": 1, "text": "test17", layer: 1, value: 17} |
||||||
|
]) |
||||||
|
} else if (op.node.id == 2) { |
||||||
|
callback([{ |
||||||
|
"id": 21, |
||||||
|
"pId": 2, |
||||||
|
"text": "test21", |
||||||
|
value: 21, |
||||||
|
layer: 1, |
||||||
|
}, |
||||||
|
{ |
||||||
|
"id": 22, |
||||||
|
"pId": 2, |
||||||
|
"text": "test22", |
||||||
|
value: 22, |
||||||
|
layer: 1, |
||||||
|
}]) |
||||||
|
} else if (op.node.id == 11) { |
||||||
|
callback([{ |
||||||
|
"id": 111, |
||||||
|
"pId": 11, |
||||||
|
"text": "test111", |
||||||
|
value: 111, |
||||||
|
layer: 2, |
||||||
|
}]) |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
}, { |
||||||
|
el: { |
||||||
|
type: "bi.button", |
||||||
|
text: "确定", |
||||||
|
handler: function () { |
||||||
|
BI.Msg.toast(JSON.stringify(self.tree.getValue())); |
||||||
|
} |
||||||
|
}, |
||||||
|
height: 25 |
||||||
|
}] |
||||||
|
|
||||||
|
} |
||||||
|
}, |
||||||
|
|
||||||
|
mounted: function () { |
||||||
|
|
||||||
|
} |
||||||
|
}); |
||||||
|
BI.shortcut("demo.platform_level_tree", BI.DemoLevelTree); |
@ -1,188 +1,188 @@ |
|||||||
Demo.CORE_CONFIG = [{ |
Demo.CORE_CONFIG = [{ |
||||||
id: 1, |
id: 1, |
||||||
text: "核心控件", |
text: "核心控件", |
||||||
}, { |
}, { |
||||||
id: 101, |
id: 101, |
||||||
pId: 1, |
pId: 1, |
||||||
text: "布局" |
text: "布局" |
||||||
}, { |
}, { |
||||||
pId: 101, |
pId: 101, |
||||||
text: "bi.center_adapt", |
text: "自适应居中bi.center_adapt", |
||||||
value: "demo.center_adapt" |
value: "demo.center_adapt" |
||||||
}, { |
}, { |
||||||
pId: 101, |
pId: 101, |
||||||
text: "bi.vertical_adapt", |
text: "自适应垂直居中bi.vertical_adapt", |
||||||
value: "demo.vertical_adapt" |
value: "demo.vertical_adapt" |
||||||
}, { |
}, { |
||||||
pId: 101, |
pId: 101, |
||||||
text: "bi.horizontal_adapt", |
text: "自适应水平居中bi.horizontal_adapt", |
||||||
value: "demo.horizontal_adapt" |
value: "demo.horizontal_adapt" |
||||||
}, { |
}, { |
||||||
pId: 101, |
pId: 101, |
||||||
text: "bi.horizontal_auto", |
text: "margin-auto自适应水平居中bi.horizontal_auto", |
||||||
value: "demo.horizontal_auto" |
value: "demo.horizontal_auto" |
||||||
}, { |
}, { |
||||||
pId: 101, |
pId: 101, |
||||||
text: "bi.horizontal_float", |
text: "float水平居中bi.horizontal_float", |
||||||
value: "demo.horizontal_float" |
value: "demo.horizontal_float" |
||||||
}, { |
}, { |
||||||
pId: 101, |
pId: 101, |
||||||
text: "bi.left_right_vertical_adapt", |
text: "左右垂直居中bi.left_right_vertical_adapt", |
||||||
value: "demo.left_right_vertical_adapt" |
value: "demo.left_right_vertical_adapt" |
||||||
}, { |
}, { |
||||||
pId: 101, |
pId: 101, |
||||||
text: "bi.center", |
text: "bi.center", |
||||||
value: "demo.center_layout" |
value: "demo.center_layout" |
||||||
}, { |
}, { |
||||||
pId: 101, |
pId: 101, |
||||||
text: "bi.float_center", |
text: "bi.float_center", |
||||||
value: "demo.float_center" |
value: "demo.float_center" |
||||||
}, { |
}, { |
||||||
pId: 101, |
pId: 101, |
||||||
text: "bi.vertical", |
text: "垂直流式bi.vertical", |
||||||
value: "demo.vertical" |
value: "demo.vertical" |
||||||
}, { |
}, { |
||||||
pId: 101, |
pId: 101, |
||||||
text: "bi.horizontal", |
text: "水平流式bi.horizontal", |
||||||
value: "demo.horizontal" |
value: "demo.horizontal" |
||||||
}, { |
}, { |
||||||
pId: 101, |
pId: 101, |
||||||
text: "bi.border", |
text: "bi.border", |
||||||
value: "demo.border" |
value: "demo.border" |
||||||
}, { |
}, { |
||||||
pId: 101, |
pId: 101, |
||||||
text: "bi.left, bi.right", |
text: "bi.left, bi.right", |
||||||
value: "demo.flow" |
value: "demo.flow" |
||||||
}, { |
}, { |
||||||
pId: 101, |
pId: 101, |
||||||
text: "bi.inline", |
text: "bi.inline", |
||||||
value: "demo.inline" |
value: "demo.inline" |
||||||
}, { |
}, { |
||||||
pId: 101, |
pId: 101, |
||||||
text: "bi.htape", |
text: "bi.htape", |
||||||
value: "demo.htape" |
value: "demo.htape" |
||||||
}, { |
}, { |
||||||
pId: 101, |
pId: 101, |
||||||
text: "bi.vtape", |
text: "bi.vtape", |
||||||
value: "demo.vtape" |
value: "demo.vtape" |
||||||
}, { |
}, { |
||||||
pId: 101, |
pId: 101, |
||||||
text: "bi.grid", |
text: "bi.grid", |
||||||
value: "demo.grid" |
value: "demo.grid" |
||||||
}, { |
}, { |
||||||
pId: 101, |
pId: 101, |
||||||
text: "bi.table", |
text: "bi.table", |
||||||
value: "demo.table_layout" |
value: "demo.table_layout" |
||||||
}, { |
}, { |
||||||
pId: 101, |
pId: 101, |
||||||
text: "bi.td", |
text: "bi.td", |
||||||
value: "demo.td" |
value: "demo.td" |
||||||
}, { |
}, { |
||||||
pId: 1, |
pId: 1, |
||||||
id: 102, |
id: 102, |
||||||
text: "抽象控件" |
text: "抽象控件" |
||||||
}, { |
}, { |
||||||
pId: 102, |
pId: 102, |
||||||
text: "bi.button_group", |
text: "bi.button_group", |
||||||
value: "demo.button_group" |
value: "demo.button_group" |
||||||
}, { |
}, { |
||||||
pId: 102, |
pId: 102, |
||||||
text: "bi.button_tree", |
text: "bi.button_tree", |
||||||
value: "demo.button_tree" |
value: "demo.button_tree" |
||||||
}, { |
}, { |
||||||
pId: 102, |
pId: 102, |
||||||
text: "bi.virtual_group", |
text: "bi.virtual_group", |
||||||
value: "demo.virtual_group" |
value: "demo.virtual_group" |
||||||
}, { |
}, { |
||||||
pId: 102, |
pId: 102, |
||||||
text: "bi.custom_tree", |
text: "bi.custom_tree", |
||||||
value: "demo.custom_tree" |
value: "demo.custom_tree" |
||||||
}, { |
}, { |
||||||
pId: 102, |
pId: 102, |
||||||
text: "bi.grid_view", |
text: "bi.grid_view", |
||||||
value: "demo.grid_view" |
value: "demo.grid_view" |
||||||
}, { |
}, { |
||||||
pId: 102, |
pId: 102, |
||||||
text: "bi.collection_view", |
text: "bi.collection_view", |
||||||
value: "demo.collection_view" |
value: "demo.collection_view" |
||||||
}, { |
}, { |
||||||
pId: 102, |
pId: 102, |
||||||
text: "bi.list_view", |
text: "bi.list_view", |
||||||
value: "demo.list_view" |
value: "demo.list_view" |
||||||
}, { |
}, { |
||||||
pId: 102, |
pId: 102, |
||||||
text: "bi.virtual_list", |
text: "bi.virtual_list", |
||||||
value: "demo.virtual_list" |
value: "demo.virtual_list" |
||||||
}, { |
}, { |
||||||
pId: 102, |
pId: 102, |
||||||
id: 10201, |
id: 10201, |
||||||
text: "组合控件" |
text: "组合控件" |
||||||
}, { |
}, { |
||||||
pId: 10201, |
pId: 10201, |
||||||
text: "bi.combo", |
text: "bi.combo", |
||||||
value: "demo.combo" |
value: "demo.combo" |
||||||
}, { |
}, { |
||||||
pId: 10201, |
pId: 10201, |
||||||
text: "bi.expander", |
text: "bi.expander", |
||||||
value: "demo.expander" |
value: "demo.expander" |
||||||
}, { |
}, { |
||||||
pId: 10201, |
pId: 10201, |
||||||
text: "bi.group_combo", |
text: "bi.group_combo", |
||||||
value: "demo.group_combo" |
value: "demo.group_combo" |
||||||
}, { |
}, { |
||||||
pId: 10201, |
pId: 10201, |
||||||
text: "bi.loader", |
text: "bi.loader", |
||||||
value: "demo.loader" |
value: "demo.loader" |
||||||
}, { |
}, { |
||||||
pId: 10201, |
pId: 10201, |
||||||
text: "bi.navigation", |
text: "bi.navigation", |
||||||
value: "demo.navigation" |
value: "demo.navigation" |
||||||
}, { |
}, { |
||||||
pId: 10201, |
pId: 10201, |
||||||
text: "bi.searcher", |
text: "bi.searcher", |
||||||
value: "demo.searcher" |
value: "demo.searcher" |
||||||
}, { |
}, { |
||||||
pId: 10201, |
pId: 10201, |
||||||
text: "bi.switcher", |
text: "bi.switcher", |
||||||
value: "demo.switcher" |
value: "demo.switcher" |
||||||
}, { |
}, { |
||||||
pId: 10201, |
pId: 10201, |
||||||
text: "bi.tab", |
text: "bi.tab", |
||||||
value: "demo.tab" |
value: "demo.tab" |
||||||
}, { |
}, { |
||||||
pId: 102, |
pId: 102, |
||||||
id: 10202, |
id: 10202, |
||||||
text: "弹出层" |
text: "弹出层" |
||||||
}, { |
}, { |
||||||
pId: 10202, |
pId: 10202, |
||||||
text: "bi.layer_float_box", |
text: "bi.layer_float_box", |
||||||
value: "demo.layer_float_box" |
value: "demo.layer_float_box" |
||||||
}, { |
}, { |
||||||
pId: 10202, |
pId: 10202, |
||||||
text: "bi.layer_popup", |
text: "bi.layer_popup", |
||||||
value: "demo.layer_popup" |
value: "demo.layer_popup" |
||||||
}, { |
}, { |
||||||
pId: 10202, |
pId: 10202, |
||||||
text: "bi.layer_searcher", |
text: "bi.layer_searcher", |
||||||
value: "demo.layer_searcher" |
value: "demo.layer_searcher" |
||||||
}, { |
}, { |
||||||
pId: 1, |
pId: 1, |
||||||
text: "widget", |
text: "widget", |
||||||
value: "demo.widget" |
value: "demo.widget" |
||||||
}, { |
}, { |
||||||
pId: 1, |
pId: 1, |
||||||
text: "single", |
text: "single", |
||||||
value: "demo.single" |
value: "demo.single" |
||||||
}, { |
}, { |
||||||
pId: 1, |
pId: 1, |
||||||
text: "BasicButton", |
text: "BasicButton", |
||||||
value: "demo.basic_button" |
value: "demo.basic_button" |
||||||
}, { |
}, { |
||||||
pId: 1, |
pId: 1, |
||||||
text: "NodeButton", |
text: "NodeButton", |
||||||
value: "demo.node_button" |
value: "demo.node_button" |
||||||
}, { |
}, { |
||||||
pId: 1, |
pId: 1, |
||||||
text: "pane", |
text: "pane", |
||||||
value: "demo.pane" |
value: "demo.pane" |
||||||
}]; |
}]; |
@ -0,0 +1,13 @@ |
|||||||
|
/** |
||||||
|
* Created by User on 2017/3/22. |
||||||
|
*/ |
||||||
|
Demo.RelationView = BI.inherit(BI.Widget, { |
||||||
|
props: { |
||||||
|
}, |
||||||
|
render: function () { |
||||||
|
return { |
||||||
|
type: "bi.interactive_arrangement", |
||||||
|
}; |
||||||
|
} |
||||||
|
}); |
||||||
|
BI.shortcut("demo.interactive_arrangement", Demo.RelationView); |
File diff suppressed because one or more lines are too long
@ -1,93 +1,93 @@ |
|||||||
if(![].indexOf){ |
if(![].indexOf){ |
||||||
/** |
/** |
||||||
* 检查指定的值是否在数组中 |
* 检查指定的值是否在数组中 |
||||||
* @param {Object} o 要检查的值 |
* @param {Object} o 要检查的值 |
||||||
* @return {Number} o在数组中的索引(如果不在数组中则返回-1) |
* @return {Number} o在数组中的索引(如果不在数组中则返回-1) |
||||||
*/ |
*/ |
||||||
Array.prototype.indexOf = function (o) { |
Array.prototype.indexOf = function (o) { |
||||||
for (var i = 0, len = this.length; i < len; i++) { |
for (var i = 0, len = this.length; i < len; i++) { |
||||||
if (_.isEqual(o, this[i])) { |
if (_.isEqual(o, this[i])) { |
||||||
return i; |
return i; |
||||||
} |
} |
||||||
} |
} |
||||||
return -1; |
return -1; |
||||||
} |
} |
||||||
} |
} |
||||||
if(![].lastIndexOf){ |
if(![].lastIndexOf){ |
||||||
/** |
/** |
||||||
* 检查指定的值是否在数组中 |
* 检查指定的值是否在数组中 |
||||||
* ie67不支持数组的这个方法 |
* ie67不支持数组的这个方法 |
||||||
* @param {Object} o 要检查的值 |
* @param {Object} o 要检查的值 |
||||||
* @return {Number} o在数组中的索引(如果不在数组中则返回-1) |
* @return {Number} o在数组中的索引(如果不在数组中则返回-1) |
||||||
*/ |
*/ |
||||||
Array.prototype.lastIndexOf = function (o) { |
Array.prototype.lastIndexOf = function (o) { |
||||||
for (var len = this.length, i = len - 1; i >= 0; i--) { |
for (var len = this.length, i = len - 1; i >= 0; i--) { |
||||||
if (_.isEqual(o, this[i])) { |
if (_.isEqual(o, this[i])) { |
||||||
return i; |
return i; |
||||||
} |
} |
||||||
} |
} |
||||||
return -1; |
return -1; |
||||||
} |
} |
||||||
}/** |
}/** |
||||||
* 特殊情况 |
* 特殊情况 |
||||||
* Created by wang on 15/6/23. |
* Created by wang on 15/6/23. |
||||||
*/ |
*/ |
||||||
//解决console未定义问题 guy
|
//解决console未定义问题 guy
|
||||||
window.console = window.console || (function () { |
window.console = window.console || (function () { |
||||||
var c = {}; |
var c = {}; |
||||||
c.log = c.warn = c.debug = c.info = c.error = c.time = c.dir = c.profile |
c.log = c.warn = c.debug = c.info = c.error = c.time = c.dir = c.profile |
||||||
= c.clear = c.exception = c.trace = c.assert = function () { |
= c.clear = c.exception = c.trace = c.assert = function () { |
||||||
}; |
}; |
||||||
return c; |
return c; |
||||||
})(); |
})(); |
||||||
/* |
/* |
||||||
* 前端缓存 |
* 前端缓存 |
||||||
*/ |
*/ |
||||||
window.localStorage || (window.localStorage = { |
window.localStorage || (window.localStorage = { |
||||||
items: {}, |
items: {}, |
||||||
setItem: function (k, v) { |
setItem: function (k, v) { |
||||||
BI.Cache.addCookie(k, v); |
BI.Cache.addCookie(k, v); |
||||||
}, |
}, |
||||||
getItem: function (k) { |
getItem: function (k) { |
||||||
return BI.Cache.getCookie(k); |
return BI.Cache.getCookie(k); |
||||||
}, |
}, |
||||||
removeItem: function (k) { |
removeItem: function (k) { |
||||||
BI.Cache.deleteCookie(k); |
BI.Cache.deleteCookie(k); |
||||||
}, |
}, |
||||||
key: function () { |
key: function () { |
||||||
|
|
||||||
}, |
}, |
||||||
clear: function () { |
clear: function () { |
||||||
this.items = {}; |
this.items = {}; |
||||||
} |
} |
||||||
});//修复ie9下sort方法的bug
|
});//修复ie9下sort方法的bug
|
||||||
!function (window) { |
!function (window) { |
||||||
var ua = window.navigator.userAgent.toLowerCase(), |
var ua = window.navigator.userAgent.toLowerCase(), |
||||||
reg = /msie|applewebkit.+safari/; |
reg = /msie|applewebkit.+safari/; |
||||||
if (reg.test(ua)) { |
if (reg.test(ua)) { |
||||||
var _sort = Array.prototype.sort; |
var _sort = Array.prototype.sort; |
||||||
Array.prototype.sort = function (fn) { |
Array.prototype.sort = function (fn) { |
||||||
if (!!fn && typeof fn === 'function') { |
if (!!fn && typeof fn === 'function') { |
||||||
if (this.length < 2) { |
if (this.length < 2) { |
||||||
return this; |
return this; |
||||||
} |
} |
||||||
var i = 0, j = i + 1, l = this.length, tmp, r = false, t = 0; |
var i = 0, j = i + 1, l = this.length, tmp, r = false, t = 0; |
||||||
for (; i < l; i++) { |
for (; i < l; i++) { |
||||||
for (j = i + 1; j < l; j++) { |
for (j = i + 1; j < l; j++) { |
||||||
t = fn.call(this, this[i], this[j]); |
t = fn.call(this, this[i], this[j]); |
||||||
r = (typeof t === 'number' ? t : |
r = (typeof t === 'number' ? t : |
||||||
!!t ? 1 : 0) > 0; |
!!t ? 1 : 0) > 0; |
||||||
if (r === true) { |
if (r === true) { |
||||||
tmp = this[i]; |
tmp = this[i]; |
||||||
this[i] = this[j]; |
this[i] = this[j]; |
||||||
this[j] = tmp; |
this[j] = tmp; |
||||||
} |
} |
||||||
} |
} |
||||||
} |
} |
||||||
return this; |
return this; |
||||||
} else { |
} else { |
||||||
return _sort.call(this); |
return _sort.call(this); |
||||||
} |
} |
||||||
}; |
}; |
||||||
} |
} |
||||||
}(window); |
}(window); |
@ -1,540 +1,416 @@ |
|||||||
/****添加计算宽度的--运算符直接需要space****/ |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-arrangement .arrangement-helper { |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
background: #3f8ce8; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
z-index: 1000000000; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
} |
||||||
.bi-arrangement .arrangement-helper { |
.bi-arrangement .arrangement-block { |
||||||
background: #3f8ce8; |
z-index: 1000000000; |
||||||
z-index: 1000000000; |
} |
||||||
} |
.bi-arrangement .arrangement-drop-container { |
||||||
.bi-arrangement .arrangement-block { |
z-index: 1000000000; |
||||||
z-index: 1000000000; |
} |
||||||
} |
.bi-arrangement .arrangement-drop-container .arrangement-drop-region { |
||||||
.bi-arrangement .arrangement-drop-container { |
overflow: hidden; |
||||||
z-index: 1000000000; |
} |
||||||
} |
.bi-arrangement .arrangement-drop-container .drop-devider { |
||||||
.bi-arrangement .arrangement-drop-container .arrangement-drop-region { |
z-index: 1000000001; |
||||||
overflow: hidden; |
background: #3f8ce8; |
||||||
} |
} |
||||||
.bi-arrangement .arrangement-drop-container .drop-devider { |
.bi-arrangement .arrangement-drop-container .top-left, |
||||||
z-index: 1000000001; |
.bi-arrangement .arrangement-drop-container .top-right, |
||||||
background: #3f8ce8; |
.bi-arrangement .arrangement-drop-container .bottom-left, |
||||||
} |
.bi-arrangement .arrangement-drop-container .bottom-right, |
||||||
.bi-arrangement .arrangement-drop-container .top-left, |
.bi-arrangement .arrangement-drop-container .top-left-second, |
||||||
.bi-arrangement .arrangement-drop-container .top-right, |
.bi-arrangement .arrangement-drop-container .top-right-second, |
||||||
.bi-arrangement .arrangement-drop-container .bottom-left, |
.bi-arrangement .arrangement-drop-container .bottom-left-second, |
||||||
.bi-arrangement .arrangement-drop-container .bottom-right, |
.bi-arrangement .arrangement-drop-container .bottom-right-second, |
||||||
.bi-arrangement .arrangement-drop-container .top-left-second, |
.bi-arrangement .arrangement-drop-container .top-center, |
||||||
.bi-arrangement .arrangement-drop-container .top-right-second, |
.bi-arrangement .arrangement-drop-container .bottom-center, |
||||||
.bi-arrangement .arrangement-drop-container .bottom-left-second, |
.bi-arrangement .arrangement-drop-container .left-center, |
||||||
.bi-arrangement .arrangement-drop-container .bottom-right-second, |
.bi-arrangement .arrangement-drop-container .right-center, |
||||||
.bi-arrangement .arrangement-drop-container .top-center, |
.bi-arrangement .arrangement-drop-container .top-center-second, |
||||||
.bi-arrangement .arrangement-drop-container .bottom-center, |
.bi-arrangement .arrangement-drop-container .bottom-center-second, |
||||||
.bi-arrangement .arrangement-drop-container .left-center, |
.bi-arrangement .arrangement-drop-container .left-center-second, |
||||||
.bi-arrangement .arrangement-drop-container .right-center, |
.bi-arrangement .arrangement-drop-container .right-center-second { |
||||||
.bi-arrangement .arrangement-drop-container .top-center-second, |
z-index: 1000000001; |
||||||
.bi-arrangement .arrangement-drop-container .bottom-center-second, |
background: #3f8ce8; |
||||||
.bi-arrangement .arrangement-drop-container .left-center-second, |
} |
||||||
.bi-arrangement .arrangement-drop-container .right-center-second { |
.bi-arrangement-droppable { |
||||||
z-index: 1000000001; |
z-index: 100000; |
||||||
background: #3f8ce8; |
} |
||||||
} |
/****添加计算宽度的--运算符直接需要space****/ |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-adapt-editor .adapt-editor-text { |
||||||
.bi-arrangement-droppable { |
font-size: 14px; |
||||||
z-index: 100000; |
} |
||||||
} |
/****添加计算宽度的--运算符直接需要space****/ |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
/*************BI.SearchEditor******************/ |
||||||
.bi-adapt-editor .adapt-editor-text { |
.bi-search-editor { |
||||||
font-size: 14px; |
border: 1px solid #d4dadd; |
||||||
} |
} |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
.bi-search-editor .close-font { |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
font-size: 20px; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
} |
||||||
/*************BI.SearchEditor******************/ |
.bi-search-editor .search-font { |
||||||
.bi-search-editor { |
font-size: 20px; |
||||||
border: 1px solid #d4dadd; |
} |
||||||
} |
/****添加计算宽度的--运算符直接需要space****/ |
||||||
.bi-search-editor .close-font { |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
font-size: 20px; |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
} |
/*************BI.SearchEditor******************/ |
||||||
.bi-search-editor .search-font { |
.bi-small-search-editor .bi-editor { |
||||||
font-size: 20px; |
font-size: 12px; |
||||||
} |
} |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
.bi-small-search-editor .bi-editor .bi-input { |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
font-size: 12px; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
} |
||||||
/*************BI.SearchEditor******************/ |
.bi-small-search-editor .bi-editor .bi-label { |
||||||
.bi-small-search-editor .bi-editor { |
font-size: 12px; |
||||||
font-size: 12px; |
} |
||||||
} |
.bi-small-search-editor .close-font { |
||||||
.bi-small-search-editor .bi-editor .bi-input { |
font-size: 18px; |
||||||
font-size: 12px; |
} |
||||||
} |
.bi-small-search-editor .search-font { |
||||||
.bi-small-search-editor .bi-editor .bi-label { |
font-size: 18px; |
||||||
font-size: 12px; |
} |
||||||
} |
/****添加计算宽度的--运算符直接需要space****/ |
||||||
.bi-small-search-editor .close-font { |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
font-size: 18px; |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
} |
.bi-sign-initial-editor .sign-initial-editor-text { |
||||||
.bi-small-search-editor .search-font { |
font-size: 14px; |
||||||
font-size: 18px; |
} |
||||||
} |
/****添加计算宽度的--运算符直接需要space****/ |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-sign-style-editor .sign-style-editor-text { |
||||||
.bi-sign-initial-editor .sign-initial-editor-text { |
max-width: 100%; |
||||||
font-size: 14px; |
font-size: 12px; |
||||||
} |
} |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
.bi-sign-style-editor .sign-style-editor-tip { |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
max-width: 100%; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
font-size: 12px; |
||||||
.bi-sign-style-editor .sign-style-editor-text { |
color: #808080; |
||||||
max-width: 100%; |
} |
||||||
font-size: 12px; |
/****添加计算宽度的--运算符直接需要space****/ |
||||||
} |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
.bi-sign-style-editor .sign-style-editor-tip { |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
max-width: 100%; |
.bi-text-editor { |
||||||
font-size: 12px; |
border: 1px solid #d4dadd; |
||||||
color: #808080; |
} |
||||||
} |
/****添加计算宽度的--运算符直接需要space****/ |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
/*************BI.SearchEditor******************/ |
||||||
.bi-text-editor { |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
border: 1px solid #d4dadd; |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
} |
.bi-date-trigger { |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
-webkit-border-radius: 2px; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
-moz-border-radius: 2px; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
border-radius: 2px; |
||||||
/*************BI.SearchEditor******************/ |
} |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-down-list-popup .bi-down-list-item .list-item-text { |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
max-width: 203px; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
} |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
.bi-date-trigger { |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
-webkit-border-radius: 2px; |
.bi-excel-table > div.bottom-right > div > div > table { |
||||||
-moz-border-radius: 2px; |
border-right: 1px solid #d4dadd; |
||||||
border-radius: 2px; |
} |
||||||
} |
.bi-theme-dark .bi-excel-table > div.bottom-right > div > div > table { |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
border-right: 1px solid #525466; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
} |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-excel-table-header-cell { |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
font-weight: bold; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
} |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
.bi-down-list-popup .bi-down-list-item .list-item-text { |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
max-width: 203px; |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
} |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-file-manager-nav-button .file-manager-nav-button-text { |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
max-width: 200px; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
} |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-file-manager-nav-button .file-manager-nav-button-text.active { |
||||||
.bi-excel-table > div.bottom-right > div > div > table { |
background-color: #eff1f4; |
||||||
border-right: 1px solid #d4dadd; |
color: #999999; |
||||||
} |
} |
||||||
.bi-theme-dark .bi-excel-table > div.bottom-right > div > div > table { |
.bi-file-manager-nav-button .file-manager-nav-button-triangle { |
||||||
border-right: 1px solid #525466; |
z-index: 1; |
||||||
} |
} |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
.bi-theme-dark .bi-file-manager-nav-button .file-manager-nav-button-text.active { |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
background-color: #191b2b; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
color: #999999; |
||||||
.bi-excel-table-header-cell { |
} |
||||||
font-weight: bold; |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
} |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
.bi-fine-tuning-number-editor { |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
-webkit-border-radius: 2px; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
-moz-border-radius: 2px; |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
border-radius: 2px; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
} |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-interactive-arrangement .interactive-arrangement-dragtag-line { |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
z-index: 1000000000; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
background-color: #f07d0a; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
} |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
.bi-interactive-arrangement .interactive-arrangement-dragtag-icon { |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
z-index: 1000000000; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
} |
||||||
.bi-file-manager-nav-button .file-manager-nav-button-text { |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
max-width: 200px; |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
} |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
.bi-file-manager-nav-button .file-manager-nav-button-text.active { |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
background-color: #eff1f4; |
.bi-month-trigger { |
||||||
color: #999999; |
-webkit-border-radius: 2px; |
||||||
} |
-moz-border-radius: 2px; |
||||||
.bi-file-manager-nav-button .file-manager-nav-button-triangle { |
border-radius: 2px; |
||||||
z-index: 1; |
} |
||||||
} |
.bi-multi-select-check-pane .multi-select-check-selected { |
||||||
.bi-theme-dark .bi-file-manager-nav-button .file-manager-nav-button-text.active { |
text-decoration: underline; |
||||||
background-color: #191b2b; |
} |
||||||
color: #999999; |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
} |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
.bi-multi-select-combo .multi-select-trigger-icon-button { |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
font-size: 16px; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
} |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-multi-select-trigger { |
||||||
.bi-fine-tuning-number-editor { |
-webkit-border-radius: 2px 2px 2px 2px; |
||||||
-webkit-border-radius: 2px; |
-moz-border-radius: 2px 2px 2px 2px; |
||||||
-moz-border-radius: 2px; |
border-radius: 2px 2px 2px 2px; |
||||||
border-radius: 2px; |
} |
||||||
} |
.bi-multi-select-search-pane .multi-select-toolbar { |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
color: #e85050; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
} |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-multi-select-check-selected-button { |
||||||
.bi-interactive-arrangement .interactive-arrangement-dragtag-line { |
z-index: 1; |
||||||
z-index: 1000000000; |
} |
||||||
background-color: #f07d0a; |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
} |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
.bi-interactive-arrangement .interactive-arrangement-dragtag-icon { |
.bi-multi-tree-check-pane .multi-tree-check-selected { |
||||||
z-index: 1000000000; |
color: #3f8ce8; |
||||||
} |
} |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-multi-tree-combo .multi-select-trigger-icon-button { |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
font-size: 16px; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
} |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-multi-tree-popup .popup-view-tree { |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
min-height: 170px; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
} |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
.bi-month-trigger { |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
-webkit-border-radius: 2px; |
.bi-multi-tree-check-selected-button .trigger-check-selected { |
||||||
-moz-border-radius: 2px; |
color: #3f8ce8; |
||||||
border-radius: 2px; |
z-index: 1; |
||||||
} |
} |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-numerical-interval .numerical-interval-small-editor { |
||||||
.bi-multi-select-check-pane .multi-select-check-selected { |
-moz-border-radius-topleft: 2px; |
||||||
text-decoration: underline; |
-webkit-border-top-left-radius: 2px; |
||||||
} |
-moz-border-radius-bottomleft: 2px; |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
-webkit-border-bottom-left-radius: 2px; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
border-top-left-radius: 2px; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
border-bottom-left-radius: 2px; |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
} |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
.bi-numerical-interval .numerical-interval-big-editor { |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
-moz-border-radius-topright: 2px; |
||||||
.bi-multi-select-combo .multi-select-trigger-icon-button { |
-webkit-border-top-right-radius: 2px; |
||||||
font-size: 16px; |
-moz-border-radius-bottomright: 2px; |
||||||
} |
-webkit-border-bottom-right-radius: 2px; |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
border-top-right-radius: 2px; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
border-bottom-right-radius: 2px; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
} |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
.bi-numerical-interval .numerical-interval-big-combo { |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
-moz-border-radius-topleft: 2px; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
-webkit-border-top-left-radius: 2px; |
||||||
.bi-multi-select-trigger { |
-moz-border-radius-bottomleft: 2px; |
||||||
-webkit-border-radius: 2px 2px 2px 2px; |
-webkit-border-bottom-left-radius: 2px; |
||||||
-moz-border-radius: 2px 2px 2px 2px; |
border-top-left-radius: 2px; |
||||||
border-radius: 2px 2px 2px 2px; |
border-bottom-left-radius: 2px; |
||||||
} |
} |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
.bi-numerical-interval .numerical-interval-big-combo .bi-icon-combo-trigger .icon-combo-trigger-icon { |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
font-size: 14px; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
} |
||||||
.bi-multi-select-search-pane .multi-select-toolbar { |
.bi-numerical-interval .numerical-interval-small-combo { |
||||||
color: #e85050; |
-moz-border-radius-topright: 2px; |
||||||
} |
-webkit-border-top-right-radius: 2px; |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
-moz-border-radius-bottomright: 2px; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
-webkit-border-bottom-right-radius: 2px; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
border-top-right-radius: 2px; |
||||||
.bi-multi-select-check-selected-button { |
border-bottom-right-radius: 2px; |
||||||
z-index: 1; |
} |
||||||
} |
.bi-numerical-interval .numerical-interval-small-combo .bi-icon-combo-trigger .icon-combo-trigger-icon { |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
font-size: 14px; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
} |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-numerical-interval.number-error .bi-input { |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
color: #e85050; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
} |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
.bi-multi-tree-check-pane .multi-tree-check-selected { |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
color: #3f8ce8; |
.bi-page-table-cell { |
||||||
} |
-webkit-user-select: initial; |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
-khtml-user-select: initial; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
-moz-user-select: initial; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
-ms-user-select: initial; |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
-o-user-select: initial; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
user-select: initial; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
} |
||||||
.bi-multi-tree-combo .multi-select-trigger-icon-button { |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
font-size: 16px; |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
} |
.bi-path-chooser .path-chooser-radio { |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
z-index: 1; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
} |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-path-region .path-region-label { |
||||||
.bi-multi-tree-popup .popup-view-tree { |
z-index: 1; |
||||||
min-height: 170px; |
} |
||||||
} |
.bi-preview-table-cell { |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
min-height: 25px; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
min-width: 80px; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
max-width: 220px; |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
} |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
.bi-preview-table { |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
-webkit-user-select: initial; |
||||||
.bi-multi-tree-check-selected-button .trigger-check-selected { |
-khtml-user-select: initial; |
||||||
color: #3f8ce8; |
-moz-user-select: initial; |
||||||
z-index: 1; |
-ms-user-select: initial; |
||||||
} |
-o-user-select: initial; |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
user-select: initial; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
} |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-preview-table > div > table > thead > tr.odd, |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
.bi-preview-table > div > div > div > table > thead > tr.odd { |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
background-color: #eff1f4; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
} |
||||||
.bi-numerical-interval .numerical-interval-small-editor { |
.bi-theme-dark .bi-preview-table > div > table > thead > tr.odd, |
||||||
-moz-border-radius-topleft: 2px; |
.bi-theme-dark .bi-preview-table > div > div > div > table > thead > tr.odd { |
||||||
-webkit-border-top-left-radius: 2px; |
background-color: #191b2b; |
||||||
-moz-border-radius-bottomleft: 2px; |
} |
||||||
-webkit-border-bottom-left-radius: 2px; |
.bi-preview-table-header-cell { |
||||||
border-top-left-radius: 2px; |
font-weight: bold; |
||||||
border-bottom-left-radius: 2px; |
min-height: 25px; |
||||||
} |
min-width: 80px; |
||||||
.bi-numerical-interval .numerical-interval-big-editor { |
max-width: 220px; |
||||||
-moz-border-radius-topright: 2px; |
} |
||||||
-webkit-border-top-right-radius: 2px; |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
-moz-border-radius-bottomright: 2px; |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
-webkit-border-bottom-right-radius: 2px; |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
border-top-right-radius: 2px; |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
border-bottom-right-radius: 2px; |
.bi-quarter-trigger { |
||||||
} |
-webkit-border-radius: 2px; |
||||||
.bi-numerical-interval .numerical-interval-big-combo { |
-moz-border-radius: 2px; |
||||||
-moz-border-radius-topleft: 2px; |
border-radius: 2px; |
||||||
-webkit-border-top-left-radius: 2px; |
} |
||||||
-moz-border-radius-bottomleft: 2px; |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
-webkit-border-bottom-left-radius: 2px; |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
border-top-left-radius: 2px; |
.bi-relation-view-region .relation-view-region-container { |
||||||
border-bottom-left-radius: 2px; |
z-index: 1; |
||||||
} |
-webkit-border-radius: 2px; |
||||||
.bi-numerical-interval .numerical-interval-big-combo .bi-icon-combo-trigger .icon-combo-trigger-icon { |
-moz-border-radius: 2px; |
||||||
font-size: 14px; |
border-radius: 2px; |
||||||
} |
} |
||||||
.bi-numerical-interval .numerical-interval-small-combo { |
.bi-relation-view-region .relation-view-region-container.other-package { |
||||||
-moz-border-radius-topright: 2px; |
border-style: dashed; |
||||||
-webkit-border-top-right-radius: 2px; |
} |
||||||
-moz-border-radius-bottomright: 2px; |
.bi-sequence-table-dynamic-number .sequence-table-title-cell { |
||||||
-webkit-border-bottom-right-radius: 2px; |
overflow: hidden; |
||||||
border-top-right-radius: 2px; |
overflow-x: hidden; |
||||||
border-bottom-right-radius: 2px; |
overflow-y: hidden; |
||||||
} |
-webkit-box-sizing: border-box; |
||||||
.bi-numerical-interval .numerical-interval-small-combo .bi-icon-combo-trigger .icon-combo-trigger-icon { |
/*Safari3.2+*/ |
||||||
font-size: 14px; |
-moz-box-sizing: border-box; |
||||||
} |
/*Firefox3.5+*/ |
||||||
.bi-numerical-interval.number-error .bi-input { |
-ms-box-sizing: border-box; |
||||||
color: #e85050; |
/*IE8*/ |
||||||
} |
box-sizing: border-box; |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
/*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/ |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
} |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-sequence-table-dynamic-number .sequence-table-number-cell { |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
-webkit-box-sizing: border-box; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
/*Safari3.2+*/ |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
-moz-box-sizing: border-box; |
||||||
.bi-page-table-cell { |
/*Firefox3.5+*/ |
||||||
-webkit-user-select: initial; |
-ms-box-sizing: border-box; |
||||||
-khtml-user-select: initial; |
/*IE8*/ |
||||||
-moz-user-select: initial; |
box-sizing: border-box; |
||||||
-ms-user-select: initial; |
/*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/ |
||||||
-o-user-select: initial; |
} |
||||||
user-select: initial; |
.bi-sequence-table-list-number .sequence-table-title-cell { |
||||||
} |
overflow: hidden; |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
overflow-x: hidden; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
overflow-y: hidden; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
-webkit-box-sizing: border-box; |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
/*Safari3.2+*/ |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
-moz-box-sizing: border-box; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
/*Firefox3.5+*/ |
||||||
.bi-path-chooser .path-chooser-radio { |
-ms-box-sizing: border-box; |
||||||
z-index: 1; |
/*IE8*/ |
||||||
} |
box-sizing: border-box; |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
/*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/ |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
} |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-sequence-table-list-number .sequence-table-number-cell { |
||||||
.bi-path-region .path-region-label { |
-webkit-box-sizing: border-box; |
||||||
z-index: 1; |
/*Safari3.2+*/ |
||||||
} |
-moz-box-sizing: border-box; |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
/*Firefox3.5+*/ |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
-ms-box-sizing: border-box; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
/*IE8*/ |
||||||
.bi-preview-table-cell { |
box-sizing: border-box; |
||||||
min-height: 25px; |
/*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/ |
||||||
min-width: 80px; |
} |
||||||
max-width: 220px; |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
} |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
.bi-sequence-table-tree-number .sequence-table-title-cell { |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
overflow: hidden; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
overflow-x: hidden; |
||||||
.bi-preview-table { |
overflow-y: hidden; |
||||||
-webkit-user-select: initial; |
-webkit-box-sizing: border-box; |
||||||
-khtml-user-select: initial; |
/*Safari3.2+*/ |
||||||
-moz-user-select: initial; |
-moz-box-sizing: border-box; |
||||||
-ms-user-select: initial; |
/*Firefox3.5+*/ |
||||||
-o-user-select: initial; |
-ms-box-sizing: border-box; |
||||||
user-select: initial; |
/*IE8*/ |
||||||
} |
box-sizing: border-box; |
||||||
.bi-preview-table > div > table > thead > tr.odd, |
/*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/ |
||||||
.bi-preview-table > div > div > div > table > thead > tr.odd { |
} |
||||||
background-color: #eff1f4; |
.bi-sequence-table-tree-number .sequence-table-number-cell { |
||||||
} |
-webkit-box-sizing: border-box; |
||||||
.bi-theme-dark .bi-preview-table > div > table > thead > tr.odd, |
/*Safari3.2+*/ |
||||||
.bi-theme-dark .bi-preview-table > div > div > div > table > thead > tr.odd { |
-moz-box-sizing: border-box; |
||||||
background-color: #191b2b; |
/*Firefox3.5+*/ |
||||||
} |
-ms-box-sizing: border-box; |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
/*IE8*/ |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
box-sizing: border-box; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
/*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/ |
||||||
.bi-preview-table-header-cell { |
} |
||||||
font-weight: bold; |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
min-height: 25px; |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
min-width: 80px; |
/****** common color(常用颜色,可用于普遍场景) *****/ |
||||||
max-width: 220px; |
/**** custom color(自定义颜色,用于特定场景) ****/ |
||||||
} |
.bi-year-popup .year-popup-navigation { |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
line-height: 30px; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
} |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-year-popup .year-popup-navigation > .center-element { |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
border-left: 1px solid #d4dadd; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
} |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-year-popup .year-popup-navigation > .first-element { |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
border-left: none; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
} |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
.bi-theme-dark .bi-year-popup .year-popup-navigation > .center-element { |
||||||
.bi-quarter-trigger { |
border-left: 1px solid #525466; |
||||||
-webkit-border-radius: 2px; |
} |
||||||
-moz-border-radius: 2px; |
.bi-theme-dark .bi-year-popup .year-popup-navigation > .first-element { |
||||||
border-radius: 2px; |
border-left: none; |
||||||
} |
} |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
.bi-year-trigger { |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
-webkit-border-radius: 2px; |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
-moz-border-radius: 2px; |
||||||
/****添加计算宽度的--运算符直接需要space****/ |
border-radius: 2px; |
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
} |
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
|
||||||
.bi-relation-view-region .relation-view-region-container { |
|
||||||
z-index: 1; |
|
||||||
-webkit-border-radius: 2px; |
|
||||||
-moz-border-radius: 2px; |
|
||||||
border-radius: 2px; |
|
||||||
} |
|
||||||
.bi-relation-view-region .relation-view-region-container.other-package { |
|
||||||
border-style: dashed; |
|
||||||
} |
|
||||||
/****添加计算宽度的--运算符直接需要space****/ |
|
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
|
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
|
||||||
.bi-sequence-table-dynamic-number .sequence-table-title-cell { |
|
||||||
overflow: hidden; |
|
||||||
overflow-x: hidden; |
|
||||||
overflow-y: hidden; |
|
||||||
-webkit-box-sizing: border-box; |
|
||||||
/*Safari3.2+*/ |
|
||||||
-moz-box-sizing: border-box; |
|
||||||
/*Firefox3.5+*/ |
|
||||||
-ms-box-sizing: border-box; |
|
||||||
/*IE8*/ |
|
||||||
box-sizing: border-box; |
|
||||||
/*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/ |
|
||||||
} |
|
||||||
.bi-sequence-table-dynamic-number .sequence-table-number-cell { |
|
||||||
-webkit-box-sizing: border-box; |
|
||||||
/*Safari3.2+*/ |
|
||||||
-moz-box-sizing: border-box; |
|
||||||
/*Firefox3.5+*/ |
|
||||||
-ms-box-sizing: border-box; |
|
||||||
/*IE8*/ |
|
||||||
box-sizing: border-box; |
|
||||||
/*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/ |
|
||||||
} |
|
||||||
/****添加计算宽度的--运算符直接需要space****/ |
|
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
|
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
|
||||||
.bi-sequence-table-list-number .sequence-table-title-cell { |
|
||||||
overflow: hidden; |
|
||||||
overflow-x: hidden; |
|
||||||
overflow-y: hidden; |
|
||||||
-webkit-box-sizing: border-box; |
|
||||||
/*Safari3.2+*/ |
|
||||||
-moz-box-sizing: border-box; |
|
||||||
/*Firefox3.5+*/ |
|
||||||
-ms-box-sizing: border-box; |
|
||||||
/*IE8*/ |
|
||||||
box-sizing: border-box; |
|
||||||
/*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/ |
|
||||||
} |
|
||||||
.bi-sequence-table-list-number .sequence-table-number-cell { |
|
||||||
-webkit-box-sizing: border-box; |
|
||||||
/*Safari3.2+*/ |
|
||||||
-moz-box-sizing: border-box; |
|
||||||
/*Firefox3.5+*/ |
|
||||||
-ms-box-sizing: border-box; |
|
||||||
/*IE8*/ |
|
||||||
box-sizing: border-box; |
|
||||||
/*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/ |
|
||||||
} |
|
||||||
/****添加计算宽度的--运算符直接需要space****/ |
|
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
|
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
|
||||||
/****添加计算宽度的--运算符直接需要space****/ |
|
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
|
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
|
||||||
.bi-sequence-table-tree-number .sequence-table-title-cell { |
|
||||||
overflow: hidden; |
|
||||||
overflow-x: hidden; |
|
||||||
overflow-y: hidden; |
|
||||||
-webkit-box-sizing: border-box; |
|
||||||
/*Safari3.2+*/ |
|
||||||
-moz-box-sizing: border-box; |
|
||||||
/*Firefox3.5+*/ |
|
||||||
-ms-box-sizing: border-box; |
|
||||||
/*IE8*/ |
|
||||||
box-sizing: border-box; |
|
||||||
/*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/ |
|
||||||
} |
|
||||||
.bi-sequence-table-tree-number .sequence-table-number-cell { |
|
||||||
-webkit-box-sizing: border-box; |
|
||||||
/*Safari3.2+*/ |
|
||||||
-moz-box-sizing: border-box; |
|
||||||
/*Firefox3.5+*/ |
|
||||||
-ms-box-sizing: border-box; |
|
||||||
/*IE8*/ |
|
||||||
box-sizing: border-box; |
|
||||||
/*W3C标准(IE9+,Safari5.1+,Chrome10.0+,Opera10.6+都符合box-sizing的w3c标准语法)*/ |
|
||||||
} |
|
||||||
/****添加计算宽度的--运算符直接需要space****/ |
|
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
|
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
|
||||||
/****添加计算宽度的--运算符直接需要space****/ |
|
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
|
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
|
||||||
/****添加计算宽度的--运算符直接需要space****/ |
|
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
|
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
|
||||||
.bi-year-popup .year-popup-navigation { |
|
||||||
line-height: 30px; |
|
||||||
color: #3f8ce8; |
|
||||||
} |
|
||||||
.bi-year-popup .year-popup-navigation > .center-element { |
|
||||||
border-left: 1px solid #d4dadd; |
|
||||||
} |
|
||||||
.bi-year-popup .year-popup-navigation > .first-element { |
|
||||||
border-left: none; |
|
||||||
} |
|
||||||
.bi-theme-dark .bi-year-popup .year-popup-navigation > .center-element { |
|
||||||
border-left: 1px solid #525466; |
|
||||||
} |
|
||||||
.bi-theme-dark .bi-year-popup .year-popup-navigation > .first-element { |
|
||||||
border-left: none; |
|
||||||
} |
|
||||||
/****添加计算宽度的--运算符直接需要space****/ |
|
||||||
/****** common color(常用颜色,可用于普遍场景) *****/ |
|
||||||
/**** custom color(自定义颜色,用于特定场景) ****/ |
|
||||||
.bi-year-trigger { |
|
||||||
-webkit-border-radius: 2px; |
|
||||||
-moz-border-radius: 2px; |
|
||||||
border-radius: 2px; |
|
||||||
} |
|
||||||
|
@ -1,96 +1,115 @@ |
|||||||
/** |
/** |
||||||
* |
* |
||||||
* 表格单元格 |
* 表格单元格 |
||||||
* |
* |
||||||
* Created by GUY on 2016/1/12. |
* Created by GUY on 2016/1/12. |
||||||
* @class BI.ResizableTableCell |
* @class BI.ResizableTableCell |
||||||
* @extends BI.Widget |
* @extends BI.Widget |
||||||
*/ |
*/ |
||||||
BI.ResizableTableCell = BI.inherit(BI.Widget, { |
BI.ResizableTableCell = BI.inherit(BI.Widget, { |
||||||
_defaultConfig: function () { |
_defaultConfig: function () { |
||||||
return BI.extend(BI.ResizableTableCell.superclass._defaultConfig.apply(this, arguments), { |
return BI.extend(BI.ResizableTableCell.superclass._defaultConfig.apply(this, arguments), { |
||||||
baseCls: "bi-resizable-table-cell", |
baseCls: "bi-resizable-table-cell", |
||||||
cell: {}, |
cell: {}, |
||||||
start: BI.emptyFn, |
minSize: 15, |
||||||
resize: BI.emptyFn, |
// suitableSize,
|
||||||
stop: BI.emptyFn |
maxSize: Number.MAX_VALUE, |
||||||
}) |
start: BI.emptyFn, |
||||||
}, |
resize: BI.emptyFn, |
||||||
|
stop: BI.emptyFn |
||||||
_init: function () { |
}) |
||||||
BI.ResizableTableCell.superclass._init.apply(this, arguments); |
}, |
||||||
var self = this, o = this.options; |
|
||||||
this.cell = BI.createWidget(BI.extend({type: "bi.label"}, o.cell, {width: o.width, height: o.height})); |
_init: function () { |
||||||
|
BI.ResizableTableCell.superclass._init.apply(this, arguments); |
||||||
var startDrag = false; |
var self = this, o = this.options; |
||||||
var size = 0, offset = 0, defaultSize = o.width; |
this.cell = BI.createWidget(BI.extend({type: "bi.label"}, o.cell, {width: o.width, height: o.height})); |
||||||
var mouseMoveTracker = new BI.MouseMoveTracker(function (deltaX, deltaY) { |
|
||||||
if (mouseMoveTracker.isDragging()) { |
var startDrag = false; |
||||||
startDrag = true; |
var size = 0, offset = 0, defaultSize = o.width; |
||||||
offset += deltaX; |
|
||||||
size = BI.clamp(defaultSize + offset, 15, Number.MAX_VALUE); |
function optimizeSize(s) { |
||||||
self.handler.element.addClass("dragging"); |
var optSize = BI.clamp(s, o.minSize, o.maxSize || Number.MAX_VALUE); |
||||||
o.resize(size); |
// if (o.suitableSize) {
|
||||||
} |
// if (Math.abs(o.suitableSize - optSize) < 5) {
|
||||||
}, function () { |
// optSize = o.suitableSize;
|
||||||
if (startDrag === true) { |
// self.handler.element.addClass("suitable");
|
||||||
size = BI.clamp(size, 15, Number.MAX_VALUE); |
// } else {
|
||||||
o.stop(size); |
// self.handler.element.removeClass("suitable");
|
||||||
size = 0; |
// }
|
||||||
offset = 0; |
// }
|
||||||
defaultSize = o.width; |
return optSize; |
||||||
self.handler.element.removeClass("dragging"); |
} |
||||||
startDrag = false; |
|
||||||
} |
var mouseMoveTracker = new BI.MouseMoveTracker(function (deltaX, deltaY) { |
||||||
mouseMoveTracker.releaseMouseMoves(); |
if (mouseMoveTracker.isDragging()) { |
||||||
}, document); |
startDrag = true; |
||||||
this.handler = BI.createWidget({ |
offset += deltaX; |
||||||
type: "bi.absolute", |
size = optimizeSize(defaultSize + offset); |
||||||
cls: "resizable-table-cell-resizer-container", |
self.handler.element.addClass("dragging"); |
||||||
width: 6, |
o.resize(size); |
||||||
items: [{ |
} |
||||||
el: { |
}, function () { |
||||||
type: "bi.layout", |
if (startDrag === true) { |
||||||
cls: "resizable-table-cell-resizer-knob", |
size = optimizeSize(size); |
||||||
width: 4 |
o.stop(size); |
||||||
}, |
size = 0; |
||||||
right: 0, |
offset = 0; |
||||||
top: 0, |
defaultSize = o.width; |
||||||
bottom: 0 |
startDrag = false; |
||||||
}] |
} |
||||||
}); |
self.handler.element.removeClass("dragging"); |
||||||
this.handler.element.on("mousedown", function (event) { |
self.handler.element.removeClass("suitable"); |
||||||
defaultSize = o.width; |
mouseMoveTracker.releaseMouseMoves(); |
||||||
mouseMoveTracker.captureMouseMoves(event); |
}, document); |
||||||
}); |
this.handler = BI.createWidget({ |
||||||
BI.createWidget({ |
type: "bi.absolute", |
||||||
type: "bi.absolute", |
cls: "resizable-table-cell-resizer-container", |
||||||
element: this, |
width: 6, |
||||||
items: [{ |
items: [{ |
||||||
el: this.cell, |
el: { |
||||||
left: 0, |
type: "bi.layout", |
||||||
right: 0, |
cls: "resizable-table-cell-resizer-knob", |
||||||
top: 0, |
width: 4 |
||||||
bottom: 0 |
}, |
||||||
}, { |
right: 0, |
||||||
el: this.handler, |
top: 0, |
||||||
right: 0, |
bottom: 0 |
||||||
top: 0, |
}] |
||||||
bottom: 0 |
}); |
||||||
}] |
this.handler.element.on("mousedown", function (event) { |
||||||
}) |
defaultSize = o.width; |
||||||
}, |
optimizeSize(defaultSize); |
||||||
|
mouseMoveTracker.captureMouseMoves(event); |
||||||
setWidth: function (width) { |
}); |
||||||
BI.ResizableTableCell.superclass.setWidth.apply(this, arguments); |
BI.createWidget({ |
||||||
var o = this.options; |
type: "bi.absolute", |
||||||
this.cell.setWidth(o.width); |
element: this, |
||||||
}, |
items: [{ |
||||||
|
el: this.cell, |
||||||
setHeight: function (height) { |
left: 0, |
||||||
BI.ResizableTableCell.superclass.setHeight.apply(this, arguments); |
right: 0, |
||||||
var o = this.options; |
top: 0, |
||||||
this.cell.setHeight(o.height); |
bottom: 0 |
||||||
} |
}, { |
||||||
}); |
el: this.handler, |
||||||
|
right: 0, |
||||||
|
top: 0, |
||||||
|
bottom: 0 |
||||||
|
}] |
||||||
|
}) |
||||||
|
}, |
||||||
|
|
||||||
|
setWidth: function (width) { |
||||||
|
BI.ResizableTableCell.superclass.setWidth.apply(this, arguments); |
||||||
|
var o = this.options; |
||||||
|
this.cell.setWidth(o.width); |
||||||
|
}, |
||||||
|
|
||||||
|
setHeight: function (height) { |
||||||
|
BI.ResizableTableCell.superclass.setHeight.apply(this, arguments); |
||||||
|
var o = this.options; |
||||||
|
this.cell.setHeight(o.height); |
||||||
|
} |
||||||
|
}); |
||||||
BI.shortcut("bi.resizable_table_cell", BI.ResizableTableCell); |
BI.shortcut("bi.resizable_table_cell", BI.ResizableTableCell); |
@ -1,224 +1,222 @@ |
|||||||
/** |
/** |
||||||
* Created by GUY on 2017/2/8. |
* Created by GUY on 2017/2/8. |
||||||
* |
* |
||||||
* @class BI.BubbleCombo |
* @class BI.BubbleCombo |
||||||
* @extends BI.Widget |
* @extends BI.Widget |
||||||
*/ |
*/ |
||||||
BI.BubbleCombo = BI.inherit(BI.Widget, { |
BI.BubbleCombo = BI.inherit(BI.Widget, { |
||||||
_const: { |
_const: { |
||||||
TRIANGLE_LENGTH: 6 |
TRIANGLE_LENGTH: 6 |
||||||
}, |
}, |
||||||
_defaultConfig: function () { |
_defaultConfig: function () { |
||||||
return BI.extend(BI.BubbleCombo.superclass._defaultConfig.apply(this, arguments), { |
return BI.extend(BI.BubbleCombo.superclass._defaultConfig.apply(this, arguments), { |
||||||
baseCls: "bi-bubble-combo", |
baseCls: "bi-bubble-combo", |
||||||
trigger: "click", |
trigger: "click", |
||||||
toggle: true, |
toggle: true, |
||||||
direction: "bottom", //top||bottom||left||right||top,left||top,right||bottom,left||bottom,right
|
direction: "bottom", //top||bottom||left||right||top,left||top,right||bottom,left||bottom,right
|
||||||
isDefaultInit: false, |
isDefaultInit: false, |
||||||
destroyWhenHide: false, |
destroyWhenHide: false, |
||||||
isNeedAdjustHeight: true,//是否需要高度调整
|
isNeedAdjustHeight: true,//是否需要高度调整
|
||||||
isNeedAdjustWidth: true, |
isNeedAdjustWidth: true, |
||||||
stopPropagation: false, |
stopPropagation: false, |
||||||
adjustLength: 0,//调整的距离
|
adjustLength: 0,//调整的距离
|
||||||
// adjustXOffset: 0,
|
// adjustXOffset: 0,
|
||||||
// adjustYOffset: 10,
|
// adjustYOffset: 10,
|
||||||
hideChecker: BI.emptyFn, |
hideChecker: BI.emptyFn, |
||||||
offsetStyle: "left", //left,right,center
|
offsetStyle: "left", //left,right,center
|
||||||
el: {}, |
el: {}, |
||||||
popup: {}, |
popup: {}, |
||||||
}) |
}) |
||||||
}, |
}, |
||||||
_init: function () { |
_init: function () { |
||||||
BI.BubbleCombo.superclass._init.apply(this, arguments); |
BI.BubbleCombo.superclass._init.apply(this, arguments); |
||||||
var self = this, o = this.options; |
var self = this, o = this.options; |
||||||
this.combo = BI.createWidget({ |
this.combo = BI.createWidget({ |
||||||
type: "bi.combo", |
type: "bi.combo", |
||||||
element: this, |
element: this, |
||||||
trigger: o.trigger, |
trigger: o.trigger, |
||||||
toggle: o.toggle, |
toggle: o.toggle, |
||||||
direction: o.direction, |
direction: o.direction, |
||||||
isDefaultInit: o.isDefaultInit, |
isDefaultInit: o.isDefaultInit, |
||||||
destroyWhenHide: o.destroyWhenHide, |
destroyWhenHide: o.destroyWhenHide, |
||||||
isNeedAdjustHeight: o.isNeedAdjustHeight, |
isNeedAdjustHeight: o.isNeedAdjustHeight, |
||||||
isNeedAdjustWidth: o.isNeedAdjustWidth, |
isNeedAdjustWidth: o.isNeedAdjustWidth, |
||||||
adjustLength: this._getAdjustLength(), |
adjustLength: this._getAdjustLength(), |
||||||
stopPropagation: o.stopPropagation, |
stopPropagation: o.stopPropagation, |
||||||
adjustXOffset: 0, |
adjustXOffset: 0, |
||||||
adjustYOffset: 0, |
adjustYOffset: 0, |
||||||
hideChecker: o.hideChecker, |
hideChecker: o.hideChecker, |
||||||
offsetStyle: o.offsetStyle, |
offsetStyle: o.offsetStyle, |
||||||
el: o.el, |
el: o.el, |
||||||
popup: BI.extend({ |
popup: BI.extend({ |
||||||
type: "bi.bubble_popup_view" |
type: "bi.bubble_popup_view" |
||||||
}, o.popup), |
}, o.popup), |
||||||
}); |
}); |
||||||
this.combo.on(BI.Combo.EVENT_TRIGGER_CHANGE, function () { |
this.combo.on(BI.Combo.EVENT_TRIGGER_CHANGE, function () { |
||||||
self.fireEvent(BI.BubbleCombo.EVENT_TRIGGER_CHANGE, arguments); |
self.fireEvent(BI.BubbleCombo.EVENT_TRIGGER_CHANGE, arguments); |
||||||
}); |
}); |
||||||
this.combo.on(BI.Combo.EVENT_CHANGE, function () { |
this.combo.on(BI.Combo.EVENT_CHANGE, function () { |
||||||
self.fireEvent(BI.BubbleCombo.EVENT_CHANGE, arguments); |
self.fireEvent(BI.BubbleCombo.EVENT_CHANGE, arguments); |
||||||
}); |
}); |
||||||
this.combo.on(BI.Combo.EVENT_EXPAND, function () { |
this.combo.on(BI.Combo.EVENT_EXPAND, function () { |
||||||
self.fireEvent(BI.BubbleCombo.EVENT_EXPAND, arguments); |
self.fireEvent(BI.BubbleCombo.EVENT_EXPAND, arguments); |
||||||
}); |
}); |
||||||
this.combo.on(BI.Combo.EVENT_COLLAPSE, function () { |
this.combo.on(BI.Combo.EVENT_COLLAPSE, function () { |
||||||
self.fireEvent(BI.BubbleCombo.EVENT_COLLAPSE, arguments); |
self.fireEvent(BI.BubbleCombo.EVENT_COLLAPSE, arguments); |
||||||
}); |
}); |
||||||
this.combo.on(BI.Combo.EVENT_AFTER_INIT, function () { |
this.combo.on(BI.Combo.EVENT_AFTER_INIT, function () { |
||||||
self.fireEvent(BI.BubbleCombo.EVENT_AFTER_INIT, arguments); |
self.fireEvent(BI.BubbleCombo.EVENT_AFTER_INIT, arguments); |
||||||
}); |
}); |
||||||
this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () { |
this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () { |
||||||
self.fireEvent(BI.BubbleCombo.EVENT_BEFORE_POPUPVIEW, arguments); |
self.fireEvent(BI.BubbleCombo.EVENT_BEFORE_POPUPVIEW, arguments); |
||||||
}); |
}); |
||||||
this.combo.on(BI.Combo.EVENT_AFTER_POPUPVIEW, function () { |
this.combo.on(BI.Combo.EVENT_AFTER_POPUPVIEW, function () { |
||||||
self._showTriangle(); |
self._showTriangle(); |
||||||
self.fireEvent(BI.BubbleCombo.EVENT_AFTER_POPUPVIEW, arguments); |
self.fireEvent(BI.BubbleCombo.EVENT_AFTER_POPUPVIEW, arguments); |
||||||
}); |
}); |
||||||
this.combo.on(BI.Combo.EVENT_BEFORE_HIDEVIEW, function () { |
this.combo.on(BI.Combo.EVENT_BEFORE_HIDEVIEW, function () { |
||||||
self._hideTriangle(); |
self._hideTriangle(); |
||||||
self.fireEvent(BI.BubbleCombo.EVENT_BEFORE_HIDEVIEW, arguments); |
self.fireEvent(BI.BubbleCombo.EVENT_BEFORE_HIDEVIEW, arguments); |
||||||
}); |
}); |
||||||
this.combo.on(BI.Combo.EVENT_AFTER_HIDEVIEW, function () { |
this.combo.on(BI.Combo.EVENT_AFTER_HIDEVIEW, function () { |
||||||
self.fireEvent(BI.BubbleCombo.EVENT_AFTER_HIDEVIEW, arguments); |
self.fireEvent(BI.BubbleCombo.EVENT_AFTER_HIDEVIEW, arguments); |
||||||
}); |
}); |
||||||
}, |
}, |
||||||
|
|
||||||
_getAdjustLength: function () { |
_getAdjustLength: function () { |
||||||
return this._const.TRIANGLE_LENGTH + this.options.adjustLength; |
return this._const.TRIANGLE_LENGTH + this.options.adjustLength; |
||||||
}, |
}, |
||||||
|
|
||||||
_createTriangle: function (direction) { |
_createTriangle: function (direction) { |
||||||
var pos = {}, op = {}; |
var pos = {}, op = {}; |
||||||
var adjustLength = this.options.adjustLength; |
var adjustLength = this.options.adjustLength; |
||||||
var offset = this.element.offset(); |
var offset = this.element.offset(); |
||||||
var left = offset.left, right = offset.left + this.element.outerWidth(); |
var left = offset.left, right = offset.left + this.element.outerWidth(); |
||||||
var top = offset.top, bottom = offset.top + this.element.outerHeight(); |
var top = offset.top, bottom = offset.top + this.element.outerHeight(); |
||||||
switch (direction) { |
switch (direction) { |
||||||
case "left": |
case "left": |
||||||
pos = { |
pos = { |
||||||
top: top, |
top: top, |
||||||
height: this.element.outerHeight(), |
height: this.element.outerHeight(), |
||||||
left: left - adjustLength - this._const.TRIANGLE_LENGTH |
left: left - adjustLength - this._const.TRIANGLE_LENGTH |
||||||
}; |
}; |
||||||
op = {width: this._const.TRIANGLE_LENGTH}; |
op = {width: this._const.TRIANGLE_LENGTH}; |
||||||
break; |
break; |
||||||
case "right": |
case "right": |
||||||
pos = { |
pos = { |
||||||
top: top, |
top: top, |
||||||
height: this.element.outerHeight(), |
height: this.element.outerHeight(), |
||||||
left: right + adjustLength |
left: right + adjustLength |
||||||
}; |
}; |
||||||
op = {width: this._const.TRIANGLE_LENGTH}; |
op = {width: this._const.TRIANGLE_LENGTH}; |
||||||
break; |
break; |
||||||
case "top": |
case "top": |
||||||
pos = { |
pos = { |
||||||
left: left, |
left: left, |
||||||
width: this.element.outerWidth(), |
width: this.element.outerWidth(), |
||||||
top: top - adjustLength - this._const.TRIANGLE_LENGTH |
top: top - adjustLength - this._const.TRIANGLE_LENGTH |
||||||
}; |
}; |
||||||
op = {height: this._const.TRIANGLE_LENGTH}; |
op = {height: this._const.TRIANGLE_LENGTH}; |
||||||
break; |
break; |
||||||
case "bottom": |
case "bottom": |
||||||
pos = { |
pos = { |
||||||
left: left, |
left: left, |
||||||
width: this.element.outerWidth(), |
width: this.element.outerWidth(), |
||||||
top: bottom + adjustLength |
top: bottom + adjustLength |
||||||
}; |
}; |
||||||
op = {height: this._const.TRIANGLE_LENGTH}; |
op = {height: this._const.TRIANGLE_LENGTH}; |
||||||
break; |
break; |
||||||
default: |
default: |
||||||
break; |
break; |
||||||
} |
} |
||||||
this.triangle = BI.createWidget(op, { |
this.triangle && this.triangle.destroy(); |
||||||
type: "bi.center_adapt", |
this.triangle = BI.createWidget(op, { |
||||||
cls: "button-combo-triangle-wrapper", |
type: "bi.center_adapt", |
||||||
items: [{ |
cls: "button-combo-triangle-wrapper", |
||||||
type: "bi.layout", |
items: [{ |
||||||
cls: "bubble-combo-triangle-" + direction + " bi-high-light-border" |
type: "bi.layout", |
||||||
}] |
cls: "bubble-combo-triangle-" + direction + " bi-high-light-border" |
||||||
}); |
}] |
||||||
pos.el = this.triangle; |
}); |
||||||
BI.createWidget({ |
pos.el = this.triangle; |
||||||
type: "bi.absolute", |
BI.createWidget({ |
||||||
element: this, |
type: "bi.absolute", |
||||||
items: [pos] |
element: this, |
||||||
}) |
items: [pos] |
||||||
}, |
}) |
||||||
|
}, |
||||||
_createLeftTriangle: function () { |
|
||||||
this._createTriangle("left"); |
_createLeftTriangle: function () { |
||||||
}, |
this._createTriangle("left"); |
||||||
|
}, |
||||||
_createRightTriangle: function () { |
|
||||||
this._createTriangle("right"); |
_createRightTriangle: function () { |
||||||
}, |
this._createTriangle("right"); |
||||||
|
}, |
||||||
_createTopTriangle: function () { |
|
||||||
this._createTriangle("top"); |
_createTopTriangle: function () { |
||||||
}, |
this._createTriangle("top"); |
||||||
|
}, |
||||||
_createBottomTriangle: function () { |
|
||||||
this._createTriangle("bottom"); |
_createBottomTriangle: function () { |
||||||
}, |
this._createTriangle("bottom"); |
||||||
|
}, |
||||||
_showTriangle: function () { |
|
||||||
var pos = this.combo.getPopupPosition(); |
_showTriangle: function () { |
||||||
switch (pos.dir) { |
var pos = this.combo.getPopupPosition(); |
||||||
case "left,top": |
switch (pos.dir) { |
||||||
case "left,bottom": |
case "left,top": |
||||||
this._createLeftTriangle(); |
case "left,bottom": |
||||||
this.combo.getView().showLine("right"); |
this._createLeftTriangle(); |
||||||
break; |
this.combo.getView().showLine("right"); |
||||||
case "right,top": |
break; |
||||||
case "right,bottom": |
case "right,top": |
||||||
this._createRightTriangle(); |
case "right,bottom": |
||||||
this.combo.getView().showLine("left"); |
this._createRightTriangle(); |
||||||
break; |
this.combo.getView().showLine("left"); |
||||||
case "top,left": |
break; |
||||||
case "top,right": |
case "top,left": |
||||||
this._createTopTriangle(); |
case "top,right": |
||||||
this.combo.getView().showLine("bottom"); |
this._createTopTriangle(); |
||||||
break; |
this.combo.getView().showLine("bottom"); |
||||||
case "bottom,left": |
break; |
||||||
case "bottom,right": |
case "bottom,left": |
||||||
this._createBottomTriangle(); |
case "bottom,right": |
||||||
this.combo.getView().showLine("top"); |
this._createBottomTriangle(); |
||||||
break; |
this.combo.getView().showLine("top"); |
||||||
} |
break; |
||||||
}, |
} |
||||||
|
}, |
||||||
_hideTriangle: function () { |
|
||||||
this.triangle && this.triangle.destroy(); |
_hideTriangle: function () { |
||||||
this.combo.getView() && this.combo.getView().hideLine(); |
this.triangle && this.triangle.destroy(); |
||||||
}, |
this.triangle = null; |
||||||
|
this.combo.getView() && this.combo.getView().hideLine(); |
||||||
hideView: function () { |
}, |
||||||
this._hideTriangle(); |
|
||||||
this.combo && this.combo.hideView(); |
hideView: function () { |
||||||
}, |
this._hideTriangle(); |
||||||
|
this.combo && this.combo.hideView(); |
||||||
showView: function () { |
}, |
||||||
this.combo && this.combo.showView(); |
|
||||||
}, |
showView: function () { |
||||||
|
this.combo && this.combo.showView(); |
||||||
hasView: function () { |
}, |
||||||
return BI.isNotNull(this.combo.getView()); |
|
||||||
}, |
isViewVisible: function () { |
||||||
|
return this.combo.isViewVisible(); |
||||||
isViewVisible: function () { |
} |
||||||
return this.combo.isViewVisible(); |
}); |
||||||
} |
|
||||||
}); |
BI.BubbleCombo.EVENT_TRIGGER_CHANGE = "EVENT_TRIGGER_CHANGE"; |
||||||
|
BI.BubbleCombo.EVENT_CHANGE = "EVENT_CHANGE"; |
||||||
BI.BubbleCombo.EVENT_TRIGGER_CHANGE = "EVENT_TRIGGER_CHANGE"; |
BI.BubbleCombo.EVENT_EXPAND = "EVENT_EXPAND"; |
||||||
BI.BubbleCombo.EVENT_CHANGE = "EVENT_CHANGE"; |
BI.BubbleCombo.EVENT_COLLAPSE = "EVENT_COLLAPSE"; |
||||||
BI.BubbleCombo.EVENT_EXPAND = "EVENT_EXPAND"; |
BI.BubbleCombo.EVENT_AFTER_INIT = "EVENT_AFTER_INIT"; |
||||||
BI.BubbleCombo.EVENT_COLLAPSE = "EVENT_COLLAPSE"; |
|
||||||
BI.BubbleCombo.EVENT_AFTER_INIT = "EVENT_AFTER_INIT"; |
|
||||||
|
BI.BubbleCombo.EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW"; |
||||||
|
BI.BubbleCombo.EVENT_AFTER_POPUPVIEW = "EVENT_AFTER_POPUPVIEW"; |
||||||
BI.BubbleCombo.EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW"; |
BI.BubbleCombo.EVENT_BEFORE_HIDEVIEW = "EVENT_BEFORE_HIDEVIEW"; |
||||||
BI.BubbleCombo.EVENT_AFTER_POPUPVIEW = "EVENT_AFTER_POPUPVIEW"; |
BI.BubbleCombo.EVENT_AFTER_HIDEVIEW = "EVENT_AFTER_HIDEVIEW"; |
||||||
BI.BubbleCombo.EVENT_BEFORE_HIDEVIEW = "EVENT_BEFORE_HIDEVIEW"; |
|
||||||
BI.BubbleCombo.EVENT_AFTER_HIDEVIEW = "EVENT_AFTER_HIDEVIEW"; |
|
||||||
BI.shortcut("bi.bubble_combo", BI.BubbleCombo); |
BI.shortcut("bi.bubble_combo", BI.BubbleCombo); |
@ -1,177 +1,176 @@ |
|||||||
/** |
/** |
||||||
* Created by GUY on 2016/4/29. |
* Created by GUY on 2016/4/29. |
||||||
* |
* |
||||||
* @class BI.SortList |
* @class BI.SortList |
||||||
* @extends BI.Widget |
* @extends BI.Widget |
||||||
*/ |
*/ |
||||||
BI.SortList = BI.inherit(BI.Widget, { |
BI.SortList = BI.inherit(BI.Widget, { |
||||||
_defaultConfig: function () { |
_defaultConfig: function () { |
||||||
return BI.extend(BI.SortList.superclass._defaultConfig.apply(this, arguments), { |
return BI.extend(BI.SortList.superclass._defaultConfig.apply(this, arguments), { |
||||||
baseCls: "bi-sort-list", |
baseCls: "bi-sort-list", |
||||||
|
|
||||||
isDefaultInit: true,//是否默认初始化数据
|
isDefaultInit: true,//是否默认初始化数据
|
||||||
|
|
||||||
//下面是button_group的属性
|
//下面是button_group的属性
|
||||||
el: { |
el: { |
||||||
type: "bi.button_group" |
type: "bi.button_group" |
||||||
}, |
}, |
||||||
|
|
||||||
items: [], |
items: [], |
||||||
itemsCreator: BI.emptyFn, |
itemsCreator: BI.emptyFn, |
||||||
onLoaded: BI.emptyFn, |
onLoaded: BI.emptyFn, |
||||||
|
|
||||||
//下面是分页信息
|
//下面是分页信息
|
||||||
count: false, |
count: false, |
||||||
next: {}, |
next: {}, |
||||||
hasNext: BI.emptyFn |
hasNext: BI.emptyFn |
||||||
|
|
||||||
//containment: this.element,
|
//containment: this.element,
|
||||||
//connectWith: ".bi-sort-list",
|
//connectWith: ".bi-sort-list",
|
||||||
}) |
}) |
||||||
}, |
}, |
||||||
|
|
||||||
_init: function () { |
_init: function () { |
||||||
BI.SortList.superclass._init.apply(this, arguments); |
BI.SortList.superclass._init.apply(this, arguments); |
||||||
var self = this, o = this.options; |
var self = this, o = this.options; |
||||||
this.loader = BI.createWidget({ |
this.loader = BI.createWidget({ |
||||||
type: "bi.list_loader", |
type: "bi.list_loader", |
||||||
element: this, |
element: this, |
||||||
isDefaultInit: o.isDefaultInit, |
isDefaultInit: o.isDefaultInit, |
||||||
el: o.el, |
el: o.el, |
||||||
items: this._formatItems(o.items), |
items: this._formatItems(o.items), |
||||||
itemsCreator: function (op, callback) { |
itemsCreator: function (op, callback) { |
||||||
o.itemsCreator(op, function (items) { |
o.itemsCreator(op, function (items) { |
||||||
callback(self._formatItems(items)); |
callback(self._formatItems(items)); |
||||||
}); |
}); |
||||||
}, |
}, |
||||||
onLoaded: o.onLoaded, |
onLoaded: o.onLoaded, |
||||||
count: o.count, |
count: o.count, |
||||||
next: o.next, |
next: o.next, |
||||||
hasNext: o.hasNext |
hasNext: o.hasNext |
||||||
}); |
}); |
||||||
this.loader.on(BI.Controller.EVENT_CHANGE, function (type, value, obj) { |
this.loader.on(BI.Controller.EVENT_CHANGE, function (type, value, obj) { |
||||||
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments); |
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments); |
||||||
if (type === BI.Events.CLICK) { |
if (type === BI.Events.CLICK) { |
||||||
self.fireEvent(BI.SortList.EVENT_CHANGE, value, obj); |
self.fireEvent(BI.SortList.EVENT_CHANGE, value, obj); |
||||||
} |
} |
||||||
}); |
}); |
||||||
|
|
||||||
this.loader.element.sortable({ |
this.loader.element.sortable({ |
||||||
containment: o.containment || this.element, |
containment: o.containment || this.element, |
||||||
connectWith: o.connectWith || ".bi-sort-list", |
connectWith: o.connectWith || ".bi-sort-list", |
||||||
items: ".sort-item", |
items: ".sort-item", |
||||||
cursor: o.cursor || "drag", |
cursor: o.cursor || "drag", |
||||||
tolerance: o.tolerance || "intersect", |
tolerance: o.tolerance || "intersect", |
||||||
placeholder: { |
placeholder: { |
||||||
element: function ($currentItem) { |
element: function ($currentItem) { |
||||||
var holder = BI.createWidget({ |
var holder = BI.createWidget({ |
||||||
type: "bi.layout", |
type: "bi.layout", |
||||||
cls: "bi-sortable-holder", |
cls: "bi-sortable-holder", |
||||||
height: $currentItem.outerHeight() |
height: $currentItem.outerHeight() |
||||||
}); |
}); |
||||||
holder.element.css({ |
holder.element.css({ |
||||||
"margin-left": $currentItem.css("margin-left"), |
"margin-left": $currentItem.css("margin-left"), |
||||||
"margin-right": $currentItem.css("margin-right"), |
"margin-right": $currentItem.css("margin-right"), |
||||||
"margin-top": $currentItem.css("margin-top"), |
"margin-top": $currentItem.css("margin-top"), |
||||||
"margin-bottom": $currentItem.css("margin-bottom"), |
"margin-bottom": $currentItem.css("margin-bottom"), |
||||||
"margin": $currentItem.css("margin") |
"margin": $currentItem.css("margin") |
||||||
}); |
}); |
||||||
return holder.element; |
return holder.element; |
||||||
}, |
}, |
||||||
update: function () { |
update: function () { |
||||||
|
|
||||||
} |
} |
||||||
}, |
}, |
||||||
start: function (event, ui) { |
start: function (event, ui) { |
||||||
|
|
||||||
}, |
}, |
||||||
stop: function (event, ui) { |
stop: function (event, ui) { |
||||||
self.fireEvent(BI.SortList.EVENT_CHANGE); |
self.fireEvent(BI.SortList.EVENT_CHANGE); |
||||||
}, |
}, |
||||||
over: function (event, ui) { |
over: function (event, ui) { |
||||||
|
|
||||||
} |
} |
||||||
}); |
}); |
||||||
}, |
}, |
||||||
|
|
||||||
_formatItems: function (items) { |
_formatItems: function (items) { |
||||||
BI.each(items, function (i, item) { |
BI.each(items, function (i, item) { |
||||||
item = BI.stripEL(item); |
item = BI.stripEL(item); |
||||||
item.cls = item.cls ? item.cls + " sort-item" : "sort-item"; |
item.cls = item.cls ? item.cls + " sort-item" : "sort-item"; |
||||||
item.attributes = { |
item.attributes = { |
||||||
sorted: item.value |
sorted: item.value |
||||||
}; |
}; |
||||||
}); |
}); |
||||||
return items; |
return items; |
||||||
}, |
}, |
||||||
|
|
||||||
hasNext: function () { |
hasNext: function () { |
||||||
return this.loader.hasNext(); |
return this.loader.hasNext(); |
||||||
}, |
}, |
||||||
|
|
||||||
addItems: function (items) { |
addItems: function (items) { |
||||||
this.loader.addItems(items); |
this.loader.addItems(items); |
||||||
}, |
}, |
||||||
|
|
||||||
populate: function (items) { |
populate: function (items) { |
||||||
this.loader.populate.apply(this.loader, arguments); |
if (items) { |
||||||
}, |
arguments[0] = this._formatItems(items); |
||||||
|
} |
||||||
empty: function () { |
this.loader.populate.apply(this.loader, arguments); |
||||||
this.loader.empty(); |
}, |
||||||
}, |
|
||||||
|
empty: function () { |
||||||
doBehavior: function () { |
this.loader.empty(); |
||||||
this.loader.doBehavior.apply(this.loader, arguments); |
}, |
||||||
}, |
|
||||||
|
setNotSelectedValue: function () { |
||||||
setNotSelectedValue: function () { |
this.loader.setNotSelectedValue.apply(this.loader, arguments); |
||||||
this.loader.setNotSelectedValue.apply(this.loader, arguments); |
}, |
||||||
}, |
|
||||||
|
getNotSelectedValue: function () { |
||||||
getNotSelectedValue: function () { |
return this.loader.getNotSelectedValue(); |
||||||
return this.loader.getNotSelectedValue(); |
}, |
||||||
}, |
|
||||||
|
setValue: function () { |
||||||
setValue: function () { |
this.loader.setValue.apply(this.loader, arguments); |
||||||
this.loader.setValue.apply(this.loader, arguments); |
}, |
||||||
}, |
|
||||||
|
getValue: function () { |
||||||
getValue: function () { |
return this.loader.getValue(); |
||||||
return this.loader.getValue(); |
}, |
||||||
}, |
|
||||||
|
getAllButtons: function () { |
||||||
getAllButtons: function () { |
return this.loader.getAllButtons(); |
||||||
return this.loader.getAllButtons(); |
}, |
||||||
}, |
|
||||||
|
getAllLeaves: function () { |
||||||
getAllLeaves: function () { |
return this.loader.getAllLeaves(); |
||||||
return this.loader.getAllLeaves(); |
}, |
||||||
}, |
|
||||||
|
getSelectedButtons: function () { |
||||||
getSelectedButtons: function () { |
return this.loader.getSelectedButtons(); |
||||||
return this.loader.getSelectedButtons(); |
}, |
||||||
}, |
|
||||||
|
getNotSelectedButtons: function () { |
||||||
getNotSelectedButtons: function () { |
return this.loader.getNotSelectedButtons(); |
||||||
return this.loader.getNotSelectedButtons(); |
}, |
||||||
}, |
|
||||||
|
getIndexByValue: function (value) { |
||||||
getIndexByValue: function (value) { |
return this.loader.getIndexByValue(value); |
||||||
return this.loader.getIndexByValue(value); |
}, |
||||||
}, |
|
||||||
|
getNodeById: function (id) { |
||||||
getNodeById: function (id) { |
return this.loader.getNodeById(id); |
||||||
return this.loader.getNodeById(id); |
}, |
||||||
}, |
|
||||||
|
getNodeByValue: function (value) { |
||||||
getNodeByValue: function (value) { |
return this.loader.getNodeByValue(value); |
||||||
return this.loader.getNodeByValue(value); |
}, |
||||||
}, |
|
||||||
|
getSortedValues: function () { |
||||||
getSortedValues: function () { |
return this.loader.element.sortable("toArray", {attribute: "sorted"}); |
||||||
return this.loader.element.sortable("toArray", {attribute: "sorted"}); |
} |
||||||
} |
}); |
||||||
}); |
BI.SortList.EVENT_CHANGE = "EVENT_CHANGE"; |
||||||
BI.SortList.EVENT_CHANGE = "EVENT_CHANGE"; |
|
||||||
BI.shortcut("bi.sort_list", BI.SortList); |
BI.shortcut("bi.sort_list", BI.SortList); |
@ -1,79 +1,80 @@ |
|||||||
/** |
/** |
||||||
* 文本输入框trigger |
* 文本输入框trigger |
||||||
* |
* |
||||||
* Created by GUY on 2015/9/15. |
* Created by GUY on 2015/9/15. |
||||||
* @class BI.EditorTrigger |
* @class BI.EditorTrigger |
||||||
* @extends BI.Trigger |
* @extends BI.Trigger |
||||||
*/ |
*/ |
||||||
BI.EditorTrigger = BI.inherit(BI.Trigger, { |
BI.EditorTrigger = BI.inherit(BI.Trigger, { |
||||||
_const: { |
_const: { |
||||||
hgap: 4 |
hgap: 4 |
||||||
}, |
}, |
||||||
|
|
||||||
_defaultConfig: function () { |
_defaultConfig: function () { |
||||||
var conf = BI.EditorTrigger.superclass._defaultConfig.apply(this, arguments); |
var conf = BI.EditorTrigger.superclass._defaultConfig.apply(this, arguments); |
||||||
return BI.extend(conf, { |
return BI.extend(conf, { |
||||||
baseCls: (conf.baseCls || "") + " bi-editor-trigger bi-border", |
baseCls: (conf.baseCls || "") + " bi-editor-trigger bi-border", |
||||||
height: 30, |
height: 30, |
||||||
validationChecker: BI.emptyFn, |
validationChecker: BI.emptyFn, |
||||||
quitChecker: BI.emptyFn, |
quitChecker: BI.emptyFn, |
||||||
allowBlank: false, |
allowBlank: false, |
||||||
watermark: "", |
watermark: "", |
||||||
errorText: "", |
errorText: "", |
||||||
triggerWidth: 30 |
triggerWidth: 30 |
||||||
}); |
}); |
||||||
}, |
}, |
||||||
|
|
||||||
_init: function () { |
_init: function () { |
||||||
this.options.height -= 2; |
this.options.height -= 2; |
||||||
BI.EditorTrigger.superclass._init.apply(this, arguments); |
BI.EditorTrigger.superclass._init.apply(this, arguments); |
||||||
var self = this, o = this.options, c = this._const; |
var self = this, o = this.options, c = this._const; |
||||||
this.editor = BI.createWidget({ |
this.editor = BI.createWidget({ |
||||||
type: "bi.sign_editor", |
type: "bi.sign_editor", |
||||||
height: o.height, |
height: o.height, |
||||||
value: o.value, |
value: o.value, |
||||||
validationChecker: o.validationChecker, |
validationChecker: o.validationChecker, |
||||||
quitChecker: o.quitChecker, |
quitChecker: o.quitChecker, |
||||||
mouseOut: false, |
mouseOut: false, |
||||||
allowBlank: o.allowBlank, |
allowBlank: o.allowBlank, |
||||||
watermark: o.watermark, |
watermark: o.watermark, |
||||||
errorText: o.errorText |
errorText: o.errorText |
||||||
}); |
}); |
||||||
this.editor.on(BI.Controller.EVENT_CHANGE, function () { |
this.editor.on(BI.Controller.EVENT_CHANGE, function () { |
||||||
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments); |
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments); |
||||||
}); |
}); |
||||||
this.editor.on(BI.SignEditor.EVENT_CHANGE, function () { |
this.editor.on(BI.SignEditor.EVENT_CHANGE, function () { |
||||||
self.fireEvent(BI.EditorTrigger.EVENT_CHANGE, arguments); |
self.fireEvent(BI.EditorTrigger.EVENT_CHANGE, arguments); |
||||||
}); |
}); |
||||||
|
|
||||||
BI.createWidget({ |
BI.createWidget({ |
||||||
element: this, |
element: this, |
||||||
type: 'bi.htape', |
type: 'bi.htape', |
||||||
items: [ |
items: [ |
||||||
{ |
{ |
||||||
el: this.editor |
el: this.editor |
||||||
}, { |
}, { |
||||||
el: { |
el: { |
||||||
type: "bi.trigger_icon_button", |
type: "bi.trigger_icon_button", |
||||||
width: o.triggerWidth |
cls: "bi-border-left", |
||||||
}, |
width: o.triggerWidth |
||||||
width: o.triggerWidth |
}, |
||||||
} |
width: o.triggerWidth |
||||||
] |
} |
||||||
}); |
] |
||||||
}, |
}); |
||||||
|
}, |
||||||
getValue: function () { |
|
||||||
return this.editor.getValue(); |
getValue: function () { |
||||||
}, |
return this.editor.getValue(); |
||||||
|
}, |
||||||
setValue: function (value) { |
|
||||||
this.editor.setValue(value); |
setValue: function (value) { |
||||||
}, |
this.editor.setValue(value); |
||||||
|
}, |
||||||
setText: function (text) { |
|
||||||
this.editor.setState(text); |
setText: function (text) { |
||||||
} |
this.editor.setState(text); |
||||||
}); |
} |
||||||
BI.EditorTrigger.EVENT_CHANGE = "BI.EditorTrigger.EVENT_CHANGE"; |
}); |
||||||
|
BI.EditorTrigger.EVENT_CHANGE = "BI.EditorTrigger.EVENT_CHANGE"; |
||||||
BI.shortcut("bi.editor_trigger", BI.EditorTrigger); |
BI.shortcut("bi.editor_trigger", BI.EditorTrigger); |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue