input.js 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735
  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 = 101);
  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. /***/ 101:
  168. /***/ (function(module, exports, __webpack_require__) {
  169. "use strict";
  170. exports.__esModule = true;
  171. var _input = __webpack_require__(102);
  172. var _input2 = _interopRequireDefault(_input);
  173. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  174. /* istanbul ignore next */
  175. _input2.default.install = function (Vue) {
  176. Vue.component(_input2.default.name, _input2.default);
  177. };
  178. exports.default = _input2.default;
  179. /***/ }),
  180. /***/ 102:
  181. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  182. "use strict";
  183. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  184. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_input_vue__ = __webpack_require__(103);
  185. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_input_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_input_vue__);
  186. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_278ba46e_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_input_vue__ = __webpack_require__(105);
  187. var normalizeComponent = __webpack_require__(0)
  188. /* script */
  189. /* template */
  190. /* template functional */
  191. var __vue_template_functional__ = false
  192. /* styles */
  193. var __vue_styles__ = null
  194. /* scopeId */
  195. var __vue_scopeId__ = null
  196. /* moduleIdentifier (server only) */
  197. var __vue_module_identifier__ = null
  198. var Component = normalizeComponent(
  199. __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_input_vue___default.a,
  200. __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_278ba46e_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_input_vue__["a" /* default */],
  201. __vue_template_functional__,
  202. __vue_styles__,
  203. __vue_scopeId__,
  204. __vue_module_identifier__
  205. )
  206. /* harmony default export */ __webpack_exports__["default"] = (Component.exports);
  207. /***/ }),
  208. /***/ 103:
  209. /***/ (function(module, exports, __webpack_require__) {
  210. "use strict";
  211. exports.__esModule = true;
  212. var _emitter = __webpack_require__(1);
  213. var _emitter2 = _interopRequireDefault(_emitter);
  214. var _migrating = __webpack_require__(8);
  215. var _migrating2 = _interopRequireDefault(_migrating);
  216. var _calcTextareaHeight = __webpack_require__(104);
  217. var _calcTextareaHeight2 = _interopRequireDefault(_calcTextareaHeight);
  218. var _merge = __webpack_require__(9);
  219. var _merge2 = _interopRequireDefault(_merge);
  220. var _shared = __webpack_require__(23);
  221. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  222. exports.default = {
  223. name: 'ElInput',
  224. componentName: 'ElInput',
  225. mixins: [_emitter2.default, _migrating2.default],
  226. inheritAttrs: false,
  227. inject: {
  228. elForm: {
  229. default: ''
  230. },
  231. elFormItem: {
  232. default: ''
  233. }
  234. },
  235. data: function data() {
  236. return {
  237. currentValue: this.value === undefined || this.value === null ? '' : this.value,
  238. textareaCalcStyle: {},
  239. hovering: false,
  240. focused: false,
  241. isOnComposition: false,
  242. valueBeforeComposition: null
  243. };
  244. },
  245. props: {
  246. value: [String, Number],
  247. size: String,
  248. resize: String,
  249. form: String,
  250. disabled: Boolean,
  251. readonly: Boolean,
  252. type: {
  253. type: String,
  254. default: 'text'
  255. },
  256. autosize: {
  257. type: [Boolean, Object],
  258. default: false
  259. },
  260. autocomplete: {
  261. type: String,
  262. default: 'off'
  263. },
  264. /** @Deprecated in next major version */
  265. autoComplete: {
  266. type: String,
  267. validator: function validator(val) {
  268. "production" !== 'production' && console.warn('[Element Warn][Input]\'auto-complete\' property will be deprecated in next major version. please use \'autocomplete\' instead.');
  269. return true;
  270. }
  271. },
  272. validateEvent: {
  273. type: Boolean,
  274. default: true
  275. },
  276. suffixIcon: String,
  277. prefixIcon: String,
  278. label: String,
  279. clearable: {
  280. type: Boolean,
  281. default: false
  282. },
  283. tabindex: String
  284. },
  285. computed: {
  286. _elFormItemSize: function _elFormItemSize() {
  287. return (this.elFormItem || {}).elFormItemSize;
  288. },
  289. validateState: function validateState() {
  290. return this.elFormItem ? this.elFormItem.validateState : '';
  291. },
  292. needStatusIcon: function needStatusIcon() {
  293. return this.elForm ? this.elForm.statusIcon : false;
  294. },
  295. validateIcon: function validateIcon() {
  296. return {
  297. validating: 'el-icon-loading',
  298. success: 'el-icon-circle-check',
  299. error: 'el-icon-circle-close'
  300. }[this.validateState];
  301. },
  302. textareaStyle: function textareaStyle() {
  303. return (0, _merge2.default)({}, this.textareaCalcStyle, { resize: this.resize });
  304. },
  305. inputSize: function inputSize() {
  306. return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
  307. },
  308. inputDisabled: function inputDisabled() {
  309. return this.disabled || (this.elForm || {}).disabled;
  310. },
  311. showClear: function showClear() {
  312. return this.clearable && !this.inputDisabled && !this.readonly && this.currentValue !== '' && (this.focused || this.hovering);
  313. }
  314. },
  315. watch: {
  316. value: function value(val, oldValue) {
  317. this.setCurrentValue(val);
  318. }
  319. },
  320. methods: {
  321. focus: function focus() {
  322. (this.$refs.input || this.$refs.textarea).focus();
  323. },
  324. blur: function blur() {
  325. (this.$refs.input || this.$refs.textarea).blur();
  326. },
  327. getMigratingConfig: function getMigratingConfig() {
  328. return {
  329. props: {
  330. 'icon': 'icon is removed, use suffix-icon / prefix-icon instead.',
  331. 'on-icon-click': 'on-icon-click is removed.'
  332. },
  333. events: {
  334. 'click': 'click is removed.'
  335. }
  336. };
  337. },
  338. handleBlur: function handleBlur(event) {
  339. this.focused = false;
  340. this.$emit('blur', event);
  341. if (this.validateEvent) {
  342. this.dispatch('ElFormItem', 'el.form.blur', [this.currentValue]);
  343. }
  344. },
  345. select: function select() {
  346. (this.$refs.input || this.$refs.textarea).select();
  347. },
  348. resizeTextarea: function resizeTextarea() {
  349. if (this.$isServer) return;
  350. var autosize = this.autosize,
  351. type = this.type;
  352. if (type !== 'textarea') return;
  353. if (!autosize) {
  354. this.textareaCalcStyle = {
  355. minHeight: (0, _calcTextareaHeight2.default)(this.$refs.textarea).minHeight
  356. };
  357. return;
  358. }
  359. var minRows = autosize.minRows;
  360. var maxRows = autosize.maxRows;
  361. this.textareaCalcStyle = (0, _calcTextareaHeight2.default)(this.$refs.textarea, minRows, maxRows);
  362. },
  363. handleFocus: function handleFocus(event) {
  364. this.focused = true;
  365. this.$emit('focus', event);
  366. },
  367. handleComposition: function handleComposition(event) {
  368. if (event.type === 'compositionend') {
  369. this.isOnComposition = false;
  370. this.currentValue = this.valueBeforeComposition;
  371. this.valueBeforeComposition = null;
  372. this.handleInput(event);
  373. } else {
  374. var text = event.target.value;
  375. var lastCharacter = text[text.length - 1] || '';
  376. this.isOnComposition = !(0, _shared.isKorean)(lastCharacter);
  377. if (this.isOnComposition && event.type === 'compositionstart') {
  378. this.valueBeforeComposition = text;
  379. }
  380. }
  381. },
  382. handleInput: function handleInput(event) {
  383. var value = event.target.value;
  384. this.setCurrentValue(value);
  385. if (this.isOnComposition) return;
  386. this.$emit('input', value);
  387. },
  388. handleChange: function handleChange(event) {
  389. this.$emit('change', event.target.value);
  390. },
  391. setCurrentValue: function setCurrentValue(value) {
  392. if (this.isOnComposition && value === this.valueBeforeComposition) return;
  393. this.currentValue = value;
  394. if (this.isOnComposition) return;
  395. this.$nextTick(this.resizeTextarea);
  396. if (this.validateEvent && this.currentValue === this.value) {
  397. this.dispatch('ElFormItem', 'el.form.change', [value]);
  398. }
  399. },
  400. calcIconOffset: function calcIconOffset(place) {
  401. var elList = [].slice.call(this.$el.querySelectorAll('.el-input__' + place) || []);
  402. if (!elList.length) return;
  403. var el = null;
  404. for (var i = 0; i < elList.length; i++) {
  405. if (elList[i].parentNode === this.$el) {
  406. el = elList[i];
  407. break;
  408. }
  409. }
  410. if (!el) return;
  411. var pendantMap = {
  412. suffix: 'append',
  413. prefix: 'prepend'
  414. };
  415. var pendant = pendantMap[place];
  416. if (this.$slots[pendant]) {
  417. el.style.transform = 'translateX(' + (place === 'suffix' ? '-' : '') + this.$el.querySelector('.el-input-group__' + pendant).offsetWidth + 'px)';
  418. } else {
  419. el.removeAttribute('style');
  420. }
  421. },
  422. updateIconOffset: function updateIconOffset() {
  423. this.calcIconOffset('prefix');
  424. this.calcIconOffset('suffix');
  425. },
  426. clear: function clear() {
  427. this.$emit('input', '');
  428. this.$emit('change', '');
  429. this.$emit('clear');
  430. this.setCurrentValue('');
  431. }
  432. },
  433. created: function created() {
  434. this.$on('inputSelect', this.select);
  435. },
  436. mounted: function mounted() {
  437. this.resizeTextarea();
  438. this.updateIconOffset();
  439. },
  440. updated: function updated() {
  441. this.$nextTick(this.updateIconOffset);
  442. }
  443. }; //
  444. //
  445. //
  446. //
  447. //
  448. //
  449. //
  450. //
  451. //
  452. //
  453. //
  454. //
  455. //
  456. //
  457. //
  458. //
  459. //
  460. //
  461. //
  462. //
  463. //
  464. //
  465. //
  466. //
  467. //
  468. //
  469. //
  470. //
  471. //
  472. //
  473. //
  474. //
  475. //
  476. //
  477. //
  478. //
  479. //
  480. //
  481. //
  482. //
  483. //
  484. //
  485. //
  486. //
  487. //
  488. //
  489. //
  490. //
  491. //
  492. //
  493. //
  494. //
  495. //
  496. //
  497. //
  498. //
  499. //
  500. //
  501. //
  502. //
  503. //
  504. //
  505. //
  506. //
  507. //
  508. //
  509. //
  510. //
  511. //
  512. //
  513. //
  514. //
  515. //
  516. //
  517. //
  518. //
  519. //
  520. //
  521. //
  522. //
  523. //
  524. //
  525. //
  526. //
  527. //
  528. //
  529. //
  530. //
  531. //
  532. //
  533. //
  534. //
  535. //
  536. //
  537. //
  538. //
  539. //
  540. //
  541. //
  542. /***/ }),
  543. /***/ 104:
  544. /***/ (function(module, exports, __webpack_require__) {
  545. "use strict";
  546. exports.__esModule = true;
  547. exports.default = calcTextareaHeight;
  548. var hiddenTextarea = void 0;
  549. var HIDDEN_STYLE = '\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n';
  550. var CONTEXT_STYLE = ['letter-spacing', 'line-height', 'padding-top', 'padding-bottom', 'font-family', 'font-weight', 'font-size', 'text-rendering', 'text-transform', 'width', 'text-indent', 'padding-left', 'padding-right', 'border-width', 'box-sizing'];
  551. function calculateNodeStyling(targetElement) {
  552. var style = window.getComputedStyle(targetElement);
  553. var boxSizing = style.getPropertyValue('box-sizing');
  554. var paddingSize = parseFloat(style.getPropertyValue('padding-bottom')) + parseFloat(style.getPropertyValue('padding-top'));
  555. var borderSize = parseFloat(style.getPropertyValue('border-bottom-width')) + parseFloat(style.getPropertyValue('border-top-width'));
  556. var contextStyle = CONTEXT_STYLE.map(function (name) {
  557. return name + ':' + style.getPropertyValue(name);
  558. }).join(';');
  559. return { contextStyle: contextStyle, paddingSize: paddingSize, borderSize: borderSize, boxSizing: boxSizing };
  560. }
  561. function calcTextareaHeight(targetElement) {
  562. var minRows = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
  563. var maxRows = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  564. if (!hiddenTextarea) {
  565. hiddenTextarea = document.createElement('textarea');
  566. document.body.appendChild(hiddenTextarea);
  567. }
  568. var _calculateNodeStyling = calculateNodeStyling(targetElement),
  569. paddingSize = _calculateNodeStyling.paddingSize,
  570. borderSize = _calculateNodeStyling.borderSize,
  571. boxSizing = _calculateNodeStyling.boxSizing,
  572. contextStyle = _calculateNodeStyling.contextStyle;
  573. hiddenTextarea.setAttribute('style', contextStyle + ';' + HIDDEN_STYLE);
  574. hiddenTextarea.value = targetElement.value || targetElement.placeholder || '';
  575. var height = hiddenTextarea.scrollHeight;
  576. var result = {};
  577. if (boxSizing === 'border-box') {
  578. height = height + borderSize;
  579. } else if (boxSizing === 'content-box') {
  580. height = height - paddingSize;
  581. }
  582. hiddenTextarea.value = '';
  583. var singleRowHeight = hiddenTextarea.scrollHeight - paddingSize;
  584. if (minRows !== null) {
  585. var minHeight = singleRowHeight * minRows;
  586. if (boxSizing === 'border-box') {
  587. minHeight = minHeight + paddingSize + borderSize;
  588. }
  589. height = Math.max(minHeight, height);
  590. result.minHeight = minHeight + 'px';
  591. }
  592. if (maxRows !== null) {
  593. var maxHeight = singleRowHeight * maxRows;
  594. if (boxSizing === 'border-box') {
  595. maxHeight = maxHeight + paddingSize + borderSize;
  596. }
  597. height = Math.min(maxHeight, height);
  598. }
  599. result.height = height + 'px';
  600. hiddenTextarea.parentNode && hiddenTextarea.parentNode.removeChild(hiddenTextarea);
  601. hiddenTextarea = null;
  602. return result;
  603. };
  604. /***/ }),
  605. /***/ 105:
  606. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  607. "use strict";
  608. var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:[
  609. _vm.type === 'textarea' ? 'el-textarea' : 'el-input',
  610. _vm.inputSize ? 'el-input--' + _vm.inputSize : '',
  611. {
  612. 'is-disabled': _vm.inputDisabled,
  613. 'el-input-group': _vm.$slots.prepend || _vm.$slots.append,
  614. 'el-input-group--append': _vm.$slots.append,
  615. 'el-input-group--prepend': _vm.$slots.prepend,
  616. 'el-input--prefix': _vm.$slots.prefix || _vm.prefixIcon,
  617. 'el-input--suffix': _vm.$slots.suffix || _vm.suffixIcon || _vm.clearable
  618. }
  619. ],on:{"mouseenter":function($event){_vm.hovering = true},"mouseleave":function($event){_vm.hovering = false}}},[(_vm.type !== 'textarea')?[(_vm.$slots.prepend)?_c('div',{staticClass:"el-input-group__prepend"},[_vm._t("prepend")],2):_vm._e(),(_vm.type !== 'textarea')?_c('input',_vm._b({ref:"input",staticClass:"el-input__inner",attrs:{"tabindex":_vm.tabindex,"type":_vm.type,"disabled":_vm.inputDisabled,"readonly":_vm.readonly,"autocomplete":_vm.autoComplete || _vm.autocomplete,"aria-label":_vm.label},domProps:{"value":_vm.currentValue},on:{"compositionstart":_vm.handleComposition,"compositionupdate":_vm.handleComposition,"compositionend":_vm.handleComposition,"input":_vm.handleInput,"focus":_vm.handleFocus,"blur":_vm.handleBlur,"change":_vm.handleChange}},'input',_vm.$attrs,false)):_vm._e(),(_vm.$slots.prefix || _vm.prefixIcon)?_c('span',{staticClass:"el-input__prefix"},[_vm._t("prefix"),(_vm.prefixIcon)?_c('i',{staticClass:"el-input__icon",class:_vm.prefixIcon}):_vm._e()],2):_vm._e(),(_vm.$slots.suffix || _vm.suffixIcon || _vm.showClear || _vm.validateState && _vm.needStatusIcon)?_c('span',{staticClass:"el-input__suffix"},[_c('span',{staticClass:"el-input__suffix-inner"},[(!_vm.showClear)?[_vm._t("suffix"),(_vm.suffixIcon)?_c('i',{staticClass:"el-input__icon",class:_vm.suffixIcon}):_vm._e()]:_c('i',{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{"click":_vm.clear}})],2),(_vm.validateState)?_c('i',{staticClass:"el-input__icon",class:['el-input__validateIcon', _vm.validateIcon]}):_vm._e()]):_vm._e(),(_vm.$slots.append)?_c('div',{staticClass:"el-input-group__append"},[_vm._t("append")],2):_vm._e()]:_c('textarea',_vm._b({ref:"textarea",staticClass:"el-textarea__inner",style:(_vm.textareaStyle),attrs:{"tabindex":_vm.tabindex,"disabled":_vm.inputDisabled,"readonly":_vm.readonly,"autocomplete":_vm.autoComplete || _vm.autocomplete,"aria-label":_vm.label},domProps:{"value":_vm.currentValue},on:{"compositionstart":_vm.handleComposition,"compositionupdate":_vm.handleComposition,"compositionend":_vm.handleComposition,"input":_vm.handleInput,"focus":_vm.handleFocus,"blur":_vm.handleBlur,"change":_vm.handleChange}},'textarea',_vm.$attrs,false))],2)}
  620. var staticRenderFns = []
  621. var esExports = { render: render, staticRenderFns: staticRenderFns }
  622. /* harmony default export */ __webpack_exports__["a"] = (esExports);
  623. /***/ }),
  624. /***/ 23:
  625. /***/ (function(module, exports) {
  626. module.exports = require("element-ui/lib/utils/shared");
  627. /***/ }),
  628. /***/ 8:
  629. /***/ (function(module, exports) {
  630. module.exports = require("element-ui/lib/mixins/migrating");
  631. /***/ }),
  632. /***/ 9:
  633. /***/ (function(module, exports) {
  634. module.exports = require("element-ui/lib/utils/merge");
  635. /***/ })
  636. /******/ });