Browse Source

Merge pull request #445 in FUI/fineui from ~WINDY/fui:master to master

* commit '4ff0e0aab3dd399523f09ef8e4248c5cf9595196':
  更新
  同步4.1
master
guy 7 years ago
parent
commit
9995f5f94d
  1. 3
      demo/version.js
  2. 28
      dist/_fineui.min.js
  3. 10
      dist/base.js
  4. 23
      dist/bundle.js
  5. 22
      dist/bundle.min.js
  6. 3
      dist/config.js
  7. 23
      dist/fineui.js
  8. 28
      dist/fineui.min.js
  9. 10
      dist/widget.js
  10. 3
      public/js/index.js
  11. 10
      src/base/single/editor/editor.code.js
  12. 1
      src/widget/multiselect/multiselect.combo.js
  13. 1
      src/widget/multiselect/multiselect.insert.combo.js
  14. 1
      src/widget/multiselect/multiselect.insert.combo.nobar.js
  15. 1
      src/widget/multiselect/multiselect.trigger.js
  16. 6
      src/widget/multiselect/trigger/searcher.multiselect.js
  17. 3
      ui/js/index.js

3
demo/version.js

@ -165,5 +165,6 @@ BI.i18n = {
"BI-More_Than": "大于",
"BI-More_And_Equal": "大于等于",
"BI-Please_Enter_SQL": "请输入SQL",
"BI-Basic_Click_To_Add_Text": "点击新增\"{R1}\""
"BI-Basic_Click_To_Add_Text": "点击新增\"{R1}\"",
"BI-Basic_Please_Select": "请选择"
};

28
dist/_fineui.min.js vendored

File diff suppressed because one or more lines are too long

10
dist/base.js vendored

