1 |
- {"version":3,"sources":["webpack:///./node_modules/element-ui/src/utils/dom.js","webpack:///./node_modules/element-ui/src/utils/types.js","webpack:///./node_modules/element-ui/src/utils/util.js","webpack:///./node_modules/element-ui/src/utils/merge.js","webpack:///./node_modules/element-ui/src/mixins/emitter.js","webpack:///./node_modules/element-ui/src/mixins/migrating.js","webpack:///./node_modules/element-ui/packages/input/src/calcTextareaHeight.js","webpack:///./node_modules/element-ui/packages/input/src/input.vue","webpack:///./node_modules/element-ui/src/utils/shared.js","webpack:///./node_modules/element-ui/packages/input/src/input.vue?4c03","webpack:///./node_modules/element-ui/packages/input/src/input.vue?f1f3","webpack:///./node_modules/element-ui/packages/input/index.js","webpack:///./node_modules/element-ui/src/mixins/focus.js","webpack:///./node_modules/element-ui/src/directives/repeat-click.js","webpack:///./node_modules/element-ui/packages/input-number/src/input-number.vue?622a","webpack:///./node_modules/element-ui/packages/input-number/src/input-number.vue","webpack:///./node_modules/element-ui/packages/input-number/src/input-number.vue?27e4","webpack:///./node_modules/element-ui/packages/input-number/index.js"],"names":["isServer","prototype","$isServer","SPECIAL_CHARS_REGEXP","MOZ_HACK_REGEXP","ieVersion","Number","document","documentMode","trim","string","replace","camelCase","name","_","separator","letter","offset","toUpperCase","on","addEventListener","element","event","handler","attachEvent","off","removeEventListener","detachEvent","once","el","fn","listener","apply","this","arguments","hasClass","cls","indexOf","Error","classList","contains","className","addClass","curClass","classes","split","i","j","length","clsName","add","setAttribute","removeClass","remove","getStyle","styleName","filters","item","opacity","e","style","currentStyle","computed","defaultView","getComputedStyle","isFunction","functionToCheck","toString","call","Int8Array","childNodes","Object","hasOwnProperty","isFirefox","window","navigator","userAgent","match","kebabCase","str","hyphenateRE","toLowerCase","rafThrottle","locked","args","requestAnimationFrame","isMac","test","source","prop","value","undefined","target","broadcast","componentName","eventName","params","$children","forEach","child","$options","$emit","concat","methods","dispatch","parent","$parent","$root","mounted","getMigratingConfig","props","events","hiddenTextarea","CONTEXT_STYLE","calcTextareaHeight","targetElement","minRows","maxRows","createElement","body","appendChild","paddingSize","borderSize","boxSizing","contextStyle","getPropertyValue","parseFloat","map","join","calculateNodeStyling","placeholder","height","scrollHeight","result","singleRowHeight","minHeight","Math","max","maxHeight","min","parentNode","removeChild","mixins","emitter","Migrating","inheritAttrs","inject","elForm","default","elFormItem","data","textareaCalcStyle","hovering","focused","isComposing","passwordVisible","String","size","resize","form","disabled","Boolean","readonly","type","autosize","autocomplete","autoComplete","validator","val","validateEvent","suffixIcon","prefixIcon","label","clearable","showPassword","showWordLimit","tabindex","_elFormItemSize","elFormItemSize","validateState","needStatusIcon","statusIcon","validateIcon","validating","success","error","textareaStyle","merge","inputSize","$ELEMENT","inputDisabled","nativeInputValue","showClear","showPwdVisible","isWordLimitVisible","$attrs","maxlength","upperLimit","textLength","inputExceed","watch","$nextTick","resizeTextarea","setNativeInputValue","_this","updateIconOffset","focus","getInput","blur","handleBlur","select","$refs","textarea","input","handleFocus","handleCompositionStart","handleCompositionUpdate","text","lastCharacter","isKorean","handleCompositionEnd","handleInput","handleChange","calcIconOffset","place","elList","slice","$el","querySelectorAll","pendant","suffix","prefix","$slots","transform","querySelector","offsetWidth","removeAttribute","clear","handlePasswordVisible","_this2","getSuffixVisible","created","$on","updated","_vm","_c","_self","class","prepend","append","$event","staticClass","_t","_e","_v","_b","ref","attrs","preventDefault","_s","install","Vue","component","bind","binding","vnode","startTime","interval","maxIntervals","context","expression","Date","now","clearInterval","button","setInterval","directives","repeatClick","RepeatClick","components","ElInput","step","stepStrictly","Infinity","controls","controlsPosition","precision","parseInt","currentValue","userInput","immediate","newVal","isNaN","stepPrecision","getPrecision","precisionFactor","pow","round","toPrecision","minDisabled","_decrease","maxDisabled","_increase","numPrecision","console","warn","controlsAtRight","inputNumberSize","inputNumberDisabled","displayValue","toFixed","num","valueString","dotPosition","increase","setCurrentValue","decrease","oldVal","handleInputChange","innerInput","rawName","_k","keyCode","key","nativeOn"],"mappings":"0FAAA,8OAIA,MAAMA,EAJN,KAI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,CAACmN,EAAG,IAAI,CAACE,MAAK,WAAAjJ,OAAY8I,EAAI8D,gBAAkB,WAAa,YAAa9D,EAAIS,KAAKT,EAAIU,GAAG,KAAKT,EAAG,WAAW,CAACW,IAAI,QAAQC,MAAM,CAAC,MAAQb,EAAIiE,aAAa,YAAcjE,EAAIlH,YAAY,SAAWkH,EAAIgE,oBAAoB,KAAOhE,EAAI+D,gBAAgB,IAAM/D,EAAI3G,IAAI,IAAM2G,EAAIzG,IAAI,KAAOyG,EAAIvO,KAAK,MAAQuO,EAAIxE,OAAOzJ,GAAG,CAAC,KAAOiO,EAAInC,WAAW,MAAQmC,EAAI9B,YAAY,MAAQ8B,EAAIvB,YAAY,OAASuB,EAAI0E,mBAAmBM,SAAS,CAAC,QAAU,CAAC,SAAS1E,GAAQ,OAAIA,EAAOvF,KAAK9H,QAAQ,QAAQ+M,EAAI6E,GAAGvE,EAAOwE,QAAQ,KAAK,GAAGxE,EAAOyE,IAAI,CAAC,KAAK,YAAmB,MAAKzE,EAAOQ,iBAAwBd,EAAIsE,SAAS1R,MAAM,KAAME,WAAU,EAAE,SAASwN,GAAQ,OAAIA,EAAOvF,KAAK9H,QAAQ,QAAQ+M,EAAI6E,GAAGvE,EAAOwE,QAAQ,OAAO,GAAGxE,EAAOyE,IAAI,CAAC,OAAO,cAAqB,MAAKzE,EAAOQ,iBAAwBd,EAAIwE,SAAS5R,MAAM,KAAME,WAAU,OAAO,EACvwD,GACsB,ICGpB,EACA,KACA,KACA,MAIa,I,QCff,EAAckO,QAAU,SAASC,GAC/BA,EAAIC,UAAU,EAAczP,KAAM,EACpC,EAEe,K","file":"89c4fe6.js","sourcesContent":["/* istanbul ignore next */\n\nimport Vue from 'vue';\n\nconst isServer = Vue.prototype.$isServer;\nconst SPECIAL_CHARS_REGEXP = /([\\:\\-\\_]+(.))/g;\nconst MOZ_HACK_REGEXP = /^moz([A-Z])/;\nconst ieVersion = isServer ? 0 : Number(document.documentMode);\n\n/* istanbul ignore next */\nconst trim = function(string) {\n return (string || '').replace(/^[\\s\\uFEFF]+|[\\s\\uFEFF]+$/g, '');\n};\n/* istanbul ignore next */\nconst camelCase = function(name) {\n return name.replace(SPECIAL_CHARS_REGEXP, function(_, separator, letter, offset) {\n return offset ? letter.toUpperCase() : letter;\n }).replace(MOZ_HACK_REGEXP, 'Moz$1');\n};\n\n/* istanbul ignore next */\nexport const on = (function() {\n if (!isServer && document.addEventListener) {\n return function(element, event, handler) {\n if (element && event && handler) {\n element.addEventListener(event, handler, false);\n }\n };\n } else {\n return function(element, event, handler) {\n if (element && event && handler) {\n element.attachEvent('on' + event, handler);\n }\n };\n }\n})();\n\n/* istanbul ignore next */\nexport const off = (function() {\n if (!isServer && document.removeEventListener) {\n return function(element, event, handler) {\n if (element && event) {\n element.removeEventListener(event, handler, false);\n }\n };\n } else {\n return function(element, event, handler) {\n if (element && event) {\n element.detachEvent('on' + event, handler);\n }\n };\n }\n})();\n\n/* istanbul ignore next */\nexport const once = function(el, event, fn) {\n var listener = function() {\n if (fn) {\n fn.apply(this, arguments);\n }\n off(el, event, listener);\n };\n on(el, event, listener);\n};\n\n/* istanbul ignore next */\nexport function hasClass(el, cls) {\n if (!el || !cls) return false;\n if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.');\n if (el.classList) {\n return el.classList.contains(cls);\n } else {\n return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1;\n }\n};\n\n/* istanbul ignore next */\nexport function addClass(el, cls) {\n if (!el) return;\n var curClass = el.className;\n var classes = (cls || '').split(' ');\n\n for (var i = 0, j = classes.length; i < j; i++) {\n var clsName = classes[i];\n if (!clsName) continue;\n\n if (el.classList) {\n el.classList.add(clsName);\n } else if (!hasClass(el, clsName)) {\n curClass += ' ' + clsName;\n }\n }\n if (!el.classList) {\n el.setAttribute('class', curClass);\n }\n};\n\n/* istanbul ignore next */\nexport function removeClass(el, cls) {\n if (!el || !cls) return;\n var classes = cls.split(' ');\n var curClass = ' ' + el.className + ' ';\n\n for (var i = 0, j = classes.length; i < j; i++) {\n var clsName = classes[i];\n if (!clsName) continue;\n\n if (el.classList) {\n el.classList.remove(clsName);\n } else if (hasClass(el, clsName)) {\n curClass = curClass.replace(' ' + clsName + ' ', ' ');\n }\n }\n if (!el.classList) {\n el.setAttribute('class', trim(curClass));\n }\n};\n\n/* istanbul ignore next */\nexport const getStyle = ieVersion < 9 ? function(element, styleName) {\n if (isServer) return;\n if (!element || !styleName) return null;\n styleName = camelCase(styleName);\n if (styleName === 'float') {\n styleName = 'styleFloat';\n }\n try {\n switch (styleName) {\n case 'opacity':\n try {\n return element.filters.item('alpha').opacity / 100;\n } catch (e) {\n return 1.0;\n }\n default:\n return (element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null);\n }\n } catch (e) {\n return element.style[styleName];\n }\n} : function(element, styleName) {\n if (isServer) return;\n if (!element || !styleName) return null;\n styleName = camelCase(styleName);\n if (styleName === 'float') {\n styleName = 'cssFloat';\n }\n try {\n var computed = document.defaultView.getComputedStyle(element, '');\n return element.style[styleName] || computed ? computed[styleName] : null;\n } catch (e) {\n return element.style[styleName];\n }\n};\n\n/* istanbul ignore next */\nexport function setStyle(element, styleName, value) {\n if (!element || !styleName) return;\n\n if (typeof styleName === 'object') {\n for (var prop in styleName) {\n if (styleName.hasOwnProperty(prop)) {\n setStyle(element, prop, styleName[prop]);\n }\n }\n } else {\n styleName = camelCase(styleName);\n if (styleName === 'opacity' && ieVersion < 9) {\n element.style.filter = isNaN(value) ? '' : 'alpha(opacity=' + value * 100 + ')';\n } else {\n element.style[styleName] = value;\n }\n }\n};\n\nexport const isScroll = (el, vertical) => {\n if (isServer) return;\n\n const determinedDirection = vertical !== null && vertical !== undefined;\n const overflow = determinedDirection\n ? vertical\n ? getStyle(el, 'overflow-y')\n : getStyle(el, 'overflow-x')\n : getStyle(el, 'overflow');\n\n return overflow.match(/(scroll|auto|overlay)/);\n};\n\nexport const getScrollContainer = (el, vertical) => {\n if (isServer) return;\n\n let parent = el;\n while (parent) {\n if ([window, document, document.documentElement].includes(parent)) {\n return window;\n }\n if (isScroll(parent, vertical)) {\n return parent;\n }\n parent = parent.parentNode;\n }\n\n return parent;\n};\n\nexport const isInContainer = (el, container) => {\n if (isServer || !el || !container) return false;\n\n const elRect = el.getBoundingClientRect();\n let containerRect;\n\n if ([window, document, document.documentElement, null, undefined].includes(container)) {\n containerRect = {\n top: 0,\n right: window.innerWidth,\n bottom: window.innerHeight,\n left: 0\n };\n } else {\n containerRect = container.getBoundingClientRect();\n }\n\n return elRect.top < containerRect.bottom &&\n elRect.bottom > containerRect.top &&\n elRect.right > containerRect.left &&\n elRect.left < containerRect.right;\n};\n","import Vue from 'vue';\n\nexport function isString(obj) {\n return Object.prototype.toString.call(obj) === '[object String]';\n}\n\nexport function isObject(obj) {\n return Object.prototype.toString.call(obj) === '[object Object]';\n}\n\nexport function isHtmlElement(node) {\n return node && node.nodeType === Node.ELEMENT_NODE;\n}\n\n/**\n * - Inspired:\n * https://github.com/jashkenas/underscore/blob/master/modules/isFunction.js\n */\nlet isFunction = (functionToCheck) => {\n var getType = {};\n return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';\n};\n\nif (typeof /./ !== 'function' && typeof Int8Array !== 'object' && (Vue.prototype.$isServer || typeof document.childNodes !== 'function')) {\n isFunction = function(obj) {\n return typeof obj === 'function' || false;\n };\n}\n\nexport {\n isFunction\n};\n\nexport const isUndefined = (val)=> {\n return val === void 0;\n};\n\nexport const isDefined = (val) => {\n return val !== undefined && val !== null;\n};\n","import Vue from 'vue';\nimport { isString, isObject } from 'element-ui/src/utils/types';\n\nconst hasOwnProperty = Object.prototype.hasOwnProperty;\n\nexport function noop() {};\n\nexport function hasOwn(obj, key) {\n return hasOwnProperty.call(obj, key);\n};\n\nfunction extend(to, _from) {\n for (let key in _from) {\n to[key] = _from[key];\n }\n return to;\n};\n\nexport function toObject(arr) {\n var res = {};\n for (let i = 0; i < arr.length; i++) {\n if (arr[i]) {\n extend(res, arr[i]);\n }\n }\n return res;\n};\n\nexport const getValueByPath = function(object, prop) {\n prop = prop || '';\n const paths = prop.split('.');\n let current = object;\n let result = null;\n for (let i = 0, j = paths.length; i < j; i++) {\n const path = paths[i];\n if (!current) break;\n\n if (i === j - 1) {\n result = current[path];\n break;\n }\n current = current[path];\n }\n return result;\n};\n\nexport function getPropByPath(obj, path, strict) {\n let tempObj = obj;\n path = path.replace(/\\[(\\w+)\\]/g, '.$1');\n path = path.replace(/^\\./, '');\n\n let keyArr = path.split('.');\n let i = 0;\n for (let len = keyArr.length; i < len - 1; ++i) {\n if (!tempObj && !strict) break;\n let key = keyArr[i];\n if (key in tempObj) {\n tempObj = tempObj[key];\n } else {\n if (strict) {\n throw new Error('please transfer a valid prop path to form item!');\n }\n break;\n }\n }\n return {\n o: tempObj,\n k: keyArr[i],\n v: tempObj ? tempObj[keyArr[i]] : null\n };\n};\n\nexport const generateId = function() {\n return Math.floor(Math.random() * 10000);\n};\n\nexport const valueEquals = (a, b) => {\n // see: https://stackoverflow.com/questions/3115982/how-to-check-if-two-arrays-are-equal-with-javascript\n if (a === b) return true;\n if (!(a instanceof Array)) return false;\n if (!(b instanceof Array)) return false;\n if (a.length !== b.length) return false;\n for (let i = 0; i !== a.length; ++i) {\n if (a[i] !== b[i]) return false;\n }\n return true;\n};\n\nexport const escapeRegexpString = (value = '') => String(value).replace(/[|\\\\{}()[\\]^$+*?.]/g, '\\\\$&');\n\n// TODO: use native Array.find, Array.findIndex when IE support is dropped\nexport const arrayFindIndex = function(arr, pred) {\n for (let i = 0; i !== arr.length; ++i) {\n if (pred(arr[i])) {\n return i;\n }\n }\n return -1;\n};\n\nexport const arrayFind = function(arr, pred) {\n const idx = arrayFindIndex(arr, pred);\n return idx !== -1 ? arr[idx] : undefined;\n};\n\n// coerce truthy value to array\nexport const coerceTruthyValueToArray = function(val) {\n if (Array.isArray(val)) {\n return val;\n } else if (val) {\n return [val];\n } else {\n return [];\n }\n};\n\nexport const isIE = function() {\n return !Vue.prototype.$isServer && !isNaN(Number(document.documentMode));\n};\n\nexport const isEdge = function() {\n return !Vue.prototype.$isServer && navigator.userAgent.indexOf('Edge') > -1;\n};\n\nexport const isFirefox = function() {\n return !Vue.prototype.$isServer && !!window.navigator.userAgent.match(/firefox/i);\n};\n\nexport const autoprefixer = function(style) {\n if (typeof style !== 'object') return style;\n const rules = ['transform', 'transition', 'animation'];\n const prefixes = ['ms-', 'webkit-'];\n rules.forEach(rule => {\n const value = style[rule];\n if (rule && value) {\n prefixes.forEach(prefix => {\n style[prefix + rule] = value;\n });\n }\n });\n return style;\n};\n\nexport const kebabCase = function(str) {\n const hyphenateRE = /([^-])([A-Z])/g;\n return str\n .replace(hyphenateRE, '$1-$2')\n .replace(hyphenateRE, '$1-$2')\n .toLowerCase();\n};\n\nexport const capitalize = function(str) {\n if (!isString(str)) return str;\n return str.charAt(0).toUpperCase() + str.slice(1);\n};\n\nexport const looseEqual = function(a, b) {\n const isObjectA = isObject(a);\n const isObjectB = isObject(b);\n if (isObjectA && isObjectB) {\n return JSON.stringify(a) === JSON.stringify(b);\n } else if (!isObjectA && !isObjectB) {\n return String(a) === String(b);\n } else {\n return false;\n }\n};\n\nexport const arrayEquals = function(arrayA, arrayB) {\n arrayA = arrayA || [];\n arrayB = arrayB || [];\n\n if (arrayA.length !== arrayB.length) {\n return false;\n }\n\n for (let i = 0; i < arrayA.length; i++) {\n if (!looseEqual(arrayA[i], arrayB[i])) {\n return false;\n }\n }\n\n return true;\n};\n\nexport const isEqual = function(value1, value2) {\n if (Array.isArray(value1) && Array.isArray(value2)) {\n return arrayEquals(value1, value2);\n }\n return looseEqual(value1, value2);\n};\n\nexport const isEmpty = function(val) {\n // null or undefined\n if (val == null) return true;\n\n if (typeof val === 'boolean') return false;\n\n if (typeof val === 'number') return !val;\n\n if (val instanceof Error) return val.message === '';\n\n switch (Object.prototype.toString.call(val)) {\n // String or Array\n case '[object String]':\n case '[object Array]':\n return !val.length;\n\n // Map or Set or File\n case '[object File]':\n case '[object Map]':\n case '[object Set]': {\n return !val.size;\n }\n // Plain Object\n case '[object Object]': {\n return !Object.keys(val).length;\n }\n }\n\n return false;\n};\n\nexport function rafThrottle(fn) {\n let locked = false;\n return function(...args) {\n if (locked) return;\n locked = true;\n window.requestAnimationFrame(_ => {\n fn.apply(this, args);\n locked = false;\n });\n };\n}\n\nexport function objToArray(obj) {\n if (Array.isArray(obj)) {\n return obj;\n }\n return isEmpty(obj) ? [] : [obj];\n}\n\nexport const isMac = function() {\n return !Vue.prototype.$isServer && /macintosh|mac os x/i.test(navigator.userAgent);\n};\n","export default function(target) {\n for (let i = 1, j = arguments.length; i < j; i++) {\n let source = arguments[i] || {};\n for (let prop in source) {\n if (source.hasOwnProperty(prop)) {\n let value = source[prop];\n if (value !== undefined) {\n target[prop] = value;\n }\n }\n }\n }\n\n return target;\n};\n","function broadcast(componentName, eventName, params) {\n this.$children.forEach(child => {\n var name = child.$options.componentName;\n\n if (name === componentName) {\n child.$emit.apply(child, [eventName].concat(params));\n } else {\n broadcast.apply(child, [componentName, eventName].concat([params]));\n }\n });\n}\nexport default {\n methods: {\n dispatch(componentName, eventName, params) {\n var parent = this.$parent || this.$root;\n var name = parent.$options.componentName;\n\n while (parent && (!name || name !== componentName)) {\n parent = parent.$parent;\n\n if (parent) {\n name = parent.$options.componentName;\n }\n }\n if (parent) {\n parent.$emit.apply(parent, [eventName].concat(params));\n }\n },\n broadcast(componentName, eventName, params) {\n broadcast.call(this, componentName, eventName, params);\n }\n }\n};\n","import { kebabCase } from 'element-ui/src/utils/util';\n/**\n * Show migrating guide in browser console.\n *\n * Usage:\n * import Migrating from 'element-ui/src/mixins/migrating';\n *\n * mixins: [Migrating]\n *\n * add getMigratingConfig method for your component.\n * getMigratingConfig() {\n * return {\n * props: {\n * 'allow-no-selection': 'allow-no-selection is removed.',\n * 'selection-mode': 'selection-mode is removed.'\n * },\n * events: {\n * selectionchange: 'selectionchange is renamed to selection-change.'\n * }\n * };\n * },\n */\nexport default {\n mounted() {\n if (process.env.NODE_ENV === 'production') return;\n if (!this.$vnode) return;\n const { props = {}, events = {} } = this.getMigratingConfig();\n const { data, componentOptions } = this.$vnode;\n const definedProps = data.attrs || {};\n const definedEvents = componentOptions.listeners || {};\n\n for (let propName in definedProps) {\n propName = kebabCase(propName); // compatible with camel case\n if (props[propName]) {\n console.warn(`[Element Migrating][${this.$options.name}][Attribute]: ${props[propName]}`);\n }\n }\n\n for (let eventName in definedEvents) {\n eventName = kebabCase(eventName); // compatible with camel case\n if (events[eventName]) {\n console.warn(`[Element Migrating][${this.$options.name}][Event]: ${events[eventName]}`);\n }\n }\n },\n methods: {\n getMigratingConfig() {\n return {\n props: {},\n events: {}\n };\n }\n }\n};\n","let hiddenTextarea;\n\nconst 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`;\n\nconst CONTEXT_STYLE = [\n 'letter-spacing',\n 'line-height',\n 'padding-top',\n 'padding-bottom',\n 'font-family',\n 'font-weight',\n 'font-size',\n 'text-rendering',\n 'text-transform',\n 'width',\n 'text-indent',\n 'padding-left',\n 'padding-right',\n 'border-width',\n 'box-sizing'\n];\n\nfunction calculateNodeStyling(targetElement) {\n const style = window.getComputedStyle(targetElement);\n\n const boxSizing = style.getPropertyValue('box-sizing');\n\n const paddingSize = (\n parseFloat(style.getPropertyValue('padding-bottom')) +\n parseFloat(style.getPropertyValue('padding-top'))\n );\n\n const borderSize = (\n parseFloat(style.getPropertyValue('border-bottom-width')) +\n parseFloat(style.getPropertyValue('border-top-width'))\n );\n\n const contextStyle = CONTEXT_STYLE\n .map(name => `${name}:${style.getPropertyValue(name)}`)\n .join(';');\n\n return { contextStyle, paddingSize, borderSize, boxSizing };\n}\n\nexport default function calcTextareaHeight(\n targetElement,\n minRows = 1,\n maxRows = null\n) {\n if (!hiddenTextarea) {\n hiddenTextarea = document.createElement('textarea');\n document.body.appendChild(hiddenTextarea);\n }\n\n let {\n paddingSize,\n borderSize,\n boxSizing,\n contextStyle\n } = calculateNodeStyling(targetElement);\n\n hiddenTextarea.setAttribute('style', `${contextStyle};${HIDDEN_STYLE}`);\n hiddenTextarea.value = targetElement.value || targetElement.placeholder || '';\n\n let height = hiddenTextarea.scrollHeight;\n const result = {};\n\n if (boxSizing === 'border-box') {\n height = height + borderSize;\n } else if (boxSizing === 'content-box') {\n height = height - paddingSize;\n }\n\n hiddenTextarea.value = '';\n let singleRowHeight = hiddenTextarea.scrollHeight - paddingSize;\n\n if (minRows !== null) {\n let minHeight = singleRowHeight * minRows;\n if (boxSizing === 'border-box') {\n minHeight = minHeight + paddingSize + borderSize;\n }\n height = Math.max(minHeight, height);\n result.minHeight = `${ minHeight }px`;\n }\n if (maxRows !== null) {\n let maxHeight = singleRowHeight * maxRows;\n if (boxSizing === 'border-box') {\n maxHeight = maxHeight + paddingSize + borderSize;\n }\n height = Math.min(maxHeight, height);\n }\n result.height = `${ height }px`;\n hiddenTextarea.parentNode && hiddenTextarea.parentNode.removeChild(hiddenTextarea);\n hiddenTextarea = null;\n return result;\n};\n","\n import emitter from 'element-ui/src/mixins/emitter';\n import Migrating from 'element-ui/src/mixins/migrating';\n import calcTextareaHeight from './calcTextareaHeight';\n import merge from 'element-ui/src/utils/merge';\n import {isKorean} from 'element-ui/src/utils/shared';\n\n export default {\n name: 'ElInput',\n\n componentName: 'ElInput',\n\n mixins: [emitter, Migrating],\n\n inheritAttrs: false,\n\n inject: {\n elForm: {\n default: ''\n },\n elFormItem: {\n default: ''\n }\n },\n\n data() {\n return {\n textareaCalcStyle: {},\n hovering: false,\n focused: false,\n isComposing: false,\n passwordVisible: false\n };\n },\n\n props: {\n value: [String, Number],\n size: String,\n resize: String,\n form: String,\n disabled: Boolean,\n readonly: Boolean,\n type: {\n type: String,\n default: 'text'\n },\n autosize: {\n type: [Boolean, Object],\n default: false\n },\n autocomplete: {\n type: String,\n default: 'off'\n },\n /** @Deprecated in next major version */\n autoComplete: {\n type: String,\n validator(val) {\n process.env.NODE_ENV !== 'production' &&\n console.warn('[Element Warn][Input]\\'auto-complete\\' property will be deprecated in next major version. please use \\'autocomplete\\' instead.');\n return true;\n }\n },\n validateEvent: {\n type: Boolean,\n default: true\n },\n suffixIcon: String,\n prefixIcon: String,\n label: String,\n clearable: {\n type: Boolean,\n default: false\n },\n showPassword: {\n type: Boolean,\n default: false\n },\n showWordLimit: {\n type: Boolean,\n default: false\n },\n tabindex: String\n },\n\n computed: {\n _elFormItemSize() {\n return (this.elFormItem || {}).elFormItemSize;\n },\n validateState() {\n return this.elFormItem ? this.elFormItem.validateState : '';\n },\n needStatusIcon() {\n return this.elForm ? this.elForm.statusIcon : false;\n },\n validateIcon() {\n return {\n validating: 'el-icon-loading',\n success: 'el-icon-circle-check',\n error: 'el-icon-circle-close'\n }[this.validateState];\n },\n textareaStyle() {\n return merge({}, this.textareaCalcStyle, { resize: this.resize });\n },\n inputSize() {\n return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;\n },\n inputDisabled() {\n return this.disabled || (this.elForm || {}).disabled;\n },\n nativeInputValue() {\n return this.value === null || this.value === undefined ? '' : String(this.value);\n },\n showClear() {\n return this.clearable &&\n !this.inputDisabled &&\n !this.readonly &&\n this.nativeInputValue &&\n (this.focused || this.hovering);\n },\n showPwdVisible() {\n return this.showPassword &&\n !this.inputDisabled &&\n !this.readonly &&\n (!!this.nativeInputValue || this.focused);\n },\n isWordLimitVisible() {\n return this.showWordLimit &&\n this.$attrs.maxlength &&\n (this.type === 'text' || this.type === 'textarea') &&\n !this.inputDisabled &&\n !this.readonly &&\n !this.showPassword;\n },\n upperLimit() {\n return this.$attrs.maxlength;\n },\n textLength() {\n if (typeof this.value === 'number') {\n return String(this.value).length;\n }\n\n return (this.value || '').length;\n },\n inputExceed() {\n // show exceed style if length of initial value greater then maxlength\n return this.isWordLimitVisible &&\n (this.textLength > this.upperLimit);\n }\n },\n\n watch: {\n value(val) {\n this.$nextTick(this.resizeTextarea);\n if (this.validateEvent) {\n this.dispatch('ElFormItem', 'el.form.change', [val]);\n }\n },\n // native input value is set explicitly\n // do not use v-model / :value in template\n // see: https://github.com/ElemeFE/element/issues/14521\n nativeInputValue() {\n this.setNativeInputValue();\n },\n // when change between <input> and <textarea>,\n // update DOM dependent value and styles\n // https://github.com/ElemeFE/element/issues/14857\n type() {\n this.$nextTick(() => {\n this.setNativeInputValue();\n this.resizeTextarea();\n this.updateIconOffset();\n });\n }\n },\n\n methods: {\n focus() {\n this.getInput().focus();\n },\n blur() {\n this.getInput().blur();\n },\n getMigratingConfig() {\n return {\n props: {\n 'icon': 'icon is removed, use suffix-icon / prefix-icon instead.',\n 'on-icon-click': 'on-icon-click is removed.'\n },\n events: {\n 'click': 'click is removed.'\n }\n };\n },\n handleBlur(event) {\n this.focused = false;\n this.$emit('blur', event);\n if (this.validateEvent) {\n this.dispatch('ElFormItem', 'el.form.blur', [this.value]);\n }\n },\n select() {\n this.getInput().select();\n },\n resizeTextarea() {\n if (this.$isServer) return;\n const { autosize, type } = this;\n if (type !== 'textarea') return;\n if (!autosize) {\n this.textareaCalcStyle = {\n minHeight: calcTextareaHeight(this.$refs.textarea).minHeight\n };\n return;\n }\n const minRows = autosize.minRows;\n const maxRows = autosize.maxRows;\n\n this.textareaCalcStyle = calcTextareaHeight(this.$refs.textarea, minRows, maxRows);\n },\n setNativeInputValue() {\n const input = this.getInput();\n if (!input) return;\n if (input.value === this.nativeInputValue) return;\n input.value = this.nativeInputValue;\n },\n handleFocus(event) {\n this.focused = true;\n this.$emit('focus', event);\n },\n handleCompositionStart(event) {\n this.$emit('compositionstart', event);\n this.isComposing = true;\n },\n handleCompositionUpdate(event) {\n this.$emit('compositionupdate', event);\n const text = event.target.value;\n const lastCharacter = text[text.length - 1] || '';\n this.isComposing = !isKorean(lastCharacter);\n },\n handleCompositionEnd(event) {\n this.$emit('compositionend', event);\n if (this.isComposing) {\n this.isComposing = false;\n this.handleInput(event);\n }\n },\n handleInput(event) {\n // should not emit input during composition\n // see: https://github.com/ElemeFE/element/issues/10516\n if (this.isComposing) return;\n\n // hack for https://github.com/ElemeFE/element/issues/8548\n // should remove the following line when we don't support IE\n if (event.target.value === this.nativeInputValue) return;\n\n this.$emit('input', event.target.value);\n\n // ensure native input value is controlled\n // see: https://github.com/ElemeFE/element/issues/12850\n this.$nextTick(this.setNativeInputValue);\n },\n handleChange(event) {\n this.$emit('change', event.target.value);\n },\n calcIconOffset(place) {\n let elList = [].slice.call(this.$el.querySelectorAll(`.el-input__${place}`) || []);\n if (!elList.length) return;\n let el = null;\n for (let i = 0; i < elList.length; i++) {\n if (elList[i].parentNode === this.$el) {\n el = elList[i];\n break;\n }\n }\n if (!el) return;\n const pendantMap = {\n suffix: 'append',\n prefix: 'prepend'\n };\n\n const pendant = pendantMap[place];\n if (this.$slots[pendant]) {\n el.style.transform = `translateX(${place === 'suffix' ? '-' : ''}${this.$el.querySelector(`.el-input-group__${pendant}`).offsetWidth}px)`;\n } else {\n el.removeAttribute('style');\n }\n },\n updateIconOffset() {\n this.calcIconOffset('prefix');\n this.calcIconOffset('suffix');\n },\n clear() {\n this.$emit('input', '');\n this.$emit('change', '');\n this.$emit('clear');\n },\n handlePasswordVisible() {\n this.passwordVisible = !this.passwordVisible;\n this.$nextTick(() => {\n this.focus();\n });\n },\n getInput() {\n return this.$refs.input || this.$refs.textarea;\n },\n getSuffixVisible() {\n return this.$slots.suffix ||\n this.suffixIcon ||\n this.showClear ||\n this.showPassword ||\n this.isWordLimitVisible ||\n (this.validateState && this.needStatusIcon);\n }\n },\n\n created() {\n this.$on('inputSelect', this.select);\n },\n\n mounted() {\n this.setNativeInputValue();\n this.resizeTextarea();\n this.updateIconOffset();\n },\n\n updated() {\n this.$nextTick(this.updateIconOffset);\n }\n };\n","export function isDef(val) {\n return val !== undefined && val !== null;\n}\nexport function isKorean(text) {\n const reg = /([(\\uAC00-\\uD7AF)|(\\u3130-\\u318F)])+/gi;\n return reg.test(text);\n}\n","import mod from \"-!../../../../babel-loader/lib/index.js??ref--2-0!../../../../@nuxt/components/dist/loader.js??ref--0-0!../../../../vue-loader/lib/index.js??vue-loader-options!./input.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../babel-loader/lib/index.js??ref--2-0!../../../../@nuxt/components/dist/loader.js??ref--0-0!../../../../vue-loader/lib/index.js??vue-loader-options!./input.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./input.vue?vue&type=template&id=17e57c08\"\nimport script from \"./input.vue?vue&type=script&lang=js\"\nexport * from \"./input.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import ElInput from './src/input';\n\n/* istanbul ignore next */\nElInput.install = function(Vue) {\n Vue.component(ElInput.name, ElInput);\n};\n\nexport default ElInput;\n","export default function(ref) {\n return {\n methods: {\n focus() {\n this.$refs[ref].focus();\n }\n }\n };\n};\n","import { once, on } from 'element-ui/src/utils/dom';\nimport { isMac } from 'element-ui/src/utils/util';\n\nexport default {\n bind(el, binding, vnode) {\n let interval = null;\n let startTime;\n const maxIntervals = isMac() ? 100 : 200;\n const handler = () => vnode.context[binding.expression].apply();\n const clear = () => {\n if (Date.now() - startTime < maxIntervals) {\n handler();\n }\n clearInterval(interval);\n interval = null;\n };\n\n on(el, 'mousedown', (e) => {\n if (e.button !== 0) return;\n startTime = Date.now();\n once(document, 'mouseup', clear);\n clearInterval(interval);\n interval = setInterval(handler, maxIntervals);\n });\n }\n};\n","import mod from \"-!../../../../babel-loader/lib/index.js??ref--2-0!../../../../@nuxt/components/dist/loader.js??ref--0-0!../../../../vue-loader/lib/index.js??vue-loader-options!./input-number.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../babel-loader/lib/index.js??ref--2-0!../../../../@nuxt/components/dist/loader.js??ref--0-0!../../../../vue-loader/lib/index.js??vue-loader-options!./input-number.vue?vue&type=script&lang=js\"","\n import ElInput from 'element-ui/packages/input';\n import Focus from 'element-ui/src/mixins/focus';\n import RepeatClick from 'element-ui/src/directives/repeat-click';\n\n export default {\n name: 'ElInputNumber',\n mixins: [Focus('input')],\n inject: {\n elForm: {\n default: ''\n },\n elFormItem: {\n default: ''\n }\n },\n directives: {\n repeatClick: RepeatClick\n },\n components: {\n ElInput\n },\n props: {\n step: {\n type: Number,\n default: 1\n },\n stepStrictly: {\n type: Boolean,\n default: false\n },\n max: {\n type: Number,\n default: Infinity\n },\n min: {\n type: Number,\n default: -Infinity\n },\n value: {},\n disabled: Boolean,\n size: String,\n controls: {\n type: Boolean,\n default: true\n },\n controlsPosition: {\n type: String,\n default: ''\n },\n name: String,\n label: String,\n placeholder: String,\n precision: {\n type: Number,\n validator(val) {\n return val >= 0 && val === parseInt(val, 10);\n }\n }\n },\n data() {\n return {\n currentValue: 0,\n userInput: null\n };\n },\n watch: {\n value: {\n immediate: true,\n handler(value) {\n let newVal = value === undefined ? value : Number(value);\n if (newVal !== undefined) {\n if (isNaN(newVal)) {\n return;\n }\n\n if (this.stepStrictly) {\n const stepPrecision = this.getPrecision(this.step);\n const precisionFactor = Math.pow(10, stepPrecision);\n newVal = Math.round(newVal / this.step) * precisionFactor * this.step / precisionFactor;\n }\n\n if (this.precision !== undefined) {\n newVal = this.toPrecision(newVal, this.precision);\n }\n }\n if (newVal >= this.max) newVal = this.max;\n if (newVal <= this.min) newVal = this.min;\n this.currentValue = newVal;\n this.userInput = null;\n this.$emit('input', newVal);\n }\n }\n },\n computed: {\n minDisabled() {\n return this._decrease(this.value, this.step) < this.min;\n },\n maxDisabled() {\n return this._increase(this.value, this.step) > this.max;\n },\n numPrecision() {\n const { value, step, getPrecision, precision } = this;\n const stepPrecision = getPrecision(step);\n if (precision !== undefined) {\n if (stepPrecision > precision) {\n console.warn('[Element Warn][InputNumber]precision should not be less than the decimal places of step');\n }\n return precision;\n } else {\n return Math.max(getPrecision(value), stepPrecision);\n }\n },\n controlsAtRight() {\n return this.controls && this.controlsPosition === 'right';\n },\n _elFormItemSize() {\n return (this.elFormItem || {}).elFormItemSize;\n },\n inputNumberSize() {\n return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;\n },\n inputNumberDisabled() {\n return this.disabled || !!(this.elForm || {}).disabled;\n },\n displayValue() {\n if (this.userInput !== null) {\n return this.userInput;\n }\n\n let currentValue = this.currentValue;\n\n if (typeof currentValue === 'number') {\n if (this.stepStrictly) {\n const stepPrecision = this.getPrecision(this.step);\n const precisionFactor = Math.pow(10, stepPrecision);\n currentValue = Math.round(currentValue / this.step) * precisionFactor * this.step / precisionFactor;\n }\n\n if (this.precision !== undefined) {\n currentValue = currentValue.toFixed(this.precision);\n }\n }\n\n return currentValue;\n }\n },\n methods: {\n toPrecision(num, precision) {\n if (precision === undefined) precision = this.numPrecision;\n return parseFloat(Math.round(num * Math.pow(10, precision)) / Math.pow(10, precision));\n },\n getPrecision(value) {\n if (value === undefined) return 0;\n const valueString = value.toString();\n const dotPosition = valueString.indexOf('.');\n let precision = 0;\n if (dotPosition !== -1) {\n precision = valueString.length - dotPosition - 1;\n }\n return precision;\n },\n _increase(val, step) {\n if (typeof val !== 'number' && val !== undefined) return this.currentValue;\n\n const precisionFactor = Math.pow(10, this.numPrecision);\n // Solve the accuracy problem of JS decimal calculation by converting the value to integer.\n return this.toPrecision((precisionFactor * val + precisionFactor * step) / precisionFactor);\n },\n _decrease(val, step) {\n if (typeof val !== 'number' && val !== undefined) return this.currentValue;\n\n const precisionFactor = Math.pow(10, this.numPrecision);\n\n return this.toPrecision((precisionFactor * val - precisionFactor * step) / precisionFactor);\n },\n increase() {\n if (this.inputNumberDisabled || this.maxDisabled) return;\n const value = this.value || 0;\n const newVal = this._increase(value, this.step);\n this.setCurrentValue(newVal);\n },\n decrease() {\n if (this.inputNumberDisabled || this.minDisabled) return;\n const value = this.value || 0;\n const newVal = this._decrease(value, this.step);\n this.setCurrentValue(newVal);\n },\n handleBlur(event) {\n this.$emit('blur', event);\n },\n handleFocus(event) {\n this.$emit('focus', event);\n },\n setCurrentValue(newVal) {\n const oldVal = this.currentValue;\n if (typeof newVal === 'number' && this.precision !== undefined) {\n newVal = this.toPrecision(newVal, this.precision);\n }\n if (newVal >= this.max) newVal = this.max;\n if (newVal <= this.min) newVal = this.min;\n if (oldVal === newVal) return;\n this.userInput = null;\n this.$emit('input', newVal);\n this.$emit('change', newVal, oldVal);\n this.currentValue = newVal;\n },\n handleInput(value) {\n this.userInput = value;\n },\n handleInputChange(value) {\n const newVal = value === '' ? undefined : Number(value);\n if (!isNaN(newVal) || value === '') {\n this.setCurrentValue(newVal);\n }\n this.userInput = null;\n },\n select() {\n this.$refs.input.select();\n }\n },\n mounted() {\n let innerInput = this.$refs.input.$refs.input;\n innerInput.setAttribute('role', 'spinbutton');\n innerInput.setAttribute('aria-valuemax', this.max);\n innerInput.setAttribute('aria-valuemin', this.min);\n innerInput.setAttribute('aria-valuenow', this.currentValue);\n innerInput.setAttribute('aria-disabled', this.inputNumberDisabled);\n },\n updated() {\n if (!this.$refs || !this.$refs.input) return;\n const innerInput = this.$refs.input.$refs.input;\n innerInput.setAttribute('aria-valuenow', this.currentValue);\n }\n };\n","import { render, staticRenderFns } from \"./input-number.vue?vue&type=template&id=5655cc82\"\nimport script from \"./input-number.vue?vue&type=script&lang=js\"\nexport * from \"./input-number.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import ElInputNumber from './src/input-number';\n\n/* istanbul ignore next */\nElInputNumber.install = function(Vue) {\n Vue.component(ElInputNumber.name, ElInputNumber);\n};\n\nexport default ElInputNumber;\n"],"sourceRoot":""}
|