1 |
- {"version":3,"sources":["webpack:///./node_modules/core-js/modules/es.number.constructor.js","webpack:///./node_modules/core-js/internals/this-number-value.js","webpack:///./node_modules/core-js/modules/es.number.to-fixed.js","webpack:///./components/custom-el-slider/button.vue","webpack:///./components/custom-el-slider/button.vue?b0e0","webpack:///./components/custom-el-slider/button.vue?2d7c"],"names":["$","IS_PURE","DESCRIPTORS","global","path","uncurryThis","isForced","hasOwn","inheritIfRequired","isPrototypeOf","isSymbol","toPrimitive","fails","getOwnPropertyNames","f","getOwnPropertyDescriptor","defineProperty","thisNumberValue","trim","NUMBER","NativeNumber","PureNumberNamespace","NumberPrototype","prototype","TypeError","stringSlice","slice","charCodeAt","toNumber","argument","first","third","radix","maxCode","digits","length","index","code","it","NaN","parseInt","FORCED","NumberWrapper","value","dummy","n","arguments","primValue","toNumeric","this","Object","constructor","wrap","forced","Number","copyConstructorProperties","target","source","key","keys","split","j","module","exports","valueOf","toIntegerOrInfinity","$repeat","$RangeError","RangeError","$String","String","floor","Math","repeat","nativeToFixed","toFixed","pow","x","acc","multiply","data","c","c2","divide","dataToString","s","t","proto","fractionDigits","e","z","k","number","fractDigits","sign","result","x2","log","name","components","props","type","default","vertical","Boolean","tooltipClass","marks","hovering","dragging","isClick","startX","currentX","startY","currentY","startPosition","newPosition","oldValue","computed","disabled","$parent","sliderDisabled","max","min","step","showTooltip","precision","currentPosition","_this","map","findIndex","i","concat","enableFormat","formatTooltip","Function","formatValue","wrapperStyle","bottom","left","watch","val","methods","displayTooltip","$refs","tooltip","showPopper","hideTooltip","handleMouseEnter","handleMouseLeave","onButtonDown","event","preventDefault","onDragStart","window","addEventListener","onDragging","onDragEnd","onLeftKeyDown","parseFloat","setPosition","emitChange","onRightKeyDown","clientY","touches","clientX","resetSize","diff","sliderSize","_this2","setTimeout","removeEventListener","_this3","isNaN","lengthPerStep","round","current","arr","perc","item","$emit","$nextTick","updatePopper","component","_vm","_c","_self","ref","staticClass","class","hover","style","attrs","on","$event","indexOf","_k","keyC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AAGF,EAAOG,QAAQ,OAAO,GAAGH,EAAOvI,IAAI,CAAC,OAAO,cAAqB,MAAKuI,EAAO1C,iBAAwBgC,EAAI1B,cAAcyC,MAAM,KAAMxJ,WAAU,EAAE,SAASmJ,GAAQ,OAAIA,EAAO5F,KAAK6F,QAAQ,QAAQX,EAAIY,GAAGF,EAAOG,QAAQ,KAAK,GAAGH,EAAOvI,IAAI,CAAC,KAAK,YAAmB,MAAKuI,EAAO1C,iBAAwBgC,EAAItB,eAAeqC,MAAM,KAAMxJ,WAAU,KAAK,CAAC0I,EAAG,aAAa,CAACE,IAAI,UAAUK,MAAM,CAAC,UAAY,MAAM,eAAeR,EAAI9E,aAAa,UAAY8E,EAAI3D,cAAc,CAAC4D,EAAG,OAAO,CAACO,MAAM,CAAC,KAAO,WAAWQ,KAAK,WAAW,CAAChB,EAAIiB,GAAGjB,EAAIkB,GAAGlB,EAAIhD,gBAAgBgD,EAAIiB,GAAG,KAAKhB,EAAG,MAAM,CAACG,YAAY,oBAAoBC,MAAM,CAAEC,MAAON,EAAI5E,SAAUC,SAAU2E,EAAI3E,eAAgB,EAC/kD,GACsB,IESpB,EACA,KACA,KACA,MAIa,UAAA0E,U","file":"5944bff.js","sourcesContent":["'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar global = require('../internals/global');\nvar path = require('../internals/path');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isForced = require('../internals/is-forced');\nvar hasOwn = require('../internals/has-own-property');\nvar inheritIfRequired = require('../internals/inherit-if-required');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar isSymbol = require('../internals/is-symbol');\nvar toPrimitive = require('../internals/to-primitive');\nvar fails = require('../internals/fails');\nvar getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar defineProperty = require('../internals/object-define-property').f;\nvar thisNumberValue = require('../internals/this-number-value');\nvar trim = require('../internals/string-trim').trim;\n\nvar NUMBER = 'Number';\nvar NativeNumber = global[NUMBER];\nvar PureNumberNamespace = path[NUMBER];\nvar NumberPrototype = NativeNumber.prototype;\nvar TypeError = global.TypeError;\nvar stringSlice = uncurryThis(''.slice);\nvar charCodeAt = uncurryThis(''.charCodeAt);\n\n// `ToNumeric` abstract operation\n// https://tc39.es/ecma262/#sec-tonumeric\nvar toNumeric = function (value) {\n var primValue = toPrimitive(value, 'number');\n return typeof primValue == 'bigint' ? primValue : toNumber(primValue);\n};\n\n// `ToNumber` abstract operation\n// https://tc39.es/ecma262/#sec-tonumber\nvar toNumber = function (argument) {\n var it = toPrimitive(argument, 'number');\n var first, third, radix, maxCode, digits, length, index, code;\n if (isSymbol(it)) throw TypeError('Cannot convert a Symbol value to a number');\n if (typeof it == 'string' && it.length > 2) {\n it = trim(it);\n first = charCodeAt(it, 0);\n if (first === 43 || first === 45) {\n third = charCodeAt(it, 2);\n if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix\n } else if (first === 48) {\n switch (charCodeAt(it, 1)) {\n case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0b[01]+$/i\n case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i\n default: return +it;\n }\n digits = stringSlice(it, 2);\n length = digits.length;\n for (index = 0; index < length; index++) {\n code = charCodeAt(digits, index);\n // parseInt parses a string to a first unavailable symbol\n // but ToNumber should return NaN if a string contains unavailable symbols\n if (code < 48 || code > maxCode) return NaN;\n } return parseInt(digits, radix);\n }\n } return +it;\n};\n\nvar FORCED = isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'));\n\nvar calledWithNew = function (dummy) {\n // includes check on 1..constructor(foo) case\n return isPrototypeOf(NumberPrototype, dummy) && fails(function () { thisNumberValue(dummy); });\n};\n\n// `Number` constructor\n// https://tc39.es/ecma262/#sec-number-constructor\nvar NumberWrapper = function Number(value) {\n var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));\n return calledWithNew(this) ? inheritIfRequired(Object(n), this, NumberWrapper) : n;\n};\n\nNumberWrapper.prototype = NumberPrototype;\nif (FORCED && !IS_PURE) NumberPrototype.constructor = NumberWrapper;\n\n$({ global: true, constructor: true, wrap: true, forced: FORCED }, {\n Number: NumberWrapper\n});\n\n// Use `internal/copy-constructor-properties` helper in `core-js@4`\nvar copyConstructorProperties = function (target, source) {\n for (var keys = DESCRIPTORS ? getOwnPropertyNames(source) : (\n // ES3:\n 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +\n // ES2015 (in case, if modules with ES2015 Number statics required before):\n 'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' +\n // ESNext\n 'fromString,range'\n ).split(','), j = 0, key; keys.length > j; j++) {\n if (hasOwn(source, key = keys[j]) && !hasOwn(target, key)) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n\nif (IS_PURE && PureNumberNamespace) copyConstructorProperties(path[NUMBER], PureNumberNamespace);\nif (FORCED || IS_PURE) copyConstructorProperties(path[NUMBER], NativeNumber);\n","var uncurryThis = require('../internals/function-uncurry-this');\n\n// `thisNumberValue` abstract operation\n// https://tc39.es/ecma262/#sec-thisnumbervalue\nmodule.exports = uncurryThis(1.0.valueOf);\n","'use strict';\nvar $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar thisNumberValue = require('../internals/this-number-value');\nvar $repeat = require('../internals/string-repeat');\nvar fails = require('../internals/fails');\n\nvar $RangeError = RangeError;\nvar $String = String;\nvar floor = Math.floor;\nvar repeat = uncurryThis($repeat);\nvar stringSlice = uncurryThis(''.slice);\nvar nativeToFixed = uncurryThis(1.0.toFixed);\n\nvar pow = function (x, n, acc) {\n return n === 0 ? acc : n % 2 === 1 ? pow(x, n - 1, acc * x) : pow(x * x, n / 2, acc);\n};\n\nvar log = function (x) {\n var n = 0;\n var x2 = x;\n while (x2 >= 4096) {\n n += 12;\n x2 /= 4096;\n }\n while (x2 >= 2) {\n n += 1;\n x2 /= 2;\n } return n;\n};\n\nvar multiply = function (data, n, c) {\n var index = -1;\n var c2 = c;\n while (++index < 6) {\n c2 += n * data[index];\n data[index] = c2 % 1e7;\n c2 = floor(c2 / 1e7);\n }\n};\n\nvar divide = function (data, n) {\n var index = 6;\n var c = 0;\n while (--index >= 0) {\n c += data[index];\n data[index] = floor(c / n);\n c = (c % n) * 1e7;\n }\n};\n\nvar dataToString = function (data) {\n var index = 6;\n var s = '';\n while (--index >= 0) {\n if (s !== '' || index === 0 || data[index] !== 0) {\n var t = $String(data[index]);\n s = s === '' ? t : s + repeat('0', 7 - t.length) + t;\n }\n } return s;\n};\n\nvar FORCED = fails(function () {\n return nativeToFixed(0.00008, 3) !== '0.000' ||\n nativeToFixed(0.9, 0) !== '1' ||\n nativeToFixed(1.255, 2) !== '1.25' ||\n nativeToFixed(1000000000000000128.0, 0) !== '1000000000000000128';\n}) || !fails(function () {\n // V8 ~ Android 4.3-\n nativeToFixed({});\n});\n\n// `Number.prototype.toFixed` method\n// https://tc39.es/ecma262/#sec-number.prototype.tofixed\n$({ target: 'Number', proto: true, forced: FORCED }, {\n toFixed: function toFixed(fractionDigits) {\n var number = thisNumberValue(this);\n var fractDigits = toIntegerOrInfinity(fractionDigits);\n var data = [0, 0, 0, 0, 0, 0];\n var sign = '';\n var result = '0';\n var e, z, j, k;\n\n // TODO: ES2018 increased the maximum number of fraction digits to 100, need to improve the implementation\n if (fractDigits < 0 || fractDigits > 20) throw $RangeError('Incorrect fraction digits');\n // eslint-disable-next-line no-self-compare -- NaN check\n if (number != number) return 'NaN';\n if (number <= -1e21 || number >= 1e21) return $String(number);\n if (number < 0) {\n sign = '-';\n number = -number;\n }\n if (number > 1e-21) {\n e = log(number * pow(2, 69, 1)) - 69;\n z = e < 0 ? number * pow(2, -e, 1) : number / pow(2, e, 1);\n z *= 0x10000000000000;\n e = 52 - e;\n if (e > 0) {\n multiply(data, 0, z);\n j = fractDigits;\n while (j >= 7) {\n multiply(data, 1e7, 0);\n j -= 7;\n }\n multiply(data, pow(10, j, 1), 0);\n j = e - 1;\n while (j >= 23) {\n divide(data, 1 << 23);\n j -= 23;\n }\n divide(data, 1 << j);\n multiply(data, 1, 1);\n divide(data, 2);\n result = dataToString(data);\n } else {\n multiply(data, 0, z);\n multiply(data, 1 << -e, 0);\n result = dataToString(data) + repeat('0', fractDigits);\n }\n }\n if (fractDigits > 0) {\n k = result.length;\n result = sign + (k <= fractDigits\n ? '0.' + repeat('0', fractDigits - k) + result\n : stringSlice(result, 0, k - fractDigits) + '.' + stringSlice(result, k - fractDigits));\n } else {\n result = sign + result;\n } return result;\n }\n});\n","\n// import ElTooltip from 'element-ui/packages/tooltip'\nexport default {\n name: 'ElSliderButton',\n components: {\n // ElTooltip,\n },\n props: {\n value: {\n type: Number,\n default: 0,\n },\n vertical: {\n type: Boolean,\n default: false,\n },\n tooltipClass: String,\n marks: Object,\n },\n data() {\n return {\n hovering: false,\n dragging: false,\n isClick: false,\n startX: 0,\n currentX: 0,\n startY: 0,\n currentY: 0,\n startPosition: 0,\n newPosition: null,\n oldValue: this.value,\n }\n },\n computed: {\n disabled() {\n return this.$parent.sliderDisabled\n },\n max() {\n return this.$parent.max\n },\n min() {\n return this.$parent.min\n },\n step() {\n return this.$parent.step\n },\n showTooltip() {\n return this.$parent.showTooltip\n },\n precision() {\n return this.$parent.precision\n },\n currentPosition() {\n if (this.marks) {\n // 同父组件index中barSize的计算逻辑. 直接从那边抄过来的. 不要在这里改, 在index改完再抄过来.\n // 注意父组件的 this.firstValue, 这里是 this.value\n const marks = Object.keys(this.marks).map(Number)\n // 找出目标值位于marks的那个档位, 即 即将到达哪一个'档'\n const index = marks.findIndex(i => this.value < i)\n\n if (index === -1) return '100%'\n // 经过后一个档位之后占总进度条的比例 + (当前值超出后一个档位的差值 / 前一个档位与后一个档位的差值) / (进度被marks划分成的档位数量)\n // 上述公式要除档位数量是因为, 当前值与档位差值占单个档位区间的百分比 !== 单个区间值占总进度条的百分比\n const value =\n (index - 1) / (marks.length - 1) +\n (this.value - marks[index - 1]) /\n (marks[index] - marks[index - 1]) /\n (marks.length - 1)\n\n return value > 1 ? '100%' : `${value * 100}%`\n } else {\n // 这里是原本的逻辑. 没有传marks的.\n return `${((this.value - this.min) / (this.max - this.min)) * 100}%`\n }\n },\n enableFormat() {\n return this.$parent.formatTooltip instanceof Function\n },\n formatValue() {\n return (\n (this.enableFormat && this.$parent.formatTooltip(this.value)) ||\n this.value\n )\n },\n wrapperStyle() {\n return this.vertical\n ? { bottom: this.currentPosition }\n : { left: this.currentPosition }\n },\n },\n watch: {\n dragging(val) {\n this.$parent.dragging = val\n },\n },\n methods: {\n displayTooltip() {\n this.$refs.tooltip && (this.$refs.tooltip.showPopper = true)\n },\n hideTooltip() {\n this.$refs.tooltip && (this.$refs.tooltip.showPopper = false)\n },\n handleMouseEnter() {\n this.hovering = true\n this.displayTooltip()\n },\n handleMouseLeave() {\n this.hovering = false\n this.hideTooltip()\n },\n onButtonDown(event) {\n if (this.disabled) return\n event.preventDefault()\n this.onDragStart(event)\n window.addEventListener('mousemove', this.onDragging)\n window.addEventListener('touchmove', this.onDragging)\n window.addEventListener('mouseup', this.onDragEnd)\n window.addEventListener('touchend', this.onDragEnd)\n window.addEventListener('contextmenu', this.onDragEnd)\n },\n onLeftKeyDown() {\n if (this.disabled) return\n this.newPosition =\n parseFloat(this.currentPosition) -\n (this.step / (this.max - this.min)) * 100\n this.setPosition(this.newPosition)\n this.$parent.emitChange()\n },\n onRightKeyDown() {\n if (this.disabled) return\n this.newPosition =\n parseFloat(this.currentPosition) +\n (this.step / (this.max - this.min)) * 100\n this.setPosition(this.newPosition)\n this.$parent.emitChange()\n },\n onDragStart(event) {\n this.dragging = true\n this.isClick = true\n if (event.type === 'touchstart') {\n event.clientY = event.touches[0].clientY\n event.clientX = event.touches[0].clientX\n }\n if (this.vertical) {\n this.startY = event.clientY\n } else {\n this.startX = event.clientX\n }\n this.startPosition = parseFloat(this.currentPosition)\n this.newPosition = this.startPosition\n },\n onDragging(event) {\n if (this.dragging) {\n this.isClick = false\n this.displayTooltip()\n this.$parent.resetSize()\n let diff = 0\n if (event.type === 'touchmove') {\n event.clientY = event.touches[0].clientY\n event.clientX = event.touches[0].clientX\n }\n if (this.vertical) {\n this.currentY = event.clientY\n diff = ((this.startY - this.currentY) / this.$parent.sliderSize) * 100\n } else {\n this.currentX = event.clientX\n diff = ((this.currentX - this.startX) / this.$parent.sliderSize) * 100\n }\n this.newPosition = this.startPosition + diff\n this.setPosition(this.newPosition)\n }\n },\n onDragEnd() {\n if (this.dragging) {\n /*\n * 防止在 mouseup 后立即触发 click,导致滑块有几率产生一小段位移\n * 不使用 preventDefault 是因为 mouseup 和 click 没有注册在同一个 DOM 上\n */\n setTimeout(() => {\n this.dragging = false\n this.hideTooltip()\n if (!this.isClick) {\n this.setPosition(this.newPosition)\n this.$parent.emitChange()\n }\n }, 0)\n window.removeEventListener('mousemove', this.onDragging)\n window.removeEventListener('touchmove', this.onDragging)\n window.removeEventListener('mouseup', this.onDragEnd)\n window.removeEventListener('touchend', this.onDragEnd)\n window.removeEventListener('contextmenu', this.onDragEnd)\n }\n },\n setPosition(newPosition) {\n if (newPosition === null || isNaN(newPosition)) return\n if (newPosition < 0) {\n newPosition = 0\n } else if (newPosition > 100) {\n newPosition = 100\n }\n const lengthPerStep = 100 / ((this.max - this.min) / this.step)\n const steps = Math.round(newPosition / lengthPerStep)\n let value =\n steps * lengthPerStep * (this.max - this.min) * 0.01 + this.min\n if (this.marks) {\n // 处理传递marks时的逻辑. 没有传marks的保持原样.\n // 有marks时无视原计算逻辑. 重新赋值\n const marks = Object.keys(this.marks).map((current, index, arr) => {\n return {\n value: Number(current),\n perc: (100 * index) / (arr.length - 1),\n }\n })\n\n // 找出目标值位于marks的那个档位, 即 即将到达哪一个'档'\n if (newPosition === 100) {\n value = marks[marks.length - 1].value\n } else {\n const index = marks.findIndex(item => item.perc > newPosition)\n\n // 后一个区间的代表值 + ((区间数量 * 超出后一个区间的百分比值 / 100) * 所处区间的值差)\n if (index === -1) {\n // 在最后一个区间\n value =\n marks[marks.length - 2].value +\n (marks.length - 1) *\n (((newPosition - marks[marks.length - 2].perc) / 100) *\n (marks[marks.length - 1].value -\n marks[marks.length - 2].value))\n } else {\n value =\n marks[index - 1].value +\n (marks.length - 1) *\n (((newPosition - marks[index - 1].perc) / 100) *\n (marks[index].value - marks[index - 1].value))\n }\n }\n }\n\n value = parseFloat(value.toFixed(this.precision))\n this.$emit('input', value)\n this.$nextTick(() => {\n this.displayTooltip()\n this.$refs.tooltip && this.$refs.tooltip.updatePopper()\n })\n if (!this.dragging && this.value !== this.oldValue) {\n this.oldValue = this.value\n }\n },\n },\n}\n","import mod from \"-!../../node_modules/babel-loader/lib/index.js??ref--2-0!../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./button.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/babel-loader/lib/index.js??ref--2-0!../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./button.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./button.vue?vue&type=template&id=09a28971&\"\nimport script from \"./button.vue?vue&type=script&lang=js&\"\nexport * from \"./button.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/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"],"sourceRoot":""}
|