text: var ElNumberRange=function(t,e){"use strict";function n(t){n.installed||(n.installed=!0,t.component("ElNumberRange",i))}e=e&&e.hasOwnProperty("default")?e.default:e,function(){if("undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],e=document.createElement("style"),n=".el-number-range .separator { color: #888; padding: 0 8px; } ";e.type="text/css",e.styleSheet?e.styleSheet.cssText=n:e.appendChild(document.createTextNode(n)),t.appendChild(e)}}();var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"el-number-range"},[n("el-input",{style:{width:t.width},attrs:{type:"number",value:t.minValue},on:{input:function(e){t.onInput(e,t.maxValue)},blur:t.onMinBlur}}),t._v(" "),n("span",{staticClass:"separator"},[t._v(t._s(t.separator))]),t._v(" "),n("el-input",{style:{width:t.width},attrs:{type:"number",value:t.maxValue},on:{input:function(e){t.onInput(t.minValue,e)},blur:t.onMaxBlur}})],1)},staticRenderFns:[],name:"ElNumberRange",props:{max:{type:Number,default:1/0},min:{type:Number,default:-1/0},width:{type:String,default:"150px"},separator:{type:String,default:"-"},value:{type:Array,validator:function(t){return t.every(function(t){return!t||!isNaN(t)})},default:function(){return[]}}},data:function(){var t=e(this.value,2);return{minValue:t[0],maxValue:t[1]}},watch:{value:function(t){var n=e(t,2),i=n[0],a=n[1];this.minValue=i,this.maxValue=a}},methods:{onInput:function(t,e){this.$emit("input",[t,e])},onMinBlur:function(t){var e=t.target.value,n=this.maxValue?Number(this.maxValue):void 0;if(!e)return void this.emitInputNextTick([void 0,n]);e=Math.max(Number(e),this.min),n&&(e=Math.min(e,n)),this.emitInputNextTick([e,n])},onMaxBlur:function(t){var e=t.target.value,n=this.minValue?Number(this.minValue):void 0;if(!e)return void this.emitInputNextTick([n,void 0]);e=Math.min(Number(e),this.max),n&&(e=Math.max(e,n)),this.emitInputNextTick([n,e])},emitInputNextTick:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[void 0,void 0];this.$nextTick(function(){t.$emit("input",e)})}}},a={install:n},u=null;return"undefined"!=typeof window?u=window.Vue:"undefined"!=typeof global&&(u=global.Vue),u&&u.use(a),t.install=n,t.default=i,t}({},_slicedToArray);
  