windy 7 years ago
parent
commit
9060bc86c7
  1. 2
      demo/js/widget/multiselect/demo.multi_select_tree.js
  2. 24
      dist/_fineui.min.js
  3. 11
      dist/bundle.js
  4. 24
      dist/bundle.min.js
  5. 2
      dist/demo.js
  6. 24
      dist/fineui.min.js
  7. 11
      dist/widget.js
  8. 9
      src/widget/editor/editor.search.js
  9. 2
      src/widget/multiselectlist/multiselectlist.insert.js

2
demo/js/widget/multiselect/demo.multi_select_tree.js

@ -13,7 +13,7 @@ Demo.MultiSelectList = BI.inherit(BI.Widget, {
_createMultiSelectCombo: function () { _createMultiSelectCombo: function () {
var self = this; var self = this;
var widget = BI.createWidget({ var widget = BI.createWidget({
type: "bi.multi_select_list", type: "bi.multi_select_insert_list",
ref: function (ref) { ref: function (ref) {
self.list = ref; self.list = ref;
}, },

24
dist/_fineui.min.js vendored

File diff suppressed because one or more lines are too long

11
dist/bundle.js vendored

@ -91930,6 +91930,15 @@ BI.SearchEditor = BI.inherit(BI.Widget, {
} }
}, },
getKeywords: function () {
var val = this.editor.getValue();
var keywords = val.match(/[\S]+/g);
if (BI.isEndWithBlank(val)) {
return keywords.concat([" "]);
}
return keywords;
},
getLastValidValue: function () { getLastValidValue: function () {
return this.editor.getLastValidValue(); return this.editor.getLastValidValue();
}, },
@ -98572,7 +98581,7 @@ BI.MultiSelectInsertList = BI.inherit(BI.Widget, {
}, { }, {
eventName: BI.Searcher.EVENT_SEARCHING, eventName: BI.Searcher.EVENT_SEARCHING,
action: function () { action: function () {
var keywords = this.getKeyword(); var keywords = this.getKeywords();
var last = BI.last(keywords); var last = BI.last(keywords);
keywords = BI.initial(keywords || []); keywords = BI.initial(keywords || []);
if (keywords.length > 0) { if (keywords.length > 0) {

24
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/demo.js vendored

@ -12744,7 +12744,7 @@ Demo.MultiSelectList = BI.inherit(BI.Widget, {
_createMultiSelectCombo: function () { _createMultiSelectCombo: function () {
var self = this; var self = this;
var widget = BI.createWidget({ var widget = BI.createWidget({
type: "bi.multi_select_list", type: "bi.multi_select_insert_list",
ref: function (ref) { ref: function (ref) {
self.list = ref; self.list = ref;
}, },

24
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

11
dist/widget.js vendored

@ -5294,6 +5294,15 @@ BI.SearchEditor = BI.inherit(BI.Widget, {
} }
}, },
getKeywords: function () {
var val = this.editor.getValue();
var keywords = val.match(/[\S]+/g);
if (BI.isEndWithBlank(val)) {
return keywords.concat([" "]);
}
return keywords;
},
getLastValidValue: function () { getLastValidValue: function () {
return this.editor.getLastValidValue(); return this.editor.getLastValidValue();
}, },
@ -11936,7 +11945,7 @@ BI.MultiSelectInsertList = BI.inherit(BI.Widget, {
}, { }, {
eventName: BI.Searcher.EVENT_SEARCHING, eventName: BI.Searcher.EVENT_SEARCHING,
action: function () { action: function () {
var keywords = this.getKeyword(); var keywords = this.getKeywords();
var last = BI.last(keywords); var last = BI.last(keywords);
keywords = BI.initial(keywords || []); keywords = BI.initial(keywords || []);
if (keywords.length > 0) { if (keywords.length > 0) {

9
src/widget/editor/editor.search.js

@ -147,6 +147,15 @@ BI.SearchEditor = BI.inherit(BI.Widget, {
} }
}, },
getKeywords: function () {
var val = this.editor.getValue();
var keywords = val.match(/[\S]+/g);
if (BI.isEndWithBlank(val)) {
return keywords.concat([" "]);
}
return keywords;
},
getLastValidValue: function () { getLastValidValue: function () {
return this.editor.getLastValidValue(); return this.editor.getLastValidValue();
}, },

2
src/widget/multiselectlist/multiselectlist.insert.js

@ -114,7 +114,7 @@ BI.MultiSelectInsertList = BI.inherit(BI.Widget, {
}, { }, {
eventName: BI.Searcher.EVENT_SEARCHING, eventName: BI.Searcher.EVENT_SEARCHING,
action: function () { action: function () {
var keywords = this.getKeyword(); var keywords = this.getKeywords();
var last = BI.last(keywords); var last = BI.last(keywords);
keywords = BI.initial(keywords || []); keywords = BI.initial(keywords || []);
if (keywords.length > 0) { if (keywords.length > 0) {

Loading…
Cancel
Save