windy 7 years ago
parent
commit
66ea7d4b83
  1. 6
      demo/js/base/editor/demo.editor.js
  2. 1
      demo/js/base/editor/demo.rich_editor.js
  3. 7
      dist/demo.js
  4. 1
      src/less/core/utils/common.less

6
demo/js/base/editor/demo.editor.js

@ -9,9 +9,7 @@ Demo.Editor = BI.inherit(BI.Widget, {
watermark: "alert信息显示在下面", watermark: "alert信息显示在下面",
errorText: "字段不可重名!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!", errorText: "字段不可重名!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!",
width: 200, width: 200,
height: 30, height: 30
value: "aaa",
disabled: true
}); });
editor1.on(BI.Editor.EVENT_ENTER, function () { editor1.on(BI.Editor.EVENT_ENTER, function () {
editor1.blur(); editor1.blur();
@ -23,7 +21,7 @@ Demo.Editor = BI.inherit(BI.Widget, {
disabled: true, disabled: true,
errorText: "字段不可重名", errorText: "字段不可重名",
validationChecker: function (v) { validationChecker: function (v) {
if (v == "a") { if (v == "a") {d
return false; return false;
} }
return true; return true;

1
demo/js/base/editor/demo.rich_editor.js

@ -12,7 +12,6 @@ Demo.RichEditor = BI.inherit(BI.Widget, {
type: "bi.rich_editor", type: "bi.rich_editor",
height: "100%", height: "100%",
cls: "bi-border", cls: "bi-border",
disabled: true,
ref: function () { ref: function () {
self.editor = this; self.editor = this;
}, },

7
dist/demo.js vendored

@ -721,9 +721,7 @@ BI.shortcut("demo.code_editor", Demo.CodeEditor);Demo.Editor = BI.inherit(BI.Wid
watermark: "alert信息显示在下面", watermark: "alert信息显示在下面",
errorText: "字段不可重名!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!", errorText: "字段不可重名!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!",
width: 200, width: 200,
height: 30, height: 30
value: "aaa",
disabled: true
}); });
editor1.on(BI.Editor.EVENT_ENTER, function () { editor1.on(BI.Editor.EVENT_ENTER, function () {
editor1.blur(); editor1.blur();
@ -735,7 +733,7 @@ BI.shortcut("demo.code_editor", Demo.CodeEditor);Demo.Editor = BI.inherit(BI.Wid
disabled: true, disabled: true,
errorText: "字段不可重名", errorText: "字段不可重名",
validationChecker: function (v) { validationChecker: function (v) {
if (v == "a") { if (v == "a") {d
return false; return false;
} }
return true; return true;
@ -867,7 +865,6 @@ BI.shortcut("demo.multifile_editor", Demo.CodeEditor);Demo.RichEditor = BI.inher
type: "bi.rich_editor", type: "bi.rich_editor",
height: "100%", height: "100%",
cls: "bi-border", cls: "bi-border",
disabled: true,
ref: function () { ref: function () {
self.editor = this; self.editor = this;
}, },

1
src/less/core/utils/common.less

@ -24,7 +24,6 @@ textarea {
& .b-font:before { & .b-font:before {
color: @color-bi-text-disabled !important; color: @color-bi-text-disabled !important;
} }
} }
.bi-theme-dark { .bi-theme-dark {

Loading…
Cancel
Save