Browse Source

DEC-6844 fix: textArea交互 && checkbox使用render && less

es6
windy 5 years ago
parent
commit
119fc0cfec
  1. 1
      dist/base.css
  2. 63
      dist/base.js
  3. 43
      dist/bundle.css
  4. 63
      dist/bundle.ie.js
  5. 48
      dist/bundle.ie.min.js
  6. 63
      dist/bundle.js
  7. 2
      dist/bundle.min.css
  8. 48
      dist/bundle.min.js
  9. 42
      dist/core.css
  10. 42
      dist/core_without_normalize.css
  11. 43
      dist/fineui.css
  12. 63
      dist/fineui.ie.js
  13. 48
      dist/fineui.ie.min.js
  14. 63
      dist/fineui.js
  15. 2
      dist/fineui.min.css
  16. 48
      dist/fineui.min.js
  17. 63
      dist/fineui_without_jquery_polyfill.js
  18. 2
      dist/utils.min.js
  19. 8
      src/base/single/editor/editor.textarea.js
  20. 28
      src/base/single/input/checkbox/checkbox.js
  21. 27
      src/base/single/input/radio/radio.js
  22. 1
      src/css/base/single/editor/editor.css
  23. 42
      src/css/core/utils/common.css
  24. 1
      src/less/base/single/editor/editor.textarea.less
  25. 30
      src/less/core/utils/common.less
  26. 2
      src/less/lib/constant.less

1
dist/base.css vendored

