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?401c","webpack:///./components/custom-el-slider/button.vue?2d7c"],"names":["$","IS_PURE","DESCRIPTORS","globalThis","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","global","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","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AIY,GAAGF,EAAOG,QAAQ,OAAO,GAAGH,EAAOvI,IAAI,CAAC,OAAO,cAAqB,MAAKuI,EAAO1C,iBAAwBgC,EAAI1B,cAAcyC,MAAM,KAAMzJ,WAAU,EAAE,SAASoJ,GAAQ,OAAIA,EAAO5F,KAAK6F,QAAQ,QAAQX,EAAIY,GAAGF,EAAOG,QAAQ,KAAK,GAAGH,EAAOvI,IAAI,CAAC,KAAK,YAAmB,MAAKuI,EAAO1C,iBAAwBgC,EAAItB,eAAeqC,MAAM,KAAMzJ,WAAU,KAAK,CAAC2I,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":"b88ced2.js","sourcesContent":["'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar globalThis = require('../internals/global-this');\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 = globalThis[NUMBER];\nvar PureNumberNamespace = path[NUMBER];\nvar NumberPrototype = NativeNumber.prototype;\nvar TypeError = globalThis.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 new 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 // fast equal of /^0b[01]+$/i\n case 66:\n case 98:\n radix = 2;\n maxCode = 49;\n break;\n // fast equal of /^0o[0-7]+$/i\n case 79:\n case 111:\n radix = 8;\n maxCode = 55;\n break;\n default:\n 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","'use strict';\nvar 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 new $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":""}
|