autocomplete.js 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766
  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 = 68);
  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. /***/ 3:
  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. /***/ 68:
  192. /***/ (function(module, exports, __webpack_require__) {
  193. module.exports = __webpack_require__(69);
  194. /***/ }),
  195. /***/ 69:
  196. /***/ (function(module, exports, __webpack_require__) {
  197. "use strict";
  198. exports.__esModule = true;
  199. var _autocomplete = __webpack_require__(70);
  200. var _autocomplete2 = _interopRequireDefault(_autocomplete);
  201. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  202. /* istanbul ignore next */
  203. _autocomplete2.default.install = function (Vue) {
  204. Vue.component(_autocomplete2.default.name, _autocomplete2.default);
  205. };
  206. exports.default = _autocomplete2.default;
  207. /***/ }),
  208. /***/ 7:
  209. /***/ (function(module, exports) {
  210. module.exports = require("element-ui/lib/utils/vue-popper");
  211. /***/ }),
  212. /***/ 70:
  213. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  214. "use strict";
  215. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  216. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_autocomplete_vue__ = __webpack_require__(71);
  217. /* 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__);
  218. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_01836196_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_autocomplete_vue__ = __webpack_require__(75);
  219. var normalizeComponent = __webpack_require__(0)
  220. /* script */
  221. /* template */
  222. /* template functional */
  223. var __vue_template_functional__ = false
  224. /* styles */
  225. var __vue_styles__ = null
  226. /* scopeId */
  227. var __vue_scopeId__ = null
  228. /* moduleIdentifier (server only) */
  229. var __vue_module_identifier__ = null
  230. var Component = normalizeComponent(
  231. __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_autocomplete_vue___default.a,
  232. __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_01836196_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_autocomplete_vue__["a" /* default */],
  233. __vue_template_functional__,
  234. __vue_styles__,
  235. __vue_scopeId__,
  236. __vue_module_identifier__
  237. )
  238. /* harmony default export */ __webpack_exports__["default"] = (Component.exports);
  239. /***/ }),
  240. /***/ 71:
  241. /***/ (function(module, exports, __webpack_require__) {
  242. "use strict";
  243. exports.__esModule = true;
  244. var _debounce = __webpack_require__(14);
  245. var _debounce2 = _interopRequireDefault(_debounce);
  246. var _input = __webpack_require__(6);
  247. var _input2 = _interopRequireDefault(_input);
  248. var _clickoutside = __webpack_require__(10);
  249. var _clickoutside2 = _interopRequireDefault(_clickoutside);
  250. var _autocompleteSuggestions = __webpack_require__(72);
  251. var _autocompleteSuggestions2 = _interopRequireDefault(_autocompleteSuggestions);
  252. var _emitter = __webpack_require__(1);
  253. var _emitter2 = _interopRequireDefault(_emitter);
  254. var _migrating = __webpack_require__(8);
  255. var _migrating2 = _interopRequireDefault(_migrating);
  256. var _util = __webpack_require__(3);
  257. var _focus = __webpack_require__(19);
  258. var _focus2 = _interopRequireDefault(_focus);
  259. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  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. //
  311. //
  312. //
  313. //
  314. //
  315. //
  316. //
  317. //
  318. //
  319. //
  320. exports.default = {
  321. name: 'ElAutocomplete',
  322. mixins: [_emitter2.default, (0, _focus2.default)('input'), _migrating2.default],
  323. componentName: 'ElAutocomplete',
  324. components: {
  325. ElInput: _input2.default,
  326. ElAutocompleteSuggestions: _autocompleteSuggestions2.default
  327. },
  328. directives: { Clickoutside: _clickoutside2.default },
  329. props: {
  330. valueKey: {
  331. type: String,
  332. default: 'value'
  333. },
  334. popperClass: String,
  335. popperOptions: Object,
  336. placeholder: String,
  337. disabled: Boolean,
  338. name: String,
  339. size: String,
  340. value: String,
  341. maxlength: Number,
  342. minlength: Number,
  343. autofocus: Boolean,
  344. fetchSuggestions: Function,
  345. triggerOnFocus: {
  346. type: Boolean,
  347. default: true
  348. },
  349. customItem: String,
  350. selectWhenUnmatched: {
  351. type: Boolean,
  352. default: false
  353. },
  354. prefixIcon: String,
  355. suffixIcon: String,
  356. label: String,
  357. debounce: {
  358. type: Number,
  359. default: 300
  360. },
  361. placement: {
  362. type: String,
  363. default: 'bottom-start'
  364. }
  365. },
  366. data: function data() {
  367. return {
  368. activated: false,
  369. isOnComposition: false,
  370. suggestions: [],
  371. loading: false,
  372. highlightedIndex: -1
  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. this.loading = true;
  402. this.fetchSuggestions(queryString, function (suggestions) {
  403. _this.loading = false;
  404. if (Array.isArray(suggestions)) {
  405. _this.suggestions = suggestions;
  406. } else {
  407. console.error('autocomplete suggestions must be an array');
  408. }
  409. });
  410. },
  411. handleComposition: function handleComposition(event) {
  412. if (event.type === 'compositionend') {
  413. this.isOnComposition = false;
  414. this.handleChange(event.target.value);
  415. } else {
  416. this.isOnComposition = true;
  417. }
  418. },
  419. handleChange: function handleChange(value) {
  420. this.$emit('input', value);
  421. if (this.isOnComposition || !this.triggerOnFocus && !value) {
  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. close: function close(e) {
  438. this.activated = false;
  439. },
  440. handleKeyEnter: function handleKeyEnter(e) {
  441. var _this2 = this;
  442. if (this.suggestionVisible && this.highlightedIndex >= 0 && this.highlightedIndex < this.suggestions.length) {
  443. e.preventDefault();
  444. this.select(this.suggestions[this.highlightedIndex]);
  445. } else if (this.selectWhenUnmatched) {
  446. this.$emit('select', { value: this.value });
  447. this.$nextTick(function (_) {
  448. _this2.suggestions = [];
  449. _this2.highlightedIndex = -1;
  450. });
  451. }
  452. },
  453. select: function select(item) {
  454. var _this3 = this;
  455. this.$emit('input', item[this.valueKey]);
  456. this.$emit('select', item);
  457. this.$nextTick(function (_) {
  458. _this3.suggestions = [];
  459. _this3.highlightedIndex = -1;
  460. });
  461. },
  462. highlight: function highlight(index) {
  463. if (!this.suggestionVisible || this.loading) {
  464. return;
  465. }
  466. if (index < 0) {
  467. this.highlightedIndex = -1;
  468. return;
  469. }
  470. if (index >= this.suggestions.length) {
  471. index = this.suggestions.length - 1;
  472. }
  473. var suggestion = this.$refs.suggestions.$el.querySelector('.el-autocomplete-suggestion__wrap');
  474. var suggestionList = suggestion.querySelectorAll('.el-autocomplete-suggestion__list li');
  475. var highlightItem = suggestionList[index];
  476. var scrollTop = suggestion.scrollTop;
  477. var offsetTop = highlightItem.offsetTop;
  478. if (offsetTop + highlightItem.scrollHeight > scrollTop + suggestion.clientHeight) {
  479. suggestion.scrollTop += highlightItem.scrollHeight;
  480. }
  481. if (offsetTop < scrollTop) {
  482. suggestion.scrollTop -= highlightItem.scrollHeight;
  483. }
  484. this.highlightedIndex = index;
  485. this.$el.querySelector('.el-input__inner').setAttribute('aria-activedescendant', this.id + '-item-' + this.highlightedIndex);
  486. }
  487. },
  488. mounted: function mounted() {
  489. var _this4 = this;
  490. this.debouncedGetData = (0, _debounce2.default)(this.debounce, function (val) {
  491. _this4.getData(val);
  492. });
  493. this.$on('item-click', function (item) {
  494. _this4.select(item);
  495. });
  496. var $input = this.$el.querySelector('.el-input__inner');
  497. $input.setAttribute('role', 'textbox');
  498. $input.setAttribute('aria-autocomplete', 'list');
  499. $input.setAttribute('aria-controls', 'id');
  500. $input.setAttribute('aria-activedescendant', this.id + '-item-' + this.highlightedIndex);
  501. },
  502. beforeDestroy: function beforeDestroy() {
  503. this.$refs.suggestions.$destroy();
  504. }
  505. };
  506. /***/ }),
  507. /***/ 72:
  508. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  509. "use strict";
  510. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  511. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_autocomplete_suggestions_vue__ = __webpack_require__(73);
  512. /* 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__);
  513. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_3f749952_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_autocomplete_suggestions_vue__ = __webpack_require__(74);
  514. var normalizeComponent = __webpack_require__(0)
  515. /* script */
  516. /* template */
  517. /* template functional */
  518. var __vue_template_functional__ = false
  519. /* styles */
  520. var __vue_styles__ = null
  521. /* scopeId */
  522. var __vue_scopeId__ = null
  523. /* moduleIdentifier (server only) */
  524. var __vue_module_identifier__ = null
  525. var Component = normalizeComponent(
  526. __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_autocomplete_suggestions_vue___default.a,
  527. __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_3f749952_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_autocomplete_suggestions_vue__["a" /* default */],
  528. __vue_template_functional__,
  529. __vue_styles__,
  530. __vue_scopeId__,
  531. __vue_module_identifier__
  532. )
  533. /* harmony default export */ __webpack_exports__["default"] = (Component.exports);
  534. /***/ }),
  535. /***/ 73:
  536. /***/ (function(module, exports, __webpack_require__) {
  537. "use strict";
  538. exports.__esModule = true;
  539. var _vuePopper = __webpack_require__(7);
  540. var _vuePopper2 = _interopRequireDefault(_vuePopper);
  541. var _emitter = __webpack_require__(1);
  542. var _emitter2 = _interopRequireDefault(_emitter);
  543. var _scrollbar = __webpack_require__(17);
  544. var _scrollbar2 = _interopRequireDefault(_scrollbar);
  545. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  546. exports.default = {
  547. components: { ElScrollbar: _scrollbar2.default },
  548. mixins: [_vuePopper2.default, _emitter2.default],
  549. componentName: 'ElAutocompleteSuggestions',
  550. data: function data() {
  551. return {
  552. parent: this.$parent,
  553. dropdownWidth: ''
  554. };
  555. },
  556. props: {
  557. options: {
  558. default: function _default() {
  559. return {
  560. gpuAcceleration: false
  561. };
  562. }
  563. },
  564. id: String
  565. },
  566. methods: {
  567. select: function select(item) {
  568. this.dispatch('ElAutocomplete', 'item-click', item);
  569. }
  570. },
  571. updated: function updated() {
  572. var _this = this;
  573. this.$nextTick(function (_) {
  574. _this.updatePopper();
  575. });
  576. },
  577. mounted: function mounted() {
  578. this.$parent.popperElm = this.popperElm = this.$el;
  579. this.referenceElm = this.$parent.$refs.input.$refs.input;
  580. this.referenceList = this.$el.querySelector('.el-autocomplete-suggestion__list');
  581. this.referenceList.setAttribute('role', 'listbox');
  582. this.referenceList.setAttribute('id', this.id);
  583. },
  584. created: function created() {
  585. var _this2 = this;
  586. this.$on('visible', function (val, inputWidth) {
  587. _this2.dropdownWidth = inputWidth + 'px';
  588. _this2.showPopper = val;
  589. });
  590. }
  591. }; //
  592. //
  593. //
  594. //
  595. //
  596. //
  597. //
  598. //
  599. //
  600. //
  601. //
  602. //
  603. //
  604. //
  605. //
  606. //
  607. //
  608. //
  609. //
  610. //
  611. //
  612. /***/ }),
  613. /***/ 74:
  614. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  615. "use strict";
  616. 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.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.loading)?_c('li',[_c('i',{staticClass:"el-icon-loading"})]):_vm._t("default")],2)],1)])}
  617. var staticRenderFns = []
  618. var esExports = { render: render, staticRenderFns: staticRenderFns }
  619. /* harmony default export */ __webpack_exports__["a"] = (esExports);
  620. /***/ }),
  621. /***/ 75:
  622. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  623. "use strict";
  624. 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",attrs:{"label":_vm.label},on:{"input":_vm.handleChange,"focus":_vm.handleFocus,"blur":_vm.handleBlur},nativeOn:{"compositionstart":function($event){_vm.handleComposition($event)},"compositionupdate":function($event){_vm.handleComposition($event)},"compositionend":function($event){_vm.handleComposition($event)},"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,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,"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)}
  625. var staticRenderFns = []
  626. var esExports = { render: render, staticRenderFns: staticRenderFns }
  627. /* harmony default export */ __webpack_exports__["a"] = (esExports);
  628. /***/ }),
  629. /***/ 8:
  630. /***/ (function(module, exports) {
  631. module.exports = require("element-ui/lib/mixins/migrating");
  632. /***/ })
  633. /******/ });