Browse Source

同步4.1

es6
windy 7 years ago
parent
commit
58133c64bd
  1. 8
      dist/_fineui.min.js
  2. 8
      dist/base.js
  3. 8
      dist/bundle.js
  4. 2
      dist/bundle.min.js
  5. 8
      dist/fineui.js
  6. 8
      dist/fineui.min.js
  7. 8
      src/base/single/editor/editor.code.js

8
dist/_fineui.min.js vendored

File diff suppressed because one or more lines are too long

8
dist/base.js vendored

@ -18106,14 +18106,16 @@ BI.CodeEditor = BI.inherit(BI.Single, {
_init: function () { _init: function () {
BI.CodeEditor.superclass._init.apply(this, arguments); BI.CodeEditor.superclass._init.apply(this, arguments);
var o = this.options, self = this; var o = this.options, self = this;
this.editor = CodeMirror(this.element[0], { var conf = {
textWrapping: true, textWrapping: true,
lineWrapping: true, lineWrapping: true,
lineNumbers: o.lineNumbers, lineNumbers: false,
readOnly: o.readOnly, readOnly: o.readOnly,
//解决插入字段由括号或其他特殊字符包围时分裂的bug //解决插入字段由括号或其他特殊字符包围时分裂的bug
specialChars: /[\u0000-\u001f\u007f\u00ad\u200c-\u200f\u2028\u2029\ufeff]/ specialChars: /[\u0000-\u001f\u007f\u00ad\u200c-\u200f\u2028\u2029\ufeff]/
}); };
o.readOnly && (conf.cursorBlinkRate = -1);
this.editor = CodeMirror(this.element[0], conf);
o.lineHeight === 1 ? this.element.addClass("codemirror-low-line-height") : this.element.addClass("codemirror-high-line-height"); o.lineHeight === 1 ? this.element.addClass("codemirror-low-line-height") : this.element.addClass("codemirror-high-line-height");
this.editor.on("change", function (cm, change) { this.editor.on("change", function (cm, change) {
BI.nextTick(function () { BI.nextTick(function () {

8
dist/bundle.js vendored

@ -53876,14 +53876,16 @@ BI.CodeEditor = BI.inherit(BI.Single, {
_init: function () { _init: function () {
BI.CodeEditor.superclass._init.apply(this, arguments); BI.CodeEditor.superclass._init.apply(this, arguments);
var o = this.options, self = this; var o = this.options, self = this;
this.editor = CodeMirror(this.element[0], { var conf = {
textWrapping: true, textWrapping: true,
lineWrapping: true, lineWrapping: true,
lineNumbers: o.lineNumbers, lineNumbers: false,
readOnly: o.readOnly, readOnly: o.readOnly,
//解决插入字段由括号或其他特殊字符包围时分裂的bug //解决插入字段由括号或其他特殊字符包围时分裂的bug
specialChars: /[\u0000-\u001f\u007f\u00ad\u200c-\u200f\u2028\u2029\ufeff]/ specialChars: /[\u0000-\u001f\u007f\u00ad\u200c-\u200f\u2028\u2029\ufeff]/
}); };
o.readOnly && (conf.cursorBlinkRate = -1);
this.editor = CodeMirror(this.element[0], conf);
o.lineHeight === 1 ? this.element.addClass("codemirror-low-line-height") : this.element.addClass("codemirror-high-line-height"); o.lineHeight === 1 ? this.element.addClass("codemirror-low-line-height") : this.element.addClass("codemirror-high-line-height");
this.editor.on("change", function (cm, change) { this.editor.on("change", function (cm, change) {
BI.nextTick(function () { BI.nextTick(function () {

2
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

8
dist/fineui.js vendored

@ -54119,14 +54119,16 @@ BI.CodeEditor = BI.inherit(BI.Single, {
_init: function () { _init: function () {
BI.CodeEditor.superclass._init.apply(this, arguments); BI.CodeEditor.superclass._init.apply(this, arguments);
var o = this.options, self = this; var o = this.options, self = this;
this.editor = CodeMirror(this.element[0], { var conf = {
textWrapping: true, textWrapping: true,
lineWrapping: true, lineWrapping: true,
lineNumbers: o.lineNumbers, lineNumbers: false,
readOnly: o.readOnly, readOnly: o.readOnly,
//解决插入字段由括号或其他特殊字符包围时分裂的bug //解决插入字段由括号或其他特殊字符包围时分裂的bug
specialChars: /[\u0000-\u001f\u007f\u00ad\u200c-\u200f\u2028\u2029\ufeff]/ specialChars: /[\u0000-\u001f\u007f\u00ad\u200c-\u200f\u2028\u2029\ufeff]/
}); };
o.readOnly && (conf.cursorBlinkRate = -1);
this.editor = CodeMirror(this.element[0], conf);
o.lineHeight === 1 ? this.element.addClass("codemirror-low-line-height") : this.element.addClass("codemirror-high-line-height"); o.lineHeight === 1 ? this.element.addClass("codemirror-low-line-height") : this.element.addClass("codemirror-high-line-height");
this.editor.on("change", function (cm, change) { this.editor.on("change", function (cm, change) {
BI.nextTick(function () { BI.nextTick(function () {

8
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

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

@ -22,14 +22,16 @@ BI.CodeEditor = BI.inherit(BI.Single, {
_init: function () { _init: function () {
BI.CodeEditor.superclass._init.apply(this, arguments); BI.CodeEditor.superclass._init.apply(this, arguments);
var o = this.options, self = this; var o = this.options, self = this;
this.editor = CodeMirror(this.element[0], { var conf = {
textWrapping: true, textWrapping: true,
lineWrapping: true, lineWrapping: true,
lineNumbers: o.lineNumbers, lineNumbers: false,
readOnly: o.readOnly, readOnly: o.readOnly,
//解决插入字段由括号或其他特殊字符包围时分裂的bug //解决插入字段由括号或其他特殊字符包围时分裂的bug
specialChars: /[\u0000-\u001f\u007f\u00ad\u200c-\u200f\u2028\u2029\ufeff]/ specialChars: /[\u0000-\u001f\u007f\u00ad\u200c-\u200f\u2028\u2029\ufeff]/
}); };
o.readOnly && (conf.cursorBlinkRate = -1);
this.editor = CodeMirror(this.element[0], conf);
o.lineHeight === 1 ? this.element.addClass("codemirror-low-line-height") : this.element.addClass("codemirror-high-line-height"); o.lineHeight === 1 ? this.element.addClass("codemirror-low-line-height") : this.element.addClass("codemirror-high-line-height");
this.editor.on("change", function (cm, change) { this.editor.on("change", function (cm, change) {
BI.nextTick(function () { BI.nextTick(function () {

Loading…
Cancel
Save