@ -18106,14 +18106,16 @@ BI.CodeEditor = BI.inherit(BI.Single, {
_init: function () {
BI.CodeEditor.superclass._init.apply(this, arguments);
var o = this.options, self = this;
this.editor = CodeMirror(this.element[0], {
var conf = {
textWrapping: true,
lineWrapping: true,
lineNumbers: o.lineNumbers,
lineNumbers: false,
readOnly: o.readOnly,
// 解决插入字段由括号或其他特殊字符包围时分裂的bug
//解决插入字段由括号或其他特殊字符包围时分裂的bug
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");
this.editor.on("change", function (cm, change) {
BI.nextTick(function () {

23
dist/bundle.js vendored

@ -53876,14 +53876,16 @@ BI.CodeEditor = BI.inherit(BI.Single, {
_init: function () {
BI.CodeEditor.superclass._init.apply(this, arguments);
var o = this.options, self = this;
this.editor = CodeMirror(this.element[0], {
var conf = {
textWrapping: true,
lineWrapping: true,
lineNumbers: o.lineNumbers,
lineNumbers: false,
readOnly: o.readOnly,
// 解决插入字段由括号或其他特殊字符包围时分裂的bug
//解决插入字段由括号或其他特殊字符包围时分裂的bug
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");
this.editor.on("change", function (cm, change) {
BI.nextTick(function () {
@ -97512,6 +97514,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
this.trigger = BI.createWidget({
type: "bi.multi_select_trigger",
height: o.height,
text: o.text,
// adapter: this.popup,
masker: {
offset: {
@ -97895,6 +97898,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
this.trigger = BI.createWidget({
type: "bi.multi_select_trigger",
height: o.height,
text: o.text,
// adapter: this.popup,
masker: {
offset: {
@ -98261,6 +98265,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
this.trigger = BI.createWidget({
type: "bi.multi_select_trigger",
height: o.height,
text: o.text,
// adapter: this.popup,
masker: {
offset: {
@ -99161,6 +99166,7 @@ BI.MultiSelectTrigger = BI.inherit(BI.Trigger, {
this.searcher = BI.createWidget(o.searcher, {
type: "bi.multi_select_searcher",
height: o.height,
text: o.text,
itemsCreator: o.itemsCreator,
valueFormatter: o.valueFormatter,
popup: {},
@ -99702,7 +99708,8 @@ BI.MultiSelectSearcher = BI.inherit(BI.Widget, {
popup: {},
valueFormatter: BI.emptyFn,
adapter: null,
masker: {}
masker: {},
text: BI.i18nText("BI-Basic_Please_Select")
});
},
@ -99711,7 +99718,8 @@ BI.MultiSelectSearcher = BI.inherit(BI.Widget, {
var self = this, o = this.options;
this.editor = BI.createWidget(o.el, {
type: "bi.multi_select_editor",
height: o.height
height: o.height,
text: o.text
});
this.searcher = BI.createWidget({
@ -114241,5 +114249,6 @@ BI.i18n = {
"BI-More_Than": "大于",
"BI-More_And_Equal": "大于等于",
"BI-Please_Enter_SQL": "请输入SQL",
"BI-Basic_Click_To_Add_Text": "点击新增\"{R1}\""
"BI-Basic_Click_To_Add_Text": "点击新增\"{R1}\"",
"BI-Basic_Please_Select": "请选择"
};

22
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

3
dist/config.js vendored

@ -165,5 +165,6 @@ BI.i18n = {
"BI-More_Than": "大于",
"BI-More_And_Equal": "大于等于",
"BI-Please_Enter_SQL": "请输入SQL",
"BI-Basic_Click_To_Add_Text": "点击新增\"{R1}\""
"BI-Basic_Click_To_Add_Text": "点击新增\"{R1}\"",
"BI-Basic_Please_Select": "请选择"
};

23
dist/fineui.js vendored

@ -54119,14 +54119,16 @@ BI.CodeEditor = BI.inherit(BI.Single, {
_init: function () {
BI.CodeEditor.superclass._init.apply(this, arguments);
var o = this.options, self = this;
this.editor = CodeMirror(this.element[0], {
var conf = {
textWrapping: true,
lineWrapping: true,
lineNumbers: o.lineNumbers,
lineNumbers: false,
readOnly: o.readOnly,
// 解决插入字段由括号或其他特殊字符包围时分裂的bug
//解决插入字段由括号或其他特殊字符包围时分裂的bug
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");
this.editor.on("change", function (cm, change) {
BI.nextTick(function () {
@ -97755,6 +97757,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
this.trigger = BI.createWidget({
type: "bi.multi_select_trigger",
height: o.height,
text: o.text,
// adapter: this.popup,
masker: {
offset: {
@ -98138,6 +98141,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
this.trigger = BI.createWidget({
type: "bi.multi_select_trigger",
height: o.height,
text: o.text,
// adapter: this.popup,
masker: {
offset: {
@ -98504,6 +98508,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
this.trigger = BI.createWidget({
type: "bi.multi_select_trigger",
height: o.height,
text: o.text,
// adapter: this.popup,
masker: {
offset: {
@ -99404,6 +99409,7 @@ BI.MultiSelectTrigger = BI.inherit(BI.Trigger, {
this.searcher = BI.createWidget(o.searcher, {
type: "bi.multi_select_searcher",
height: o.height,
text: o.text,
itemsCreator: o.itemsCreator,
valueFormatter: o.valueFormatter,
popup: {},
@ -99945,7 +99951,8 @@ BI.MultiSelectSearcher = BI.inherit(BI.Widget, {
popup: {},
valueFormatter: BI.emptyFn,
adapter: null,
masker: {}
masker: {},
text: BI.i18nText("BI-Basic_Please_Select")
});
},
@ -99954,7 +99961,8 @@ BI.MultiSelectSearcher = BI.inherit(BI.Widget, {
var self = this, o = this.options;
this.editor = BI.createWidget(o.el, {
type: "bi.multi_select_editor",
height: o.height
height: o.height,
text: o.text
});
this.searcher = BI.createWidget({
@ -114484,5 +114492,6 @@ BI.i18n = {
"BI-More_Than": "大于",
"BI-More_And_Equal": "大于等于",
"BI-Please_Enter_SQL": "请输入SQL",
"BI-Basic_Click_To_Add_Text": "点击新增\"{R1}\""
"BI-Basic_Click_To_Add_Text": "点击新增\"{R1}\"",
"BI-Basic_Please_Select": "请选择"
};

28
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

10
dist/widget.js vendored

@ -9893,6 +9893,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
this.trigger = BI.createWidget({
type: "bi.multi_select_trigger",
height: o.height,
text: o.text,
// adapter: this.popup,
masker: {
offset: {
@ -10276,6 +10277,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
this.trigger = BI.createWidget({
type: "bi.multi_select_trigger",
height: o.height,
text: o.text,
// adapter: this.popup,
masker: {
offset: {
@ -10642,6 +10644,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
this.trigger = BI.createWidget({
type: "bi.multi_select_trigger",
height: o.height,
text: o.text,
// adapter: this.popup,
masker: {
offset: {
@ -11542,6 +11545,7 @@ BI.MultiSelectTrigger = BI.inherit(BI.Trigger, {
this.searcher = BI.createWidget(o.searcher, {
type: "bi.multi_select_searcher",
height: o.height,
text: o.text,
itemsCreator: o.itemsCreator,
valueFormatter: o.valueFormatter,
popup: {},
@ -12083,7 +12087,8 @@ BI.MultiSelectSearcher = BI.inherit(BI.Widget, {
popup: {},
valueFormatter: BI.emptyFn,
adapter: null,
masker: {}
masker: {},
text: BI.i18nText("BI-Basic_Please_Select")
});
},
@ -12092,7 +12097,8 @@ BI.MultiSelectSearcher = BI.inherit(BI.Widget, {
var self = this, o = this.options;
this.editor = BI.createWidget(o.el, {
type: "bi.multi_select_editor",
height: o.height
height: o.height,
text: o.text
});
this.searcher = BI.createWidget({

3
public/js/index.js

@ -165,5 +165,6 @@ BI.i18n = {
"BI-More_Than": "大于",
"BI-More_And_Equal": "大于等于",
"BI-Please_Enter_SQL": "请输入SQL",
"BI-Basic_Click_To_Add_Text": "点击新增\"{R1}\""
"BI-Basic_Click_To_Add_Text": "点击新增\"{R1}\"",
"BI-Basic_Please_Select": "请选择"
};

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

@ -22,14 +22,16 @@ BI.CodeEditor = BI.inherit(BI.Single, {
_init: function () {
BI.CodeEditor.superclass._init.apply(this, arguments);
var o = this.options, self = this;
this.editor = CodeMirror(this.element[0], {
var conf = {
textWrapping: true,
lineWrapping: true,
lineNumbers: o.lineNumbers,
lineNumbers: false,
readOnly: o.readOnly,
// 解决插入字段由括号或其他特殊字符包围时分裂的bug
//解决插入字段由括号或其他特殊字符包围时分裂的bug
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");
this.editor.on("change", function (cm, change) {
BI.nextTick(function () {

1
src/widget/multiselect/multiselect.combo.js

@ -33,6 +33,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
this.trigger = BI.createWidget({
type: "bi.multi_select_trigger",
height: o.height,
text: o.text,
// adapter: this.popup,
masker: {
offset: {

1
src/widget/multiselect/multiselect.insert.combo.js

@ -30,6 +30,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
this.trigger = BI.createWidget({
type: "bi.multi_select_trigger",
height: o.height,
text: o.text,
// adapter: this.popup,
masker: {
offset: {

1
src/widget/multiselect/multiselect.insert.combo.nobar.js

@ -33,6 +33,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
this.trigger = BI.createWidget({
type: "bi.multi_select_trigger",
height: o.height,
text: o.text,
// adapter: this.popup,
masker: {
offset: {

1
src/widget/multiselect/multiselect.trigger.js

@ -37,6 +37,7 @@ BI.MultiSelectTrigger = BI.inherit(BI.Trigger, {
this.searcher = BI.createWidget(o.searcher, {
type: "bi.multi_select_searcher",
height: o.height,
text: o.text,
itemsCreator: o.itemsCreator,
valueFormatter: o.valueFormatter,
popup: {},

6
src/widget/multiselect/trigger/searcher.multiselect.js

@ -14,7 +14,8 @@ BI.MultiSelectSearcher = BI.inherit(BI.Widget, {
popup: {},
valueFormatter: BI.emptyFn,
adapter: null,
masker: {}
masker: {},
text: BI.i18nText("BI-Basic_Please_Select")
});
},
@ -23,7 +24,8 @@ BI.MultiSelectSearcher = BI.inherit(BI.Widget, {
var self = this, o = this.options;
this.editor = BI.createWidget(o.el, {
type: "bi.multi_select_editor",
height: o.height
height: o.height,
text: o.text
});
this.searcher = BI.createWidget({

3
ui/js/index.js

@ -165,5 +165,6 @@ BI.i18n = {
"BI-More_Than": "大于",
"BI-More_And_Equal": "大于等于",
"BI-Please_Enter_SQL": "请输入SQL",
"BI-Basic_Click_To_Add_Text": "点击新增\"{R1}\""
"BI-Basic_Click_To_Add_Text": "点击新增\"{R1}\"",
"BI-Basic_Please_Select": "请选择"
};
Loading…
Cancel
Save