Browse Source

BI-24611 && BI-25107

es6
windy 7 years ago
parent
commit
149f1ea425
  1. 2
      demo/js/case/combo/demo.icon_text_value_combo.js
  2. 7
      demo/js/case/combo/demo.text_value_combo.js
  3. 6
      dist/_fineui.min.js
  4. 3
      dist/base.js
  5. 6
      dist/bundle.css
  6. 8
      dist/bundle.js
  7. 2
      dist/bundle.min.css
  8. 10
      dist/bundle.min.js
  9. 5
      dist/case.js
  10. 6
      dist/core.css
  11. 6
      dist/core_without_normalize.css
  12. 9
      dist/demo.js
  13. 6
      dist/fineui.css
  14. 8
      dist/fineui.js
  15. 2
      dist/fineui.min.css
  16. 7
      dist/fineui.min.js
  17. 1
      src/base/formula/formulaeditor.js
  18. 2
      src/base/layer/layer.popup.js
  19. 5
      src/case/trigger/trigger.icon.text.js
  20. 6
      src/css/core/utils/common.css
  21. 5
      src/less/core/utils/common.less

2
demo/js/case/combo/demo.icon_text_value_combo.js

@ -13,7 +13,7 @@ Demo.IconTextValueCombo = BI.inherit(BI.Widget, {
type: "bi.icon_text_value_combo",
text: "默认值",
// defaultIconCls: "next-page-h-font",
value: 23,
value: 1,
width: 300,
iconHeight: 16,
iconWidth: 16,

7
demo/js/case/combo/demo.text_value_combo.js

@ -8,7 +8,7 @@ Demo.TextValueCombo = BI.inherit(BI.Widget, {
render: function () {
var combo;
return {
type: "bi.horizontal_auto",
type: "bi.vertical",
items: [{
type: "bi.text_value_combo",
ref: function () {
@ -39,12 +39,15 @@ Demo.TextValueCombo = BI.inherit(BI.Widget, {
value: ["1", "2", "3"]
}
}, {
type: "bi.button",
type: "bi.popup_view",
width: 90,
height: 25,
handler: function () {
combo.setValue(3);
}
}, {
type: 'bi.label',
height: 1000
}],
vgap: 20
};

6
dist/_fineui.min.js vendored

File diff suppressed because one or more lines are too long

3
dist/base.js vendored

@ -14648,7 +14648,6 @@ BI.FormulaEditor = BI.inherit(BI.Single, {
this.editor.replaceSelection("\u200b" + field + "\u200b");
var to = this.editor.getCursor();
this.editor.markText(from, to, {className: "fieldName", atomic: true, startStyle: "start", endStyle: "end"});
this.editor.replaceSelection(" ");
this.editor.focus();
},
@ -15594,7 +15593,7 @@ BI.PopupView = BI.inherit(BI.Widget, {
BI.PopupView.superclass._init.apply(this, arguments);
var self = this, o = this.options;
var fn = function (e) {
e.stopPropagation();
e.stopEvent();
}, stop = function (e) {
e.stopEvent();
return false;

6
dist/bundle.css vendored

@ -394,6 +394,11 @@ textarea {
.bi-border {
border: 1px solid #d4dadd;
}
.bi-border-radius {
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
}
.bi-theme-dark .bi-border {
border: 1px solid #525466;
}
@ -741,7 +746,6 @@ textarea {
}
.bi-list-item-active.active {
color: #3685f2;
background-color: #ffffff;
}
.bi-list-item-active.active .bi-input {
color: #3685f2;

8
dist/bundle.js vendored

@ -50418,7 +50418,6 @@ BI.FormulaEditor = BI.inherit(BI.Single, {
this.editor.replaceSelection("\u200b" + field + "\u200b");
var to = this.editor.getCursor();
this.editor.markText(from, to, {className: "fieldName", atomic: true, startStyle: "start", endStyle: "end"});
this.editor.replaceSelection(" ");
this.editor.focus();
},
@ -51364,7 +51363,7 @@ BI.PopupView = BI.inherit(BI.Widget, {
BI.PopupView.superclass._init.apply(this, arguments);
var self = this, o = this.options;
var fn = function (e) {
e.stopPropagation();
e.stopEvent();
}, stop = function (e) {
e.stopEvent();
return false;
@ -87288,7 +87287,8 @@ BI.IconTextTrigger = BI.inherit(BI.Trigger, {
items: [{
el: {
type: "bi.icon_change_button",
cls: "icon-combo-trigger-icon " + o.iconCls,
cls: "icon-combo-trigger-icon",
iconCls: o.iconCls,
ref: function (_ref) {
self.icon = _ref;
},
@ -87296,7 +87296,7 @@ BI.IconTextTrigger = BI.inherit(BI.Trigger, {
iconWidth: o.iconWidth,
disableSelected: true
},
width: BI.isEmptyString(o.iconCls)? 0 : (o.triggerWidth || o.height)
width: BI.isEmptyString(o.iconCls) ? 0 : (o.triggerWidth || o.height)
},
{
el: this.text

2
dist/bundle.min.css vendored

File diff suppressed because one or more lines are too long

10
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

5
dist/case.js vendored

@ -14804,7 +14804,8 @@ BI.IconTextTrigger = BI.inherit(BI.Trigger, {
items: [{
el: {
type: "bi.icon_change_button",
cls: "icon-combo-trigger-icon " + o.iconCls,
cls: "icon-combo-trigger-icon",
iconCls: o.iconCls,
ref: function (_ref) {
self.icon = _ref;
},
@ -14812,7 +14813,7 @@ BI.IconTextTrigger = BI.inherit(BI.Trigger, {
iconWidth: o.iconWidth,
disableSelected: true
},
width: BI.isEmptyString(o.iconCls)? 0 : (o.triggerWidth || o.height)
width: BI.isEmptyString(o.iconCls) ? 0 : (o.triggerWidth || o.height)
},
{
el: this.text

6
dist/core.css vendored

@ -394,6 +394,11 @@ textarea {
.bi-border {
border: 1px solid #d4dadd;
}
.bi-border-radius {
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
}
.bi-theme-dark .bi-border {
border: 1px solid #525466;
}
@ -741,7 +746,6 @@ textarea {
}
.bi-list-item-active.active {
color: #3685f2;
background-color: #ffffff;
}
.bi-list-item-active.active .bi-input {
color: #3685f2;

6
dist/core_without_normalize.css vendored

@ -116,6 +116,11 @@ textarea {
.bi-border {
border: 1px solid #d4dadd;
}
.bi-border-radius {
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
}
.bi-theme-dark .bi-border {
border: 1px solid #525466;
}
@ -463,7 +468,6 @@ textarea {
}
.bi-list-item-active.active {
color: #3685f2;
background-color: #ffffff;
}
.bi-list-item-active.active .bi-input {
color: #3685f2;

9
dist/demo.js vendored

@ -2030,7 +2030,7 @@ Demo.IconTextValueCombo = BI.inherit(BI.Widget, {
type: "bi.icon_text_value_combo",
text: "默认值",
// defaultIconCls: "next-page-h-font",
value: 23,
value: 1,
width: 300,
iconHeight: 16,
iconWidth: 16,
@ -2191,7 +2191,7 @@ Demo.TextValueCombo = BI.inherit(BI.Widget, {
render: function () {
var combo;
return {
type: "bi.horizontal_auto",
type: "bi.vertical",
items: [{
type: "bi.text_value_combo",
ref: function () {
@ -2222,12 +2222,15 @@ Demo.TextValueCombo = BI.inherit(BI.Widget, {
value: ["1", "2", "3"]
}
}, {
type: "bi.button",
type: "bi.popup_view",
width: 90,
height: 25,
handler: function () {
combo.setValue(3);
}
}, {
type: 'bi.label',
height: 1000
}],
vgap: 20
};

6
dist/fineui.css vendored

@ -394,6 +394,11 @@ textarea {
.bi-border {
border: 1px solid #d4dadd;
}
.bi-border-radius {
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
}
.bi-theme-dark .bi-border {
border: 1px solid #525466;
}
@ -741,7 +746,6 @@ textarea {
}
.bi-list-item-active.active {
color: #3685f2;
background-color: #ffffff;
}
.bi-list-item-active.active .bi-input {
color: #3685f2;

8
dist/fineui.js vendored

@ -50661,7 +50661,6 @@ BI.FormulaEditor = BI.inherit(BI.Single, {
this.editor.replaceSelection("\u200b" + field + "\u200b");
var to = this.editor.getCursor();
this.editor.markText(from, to, {className: "fieldName", atomic: true, startStyle: "start", endStyle: "end"});
this.editor.replaceSelection(" ");
this.editor.focus();
},
@ -51607,7 +51606,7 @@ BI.PopupView = BI.inherit(BI.Widget, {
BI.PopupView.superclass._init.apply(this, arguments);
var self = this, o = this.options;
var fn = function (e) {
e.stopPropagation();
e.stopEvent();
}, stop = function (e) {
e.stopEvent();
return false;
@ -87531,7 +87530,8 @@ BI.IconTextTrigger = BI.inherit(BI.Trigger, {
items: [{
el: {
type: "bi.icon_change_button",
cls: "icon-combo-trigger-icon " + o.iconCls,
cls: "icon-combo-trigger-icon",
iconCls: o.iconCls,
ref: function (_ref) {
self.icon = _ref;
},
@ -87539,7 +87539,7 @@ BI.IconTextTrigger = BI.inherit(BI.Trigger, {
iconWidth: o.iconWidth,
disableSelected: true
},
width: BI.isEmptyString(o.iconCls)? 0 : (o.triggerWidth || o.height)
width: BI.isEmptyString(o.iconCls) ? 0 : (o.triggerWidth || o.height)
},
{
el: this.text

2
dist/fineui.min.css vendored

File diff suppressed because one or more lines are too long

7
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

1
src/base/formula/formulaeditor.js

@ -125,7 +125,6 @@ BI.FormulaEditor = BI.inherit(BI.Single, {
this.editor.replaceSelection("\u200b" + field + "\u200b");
var to = this.editor.getCursor();
this.editor.markText(from, to, {className: "fieldName", atomic: true, startStyle: "start", endStyle: "end"});
this.editor.replaceSelection(" ");
this.editor.focus();
},

2
src/base/layer/layer.popup.js

@ -44,7 +44,7 @@ BI.PopupView = BI.inherit(BI.Widget, {
BI.PopupView.superclass._init.apply(this, arguments);
var self = this, o = this.options;
var fn = function (e) {
e.stopPropagation();
e.stopEvent();
}, stop = function (e) {
e.stopEvent();
return false;

5
src/case/trigger/trigger.icon.text.js

@ -44,7 +44,8 @@ BI.IconTextTrigger = BI.inherit(BI.Trigger, {
items: [{
el: {
type: "bi.icon_change_button",
cls: "icon-combo-trigger-icon " + o.iconCls,
cls: "icon-combo-trigger-icon",
iconCls: o.iconCls,
ref: function (_ref) {
self.icon = _ref;
},
@ -52,7 +53,7 @@ BI.IconTextTrigger = BI.inherit(BI.Trigger, {
iconWidth: o.iconWidth,
disableSelected: true
},
width: BI.isEmptyString(o.iconCls)? 0 : (o.triggerWidth || o.height)
width: BI.isEmptyString(o.iconCls) ? 0 : (o.triggerWidth || o.height)
},
{
el: this.text

6
src/css/core/utils/common.css

@ -116,6 +116,11 @@ textarea {
.bi-border {
border: 1px solid #d4dadd;
}
.bi-border-radius {
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
}
.bi-theme-dark .bi-border {
border: 1px solid #525466;
}
@ -463,7 +468,6 @@ textarea {
}
.bi-list-item-active.active {
color: #3685f2;
background-color: #ffffff;
}
.bi-list-item-active.active .bi-input {
color: #3685f2;

5
src/less/core/utils/common.less

@ -137,6 +137,10 @@ textarea {
border: 1px solid @color-bi-border-line;
}
.bi-border-radius {
.border-radius(2px);
}
.bi-theme-dark {
.bi-border {
border: 1px solid @color-bi-border-line-theme-dark;
@ -510,7 +514,6 @@ textarea {
& .bi-textarea {
color: @color-bi-text-highlight;
}
background-color: @color-bi-background-default;
}
&.disabled {
&, &:hover, &:active {

Loading…
Cancel
Save