Skip to content

Commit 8cf267b

Browse files
committed
Docs-and-build.
1 parent b187143 commit 8cf267b

File tree

7 files changed

+34
-21
lines changed

7 files changed

+34
-21
lines changed

dist/cjs.js

+11-7
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ function _await(value, then, direct) {
6262
return result.then(then);
6363
}return then(result);
6464
}function _invokeIgnored(body) {
65-
var result = body();if (result && result.then) {
65+
var result = body();
66+
if (result && result.then) {
6667
return result.then(_empty);
6768
}
6869
}function _catch(body, recover) {
@@ -74,15 +75,15 @@ function _await(value, then, direct) {
7475
return result.then(void 0, recover);
7576
}return result;
7677
}function _finally(body, finalizer) {
78+
7779
try {
7880
var result = body();
7981
} catch (e) {
8082
return finalizer();
8183
}if (result && result.then) {
8284
return result.then(finalizer, finalizer);
8385
}return finalizer();
84-
}
85-
var VueSimpleSuggest = {
86+
}var VueSimpleSuggest = {
8687
render: function render() {
8788
var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { staticClass: "vue-simple-suggest", class: [_vm.styles.vueSimpleSuggest, { designed: !_vm.destyled, focus: _vm.isInFocus }], on: { "keydown": function keydown($event) {
8889
if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "tab", 9, $event.key, "Tab")) {
@@ -178,6 +179,10 @@ var VueSimpleSuggest = {
178179
validator: function validator(value) {
179180
return !!~Object.keys(modes).indexOf(value.toLowerCase());
180181
}
182+
},
183+
preventHide: {
184+
type: Boolean,
185+
default: false
181186
}
182187
},
183188
// Handle run-time mode changes (now working):
@@ -525,7 +530,8 @@ var VueSimpleSuggest = {
525530
suggestionClick: function suggestionClick(suggestion, e) {
526531
this.$emit('suggestion-click', suggestion, e);
527532
this.select(suggestion);
528-
this.hideList();
533+
534+
if (!this.preventHide) this.hideList();
529535

530536
/// Ensure, that all needed flags are off before finishing the click.
531537
this.isClicking = false;
@@ -589,9 +595,7 @@ var VueSimpleSuggest = {
589595
if (this.text.length < this.minLength) {
590596
this.hideList();
591597
return;
592-
}
593-
594-
if (this.debounce) {
598+
}if (this.debounce) {
595599
clearTimeout(this.timeoutInstance);
596600
this.timeoutInstance = setTimeout(this.research, this.debounce);
597601
} else {

dist/es6.js

+11-7
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ function _await(value, then, direct) {
5656
return result.then(then);
5757
}return then(result);
5858
}function _invokeIgnored(body) {
59-
var result = body();if (result && result.then) {
59+
var result = body();
60+
if (result && result.then) {
6061
return result.then(_empty);
6162
}
6263
}function _catch(body, recover) {
@@ -68,15 +69,15 @@ function _await(value, then, direct) {
6869
return result.then(void 0, recover);
6970
}return result;
7071
}function _finally(body, finalizer) {
72+
7173
try {
7274
var result = body();
7375
} catch (e) {
7476
return finalizer();
7577
}if (result && result.then) {
7678
return result.then(finalizer, finalizer);
7779
}return finalizer();
78-
}
79-
var VueSimpleSuggest = {
80+
}var VueSimpleSuggest = {
8081
render: function () {
8182
var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { staticClass: "vue-simple-suggest", class: [_vm.styles.vueSimpleSuggest, { designed: !_vm.destyled, focus: _vm.isInFocus }], on: { "keydown": function ($event) {
8283
if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "tab", 9, $event.key, "Tab")) {
@@ -164,6 +165,10 @@ var VueSimpleSuggest = {
164165
type: String,
165166
default: 'input',
166167
validator: value => !!~Object.keys(modes).indexOf(value.toLowerCase())
168+
},
169+
preventHide: {
170+
type: Boolean,
171+
default: false
167172
}
168173
},
169174
// Handle run-time mode changes (now working):
@@ -491,7 +496,8 @@ var VueSimpleSuggest = {
491496
suggestionClick(suggestion, e) {
492497
this.$emit('suggestion-click', suggestion, e);
493498
this.select(suggestion);
494-
this.hideList();
499+
500+
if (!this.preventHide) this.hideList();
495501

496502
/// Ensure, that all needed flags are off before finishing the click.
497503
this.isClicking = false;
@@ -558,9 +564,7 @@ var VueSimpleSuggest = {
558564
if (this.text.length < this.minLength) {
559565
this.hideList();
560566
return;
561-
}
562-
563-
if (this.debounce) {
567+
}if (this.debounce) {
564568
clearTimeout(this.timeoutInstance);
565569
this.timeoutInstance = setTimeout(this.research, this.debounce);
566570
} else {

dist/es7.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ var VueSimpleSuggest = {
119119
type: String,
120120
default: 'input',
121121
validator: value => !!~Object.keys(modes).indexOf(value.toLowerCase())
122+
},
123+
preventHide: {
124+
type: Boolean,
125+
default: false
122126
}
123127
},
124128
// Handle run-time mode changes (now working):
@@ -436,7 +440,8 @@ var VueSimpleSuggest = {
436440
suggestionClick(suggestion, e) {
437441
this.$emit('suggestion-click', suggestion, e);
438442
this.select(suggestion);
439-
this.hideList();
443+
444+
if (!this.preventHide) this.hideList();
440445

441446
/// Ensure, that all needed flags are off before finishing the click.
442447
this.isClicking = false;

dist/iife.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/umd.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

+3-3
Large diffs are not rendered by default.

docs/main.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)