|
|
@ -8789,7 +8789,15 @@ BI.shortcut("demo.searcher_view", Demo.Func);Demo.Face = BI.inherit(BI.Widget, { |
|
|
|
self.activeFontColor = this; |
|
|
|
self.activeFontColor = this; |
|
|
|
}, function () { |
|
|
|
}, function () { |
|
|
|
self._runGlobalStyle(); |
|
|
|
self._runGlobalStyle(); |
|
|
|
})] |
|
|
|
}), { |
|
|
|
|
|
|
|
width: 100, |
|
|
|
|
|
|
|
el: { |
|
|
|
|
|
|
|
type: "bi.text_button", |
|
|
|
|
|
|
|
cls: "bi-list-item-active", |
|
|
|
|
|
|
|
text: "测试激活状态", |
|
|
|
|
|
|
|
forceCenter: true |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}] |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -8803,7 +8811,15 @@ BI.shortcut("demo.searcher_view", Demo.Func);Demo.Face = BI.inherit(BI.Widget, { |
|
|
|
self.selectFontColor = this; |
|
|
|
self.selectFontColor = this; |
|
|
|
}, function () { |
|
|
|
}, function () { |
|
|
|
self._runGlobalStyle(); |
|
|
|
self._runGlobalStyle(); |
|
|
|
})] |
|
|
|
}), { |
|
|
|
|
|
|
|
width: 100, |
|
|
|
|
|
|
|
el: { |
|
|
|
|
|
|
|
type: "bi.text_button", |
|
|
|
|
|
|
|
cls: "bi-list-item-active", |
|
|
|
|
|
|
|
text: "测试选中状态", |
|
|
|
|
|
|
|
forceCenter: true |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}] |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -8813,11 +8829,19 @@ BI.shortcut("demo.searcher_view", Demo.Func);Demo.Face = BI.inherit(BI.Widget, { |
|
|
|
type: "bi.htape", |
|
|
|
type: "bi.htape", |
|
|
|
cls: "config-item bi-border-bottom", |
|
|
|
cls: "config-item bi-border-bottom", |
|
|
|
height: 40, |
|
|
|
height: 40, |
|
|
|
items: [this._createLabel("灰色字体颜色(用于Card2):"), this._createColorPicker(function () { |
|
|
|
items: [this._createLabel("tip提示字体颜色:"), this._createColorPicker(function () { |
|
|
|
self.grayFontColor = this; |
|
|
|
self.grayFontColor = this; |
|
|
|
}, function () { |
|
|
|
}, function () { |
|
|
|
self._runGlobalStyle(); |
|
|
|
self._runGlobalStyle(); |
|
|
|
})] |
|
|
|
}), { |
|
|
|
|
|
|
|
width: 100, |
|
|
|
|
|
|
|
el: { |
|
|
|
|
|
|
|
type: "bi.icon_text_item", |
|
|
|
|
|
|
|
cls: "bi-tips copy-font", |
|
|
|
|
|
|
|
height: 40, |
|
|
|
|
|
|
|
text: "测试提示文字" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}] |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -8843,28 +8867,19 @@ BI.shortcut("demo.searcher_view", Demo.Func);Demo.Face = BI.inherit(BI.Widget, { |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_createCard1BackgroundConfig: function () { |
|
|
|
_createCardBackgroundConfig: function () { |
|
|
|
var self = this; |
|
|
|
var self = this; |
|
|
|
return { |
|
|
|
return { |
|
|
|
type: "bi.htape", |
|
|
|
type: "bi.htape", |
|
|
|
cls: "config-item bi-border-bottom", |
|
|
|
cls: "config-item bi-border-bottom", |
|
|
|
height: 40, |
|
|
|
height: 40, |
|
|
|
items: [this._createLabel("Card1背景颜色:"), this._createColorPicker(function () { |
|
|
|
items: [this._createLabel("Card背景颜色:"), this._createColorPicker(function () { |
|
|
|
self.cardBackgroundColor = this; |
|
|
|
self.cardBackgroundColor = this; |
|
|
|
}, function () { |
|
|
|
}, function () { |
|
|
|
self._runGlobalStyle(); |
|
|
|
self._runGlobalStyle(); |
|
|
|
})] |
|
|
|
})] |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
_createCard2BackgroundConfig: function () { |
|
|
|
|
|
|
|
var self = this; |
|
|
|
|
|
|
|
return { |
|
|
|
|
|
|
|
type: "bi.htape", |
|
|
|
|
|
|
|
cls: "config-item bi-border-bottom", |
|
|
|
|
|
|
|
height: 40, |
|
|
|
|
|
|
|
items: [this._createLabel("Card2背景颜色:无颜色")] |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_createHoverBackgroundColor: function () { |
|
|
|
_createHoverBackgroundColor: function () { |
|
|
|
var self = this; |
|
|
|
var self = this; |
|
|
@ -8876,7 +8891,15 @@ BI.shortcut("demo.searcher_view", Demo.Func);Demo.Face = BI.inherit(BI.Widget, { |
|
|
|
self.hoverBackgroundColor = this; |
|
|
|
self.hoverBackgroundColor = this; |
|
|
|
}, function () { |
|
|
|
}, function () { |
|
|
|
self._runGlobalStyle(); |
|
|
|
self._runGlobalStyle(); |
|
|
|
})] |
|
|
|
}), { |
|
|
|
|
|
|
|
width: 100, |
|
|
|
|
|
|
|
el: { |
|
|
|
|
|
|
|
type: "bi.text_button", |
|
|
|
|
|
|
|
cls: "bi-list-item-active", |
|
|
|
|
|
|
|
text: "测试悬浮状态", |
|
|
|
|
|
|
|
forceCenter: true |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}] |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -8890,7 +8913,15 @@ BI.shortcut("demo.searcher_view", Demo.Func);Demo.Face = BI.inherit(BI.Widget, { |
|
|
|
self.activeBackgroundColor = this; |
|
|
|
self.activeBackgroundColor = this; |
|
|
|
}, function () { |
|
|
|
}, function () { |
|
|
|
self._runGlobalStyle(); |
|
|
|
self._runGlobalStyle(); |
|
|
|
})] |
|
|
|
}), { |
|
|
|
|
|
|
|
width: 100, |
|
|
|
|
|
|
|
el: { |
|
|
|
|
|
|
|
type: "bi.text_button", |
|
|
|
|
|
|
|
cls: "bi-list-item-active", |
|
|
|
|
|
|
|
text: "测试激活状态", |
|
|
|
|
|
|
|
forceCenter: true |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}] |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -8904,7 +8935,15 @@ BI.shortcut("demo.searcher_view", Demo.Func);Demo.Face = BI.inherit(BI.Widget, { |
|
|
|
self.selectBackgroundColor = this; |
|
|
|
self.selectBackgroundColor = this; |
|
|
|
}, function () { |
|
|
|
}, function () { |
|
|
|
self._runGlobalStyle(); |
|
|
|
self._runGlobalStyle(); |
|
|
|
})] |
|
|
|
}), { |
|
|
|
|
|
|
|
width: 100, |
|
|
|
|
|
|
|
el: { |
|
|
|
|
|
|
|
type: "bi.text_button", |
|
|
|
|
|
|
|
cls: "bi-list-item-active", |
|
|
|
|
|
|
|
text: "测试选中状态", |
|
|
|
|
|
|
|
forceCenter: true |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}] |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -8914,7 +8953,7 @@ BI.shortcut("demo.searcher_view", Demo.Func);Demo.Face = BI.inherit(BI.Widget, { |
|
|
|
type: "bi.htape", |
|
|
|
type: "bi.htape", |
|
|
|
cls: "config-item bi-border-bottom", |
|
|
|
cls: "config-item bi-border-bottom", |
|
|
|
height: 40, |
|
|
|
height: 40, |
|
|
|
items: [this._createLabel("分割线颜色(只对左边的表格有效):"), this._createColorPicker(function () { |
|
|
|
items: [this._createLabel("分割线颜色:"), this._createColorPicker(function () { |
|
|
|
self.slitColor = this; |
|
|
|
self.slitColor = this; |
|
|
|
}, function () { |
|
|
|
}, function () { |
|
|
|
self._runGlobalStyle(); |
|
|
|
self._runGlobalStyle(); |
|
|
@ -8927,13 +8966,12 @@ BI.shortcut("demo.searcher_view", Demo.Func);Demo.Face = BI.inherit(BI.Widget, { |
|
|
|
type: "bi.vertical", |
|
|
|
type: "bi.vertical", |
|
|
|
items: [this._createLabel("--通用配色--"), |
|
|
|
items: [this._createLabel("--通用配色--"), |
|
|
|
this._createBackgroundConfig(), |
|
|
|
this._createBackgroundConfig(), |
|
|
|
|
|
|
|
this._createCardBackgroundConfig(), |
|
|
|
this._createFontConfig(), |
|
|
|
this._createFontConfig(), |
|
|
|
this._createActiveFontConfig(), |
|
|
|
this._createActiveFontConfig(), |
|
|
|
this._createSelectFontConfig(), |
|
|
|
this._createSelectFontConfig(), |
|
|
|
this._createGrayFontConfig(), |
|
|
|
this._createGrayFontConfig(), |
|
|
|
this._createDisableFontConfig(), |
|
|
|
this._createDisableFontConfig(), |
|
|
|
this._createCard1BackgroundConfig(), |
|
|
|
|
|
|
|
this._createCard2BackgroundConfig(), |
|
|
|
|
|
|
|
this._createHoverBackgroundColor(), |
|
|
|
this._createHoverBackgroundColor(), |
|
|
|
this._createActiveBackgroundColor(), |
|
|
|
this._createActiveBackgroundColor(), |
|
|
|
this._createSelectBackgroundColor(), |
|
|
|
this._createSelectBackgroundColor(), |
|
|
@ -9284,7 +9322,8 @@ BI.shortcut("demo.searcher_view", Demo.Func);Demo.Face = BI.inherit(BI.Widget, { |
|
|
|
color: fontColor |
|
|
|
color: fontColor |
|
|
|
}, |
|
|
|
}, |
|
|
|
"#wrapper .bi-card": { |
|
|
|
"#wrapper .bi-card": { |
|
|
|
"background-color": cardBackgroundColor |
|
|
|
"background-color": cardBackgroundColor, |
|
|
|
|
|
|
|
color: fontColor |
|
|
|
}, |
|
|
|
}, |
|
|
|
"#wrapper .bi-tips": { |
|
|
|
"#wrapper .bi-tips": { |
|
|
|
color: grayFontColor |
|
|
|
color: grayFontColor |
|
|
@ -9333,6 +9372,10 @@ BI.shortcut("demo.searcher_view", Demo.Func);Demo.Face = BI.inherit(BI.Widget, { |
|
|
|
".bi-button.button-ignore": { |
|
|
|
".bi-button.button-ignore": { |
|
|
|
"background-color": button4BackgroundColor |
|
|
|
"background-color": button4BackgroundColor |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
// 以下是分割线颜色
|
|
|
|
|
|
|
|
"#wrapper .bi-border,#wrapper .bi-border-top,#wrapper .bi-border-bottom,#wrapper .bi-border-left,#wrapper .bi-border-right": { |
|
|
|
|
|
|
|
"border-color": slitColor |
|
|
|
|
|
|
|
}, |
|
|
|
".bi-collection-table-cell": { |
|
|
|
".bi-collection-table-cell": { |
|
|
|
"border-right-color": slitColor, |
|
|
|
"border-right-color": slitColor, |
|
|
|
"border-bottom-color": slitColor |
|
|
|
"border-bottom-color": slitColor |
|
|
@ -11592,28 +11635,6 @@ BI.shortcut("demo.north", Demo.North);Demo.Preview = BI.inherit(BI.Widget, { |
|
|
|
type: "bi.absolute", |
|
|
|
type: "bi.absolute", |
|
|
|
cls: "preview-background", |
|
|
|
cls: "preview-background", |
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
el: { |
|
|
|
|
|
|
|
type: "bi.left", |
|
|
|
|
|
|
|
cls: "preview-header bi-tips", |
|
|
|
|
|
|
|
height: 40, |
|
|
|
|
|
|
|
items: [{ |
|
|
|
|
|
|
|
type: "bi.label", |
|
|
|
|
|
|
|
height: 40, |
|
|
|
|
|
|
|
text: "Card2", |
|
|
|
|
|
|
|
hgap: 10, |
|
|
|
|
|
|
|
textAlign: "left" |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
type: "bi.icon_text_item", |
|
|
|
|
|
|
|
cls: "filter-font", |
|
|
|
|
|
|
|
text: "测试图标", |
|
|
|
|
|
|
|
width: 100, |
|
|
|
|
|
|
|
height: 40 |
|
|
|
|
|
|
|
}] |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
left: 60, |
|
|
|
|
|
|
|
right: 60, |
|
|
|
|
|
|
|
top: 60 |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
el: { |
|
|
|
el: { |
|
|
|
type: "bi.vtape", |
|
|
|
type: "bi.vtape", |
|
|
|
cls: "preview-card bi-card", |
|
|
|
cls: "preview-card bi-card", |
|
|
@ -11622,7 +11643,7 @@ BI.shortcut("demo.north", Demo.North);Demo.Preview = BI.inherit(BI.Widget, { |
|
|
|
type: "bi.label", |
|
|
|
type: "bi.label", |
|
|
|
cls: "preview-title bi-border-bottom", |
|
|
|
cls: "preview-title bi-border-bottom", |
|
|
|
height: 40, |
|
|
|
height: 40, |
|
|
|
text: "Card1", |
|
|
|
text: "Card", |
|
|
|
hgap: 10, |
|
|
|
hgap: 10, |
|
|
|
textAlign: "left" |
|
|
|
textAlign: "left" |
|
|
|
}, |
|
|
|
}, |
|
|
@ -11654,7 +11675,7 @@ BI.shortcut("demo.north", Demo.North);Demo.Preview = BI.inherit(BI.Widget, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
left: 60, |
|
|
|
left: 60, |
|
|
|
right: 60, |
|
|
|
right: 60, |
|
|
|
top: 160, |
|
|
|
top: 60, |
|
|
|
bottom: 60 |
|
|
|
bottom: 60 |
|
|
|
}] |
|
|
|
}] |
|
|
|
}; |
|
|
|
}; |
|
|
|