input.js 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720
  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 = 112);
  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. /***/ 112:
  168. /***/ (function(module, exports, __webpack_require__) {
  169. module.exports = __webpack_require__(113);
  170. /***/ }),
  171. /***/ 113:
  172. /***/ (function(module, exports, __webpack_require__) {
  173. "use strict";
  174. exports.__esModule = true;
  175. var _input = __webpack_require__(114);
  176. var _input2 = _interopRequireDefault(_input);
  177. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  178. /* istanbul ignore next */
  179. _input2.default.install = function (Vue) {
  180. Vue.component(_input2.default.name, _input2.default);
  181. };
  182. exports.default = _input2.default;
  183. /***/ }),
  184. /***/ 114:
  185. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  186. "use strict";
  187. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  188. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_input_vue__ = __webpack_require__(115);
  189. /* 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__);
  190. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_eddb4a56_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_input_vue__ = __webpack_require__(117);
  191. var normalizeComponent = __webpack_require__(0)
  192. /* script */
  193. /* template */
  194. /* template functional */
  195. var __vue_template_functional__ = false
  196. /* styles */
  197. var __vue_styles__ = null
  198. /* scopeId */
  199. var __vue_scopeId__ = null
  200. /* moduleIdentifier (server only) */
  201. var __vue_module_identifier__ = null
  202. var Component = normalizeComponent(
  203. __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_input_vue___default.a,
  204. __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_eddb4a56_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_input_vue__["a" /* default */],
  205. __vue_template_functional__,
  206. __vue_styles__,
  207. __vue_scopeId__,
  208. __vue_module_identifier__
  209. )
  210. /* harmony default export */ __webpack_exports__["default"] = (Component.exports);
  211. /***/ }),
  212. /***/ 115:
  213. /***/ (function(module, exports, __webpack_require__) {
  214. "use strict";
  215. exports.__esModule = true;
  216. var _emitter = __webpack_require__(1);
  217. var _emitter2 = _interopRequireDefault(_emitter);
  218. var _migrating = __webpack_require__(8);
  219. var _migrating2 = _interopRequireDefault(_migrating);
  220. var _calcTextareaHeight = __webpack_require__(116);
  221. var _calcTextareaHeight2 = _interopRequireDefault(_calcTextareaHeight);
  222. var _merge = __webpack_require__(9);
  223. var _merge2 = _interopRequireDefault(_merge);
  224. var _shared = __webpack_require__(23);
  225. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  226. exports.default = {
  227. name: 'ElInput',
  228. componentName: 'ElInput',
  229. mixins: [_emitter2.default, _migrating2.default],
  230. inheritAttrs: false,
  231. inject: {
  232. elForm: {
  233. default: ''
  234. },
  235. elFormItem: {
  236. default: ''
  237. }
  238. },
  239. data: function data() {
  240. return {
  241. currentValue: this.value === undefined || this.value === null ? '' : this.value,
  242. textareaCalcStyle: {},
  243. prefixOffset: null,
  244. suffixOffset: null,
  245. hovering: false,
  246. focused: false,
  247. isOnComposition: false
  248. };
  249. },
  250. props: {
  251. value: [String, Number],
  252. size: String,
  253. resize: String,
  254. form: String,
  255. disabled: Boolean,
  256. type: {
  257. type: String,
  258. default: 'text'
  259. },
  260. autosize: {
  261. type: [Boolean, Object],
  262. default: false
  263. },
  264. autoComplete: {
  265. type: String,
  266. default: 'off'
  267. },
  268. validateEvent: {
  269. type: Boolean,
  270. default: true
  271. },
  272. suffixIcon: String,
  273. prefixIcon: String,
  274. label: String,
  275. clearable: {
  276. type: Boolean,
  277. default: false
  278. },
  279. tabindex: String
  280. },
  281. computed: {
  282. _elFormItemSize: function _elFormItemSize() {
  283. return (this.elFormItem || {}).elFormItemSize;
  284. },
  285. validateState: function validateState() {
  286. return this.elFormItem ? this.elFormItem.validateState : '';
  287. },
  288. needStatusIcon: function needStatusIcon() {
  289. return this.elForm ? this.elForm.statusIcon : false;
  290. },
  291. validateIcon: function validateIcon() {
  292. return {
  293. validating: 'el-icon-loading',
  294. success: 'el-icon-circle-check',
  295. error: 'el-icon-circle-close'
  296. }[this.validateState];
  297. },
  298. textareaStyle: function textareaStyle() {
  299. return (0, _merge2.default)({}, this.textareaCalcStyle, { resize: this.resize });
  300. },
  301. inputSize: function inputSize() {
  302. return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
  303. },
  304. inputDisabled: function inputDisabled() {
  305. return this.disabled || (this.elForm || {}).disabled;
  306. },
  307. isGroup: function isGroup() {
  308. return this.$slots.prepend || this.$slots.append;
  309. },
  310. showClear: function showClear() {
  311. return this.clearable && !this.disabled && !this.readonly && this.currentValue !== '' && (this.focused || this.hovering);
  312. }
  313. },
  314. watch: {
  315. 'value': function value(val, oldValue) {
  316. this.setCurrentValue(val);
  317. }
  318. },
  319. methods: {
  320. focus: function focus() {
  321. (this.$refs.input || this.$refs.textarea).focus();
  322. },
  323. blur: function blur() {
  324. (this.$refs.input || this.$refs.textarea).blur();
  325. },
  326. getMigratingConfig: function getMigratingConfig() {
  327. return {
  328. props: {
  329. 'icon': 'icon is removed, use suffix-icon / prefix-icon instead.',
  330. 'on-icon-click': 'on-icon-click is removed.'
  331. },
  332. events: {
  333. 'click': 'click is removed.'
  334. }
  335. };
  336. },
  337. handleBlur: function handleBlur(event) {
  338. this.focused = false;
  339. this.$emit('blur', event);
  340. if (this.validateEvent) {
  341. this.dispatch('ElFormItem', 'el.form.blur', [this.currentValue]);
  342. }
  343. },
  344. select: function select() {
  345. (this.$refs.input || this.$refs.textarea).select();
  346. },
  347. resizeTextarea: function resizeTextarea() {
  348. if (this.$isServer) return;
  349. var autosize = this.autosize,
  350. type = this.type;
  351. if (type !== 'textarea') return;
  352. if (!autosize) {
  353. this.textareaCalcStyle = {
  354. minHeight: (0, _calcTextareaHeight2.default)(this.$refs.textarea).minHeight
  355. };
  356. return;
  357. }
  358. var minRows = autosize.minRows;
  359. var maxRows = autosize.maxRows;
  360. this.textareaCalcStyle = (0, _calcTextareaHeight2.default)(this.$refs.textarea, minRows, maxRows);
  361. },
  362. handleFocus: function handleFocus(event) {
  363. this.focused = true;
  364. this.$emit('focus', event);
  365. },
  366. handleComposition: function handleComposition(event) {
  367. if (event.type === 'compositionend') {
  368. this.isOnComposition = false;
  369. this.handleInput(event);
  370. } else {
  371. var text = event.target.value;
  372. var lastCharacter = text[text.length - 1] || '';
  373. this.isOnComposition = !(0, _shared.isKorean)(lastCharacter);
  374. }
  375. },
  376. handleInput: function handleInput(event) {
  377. if (this.isOnComposition) return;
  378. var value = event.target.value;
  379. this.$emit('input', value);
  380. this.setCurrentValue(value);
  381. },
  382. handleChange: function handleChange(event) {
  383. this.$emit('change', event.target.value);
  384. },
  385. setCurrentValue: function setCurrentValue(value) {
  386. var _this = this;
  387. if (value === this.currentValue) return;
  388. this.$nextTick(function (_) {
  389. _this.resizeTextarea();
  390. });
  391. this.currentValue = value;
  392. if (this.validateEvent) {
  393. this.dispatch('ElFormItem', 'el.form.change', [value]);
  394. }
  395. },
  396. calcIconOffset: function calcIconOffset(place) {
  397. var pendantMap = {
  398. 'suf': 'append',
  399. 'pre': 'prepend'
  400. };
  401. var pendant = pendantMap[place];
  402. if (this.$slots[pendant]) {
  403. return { transform: 'translateX(' + (place === 'suf' ? '-' : '') + this.$el.querySelector('.el-input-group__' + pendant).offsetWidth + 'px)' };
  404. }
  405. },
  406. clear: function clear() {
  407. this.$emit('input', '');
  408. this.$emit('change', '');
  409. this.$emit('clear');
  410. this.setCurrentValue('');
  411. this.focus();
  412. }
  413. },
  414. created: function created() {
  415. this.$on('inputSelect', this.select);
  416. },
  417. mounted: function mounted() {
  418. this.resizeTextarea();
  419. if (this.isGroup) {
  420. this.prefixOffset = this.calcIconOffset('pre');
  421. this.suffixOffset = this.calcIconOffset('suf');
  422. }
  423. }
  424. }; //
  425. //
  426. //
  427. //
  428. //
  429. //
  430. //
  431. //
  432. //
  433. //
  434. //
  435. //
  436. //
  437. //
  438. //
  439. //
  440. //
  441. //
  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. /***/ 116:
  523. /***/ (function(module, exports, __webpack_require__) {
  524. "use strict";
  525. exports.__esModule = true;
  526. exports.default = calcTextareaHeight;
  527. var hiddenTextarea = void 0;
  528. 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';
  529. 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'];
  530. function calculateNodeStyling(targetElement) {
  531. var style = window.getComputedStyle(targetElement);
  532. var boxSizing = style.getPropertyValue('box-sizing');
  533. var paddingSize = parseFloat(style.getPropertyValue('padding-bottom')) + parseFloat(style.getPropertyValue('padding-top'));
  534. var borderSize = parseFloat(style.getPropertyValue('border-bottom-width')) + parseFloat(style.getPropertyValue('border-top-width'));
  535. var contextStyle = CONTEXT_STYLE.map(function (name) {
  536. return name + ':' + style.getPropertyValue(name);
  537. }).join(';');
  538. return { contextStyle: contextStyle, paddingSize: paddingSize, borderSize: borderSize, boxSizing: boxSizing };
  539. }
  540. function calcTextareaHeight(targetElement) {
  541. var minRows = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
  542. var maxRows = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  543. if (!hiddenTextarea) {
  544. hiddenTextarea = document.createElement('textarea');
  545. document.body.appendChild(hiddenTextarea);
  546. }
  547. var _calculateNodeStyling = calculateNodeStyling(targetElement),
  548. paddingSize = _calculateNodeStyling.paddingSize,
  549. borderSize = _calculateNodeStyling.borderSize,
  550. boxSizing = _calculateNodeStyling.boxSizing,
  551. contextStyle = _calculateNodeStyling.contextStyle;
  552. hiddenTextarea.setAttribute('style', contextStyle + ';' + HIDDEN_STYLE);
  553. hiddenTextarea.value = targetElement.value || targetElement.placeholder || '';
  554. var height = hiddenTextarea.scrollHeight;
  555. var result = {};
  556. if (boxSizing === 'border-box') {
  557. height = height + borderSize;
  558. } else if (boxSizing === 'content-box') {
  559. height = height - paddingSize;
  560. }
  561. hiddenTextarea.value = '';
  562. var singleRowHeight = hiddenTextarea.scrollHeight - paddingSize;
  563. if (minRows !== null) {
  564. var minHeight = singleRowHeight * minRows;
  565. if (boxSizing === 'border-box') {
  566. minHeight = minHeight + paddingSize + borderSize;
  567. }
  568. height = Math.max(minHeight, height);
  569. result.minHeight = minHeight + 'px';
  570. }
  571. if (maxRows !== null) {
  572. var maxHeight = singleRowHeight * maxRows;
  573. if (boxSizing === 'border-box') {
  574. maxHeight = maxHeight + paddingSize + borderSize;
  575. }
  576. height = Math.min(maxHeight, height);
  577. }
  578. result.height = height + 'px';
  579. hiddenTextarea.parentNode && hiddenTextarea.parentNode.removeChild(hiddenTextarea);
  580. hiddenTextarea = null;
  581. return result;
  582. };
  583. /***/ }),
  584. /***/ 117:
  585. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  586. "use strict";
  587. var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:[
  588. _vm.type === 'textarea' ? 'el-textarea' : 'el-input',
  589. _vm.inputSize ? 'el-input--' + _vm.inputSize : '',
  590. {
  591. 'is-disabled': _vm.inputDisabled,
  592. 'el-input-group': _vm.$slots.prepend || _vm.$slots.append,
  593. 'el-input-group--append': _vm.$slots.append,
  594. 'el-input-group--prepend': _vm.$slots.prepend,
  595. 'el-input--prefix': _vm.$slots.prefix || _vm.prefixIcon,
  596. 'el-input--suffix': _vm.$slots.suffix || _vm.suffixIcon || _vm.clearable
  597. }
  598. ],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,"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",style:(_vm.prefixOffset)},[_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",style:(_vm.suffixOffset)},[_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,"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)}
  599. var staticRenderFns = []
  600. var esExports = { render: render, staticRenderFns: staticRenderFns }
  601. /* harmony default export */ __webpack_exports__["a"] = (esExports);
  602. /***/ }),
  603. /***/ 23:
  604. /***/ (function(module, exports) {
  605. module.exports = require("element-ui/lib/utils/shared");
  606. /***/ }),
  607. /***/ 8:
  608. /***/ (function(module, exports) {
  609. module.exports = require("element-ui/lib/mixins/migrating");
  610. /***/ }),
  611. /***/ 9:
  612. /***/ (function(module, exports) {
  613. module.exports = require("element-ui/lib/utils/merge");
  614. /***/ })
  615. /******/ });