autocomplete.js 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767
  1. module.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. /***/ 0:
  69. /***/ (function(module, exports) {
  70. /* globals __VUE_SSR_CONTEXT__ */
  71. // IMPORTANT: Do NOT use ES2015 features in this file.
  72. // This module is a runtime utility for cleaner component module output and will
  73. // be included in the final webpack user bundle.
  74. module.exports = function normalizeComponent (
  75. rawScriptExports,
  76. compiledTemplate,
  77. functionalTemplate,
  78. injectStyles,
  79. scopeId,
  80. moduleIdentifier /* server only */
  81. ) {
  82. var esModule
  83. var scriptExports = rawScriptExports = rawScriptExports || {}
  84. // ES6 modules interop
  85. var type = typeof rawScriptExports.default
  86. if (type === 'object' || type === 'function') {
  87. esModule = rawScriptExports
  88. scriptExports = rawScriptExports.default
  89. }
  90. // Vue.extend constructor export interop
  91. var options = typeof scriptExports === 'function'
  92. ? scriptExports.options
  93. : scriptExports
  94. // render functions
  95. if (compiledTemplate) {
  96. options.render = compiledTemplate.render
  97. options.staticRenderFns = compiledTemplate.staticRenderFns
  98. options._compiled = true
  99. }
  100. // functional template
  101. if (functionalTemplate) {
  102. options.functional = true
  103. }
  104. // scopedId
  105. if (scopeId) {
  106. options._scopeId = scopeId
  107. }
  108. var hook
  109. if (moduleIdentifier) { // server build
  110. hook = function (context) {
  111. // 2.3 injection
  112. context =
  113. context || // cached call
  114. (this.$vnode && this.$vnode.ssrContext) || // stateful
  115. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  116. // 2.2 with runInNewContext: true
  117. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  118. context = __VUE_SSR_CONTEXT__
  119. }
  120. // inject component styles
  121. if (injectStyles) {
  122. injectStyles.call(this, context)
  123. }
  124. // register component module identifier for async chunk inferrence
  125. if (context && context._registeredComponents) {
  126. context._registeredComponents.add(moduleIdentifier)
  127. }
  128. }
  129. // used by ssr in case component is cached and beforeCreate
  130. // never gets called
  131. options._ssrRegister = hook
  132. } else if (injectStyles) {
  133. hook = injectStyles
  134. }
  135. if (hook) {
  136. var functional = options.functional
  137. var existing = functional
  138. ? options.render
  139. : options.beforeCreate
  140. if (!functional) {
  141. // inject component registration as beforeCreate hook
  142. options.beforeCreate = existing
  143. ? [].concat(existing, hook)
  144. : [hook]
  145. } else {
  146. // for template-only hot-reload because in that case the render fn doesn't
  147. // go through the normalizer
  148. options._injectStyles = hook
  149. // register for functioal component in vue file
  150. options.render = function renderWithStyleInjection (h, context) {
  151. hook.call(context)
  152. return existing(h, context)
  153. }
  154. }
  155. }
  156. return {
  157. esModule: esModule,
  158. exports: scriptExports,
  159. options: options
  160. }
  161. }
  162. /***/ }),
  163. /***/ 1:
  164. /***/ (function(module, exports) {
  165. module.exports = require("element-ui/lib/mixins/emitter");
  166. /***/ }),
  167. /***/ 10:
  168. /***/ (function(module, exports) {
  169. module.exports = require("element-ui/lib/utils/clickoutside");
  170. /***/ }),
  171. /***/ 14:
  172. /***/ (function(module, exports) {
  173. module.exports = require("throttle-debounce/debounce");
  174. /***/ }),
  175. /***/ 17:
  176. /***/ (function(module, exports) {
  177. module.exports = require("element-ui/lib/scrollbar");
  178. /***/ }),
  179. /***/ 19:
  180. /***/ (function(module, exports) {
  181. module.exports = require("element-ui/lib/mixins/focus");
  182. /***/ }),
  183. /***/ 2:
  184. /***/ (function(module, exports) {
  185. module.exports = require("element-ui/lib/utils/util");
  186. /***/ }),
  187. /***/ 6:
  188. /***/ (function(module, exports) {
  189. module.exports = require("element-ui/lib/input");
  190. /***/ }),
  191. /***/ 65:
  192. /***/ (function(module, exports, __webpack_require__) {
  193. "use strict";
  194. exports.__esModule = true;
  195. var _autocomplete = __webpack_require__(66);
  196. var _autocomplete2 = _interopRequireDefault(_autocomplete);
  197. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  198. /* istanbul ignore next */
  199. _autocomplete2.default.install = function (Vue) {
  200. Vue.component(_autocomplete2.default.name, _autocomplete2.default);
  201. };
  202. exports.default = _autocomplete2.default;
  203. /***/ }),
  204. /***/ 66:
  205. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  206. "use strict";
  207. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  208. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_autocomplete_vue__ = __webpack_require__(67);
  209. /* 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__);
  210. /* 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);
  211. var normalizeComponent = __webpack_require__(0)
  212. /* script */
  213. /* template */
  214. /* template functional */
  215. var __vue_template_functional__ = false
  216. /* styles */
  217. var __vue_styles__ = null
  218. /* scopeId */
  219. var __vue_scopeId__ = null
  220. /* moduleIdentifier (server only) */
  221. var __vue_module_identifier__ = null
  222. var Component = normalizeComponent(
  223. __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_autocomplete_vue___default.a,
  224. __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 */],
  225. __vue_template_functional__,
  226. __vue_styles__,
  227. __vue_scopeId__,
  228. __vue_module_identifier__
  229. )
  230. /* harmony default export */ __webpack_exports__["default"] = (Component.exports);
  231. /***/ }),
  232. /***/ 67:
  233. /***/ (function(module, exports, __webpack_require__) {
  234. "use strict";
  235. exports.__esModule = true;
  236. var _debounce = __webpack_require__(14);
  237. var _debounce2 = _interopRequireDefault(_debounce);
  238. var _input = __webpack_require__(6);
  239. var _input2 = _interopRequireDefault(_input);
  240. var _clickoutside = __webpack_require__(10);
  241. var _clickoutside2 = _interopRequireDefault(_clickoutside);
  242. var _autocompleteSuggestions = __webpack_require__(68);
  243. var _autocompleteSuggestions2 = _interopRequireDefault(_autocompleteSuggestions);
  244. var _emitter = __webpack_require__(1);
  245. var _emitter2 = _interopRequireDefault(_emitter);
  246. var _migrating = __webpack_require__(8);
  247. var _migrating2 = _interopRequireDefault(_migrating);
  248. var _util = __webpack_require__(2);
  249. var _focus = __webpack_require__(19);
  250. var _focus2 = _interopRequireDefault(_focus);
  251. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  252. //
  253. //
  254. //
  255. //
  256. //
  257. //
  258. //
  259. //
  260. //
  261. //
  262. //
  263. //
  264. //
  265. //
  266. //
  267. //
  268. //
  269. //
  270. //
  271. //
  272. //
  273. //
  274. //
  275. //
  276. //
  277. //
  278. //
  279. //
  280. //
  281. //
  282. //
  283. //
  284. //
  285. //
  286. //
  287. //
  288. //
  289. //
  290. //
  291. //
  292. //
  293. //
  294. //
  295. //
  296. //
  297. //
  298. //
  299. //
  300. //
  301. //
  302. //
  303. //
  304. //
  305. //
  306. //
  307. //
  308. //
  309. //
  310. exports.default = {
  311. name: 'ElAutocomplete',
  312. mixins: [_emitter2.default, (0, _focus2.default)('input'), _migrating2.default],
  313. inheritAttrs: false,
  314. componentName: 'ElAutocomplete',
  315. components: {
  316. ElInput: _input2.default,
  317. ElAutocompleteSuggestions: _autocompleteSuggestions2.default
  318. },
  319. directives: { Clickoutside: _clickoutside2.default },
  320. props: {
  321. valueKey: {
  322. type: String,
  323. default: 'value'
  324. },
  325. popperClass: String,
  326. popperOptions: Object,
  327. placeholder: String,
  328. clearable: {
  329. type: Boolean,
  330. default: false
  331. },
  332. disabled: Boolean,
  333. name: String,
  334. size: String,
  335. value: String,
  336. maxlength: Number,
  337. minlength: Number,
  338. autofocus: Boolean,
  339. fetchSuggestions: Function,
  340. triggerOnFocus: {
  341. type: Boolean,
  342. default: true
  343. },
  344. customItem: String,
  345. selectWhenUnmatched: {
  346. type: Boolean,
  347. default: false
  348. },
  349. prefixIcon: String,
  350. suffixIcon: String,
  351. label: String,
  352. debounce: {
  353. type: Number,
  354. default: 300
  355. },
  356. placement: {
  357. type: String,
  358. default: 'bottom-start'
  359. },
  360. hideLoading: Boolean,
  361. popperAppendToBody: {
  362. type: Boolean,
  363. default: true
  364. }
  365. },
  366. data: function data() {
  367. return {
  368. activated: false,
  369. suggestions: [],
  370. loading: false,
  371. highlightedIndex: -1,
  372. suggestionDisabled: false
  373. };
  374. },
  375. computed: {
  376. suggestionVisible: function suggestionVisible() {
  377. var suggestions = this.suggestions;
  378. var isValidData = Array.isArray(suggestions) && suggestions.length > 0;
  379. return (isValidData || this.loading) && this.activated;
  380. },
  381. id: function id() {
  382. return 'el-autocomplete-' + (0, _util.generateId)();
  383. }
  384. },
  385. watch: {
  386. suggestionVisible: function suggestionVisible(val) {
  387. this.broadcast('ElAutocompleteSuggestions', 'visible', [val, this.$refs.input.$refs.input.offsetWidth]);
  388. }
  389. },
  390. methods: {
  391. getMigratingConfig: function getMigratingConfig() {
  392. return {
  393. props: {
  394. 'custom-item': 'custom-item is removed, use scoped slot instead.',
  395. 'props': 'props is removed, use value-key instead.'
  396. }
  397. };
  398. },
  399. getData: function getData(queryString) {
  400. var _this = this;
  401. if (this.suggestionDisabled) {
  402. return;
  403. }
  404. this.loading = true;
  405. this.fetchSuggestions(queryString, function (suggestions) {
  406. _this.loading = false;
  407. if (_this.suggestionDisabled) {
  408. return;
  409. }
  410. if (Array.isArray(suggestions)) {
  411. _this.suggestions = suggestions;
  412. } else {
  413. console.error('[Element Error][Autocomplete]autocomplete suggestions must be an array');
  414. }
  415. });
  416. },
  417. handleChange: function handleChange(value) {
  418. this.$emit('input', value);
  419. this.suggestionDisabled = false;
  420. if (!this.triggerOnFocus && !value) {
  421. this.suggestionDisabled = true;
  422. this.suggestions = [];
  423. return;
  424. }
  425. this.debouncedGetData(value);
  426. },
  427. handleFocus: function handleFocus(event) {
  428. this.activated = true;
  429. this.$emit('focus', event);
  430. if (this.triggerOnFocus) {
  431. this.debouncedGetData(this.value);
  432. }
  433. },
  434. handleBlur: function handleBlur(event) {
  435. this.$emit('blur', event);
  436. },
  437. handleClear: function handleClear() {
  438. this.activated = false;
  439. this.$emit('clear');
  440. },
  441. close: function close(e) {
  442. this.activated = false;
  443. },
  444. handleKeyEnter: function handleKeyEnter(e) {
  445. var _this2 = this;
  446. if (this.suggestionVisible && this.highlightedIndex >= 0 && this.highlightedIndex < this.suggestions.length) {
  447. e.preventDefault();
  448. this.select(this.suggestions[this.highlightedIndex]);
  449. } else if (this.selectWhenUnmatched) {
  450. this.$emit('select', { value: this.value });
  451. this.$nextTick(function (_) {
  452. _this2.suggestions = [];
  453. _this2.highlightedIndex = -1;
  454. });
  455. }
  456. },
  457. select: function select(item) {
  458. var _this3 = this;
  459. this.$emit('input', item[this.valueKey]);
  460. this.$emit('select', item);
  461. this.$nextTick(function (_) {
  462. _this3.suggestions = [];
  463. _this3.highlightedIndex = -1;
  464. });
  465. },
  466. highlight: function highlight(index) {
  467. if (!this.suggestionVisible || this.loading) {
  468. return;
  469. }
  470. if (index < 0) {
  471. this.highlightedIndex = -1;
  472. return;
  473. }
  474. if (index >= this.suggestions.length) {
  475. index = this.suggestions.length - 1;
  476. }
  477. var suggestion = this.$refs.suggestions.$el.querySelector('.el-autocomplete-suggestion__wrap');
  478. var suggestionList = suggestion.querySelectorAll('.el-autocomplete-suggestion__list li');
  479. var highlightItem = suggestionList[index];
  480. var scrollTop = suggestion.scrollTop;
  481. var offsetTop = highlightItem.offsetTop;
  482. if (offsetTop + highlightItem.scrollHeight > scrollTop + suggestion.clientHeight) {
  483. suggestion.scrollTop += highlightItem.scrollHeight;
  484. }
  485. if (offsetTop < scrollTop) {
  486. suggestion.scrollTop -= highlightItem.scrollHeight;
  487. }
  488. this.highlightedIndex = index;
  489. this.$el.querySelector('.el-input__inner').setAttribute('aria-activedescendant', this.id + '-item-' + this.highlightedIndex);
  490. }
  491. },
  492. mounted: function mounted() {
  493. var _this4 = this;
  494. this.debouncedGetData = (0, _debounce2.default)(this.debounce, this.getData);
  495. this.$on('item-click', function (item) {
  496. _this4.select(item);
  497. });
  498. var $input = this.$el.querySelector('.el-input__inner');
  499. $input.setAttribute('role', 'textbox');
  500. $input.setAttribute('aria-autocomplete', 'list');
  501. $input.setAttribute('aria-controls', 'id');
  502. $input.setAttribute('aria-activedescendant', this.id + '-item-' + this.highlightedIndex);
  503. },
  504. beforeDestroy: function beforeDestroy() {
  505. this.$refs.suggestions.$destroy();
  506. }
  507. };
  508. /***/ }),
  509. /***/ 68:
  510. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  511. "use strict";
  512. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  513. /* 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);
  514. /* 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__);
  515. /* 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);
  516. var normalizeComponent = __webpack_require__(0)
  517. /* script */
  518. /* template */
  519. /* template functional */
  520. var __vue_template_functional__ = false
  521. /* styles */
  522. var __vue_styles__ = null
  523. /* scopeId */
  524. var __vue_scopeId__ = null
  525. /* moduleIdentifier (server only) */
  526. var __vue_module_identifier__ = null
  527. var Component = normalizeComponent(
  528. __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_autocomplete_suggestions_vue___default.a,
  529. __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 */],
  530. __vue_template_functional__,
  531. __vue_styles__,
  532. __vue_scopeId__,
  533. __vue_module_identifier__
  534. )
  535. /* harmony default export */ __webpack_exports__["default"] = (Component.exports);
  536. /***/ }),
  537. /***/ 69:
  538. /***/ (function(module, exports, __webpack_require__) {
  539. "use strict";
  540. exports.__esModule = true;
  541. var _vuePopper = __webpack_require__(7);
  542. var _vuePopper2 = _interopRequireDefault(_vuePopper);
  543. var _emitter = __webpack_require__(1);
  544. var _emitter2 = _interopRequireDefault(_emitter);
  545. var _scrollbar = __webpack_require__(17);
  546. var _scrollbar2 = _interopRequireDefault(_scrollbar);
  547. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  548. exports.default = {
  549. components: { ElScrollbar: _scrollbar2.default },
  550. mixins: [_vuePopper2.default, _emitter2.default],
  551. componentName: 'ElAutocompleteSuggestions',
  552. data: function data() {
  553. return {
  554. parent: this.$parent,
  555. dropdownWidth: ''
  556. };
  557. },
  558. props: {
  559. options: {
  560. default: function _default() {
  561. return {
  562. gpuAcceleration: false
  563. };
  564. }
  565. },
  566. id: String
  567. },
  568. methods: {
  569. select: function select(item) {
  570. this.dispatch('ElAutocomplete', 'item-click', item);
  571. }
  572. },
  573. updated: function updated() {
  574. var _this = this;
  575. this.$nextTick(function (_) {
  576. _this.popperJS && _this.updatePopper();
  577. });
  578. },
  579. mounted: function mounted() {
  580. this.$parent.popperElm = this.popperElm = this.$el;
  581. this.referenceElm = this.$parent.$refs.input.$refs.input;
  582. this.referenceList = this.$el.querySelector('.el-autocomplete-suggestion__list');
  583. this.referenceList.setAttribute('role', 'listbox');
  584. this.referenceList.setAttribute('id', this.id);
  585. },
  586. created: function created() {
  587. var _this2 = this;
  588. this.$on('visible', function (val, inputWidth) {
  589. _this2.dropdownWidth = inputWidth + 'px';
  590. _this2.showPopper = val;
  591. });
  592. }
  593. }; //
  594. //
  595. //
  596. //
  597. //
  598. //
  599. //
  600. //
  601. //
  602. //
  603. //
  604. //
  605. //
  606. //
  607. //
  608. //
  609. //
  610. //
  611. //
  612. /***/ }),
  613. /***/ 7:
  614. /***/ (function(module, exports) {
  615. module.exports = require("element-ui/lib/utils/vue-popper");
  616. /***/ }),
  617. /***/ 70:
  618. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  619. "use strict";
  620. var 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)])}
  621. var staticRenderFns = []
  622. var esExports = { render: render, staticRenderFns: staticRenderFns }
  623. /* harmony default export */ __webpack_exports__["a"] = (esExports);
  624. /***/ }),
  625. /***/ 71:
  626. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  627. "use strict";
  628. var 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,"clear":_vm.handleClear},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)}
  629. var staticRenderFns = []
  630. var esExports = { render: render, staticRenderFns: staticRenderFns }
  631. /* harmony default export */ __webpack_exports__["a"] = (esExports);
  632. /***/ }),
  633. /***/ 8:
  634. /***/ (function(module, exports) {
  635. module.exports = require("element-ui/lib/mixins/migrating");
  636. /***/ })
  637. /******/ });