UNPKG

22.9 kBJavaScriptView Raw
1module.exports =
2/******/ (function(modules) { // webpackBootstrap
3/******/ // The module cache
4/******/ var installedModules = {};
5/******/
6/******/ // The require function
7/******/ function __webpack_require__(moduleId) {
8/******/
9/******/ // Check if module is in cache
10/******/ if(installedModules[moduleId]) {
11/******/ return installedModules[moduleId].exports;
12/******/ }
13/******/ // Create a new module (and put it into the cache)
14/******/ var module = installedModules[moduleId] = {
15/******/ i: moduleId,
16/******/ l: false,
17/******/ exports: {}
18/******/ };
19/******/
20/******/ // Execute the module function
21/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
22/******/
23/******/ // Flag the module as loaded
24/******/ module.l = true;
25/******/
26/******/ // Return the exports of the module
27/******/ return module.exports;
28/******/ }
29/******/
30/******/
31/******/ // expose the modules object (__webpack_modules__)
32/******/ __webpack_require__.m = modules;
33/******/
34/******/ // expose the module cache
35/******/ __webpack_require__.c = installedModules;
36/******/
37/******/ // define getter function for harmony exports
38/******/ __webpack_require__.d = function(exports, name, getter) {
39/******/ if(!__webpack_require__.o(exports, name)) {
40/******/ Object.defineProperty(exports, name, {
41/******/ configurable: false,
42/******/ enumerable: true,
43/******/ get: getter
44/******/ });
45/******/ }
46/******/ };
47/******/
48/******/ // getDefaultExport function for compatibility with non-harmony modules
49/******/ __webpack_require__.n = function(module) {
50/******/ var getter = module && module.__esModule ?
51/******/ function getDefault() { return module['default']; } :
52/******/ function getModuleExports() { return module; };
53/******/ __webpack_require__.d(getter, 'a', getter);
54/******/ return getter;
55/******/ };
56/******/
57/******/ // Object.prototype.hasOwnProperty.call
58/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
59/******/
60/******/ // __webpack_public_path__
61/******/ __webpack_require__.p = "/dist/";
62/******/
63/******/ // Load entry module and return exports
64/******/ return __webpack_require__(__webpack_require__.s = 65);
65/******/ })
66/************************************************************************/
67/******/ ({
68
69/***/ 0:
70/***/ (function(module, exports) {
71
72/* globals __VUE_SSR_CONTEXT__ */
73
74// IMPORTANT: Do NOT use ES2015 features in this file.
75// This module is a runtime utility for cleaner component module output and will
76// be included in the final webpack user bundle.
77
78module.exports = function normalizeComponent (
79 rawScriptExports,
80 compiledTemplate,
81 functionalTemplate,
82 injectStyles,
83 scopeId,
84 moduleIdentifier /* server only */
85) {
86 var esModule
87 var scriptExports = rawScriptExports = rawScriptExports || {}
88
89 // ES6 modules interop
90 var type = typeof rawScriptExports.default
91 if (type === 'object' || type === 'function') {
92 esModule = rawScriptExports
93 scriptExports = rawScriptExports.default
94 }
95
96 // Vue.extend constructor export interop
97 var options = typeof scriptExports === 'function'
98 ? scriptExports.options
99 : scriptExports
100
101 // render functions
102 if (compiledTemplate) {
103 options.render = compiledTemplate.render
104 options.staticRenderFns = compiledTemplate.staticRenderFns
105 options._compiled = true
106 }
107
108 // functional template
109 if (functionalTemplate) {
110 options.functional = true
111 }
112
113 // scopedId
114 if (scopeId) {
115 options._scopeId = scopeId
116 }
117
118 var hook
119 if (moduleIdentifier) { // server build
120 hook = function (context) {
121 // 2.3 injection
122 context =
123 context || // cached call
124 (this.$vnode && this.$vnode.ssrContext) || // stateful
125 (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
126 // 2.2 with runInNewContext: true
127 if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
128 context = __VUE_SSR_CONTEXT__
129 }
130 // inject component styles
131 if (injectStyles) {
132 injectStyles.call(this, context)
133 }
134 // register component module identifier for async chunk inferrence
135 if (context && context._registeredComponents) {
136 context._registeredComponents.add(moduleIdentifier)
137 }
138 }
139 // used by ssr in case component is cached and beforeCreate
140 // never gets called
141 options._ssrRegister = hook
142 } else if (injectStyles) {
143 hook = injectStyles
144 }
145
146 if (hook) {
147 var functional = options.functional
148 var existing = functional
149 ? options.render
150 : options.beforeCreate
151
152 if (!functional) {
153 // inject component registration as beforeCreate hook
154 options.beforeCreate = existing
155 ? [].concat(existing, hook)
156 : [hook]
157 } else {
158 // for template-only hot-reload because in that case the render fn doesn't
159 // go through the normalizer
160 options._injectStyles = hook
161 // register for functioal component in vue file
162 options.render = function renderWithStyleInjection (h, context) {
163 hook.call(context)
164 return existing(h, context)
165 }
166 }
167 }
168
169 return {
170 esModule: esModule,
171 exports: scriptExports,
172 options: options
173 }
174}
175
176
177/***/ }),
178
179/***/ 1:
180/***/ (function(module, exports) {
181
182module.exports = require("element-ui/lib/mixins/emitter");
183
184/***/ }),
185
186/***/ 10:
187/***/ (function(module, exports) {
188
189module.exports = require("element-ui/lib/utils/clickoutside");
190
191/***/ }),
192
193/***/ 14:
194/***/ (function(module, exports) {
195
196module.exports = require("throttle-debounce/debounce");
197
198/***/ }),
199
200/***/ 17:
201/***/ (function(module, exports) {
202
203module.exports = require("element-ui/lib/scrollbar");
204
205/***/ }),
206
207/***/ 19:
208/***/ (function(module, exports) {
209
210module.exports = require("element-ui/lib/mixins/focus");
211
212/***/ }),
213
214/***/ 2:
215/***/ (function(module, exports) {
216
217module.exports = require("element-ui/lib/utils/util");
218
219/***/ }),
220
221/***/ 6:
222/***/ (function(module, exports) {
223
224module.exports = require("element-ui/lib/input");
225
226/***/ }),
227
228/***/ 65:
229/***/ (function(module, exports, __webpack_require__) {
230
231"use strict";
232
233
234exports.__esModule = true;
235
236var _autocomplete = __webpack_require__(66);
237
238var _autocomplete2 = _interopRequireDefault(_autocomplete);
239
240function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
241
242/* istanbul ignore next */
243_autocomplete2.default.install = function (Vue) {
244 Vue.component(_autocomplete2.default.name, _autocomplete2.default);
245};
246
247exports.default = _autocomplete2.default;
248
249/***/ }),
250
251/***/ 66:
252/***/ (function(module, __webpack_exports__, __webpack_require__) {
253
254"use strict";
255Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
256/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_autocomplete_vue__ = __webpack_require__(67);
257/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_autocomplete_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_autocomplete_vue__);
258/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_172031ae_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_autocomplete_vue__ = __webpack_require__(71);
259var normalizeComponent = __webpack_require__(0)
260/* script */
261
262/* template */
263
264/* template functional */
265 var __vue_template_functional__ = false
266/* styles */
267var __vue_styles__ = null
268/* scopeId */
269var __vue_scopeId__ = null
270/* moduleIdentifier (server only) */
271var __vue_module_identifier__ = null
272var Component = normalizeComponent(
273 __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_autocomplete_vue___default.a,
274 __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_172031ae_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_autocomplete_vue__["a" /* default */],
275 __vue_template_functional__,
276 __vue_styles__,
277 __vue_scopeId__,
278 __vue_module_identifier__
279)
280
281/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
282
283
284/***/ }),
285
286/***/ 67:
287/***/ (function(module, exports, __webpack_require__) {
288
289"use strict";
290
291
292exports.__esModule = true;
293
294var _debounce = __webpack_require__(14);
295
296var _debounce2 = _interopRequireDefault(_debounce);
297
298var _input = __webpack_require__(6);
299
300var _input2 = _interopRequireDefault(_input);
301
302var _clickoutside = __webpack_require__(10);
303
304var _clickoutside2 = _interopRequireDefault(_clickoutside);
305
306var _autocompleteSuggestions = __webpack_require__(68);
307
308var _autocompleteSuggestions2 = _interopRequireDefault(_autocompleteSuggestions);
309
310var _emitter = __webpack_require__(1);
311
312var _emitter2 = _interopRequireDefault(_emitter);
313
314var _migrating = __webpack_require__(8);
315
316var _migrating2 = _interopRequireDefault(_migrating);
317
318var _util = __webpack_require__(2);
319
320var _focus = __webpack_require__(19);
321
322var _focus2 = _interopRequireDefault(_focus);
323
324function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
325
326//
327//
328//
329//
330//
331//
332//
333//
334//
335//
336//
337//
338//
339//
340//
341//
342//
343//
344//
345//
346//
347//
348//
349//
350//
351//
352//
353//
354//
355//
356//
357//
358//
359//
360//
361//
362//
363//
364//
365//
366//
367//
368//
369//
370//
371//
372//
373//
374//
375//
376//
377//
378//
379//
380//
381//
382//
383
384exports.default = {
385 name: 'ElAutocomplete',
386
387 mixins: [_emitter2.default, (0, _focus2.default)('input'), _migrating2.default],
388
389 inheritAttrs: false,
390
391 componentName: 'ElAutocomplete',
392
393 components: {
394 ElInput: _input2.default,
395 ElAutocompleteSuggestions: _autocompleteSuggestions2.default
396 },
397
398 directives: { Clickoutside: _clickoutside2.default },
399
400 props: {
401 valueKey: {
402 type: String,
403 default: 'value'
404 },
405 popperClass: String,
406 popperOptions: Object,
407 placeholder: String,
408 disabled: Boolean,
409 name: String,
410 size: String,
411 value: String,
412 maxlength: Number,
413 minlength: Number,
414 autofocus: Boolean,
415 fetchSuggestions: Function,
416 triggerOnFocus: {
417 type: Boolean,
418 default: true
419 },
420 customItem: String,
421 selectWhenUnmatched: {
422 type: Boolean,
423 default: false
424 },
425 prefixIcon: String,
426 suffixIcon: String,
427 label: String,
428 debounce: {
429 type: Number,
430 default: 300
431 },
432 placement: {
433 type: String,
434 default: 'bottom-start'
435 },
436 hideLoading: Boolean,
437 popperAppendToBody: {
438 type: Boolean,
439 default: true
440 }
441 },
442 data: function data() {
443 return {
444 activated: false,
445 suggestions: [],
446 loading: false,
447 highlightedIndex: -1,
448 suggestionDisabled: false
449 };
450 },
451
452 computed: {
453 suggestionVisible: function suggestionVisible() {
454 var suggestions = this.suggestions;
455 var isValidData = Array.isArray(suggestions) && suggestions.length > 0;
456 return (isValidData || this.loading) && this.activated;
457 },
458 id: function id() {
459 return 'el-autocomplete-' + (0, _util.generateId)();
460 }
461 },
462 watch: {
463 suggestionVisible: function suggestionVisible(val) {
464 this.broadcast('ElAutocompleteSuggestions', 'visible', [val, this.$refs.input.$refs.input.offsetWidth]);
465 }
466 },
467 methods: {
468 getMigratingConfig: function getMigratingConfig() {
469 return {
470 props: {
471 'custom-item': 'custom-item is removed, use scoped slot instead.',
472 'props': 'props is removed, use value-key instead.'
473 }
474 };
475 },
476 getData: function getData(queryString) {
477 var _this = this;
478
479 if (this.suggestionDisabled) {
480 return;
481 }
482 this.loading = true;
483 this.fetchSuggestions(queryString, function (suggestions) {
484 _this.loading = false;
485 if (_this.suggestionDisabled) {
486 return;
487 }
488 if (Array.isArray(suggestions)) {
489 _this.suggestions = suggestions;
490 } else {
491 console.error('[Element Error][Autocomplete]autocomplete suggestions must be an array');
492 }
493 });
494 },
495 handleChange: function handleChange(value) {
496 this.$emit('input', value);
497 this.suggestionDisabled = false;
498 if (!this.triggerOnFocus && !value) {
499 this.suggestionDisabled = true;
500 this.suggestions = [];
501 return;
502 }
503 this.debouncedGetData(value);
504 },
505 handleFocus: function handleFocus(event) {
506 this.activated = true;
507 this.$emit('focus', event);
508 if (this.triggerOnFocus) {
509 this.debouncedGetData(this.value);
510 }
511 },
512 handleBlur: function handleBlur(event) {
513 this.$emit('blur', event);
514 },
515 close: function close(e) {
516 this.activated = false;
517 },
518 handleKeyEnter: function handleKeyEnter(e) {
519 var _this2 = this;
520
521 if (this.suggestionVisible && this.highlightedIndex >= 0 && this.highlightedIndex < this.suggestions.length) {
522 e.preventDefault();
523 this.select(this.suggestions[this.highlightedIndex]);
524 } else if (this.selectWhenUnmatched) {
525 this.$emit('select', { value: this.value });
526 this.$nextTick(function (_) {
527 _this2.suggestions = [];
528 _this2.highlightedIndex = -1;
529 });
530 }
531 },
532 select: function select(item) {
533 var _this3 = this;
534
535 this.$emit('input', item[this.valueKey]);
536 this.$emit('select', item);
537 this.$nextTick(function (_) {
538 _this3.suggestions = [];
539 _this3.highlightedIndex = -1;
540 });
541 },
542 highlight: function highlight(index) {
543 if (!this.suggestionVisible || this.loading) {
544 return;
545 }
546 if (index < 0) {
547 this.highlightedIndex = -1;
548 return;
549 }
550 if (index >= this.suggestions.length) {
551 index = this.suggestions.length - 1;
552 }
553 var suggestion = this.$refs.suggestions.$el.querySelector('.el-autocomplete-suggestion__wrap');
554 var suggestionList = suggestion.querySelectorAll('.el-autocomplete-suggestion__list li');
555
556 var highlightItem = suggestionList[index];
557 var scrollTop = suggestion.scrollTop;
558 var offsetTop = highlightItem.offsetTop;
559
560 if (offsetTop + highlightItem.scrollHeight > scrollTop + suggestion.clientHeight) {
561 suggestion.scrollTop += highlightItem.scrollHeight;
562 }
563 if (offsetTop < scrollTop) {
564 suggestion.scrollTop -= highlightItem.scrollHeight;
565 }
566 this.highlightedIndex = index;
567 this.$el.querySelector('.el-input__inner').setAttribute('aria-activedescendant', this.id + '-item-' + this.highlightedIndex);
568 }
569 },
570 mounted: function mounted() {
571 var _this4 = this;
572
573 this.debouncedGetData = (0, _debounce2.default)(this.debounce, this.getData);
574 this.$on('item-click', function (item) {
575 _this4.select(item);
576 });
577 var $input = this.$el.querySelector('.el-input__inner');
578 $input.setAttribute('role', 'textbox');
579 $input.setAttribute('aria-autocomplete', 'list');
580 $input.setAttribute('aria-controls', 'id');
581 $input.setAttribute('aria-activedescendant', this.id + '-item-' + this.highlightedIndex);
582 },
583 beforeDestroy: function beforeDestroy() {
584 this.$refs.suggestions.$destroy();
585 }
586};
587
588/***/ }),
589
590/***/ 68:
591/***/ (function(module, __webpack_exports__, __webpack_require__) {
592
593"use strict";
594Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
595/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_autocomplete_suggestions_vue__ = __webpack_require__(69);
596/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_autocomplete_suggestions_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_autocomplete_suggestions_vue__);
597/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_31aefd4b_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_autocomplete_suggestions_vue__ = __webpack_require__(70);
598var normalizeComponent = __webpack_require__(0)
599/* script */
600
601/* template */
602
603/* template functional */
604 var __vue_template_functional__ = false
605/* styles */
606var __vue_styles__ = null
607/* scopeId */
608var __vue_scopeId__ = null
609/* moduleIdentifier (server only) */
610var __vue_module_identifier__ = null
611var Component = normalizeComponent(
612 __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_autocomplete_suggestions_vue___default.a,
613 __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_31aefd4b_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_autocomplete_suggestions_vue__["a" /* default */],
614 __vue_template_functional__,
615 __vue_styles__,
616 __vue_scopeId__,
617 __vue_module_identifier__
618)
619
620/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
621
622
623/***/ }),
624
625/***/ 69:
626/***/ (function(module, exports, __webpack_require__) {
627
628"use strict";
629
630
631exports.__esModule = true;
632
633var _vuePopper = __webpack_require__(7);
634
635var _vuePopper2 = _interopRequireDefault(_vuePopper);
636
637var _emitter = __webpack_require__(1);
638
639var _emitter2 = _interopRequireDefault(_emitter);
640
641var _scrollbar = __webpack_require__(17);
642
643var _scrollbar2 = _interopRequireDefault(_scrollbar);
644
645function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
646
647exports.default = {
648 components: { ElScrollbar: _scrollbar2.default },
649 mixins: [_vuePopper2.default, _emitter2.default],
650
651 componentName: 'ElAutocompleteSuggestions',
652
653 data: function data() {
654 return {
655 parent: this.$parent,
656 dropdownWidth: ''
657 };
658 },
659
660
661 props: {
662 options: {
663 default: function _default() {
664 return {
665 gpuAcceleration: false
666 };
667 }
668 },
669 id: String
670 },
671
672 methods: {
673 select: function select(item) {
674 this.dispatch('ElAutocomplete', 'item-click', item);
675 }
676 },
677
678 updated: function updated() {
679 var _this = this;
680
681 this.$nextTick(function (_) {
682 _this.popperJS && _this.updatePopper();
683 });
684 },
685 mounted: function mounted() {
686 this.$parent.popperElm = this.popperElm = this.$el;
687 this.referenceElm = this.$parent.$refs.input.$refs.input;
688 this.referenceList = this.$el.querySelector('.el-autocomplete-suggestion__list');
689 this.referenceList.setAttribute('role', 'listbox');
690 this.referenceList.setAttribute('id', this.id);
691 },
692 created: function created() {
693 var _this2 = this;
694
695 this.$on('visible', function (val, inputWidth) {
696 _this2.dropdownWidth = inputWidth + 'px';
697 _this2.showPopper = val;
698 });
699 }
700}; //
701//
702//
703//
704//
705//
706//
707//
708//
709//
710//
711//
712//
713//
714//
715//
716//
717//
718//
719
720/***/ }),
721
722/***/ 7:
723/***/ (function(module, exports) {
724
725module.exports = require("element-ui/lib/utils/vue-popper");
726
727/***/ }),
728
729/***/ 70:
730/***/ (function(module, __webpack_exports__, __webpack_require__) {
731
732"use strict";
733var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":"el-zoom-in-top"},on:{"after-leave":_vm.doDestroy}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showPopper),expression:"showPopper"}],staticClass:"el-autocomplete-suggestion el-popper",class:{ 'is-loading': !_vm.parent.hideLoading && _vm.parent.loading },style:({ width: _vm.dropdownWidth }),attrs:{"role":"region"}},[_c('el-scrollbar',{attrs:{"tag":"ul","wrap-class":"el-autocomplete-suggestion__wrap","view-class":"el-autocomplete-suggestion__list"}},[(!_vm.parent.hideLoading && _vm.parent.loading)?_c('li',[_c('i',{staticClass:"el-icon-loading"})]):_vm._t("default")],2)],1)])}
734var staticRenderFns = []
735var esExports = { render: render, staticRenderFns: staticRenderFns }
736/* harmony default export */ __webpack_exports__["a"] = (esExports);
737
738/***/ }),
739
740/***/ 71:
741/***/ (function(module, __webpack_exports__, __webpack_require__) {
742
743"use strict";
744var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:(_vm.close),expression:"close"}],staticClass:"el-autocomplete",attrs:{"aria-haspopup":"listbox","role":"combobox","aria-expanded":_vm.suggestionVisible,"aria-owns":_vm.id}},[_c('el-input',_vm._b({ref:"input",on:{"input":_vm.handleChange,"focus":_vm.handleFocus,"blur":_vm.handleBlur},nativeOn:{"keydown":[function($event){if(!('button' in $event)&&_vm._k($event.keyCode,"up",38,$event.key)){ return null; }$event.preventDefault();_vm.highlight(_vm.highlightedIndex - 1)},function($event){if(!('button' in $event)&&_vm._k($event.keyCode,"down",40,$event.key)){ return null; }$event.preventDefault();_vm.highlight(_vm.highlightedIndex + 1)},function($event){if(!('button' in $event)&&_vm._k($event.keyCode,"enter",13,$event.key)){ return null; }_vm.handleKeyEnter($event)},function($event){if(!('button' in $event)&&_vm._k($event.keyCode,"tab",9,$event.key)){ return null; }_vm.close($event)}]}},'el-input',[_vm.$props, _vm.$attrs],false),[(_vm.$slots.prepend)?_c('template',{attrs:{"slot":"prepend"},slot:"prepend"},[_vm._t("prepend")],2):_vm._e(),(_vm.$slots.append)?_c('template',{attrs:{"slot":"append"},slot:"append"},[_vm._t("append")],2):_vm._e(),(_vm.$slots.prefix)?_c('template',{attrs:{"slot":"prefix"},slot:"prefix"},[_vm._t("prefix")],2):_vm._e(),(_vm.$slots.suffix)?_c('template',{attrs:{"slot":"suffix"},slot:"suffix"},[_vm._t("suffix")],2):_vm._e()],2),_c('el-autocomplete-suggestions',{ref:"suggestions",class:[_vm.popperClass ? _vm.popperClass : ''],attrs:{"visible-arrow":"","popper-options":_vm.popperOptions,"append-to-body":_vm.popperAppendToBody,"placement":_vm.placement,"id":_vm.id}},_vm._l((_vm.suggestions),function(item,index){return _c('li',{key:index,class:{'highlighted': _vm.highlightedIndex === index},attrs:{"id":(_vm.id + "-item-" + index),"role":"option","aria-selected":_vm.highlightedIndex === index},on:{"click":function($event){_vm.select(item)}}},[_vm._t("default",[_vm._v("\n "+_vm._s(item[_vm.valueKey])+"\n ")],{item:item})],2)}))],1)}
745var staticRenderFns = []
746var esExports = { render: render, staticRenderFns: staticRenderFns }
747/* harmony default export */ __webpack_exports__["a"] = (esExports);
748
749/***/ }),
750
751/***/ 8:
752/***/ (function(module, exports) {
753
754module.exports = require("element-ui/lib/mixins/migrating");
755
756/***/ })
757
758/******/ });
\No newline at end of file