@ -1370,6 +1370,7 @@ body .bi-button.button-ignore.disabled.ghost .b-font:before,
}
.bi-textarea-editor .textarea-editor-content {
font-size: 12px;
line-height: 21px;
border: none;
}
.x-icon.b-font {

63
dist/base.js vendored

@ -8941,10 +8941,10 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
type: "bi.adaptive",
items: [this.content]
},
left: 6,
right: 6,
top: 6,
bottom: 6
left: 10,
right: 8,
top: 8,
bottom: 10
}]
});
@ -9330,25 +9330,21 @@ BI.shortcut("bi.image_checkbox", BI.ImageCheckbox);/**
* @type {*|void|Object}
*/
BI.Checkbox = BI.inherit(BI.BasicButton, {
_defaultConfig: function () {
var conf = BI.Checkbox.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, {
baseCls: (conf.baseCls || "") + " bi-checkbox",
selected: false,
handler: BI.emptyFn,
width: 16,
height: 16,
iconWidth: 14,
iconHeight: 14
});
props: {
baseCls: "bi-checkbox",
selected: false,
handler: BI.emptyFn,
width: 16,
height: 16,
iconWidth: 14,
iconHeight: 14
},
_init: function () {
BI.Checkbox.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
BI.createWidget({
return {
type: "bi.center_adapt",
element: this.element,
items: [{
type: "bi.default",
ref: function (_ref) {
@ -9358,7 +9354,7 @@ BI.Checkbox = BI.inherit(BI.BasicButton, {
width: o.iconWidth,
height: o.iconHeight
}]
});
};
},
_setEnable: function (enable) {
@ -10354,23 +10350,20 @@ BI.shortcut("bi.image_radio", BI.ImageRadio);/**
* @type {*|void|Object}
*/
BI.Radio = BI.inherit(BI.BasicButton, {
_defaultConfig: function () {
var conf = BI.Radio.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, {
baseCls: (conf.baseCls || "") + " bi-radio",
selected: false,
handler: BI.emptyFn,
width: 16,
height: 16,
iconWidth: 14,
iconHeight: 14
});
props: {
baseCls: "bi-radio",
selected: false,
handler: BI.emptyFn,
width: 16,
height: 16,
iconWidth: 14,
iconHeight: 14
},
_init: function () {
BI.Radio.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
BI.createWidget({
return {
type: "bi.center_adapt",
element: this.element,
items: [{
@ -10382,7 +10375,7 @@ BI.Radio = BI.inherit(BI.BasicButton, {
width: o.iconWidth,
height: o.iconHeight
}]
});
};
},
_setEnable: function (enable) {

43
dist/bundle.css vendored

@ -417,29 +417,44 @@ textarea {
color: #878d9f;
}
.bi-tips {
color: #c4c9d1;
color: #9ea6b2;
}
.bi-tips .bi-input {
color: #c4c9d1;
color: #9ea6b2;
}
.bi-tips .bi-textarea {
color: #c4c9d1;
color: #9ea6b2;
}
.bi-border {
border: 1px solid #e8eaed;
}
.bi-border.disabled {
border-color: #d0d4da !important;
}
.bi-border-top {
border-top: 1px solid #e8eaed;
}
.bi-border-top.disabled {
border-color: #d0d4da !important;
}
.bi-border-right {
border-right: 1px solid #e8eaed;
}
.bi-border-right.disabled {
border-color: #d0d4da !important;
}
.bi-border-bottom {
border-bottom: 1px solid #e8eaed;
}
.bi-border-bottom.disabled {
border-color: #d0d4da !important;
}
.bi-border-left {
border-left: 1px solid #e8eaed;
}
.bi-border-left.disabled {
border-color: #d0d4da !important;
}
.bi-theme-dark .bi-border {
border: 1px solid #3a3c53;
}
@ -548,6 +563,16 @@ textarea {
.bi-high-light-background .bi-textarea {
color: #ffffff;
}
.bi-high-light-background.disabled {
background-color: transparent !important;
color: #9ea6b2 !important;
}
.bi-high-light-background.disabled .bi-input {
color: #9ea6b2 !important;
}
.bi-high-light-background.disabled .bi-textarea {
color: #9ea6b2 !important;
}
.bi-error-background {
background-color: #ff4949;
color: #ffffff;
@ -559,17 +584,20 @@ textarea {
color: #ffffff;
}
.bi-high-light-border {
border-color: #3685f2;
border: 1px solid #3685f2;
}
.bi-high-light-border.disabled {
border-color: #d0d4da !important;
}
.bi-water-mark {
color: #c4c9d1;
color: #9ea6b2;
cursor: text;
}
.bi-water-mark .bi-input {
color: #c4c9d1;
color: #9ea6b2;
}
.bi-water-mark .bi-textarea {
color: #c4c9d1;
color: #9ea6b2;
}
.bi-theme-dark .bi-water-mark {
color: #6b7084;
@ -3341,6 +3369,7 @@ body .bi-button.button-ignore.disabled.ghost .b-font:before,
}
.bi-textarea-editor .textarea-editor-content {
font-size: 12px;
line-height: 21px;
border: none;
}
.x-icon.b-font {

63
dist/bundle.ie.js vendored

@ -44016,10 +44016,10 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
type: "bi.adaptive",
items: [this.content]
},
left: 6,
right: 6,
top: 6,
bottom: 6
left: 10,
right: 8,
top: 8,
bottom: 10
}]
});
@ -44405,25 +44405,21 @@ BI.shortcut("bi.image_checkbox", BI.ImageCheckbox);/**
* @type {*|void|Object}
*/
BI.Checkbox = BI.inherit(BI.BasicButton, {
_defaultConfig: function () {
var conf = BI.Checkbox.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, {
baseCls: (conf.baseCls || "") + " bi-checkbox",
selected: false,
handler: BI.emptyFn,
width: 16,
height: 16,
iconWidth: 14,
iconHeight: 14
});
props: {
baseCls: "bi-checkbox",
selected: false,
handler: BI.emptyFn,
width: 16,
height: 16,
iconWidth: 14,
iconHeight: 14
},
_init: function () {
BI.Checkbox.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
BI.createWidget({
return {
type: "bi.center_adapt",
element: this.element,
items: [{
type: "bi.default",
ref: function (_ref) {
@ -44433,7 +44429,7 @@ BI.Checkbox = BI.inherit(BI.BasicButton, {
width: o.iconWidth,
height: o.iconHeight
}]
});
};
},
_setEnable: function (enable) {
@ -45429,23 +45425,20 @@ BI.shortcut("bi.image_radio", BI.ImageRadio);/**
* @type {*|void|Object}
*/
BI.Radio = BI.inherit(BI.BasicButton, {
_defaultConfig: function () {
var conf = BI.Radio.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, {
baseCls: (conf.baseCls || "") + " bi-radio",
selected: false,
handler: BI.emptyFn,
width: 16,
height: 16,
iconWidth: 14,
iconHeight: 14
});
props: {
baseCls: "bi-radio",
selected: false,
handler: BI.emptyFn,
width: 16,
height: 16,
iconWidth: 14,
iconHeight: 14
},
_init: function () {
BI.Radio.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
BI.createWidget({
return {
type: "bi.center_adapt",
element: this.element,
items: [{
@ -45457,7 +45450,7 @@ BI.Radio = BI.inherit(BI.BasicButton, {
width: o.iconWidth,
height: o.iconHeight
}]
});
};
},
_setEnable: function (enable) {

48
dist/bundle.ie.min.js vendored

File diff suppressed because one or more lines are too long

63
dist/bundle.js vendored

@ -44420,10 +44420,10 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
type: "bi.adaptive",
items: [this.content]
},
left: 6,
right: 6,
top: 6,
bottom: 6
left: 10,
right: 8,
top: 8,
bottom: 10
}]
});
@ -44809,25 +44809,21 @@ BI.shortcut("bi.image_checkbox", BI.ImageCheckbox);/**
* @type {*|void|Object}
*/
BI.Checkbox = BI.inherit(BI.BasicButton, {
_defaultConfig: function () {
var conf = BI.Checkbox.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, {
baseCls: (conf.baseCls || "") + " bi-checkbox",
selected: false,
handler: BI.emptyFn,
width: 16,
height: 16,
iconWidth: 14,
iconHeight: 14
});
props: {
baseCls: "bi-checkbox",
selected: false,
handler: BI.emptyFn,
width: 16,
height: 16,
iconWidth: 14,
iconHeight: 14
},
_init: function () {
BI.Checkbox.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
BI.createWidget({
return {
type: "bi.center_adapt",
element: this.element,
items: [{
type: "bi.default",
ref: function (_ref) {
@ -44837,7 +44833,7 @@ BI.Checkbox = BI.inherit(BI.BasicButton, {
width: o.iconWidth,
height: o.iconHeight
}]
});
};
},
_setEnable: function (enable) {
@ -45833,23 +45829,20 @@ BI.shortcut("bi.image_radio", BI.ImageRadio);/**
* @type {*|void|Object}
*/
BI.Radio = BI.inherit(BI.BasicButton, {
_defaultConfig: function () {
var conf = BI.Radio.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, {
baseCls: (conf.baseCls || "") + " bi-radio",
selected: false,
handler: BI.emptyFn,
width: 16,
height: 16,
iconWidth: 14,
iconHeight: 14
});
props: {
baseCls: "bi-radio",
selected: false,
handler: BI.emptyFn,
width: 16,
height: 16,
iconWidth: 14,
iconHeight: 14
},
_init: function () {
BI.Radio.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
BI.createWidget({
return {
type: "bi.center_adapt",
element: this.element,
items: [{
@ -45861,7 +45854,7 @@ BI.Radio = BI.inherit(BI.BasicButton, {
width: o.iconWidth,
height: o.iconHeight
}]
});
};
},
_setEnable: function (enable) {

2
dist/bundle.min.css vendored

File diff suppressed because one or more lines are too long

48
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

42
dist/core.css vendored

@ -417,29 +417,44 @@ textarea {
color: #878d9f;
}
.bi-tips {
color: #c4c9d1;
color: #9ea6b2;
}
.bi-tips .bi-input {
color: #c4c9d1;
color: #9ea6b2;
}
.bi-tips .bi-textarea {
color: #c4c9d1;
color: #9ea6b2;
}
.bi-border {
border: 1px solid #e8eaed;
}
.bi-border.disabled {
border-color: #d0d4da !important;
}
.bi-border-top {
border-top: 1px solid #e8eaed;
}
.bi-border-top.disabled {
border-color: #d0d4da !important;
}
.bi-border-right {
border-right: 1px solid #e8eaed;
}
.bi-border-right.disabled {
border-color: #d0d4da !important;
}
.bi-border-bottom {
border-bottom: 1px solid #e8eaed;
}
.bi-border-bottom.disabled {
border-color: #d0d4da !important;
}
.bi-border-left {
border-left: 1px solid #e8eaed;
}
.bi-border-left.disabled {
border-color: #d0d4da !important;
}
.bi-theme-dark .bi-border {
border: 1px solid #3a3c53;
}
@ -548,6 +563,16 @@ textarea {
.bi-high-light-background .bi-textarea {
color: #ffffff;
}
.bi-high-light-background.disabled {
background-color: transparent !important;
color: #9ea6b2 !important;
}
.bi-high-light-background.disabled .bi-input {
color: #9ea6b2 !important;
}
.bi-high-light-background.disabled .bi-textarea {
color: #9ea6b2 !important;
}
.bi-error-background {
background-color: #ff4949;
color: #ffffff;
@ -559,17 +584,20 @@ textarea {
color: #ffffff;
}
.bi-high-light-border {
border-color: #3685f2;
border: 1px solid #3685f2;
}
.bi-high-light-border.disabled {
border-color: #d0d4da !important;
}
.bi-water-mark {
color: #c4c9d1;
color: #9ea6b2;
cursor: text;
}
.bi-water-mark .bi-input {
color: #c4c9d1;
color: #9ea6b2;
}
.bi-water-mark .bi-textarea {
color: #c4c9d1;
color: #9ea6b2;
}
.bi-theme-dark .bi-water-mark {
color: #6b7084;

42
dist/core_without_normalize.css vendored

@ -136,29 +136,44 @@ textarea {
color: #878d9f;
}
.bi-tips {
color: #c4c9d1;
color: #9ea6b2;
}
.bi-tips .bi-input {
color: #c4c9d1;
color: #9ea6b2;
}
.bi-tips .bi-textarea {
color: #c4c9d1;
color: #9ea6b2;
}
.bi-border {
border: 1px solid #e8eaed;
}
.bi-border.disabled {
border-color: #d0d4da !important;
}
.bi-border-top {
border-top: 1px solid #e8eaed;
}
.bi-border-top.disabled {
border-color: #d0d4da !important;
}
.bi-border-right {
border-right: 1px solid #e8eaed;
}
.bi-border-right.disabled {
border-color: #d0d4da !important;
}
.bi-border-bottom {
border-bottom: 1px solid #e8eaed;
}
.bi-border-bottom.disabled {
border-color: #d0d4da !important;
}
.bi-border-left {
border-left: 1px solid #e8eaed;
}
.bi-border-left.disabled {
border-color: #d0d4da !important;
}
.bi-theme-dark .bi-border {
border: 1px solid #3a3c53;
}
@ -267,6 +282,16 @@ textarea {
.bi-high-light-background .bi-textarea {
color: #ffffff;
}
.bi-high-light-background.disabled {
background-color: transparent !important;
color: #9ea6b2 !important;
}
.bi-high-light-background.disabled .bi-input {
color: #9ea6b2 !important;
}
.bi-high-light-background.disabled .bi-textarea {
color: #9ea6b2 !important;
}
.bi-error-background {
background-color: #ff4949;
color: #ffffff;
@ -278,17 +303,20 @@ textarea {
color: #ffffff;
}
.bi-high-light-border {
border-color: #3685f2;
border: 1px solid #3685f2;
}
.bi-high-light-border.disabled {
border-color: #d0d4da !important;
}
.bi-water-mark {
color: #c4c9d1;
color: #9ea6b2;
cursor: text;
}
.bi-water-mark .bi-input {
color: #c4c9d1;
color: #9ea6b2;
}
.bi-water-mark .bi-textarea {
color: #c4c9d1;
color: #9ea6b2;
}
.bi-theme-dark .bi-water-mark {
color: #6b7084;

43
dist/fineui.css vendored

@ -417,29 +417,44 @@ textarea {
color: #878d9f;
}
.bi-tips {
color: #c4c9d1;
color: #9ea6b2;
}
.bi-tips .bi-input {
color: #c4c9d1;
color: #9ea6b2;
}
.bi-tips .bi-textarea {
color: #c4c9d1;
color: #9ea6b2;
}
.bi-border {
border: 1px solid #e8eaed;
}
.bi-border.disabled {
border-color: #d0d4da !important;
}
.bi-border-top {
border-top: 1px solid #e8eaed;
}
.bi-border-top.disabled {
border-color: #d0d4da !important;
}
.bi-border-right {
border-right: 1px solid #e8eaed;
}
.bi-border-right.disabled {
border-color: #d0d4da !important;
}
.bi-border-bottom {
border-bottom: 1px solid #e8eaed;
}
.bi-border-bottom.disabled {
border-color: #d0d4da !important;
}
.bi-border-left {
border-left: 1px solid #e8eaed;
}
.bi-border-left.disabled {
border-color: #d0d4da !important;
}
.bi-theme-dark .bi-border {
border: 1px solid #3a3c53;
}
@ -548,6 +563,16 @@ textarea {
.bi-high-light-background .bi-textarea {
color: #ffffff;
}
.bi-high-light-background.disabled {
background-color: transparent !important;
color: #9ea6b2 !important;
}
.bi-high-light-background.disabled .bi-input {
color: #9ea6b2 !important;
}
.bi-high-light-background.disabled .bi-textarea {
color: #9ea6b2 !important;
}
.bi-error-background {
background-color: #ff4949;
color: #ffffff;
@ -559,17 +584,20 @@ textarea {
color: #ffffff;
}
.bi-high-light-border {
border-color: #3685f2;
border: 1px solid #3685f2;
}
.bi-high-light-border.disabled {
border-color: #d0d4da !important;
}
.bi-water-mark {
color: #c4c9d1;
color: #9ea6b2;
cursor: text;
}
.bi-water-mark .bi-input {
color: #c4c9d1;
color: #9ea6b2;
}
.bi-water-mark .bi-textarea {
color: #c4c9d1;
color: #9ea6b2;
}
.bi-theme-dark .bi-water-mark {
color: #6b7084;
@ -3341,6 +3369,7 @@ body .bi-button.button-ignore.disabled.ghost .b-font:before,
}
.bi-textarea-editor .textarea-editor-content {
font-size: 12px;
line-height: 21px;
border: none;
}
.x-icon.b-font {

63
dist/fineui.ie.js vendored

@ -44261,10 +44261,10 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
type: "bi.adaptive",
items: [this.content]
},
left: 6,
right: 6,
top: 6,
bottom: 6
left: 10,
right: 8,
top: 8,
bottom: 10
}]
});
@ -44650,25 +44650,21 @@ BI.shortcut("bi.image_checkbox", BI.ImageCheckbox);/**
* @type {*|void|Object}
*/
BI.Checkbox = BI.inherit(BI.BasicButton, {
_defaultConfig: function () {
var conf = BI.Checkbox.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, {
baseCls: (conf.baseCls || "") + " bi-checkbox",
selected: false,
handler: BI.emptyFn,
width: 16,
height: 16,
iconWidth: 14,
iconHeight: 14
});
props: {
baseCls: "bi-checkbox",
selected: false,
handler: BI.emptyFn,
width: 16,
height: 16,
iconWidth: 14,
iconHeight: 14
},
_init: function () {
BI.Checkbox.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
BI.createWidget({
return {
type: "bi.center_adapt",
element: this.element,
items: [{
type: "bi.default",
ref: function (_ref) {
@ -44678,7 +44674,7 @@ BI.Checkbox = BI.inherit(BI.BasicButton, {
width: o.iconWidth,
height: o.iconHeight
}]
});
};
},
_setEnable: function (enable) {
@ -45674,23 +45670,20 @@ BI.shortcut("bi.image_radio", BI.ImageRadio);/**
* @type {*|void|Object}
*/
BI.Radio = BI.inherit(BI.BasicButton, {
_defaultConfig: function () {
var conf = BI.Radio.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, {
baseCls: (conf.baseCls || "") + " bi-radio",
selected: false,
handler: BI.emptyFn,
width: 16,
height: 16,
iconWidth: 14,
iconHeight: 14
});
props: {
baseCls: "bi-radio",
selected: false,
handler: BI.emptyFn,
width: 16,
height: 16,
iconWidth: 14,
iconHeight: 14
},
_init: function () {
BI.Radio.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
BI.createWidget({
return {
type: "bi.center_adapt",
element: this.element,
items: [{
@ -45702,7 +45695,7 @@ BI.Radio = BI.inherit(BI.BasicButton, {
width: o.iconWidth,
height: o.iconHeight
}]
});
};
},
_setEnable: function (enable) {

48
dist/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

63
dist/fineui.js vendored

@ -44665,10 +44665,10 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
type: "bi.adaptive",
items: [this.content]
},
left: 6,
right: 6,
top: 6,
bottom: 6
left: 10,
right: 8,
top: 8,
bottom: 10
}]
});
@ -45054,25 +45054,21 @@ BI.shortcut("bi.image_checkbox", BI.ImageCheckbox);/**
* @type {*|void|Object}
*/
BI.Checkbox = BI.inherit(BI.BasicButton, {
_defaultConfig: function () {
var conf = BI.Checkbox.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, {
baseCls: (conf.baseCls || "") + " bi-checkbox",
selected: false,
handler: BI.emptyFn,
width: 16,
height: 16,
iconWidth: 14,
iconHeight: 14
});
props: {
baseCls: "bi-checkbox",
selected: false,
handler: BI.emptyFn,
width: 16,
height: 16,
iconWidth: 14,
iconHeight: 14
},
_init: function () {
BI.Checkbox.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
BI.createWidget({
return {
type: "bi.center_adapt",
element: this.element,
items: [{
type: "bi.default",
ref: function (_ref) {
@ -45082,7 +45078,7 @@ BI.Checkbox = BI.inherit(BI.BasicButton, {
width: o.iconWidth,
height: o.iconHeight
}]
});
};
},
_setEnable: function (enable) {
@ -46078,23 +46074,20 @@ BI.shortcut("bi.image_radio", BI.ImageRadio);/**
* @type {*|void|Object}
*/
BI.Radio = BI.inherit(BI.BasicButton, {
_defaultConfig: function () {
var conf = BI.Radio.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, {
baseCls: (conf.baseCls || "") + " bi-radio",
selected: false,
handler: BI.emptyFn,
width: 16,
height: 16,
iconWidth: 14,
iconHeight: 14
});
props: {
baseCls: "bi-radio",
selected: false,
handler: BI.emptyFn,
width: 16,
height: 16,
iconWidth: 14,
iconHeight: 14
},
_init: function () {
BI.Radio.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
BI.createWidget({
return {
type: "bi.center_adapt",
element: this.element,
items: [{
@ -46106,7 +46099,7 @@ BI.Radio = BI.inherit(BI.BasicButton, {
width: o.iconWidth,
height: o.iconHeight
}]
});
};
},
_setEnable: function (enable) {

2
dist/fineui.min.css vendored

File diff suppressed because one or more lines are too long

48
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

63
dist/fineui_without_jquery_polyfill.js vendored

@ -32232,10 +32232,10 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
type: "bi.adaptive",
items: [this.content]
},
left: 6,
right: 6,
top: 6,
bottom: 6
left: 10,
right: 8,
top: 8,
bottom: 10
}]
});
@ -32621,25 +32621,21 @@ BI.shortcut("bi.image_checkbox", BI.ImageCheckbox);/**
* @type {*|void|Object}
*/
BI.Checkbox = BI.inherit(BI.BasicButton, {
_defaultConfig: function () {
var conf = BI.Checkbox.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, {
baseCls: (conf.baseCls || "") + " bi-checkbox",
selected: false,
handler: BI.emptyFn,
width: 16,
height: 16,
iconWidth: 14,
iconHeight: 14
});
props: {
baseCls: "bi-checkbox",
selected: false,
handler: BI.emptyFn,
width: 16,
height: 16,
iconWidth: 14,
iconHeight: 14
},
_init: function () {
BI.Checkbox.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
BI.createWidget({
return {
type: "bi.center_adapt",
element: this.element,
items: [{
type: "bi.default",
ref: function (_ref) {
@ -32649,7 +32645,7 @@ BI.Checkbox = BI.inherit(BI.BasicButton, {
width: o.iconWidth,
height: o.iconHeight
}]
});
};
},
_setEnable: function (enable) {
@ -33024,23 +33020,20 @@ BI.shortcut("bi.image_radio", BI.ImageRadio);/**
* @type {*|void|Object}
*/
BI.Radio = BI.inherit(BI.BasicButton, {
_defaultConfig: function () {
var conf = BI.Radio.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, {
baseCls: (conf.baseCls || "") + " bi-radio",
selected: false,
handler: BI.emptyFn,
width: 16,
height: 16,
iconWidth: 14,
iconHeight: 14
});
props: {
baseCls: "bi-radio",
selected: false,
handler: BI.emptyFn,
width: 16,
height: 16,
iconWidth: 14,
iconHeight: 14
},
_init: function () {
BI.Radio.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
BI.createWidget({
return {
type: "bi.center_adapt",
element: this.element,
items: [{
@ -33052,7 +33045,7 @@ BI.Radio = BI.inherit(BI.BasicButton, {
width: o.iconWidth,
height: o.iconHeight
}]
});
};
},
_setEnable: function (enable) {

2
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

8
src/base/single/editor/editor.textarea.js

@ -30,10 +30,10 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
type: "bi.adaptive",
items: [this.content]
},
left: 6,
right: 6,
top: 6,
bottom: 6
left: 10,
right: 8,
top: 8,
bottom: 10
}]
});

28
src/base/single/input/checkbox/checkbox.js

@ -4,25 +4,21 @@
* @type {*|void|Object}
*/
BI.Checkbox = BI.inherit(BI.BasicButton, {
_defaultConfig: function () {
var conf = BI.Checkbox.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, {
baseCls: (conf.baseCls || "") + " bi-checkbox",
selected: false,
handler: BI.emptyFn,
width: 16,
height: 16,
iconWidth: 14,
iconHeight: 14
});
props: {
baseCls: "bi-checkbox",
selected: false,
handler: BI.emptyFn,
width: 16,
height: 16,
iconWidth: 14,
iconHeight: 14
},
_init: function () {
BI.Checkbox.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
BI.createWidget({
return {
type: "bi.center_adapt",
element: this.element,
items: [{
type: "bi.default",
ref: function (_ref) {
@ -32,7 +28,7 @@ BI.Checkbox = BI.inherit(BI.BasicButton, {
width: o.iconWidth,
height: o.iconHeight
}]
});
};
},
_setEnable: function (enable) {

27
src/base/single/input/radio/radio.js

@ -4,23 +4,20 @@
* @type {*|void|Object}
*/
BI.Radio = BI.inherit(BI.BasicButton, {
_defaultConfig: function () {
var conf = BI.Radio.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, {
baseCls: (conf.baseCls || "") + " bi-radio",
selected: false,
handler: BI.emptyFn,
width: 16,
height: 16,
iconWidth: 14,
iconHeight: 14
});
props: {
baseCls: "bi-radio",
selected: false,
handler: BI.emptyFn,
width: 16,
height: 16,
iconWidth: 14,
iconHeight: 14
},
_init: function () {
BI.Radio.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
BI.createWidget({
return {
type: "bi.center_adapt",
element: this.element,
items: [{
@ -32,7 +29,7 @@ BI.Radio = BI.inherit(BI.BasicButton, {
width: o.iconWidth,
height: o.iconHeight
}]
});
};
},
_setEnable: function (enable) {

1
src/css/base/single/editor/editor.css

@ -17,5 +17,6 @@
}
.bi-textarea-editor .textarea-editor-content {
font-size: 12px;
line-height: 21px;
border: none;
}

42
src/css/core/utils/common.css

@ -136,29 +136,44 @@ textarea {
color: #878d9f;
}
.bi-tips {
color: #c4c9d1;
color: #9ea6b2;
}
.bi-tips .bi-input {
color: #c4c9d1;
color: #9ea6b2;
}
.bi-tips .bi-textarea {
color: #c4c9d1;
color: #9ea6b2;
}
.bi-border {
border: 1px solid #e8eaed;
}
.bi-border.disabled {
border-color: #d0d4da !important;
}
.bi-border-top {
border-top: 1px solid #e8eaed;
}
.bi-border-top.disabled {
border-color: #d0d4da !important;
}
.bi-border-right {
border-right: 1px solid #e8eaed;
}
.bi-border-right.disabled {
border-color: #d0d4da !important;
}
.bi-border-bottom {
border-bottom: 1px solid #e8eaed;
}
.bi-border-bottom.disabled {
border-color: #d0d4da !important;
}
.bi-border-left {
border-left: 1px solid #e8eaed;
}
.bi-border-left.disabled {
border-color: #d0d4da !important;
}
.bi-theme-dark .bi-border {
border: 1px solid #3a3c53;
}
@ -267,6 +282,16 @@ textarea {
.bi-high-light-background .bi-textarea {
color: #ffffff;
}
.bi-high-light-background.disabled {
background-color: transparent !important;
color: #9ea6b2 !important;
}
.bi-high-light-background.disabled .bi-input {
color: #9ea6b2 !important;
}
.bi-high-light-background.disabled .bi-textarea {
color: #9ea6b2 !important;
}
.bi-error-background {
background-color: #ff4949;
color: #ffffff;
@ -278,17 +303,20 @@ textarea {
color: #ffffff;
}
.bi-high-light-border {
border-color: #3685f2;
border: 1px solid #3685f2;
}
.bi-high-light-border.disabled {
border-color: #d0d4da !important;
}
.bi-water-mark {
color: #c4c9d1;
color: #9ea6b2;
cursor: text;
}
.bi-water-mark .bi-input {
color: #c4c9d1;
color: #9ea6b2;
}
.bi-water-mark .bi-textarea {
color: #c4c9d1;
color: #9ea6b2;
}
.bi-theme-dark .bi-water-mark {
color: #6b7084;

1
src/less/base/single/editor/editor.textarea.less

@ -4,6 +4,7 @@
.overflow-hidden();
& .textarea-editor-content {
font-size: @font-size-12;
line-height: 21px;
& {
border: none;
}

30
src/less/core/utils/common.less

@ -180,22 +180,37 @@ textarea {
//边框
.bi-border {
border: 1px solid @color-bi-border-line;
&.disabled {
border-color: @color-bi-border-disabled !important;
}
}
.bi-border-top {
border-top: 1px solid @color-bi-border-line;
&.disabled {
border-color: @color-bi-border-disabled !important;
}
}
.bi-border-right {
border-right: 1px solid @color-bi-border-line;
&.disabled {
border-color: @color-bi-border-disabled !important;
}
}
.bi-border-bottom {
border-bottom: 1px solid @color-bi-border-line;
&.disabled {
border-color: @color-bi-border-disabled !important;
}
}
.bi-border-left {
border-left: 1px solid @color-bi-border-line;
&.disabled {
border-color: @color-bi-border-disabled !important;
}
}
.bi-theme-dark {
@ -337,6 +352,16 @@ textarea {
& .bi-textarea {
color: @color-bi-text;
}
&.disabled {
background-color: transparent !important;
color: @color-bi-text-disabled !important;
& .bi-input {
color: @color-bi-text-disabled !important;
}
& .bi-textarea {
color: @color-bi-text-disabled !important;
}
}
}
.bi-error-background {
@ -351,7 +376,10 @@ textarea {
}
.bi-high-light-border {
border-color: @color-bi-border-highlight;
border: 1px solid @color-bi-border-highlight;
&.disabled {
border-color: @color-bi-border-disabled !important;
}
}
//水印

2
src/less/lib/constant.less

@ -29,7 +29,7 @@
@font-color-light-gray-theme-dark: #afb7c6;
@font-color-disabled: #9ea6b2;//
@font-color-disabled-theme-dark: #878d9f;//
@font-color-tips: #c4c9d1;//
@font-color-tips: #9ea6b2;//
@font-color-tips-theme-dark: #6b7084;//
@font-color-light-disabled: #d0d4da;//
@font-color-light-disabled-theme-dark: #606479;

Loading…
Cancel
Save