input-number.js 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751
  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, { enumerable: true, get: getter });
  41. /******/ }
  42. /******/ };
  43. /******/
  44. /******/ // define __esModule on exports
  45. /******/ __webpack_require__.r = function(exports) {
  46. /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  47. /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  48. /******/ }
  49. /******/ Object.defineProperty(exports, '__esModule', { value: true });
  50. /******/ };
  51. /******/
  52. /******/ // create a fake namespace object
  53. /******/ // mode & 1: value is a module id, require it
  54. /******/ // mode & 2: merge all properties of value into the ns
  55. /******/ // mode & 4: return value when already ns object
  56. /******/ // mode & 8|1: behave like require
  57. /******/ __webpack_require__.t = function(value, mode) {
  58. /******/ if(mode & 1) value = __webpack_require__(value);
  59. /******/ if(mode & 8) return value;
  60. /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
  61. /******/ var ns = Object.create(null);
  62. /******/ __webpack_require__.r(ns);
  63. /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
  64. /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
  65. /******/ return ns;
  66. /******/ };
  67. /******/
  68. /******/ // getDefaultExport function for compatibility with non-harmony modules
  69. /******/ __webpack_require__.n = function(module) {
  70. /******/ var getter = module && module.__esModule ?
  71. /******/ function getDefault() { return module['default']; } :
  72. /******/ function getModuleExports() { return module; };
  73. /******/ __webpack_require__.d(getter, 'a', getter);
  74. /******/ return getter;
  75. /******/ };
  76. /******/
  77. /******/ // Object.prototype.hasOwnProperty.call
  78. /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  79. /******/
  80. /******/ // __webpack_public_path__
  81. /******/ __webpack_require__.p = "/dist/";
  82. /******/
  83. /******/
  84. /******/ // Load entry module and return exports
  85. /******/ return __webpack_require__(__webpack_require__.s = 87);
  86. /******/ })
  87. /************************************************************************/
  88. /******/ ({
  89. /***/ 0:
  90. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  91. "use strict";
  92. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
  93. /* globals __VUE_SSR_CONTEXT__ */
  94. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  95. // This module is a runtime utility for cleaner component module output and will
  96. // be included in the final webpack user bundle.
  97. function normalizeComponent (
  98. scriptExports,
  99. render,
  100. staticRenderFns,
  101. functionalTemplate,
  102. injectStyles,
  103. scopeId,
  104. moduleIdentifier, /* server only */
  105. shadowMode /* vue-cli only */
  106. ) {
  107. // Vue.extend constructor export interop
  108. var options = typeof scriptExports === 'function'
  109. ? scriptExports.options
  110. : scriptExports
  111. // render functions
  112. if (render) {
  113. options.render = render
  114. options.staticRenderFns = staticRenderFns
  115. options._compiled = true
  116. }
  117. // functional template
  118. if (functionalTemplate) {
  119. options.functional = true
  120. }
  121. // scopedId
  122. if (scopeId) {
  123. options._scopeId = 'data-v-' + scopeId
  124. }
  125. var hook
  126. if (moduleIdentifier) { // server build
  127. hook = function (context) {
  128. // 2.3 injection
  129. context =
  130. context || // cached call
  131. (this.$vnode && this.$vnode.ssrContext) || // stateful
  132. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  133. // 2.2 with runInNewContext: true
  134. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  135. context = __VUE_SSR_CONTEXT__
  136. }
  137. // inject component styles
  138. if (injectStyles) {
  139. injectStyles.call(this, context)
  140. }
  141. // register component module identifier for async chunk inferrence
  142. if (context && context._registeredComponents) {
  143. context._registeredComponents.add(moduleIdentifier)
  144. }
  145. }
  146. // used by ssr in case component is cached and beforeCreate
  147. // never gets called
  148. options._ssrRegister = hook
  149. } else if (injectStyles) {
  150. hook = shadowMode
  151. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  152. : injectStyles
  153. }
  154. if (hook) {
  155. if (options.functional) {
  156. // for template-only hot-reload because in that case the render fn doesn't
  157. // go through the normalizer
  158. options._injectStyles = hook
  159. // register for functioal component in vue file
  160. var originalRender = options.render
  161. options.render = function renderWithStyleInjection (h, context) {
  162. hook.call(context)
  163. return originalRender(h, context)
  164. }
  165. } else {
  166. // inject component registration as beforeCreate hook
  167. var existing = options.beforeCreate
  168. options.beforeCreate = existing
  169. ? [].concat(existing, hook)
  170. : [hook]
  171. }
  172. }
  173. return {
  174. exports: scriptExports,
  175. options: options
  176. }
  177. }
  178. /***/ }),
  179. /***/ 10:
  180. /***/ (function(module, exports) {
  181. module.exports = require("element-ui/lib/input");
  182. /***/ }),
  183. /***/ 2:
  184. /***/ (function(module, exports) {
  185. module.exports = require("element-ui/lib/utils/dom");
  186. /***/ }),
  187. /***/ 22:
  188. /***/ (function(module, exports) {
  189. module.exports = require("element-ui/lib/mixins/focus");
  190. /***/ }),
  191. /***/ 3:
  192. /***/ (function(module, exports) {
  193. module.exports = require("element-ui/lib/utils/util");
  194. /***/ }),
  195. /***/ 30:
  196. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  197. "use strict";
  198. /* harmony import */ var element_ui_src_utils_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
  199. /* harmony import */ var element_ui_src_utils_dom__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(element_ui_src_utils_dom__WEBPACK_IMPORTED_MODULE_0__);
  200. /* harmony import */ var element_ui_src_utils_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
  201. /* harmony import */ var element_ui_src_utils_util__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(element_ui_src_utils_util__WEBPACK_IMPORTED_MODULE_1__);
  202. /* harmony default export */ __webpack_exports__["a"] = ({
  203. bind: function bind(el, binding, vnode) {
  204. var interval = null;
  205. var startTime = void 0;
  206. var maxIntervals = Object(element_ui_src_utils_util__WEBPACK_IMPORTED_MODULE_1__["isMac"])() ? 100 : 200;
  207. var handler = function handler() {
  208. return vnode.context[binding.expression].apply();
  209. };
  210. var clear = function clear() {
  211. if (Date.now() - startTime < maxIntervals) {
  212. handler();
  213. }
  214. clearInterval(interval);
  215. interval = null;
  216. };
  217. Object(element_ui_src_utils_dom__WEBPACK_IMPORTED_MODULE_0__["on"])(el, 'mousedown', function (e) {
  218. if (e.button !== 0) return;
  219. startTime = Date.now();
  220. Object(element_ui_src_utils_dom__WEBPACK_IMPORTED_MODULE_0__["once"])(document, 'mouseup', clear);
  221. clearInterval(interval);
  222. interval = setInterval(handler, maxIntervals);
  223. });
  224. }
  225. });
  226. /***/ }),
  227. /***/ 87:
  228. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  229. "use strict";
  230. __webpack_require__.r(__webpack_exports__);
  231. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/input-number/src/input-number.vue?vue&type=template&id=42f8cf66&
  232. var render = function() {
  233. var _vm = this
  234. var _h = _vm.$createElement
  235. var _c = _vm._self._c || _h
  236. return _c(
  237. "div",
  238. {
  239. class: [
  240. "el-input-number",
  241. _vm.inputNumberSize ? "el-input-number--" + _vm.inputNumberSize : "",
  242. { "is-disabled": _vm.inputNumberDisabled },
  243. { "is-without-controls": !_vm.controls },
  244. { "is-controls-right": _vm.controlsAtRight }
  245. ],
  246. on: {
  247. dragstart: function($event) {
  248. $event.preventDefault()
  249. }
  250. }
  251. },
  252. [
  253. _vm.controls
  254. ? _c(
  255. "span",
  256. {
  257. directives: [
  258. {
  259. name: "repeat-click",
  260. rawName: "v-repeat-click",
  261. value: _vm.decrease,
  262. expression: "decrease"
  263. }
  264. ],
  265. staticClass: "el-input-number__decrease",
  266. class: { "is-disabled": _vm.minDisabled },
  267. attrs: { role: "button" },
  268. on: {
  269. keydown: function($event) {
  270. if (
  271. !("button" in $event) &&
  272. _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")
  273. ) {
  274. return null
  275. }
  276. return _vm.decrease($event)
  277. }
  278. }
  279. },
  280. [
  281. _c("i", {
  282. class:
  283. "el-icon-" + (_vm.controlsAtRight ? "arrow-down" : "minus")
  284. })
  285. ]
  286. )
  287. : _vm._e(),
  288. _vm.controls
  289. ? _c(
  290. "span",
  291. {
  292. directives: [
  293. {
  294. name: "repeat-click",
  295. rawName: "v-repeat-click",
  296. value: _vm.increase,
  297. expression: "increase"
  298. }
  299. ],
  300. staticClass: "el-input-number__increase",
  301. class: { "is-disabled": _vm.maxDisabled },
  302. attrs: { role: "button" },
  303. on: {
  304. keydown: function($event) {
  305. if (
  306. !("button" in $event) &&
  307. _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")
  308. ) {
  309. return null
  310. }
  311. return _vm.increase($event)
  312. }
  313. }
  314. },
  315. [
  316. _c("i", {
  317. class: "el-icon-" + (_vm.controlsAtRight ? "arrow-up" : "plus")
  318. })
  319. ]
  320. )
  321. : _vm._e(),
  322. _c("el-input", {
  323. ref: "input",
  324. attrs: {
  325. value: _vm.displayValue,
  326. placeholder: _vm.placeholder,
  327. disabled: _vm.inputNumberDisabled,
  328. size: _vm.inputNumberSize,
  329. max: _vm.max,
  330. min: _vm.min,
  331. name: _vm.name,
  332. label: _vm.label
  333. },
  334. on: {
  335. blur: _vm.handleBlur,
  336. focus: _vm.handleFocus,
  337. input: _vm.handleInput,
  338. change: _vm.handleInputChange
  339. },
  340. nativeOn: {
  341. keydown: [
  342. function($event) {
  343. if (
  344. !("button" in $event) &&
  345. _vm._k($event.keyCode, "up", 38, $event.key, ["Up", "ArrowUp"])
  346. ) {
  347. return null
  348. }
  349. $event.preventDefault()
  350. return _vm.increase($event)
  351. },
  352. function($event) {
  353. if (
  354. !("button" in $event) &&
  355. _vm._k($event.keyCode, "down", 40, $event.key, [
  356. "Down",
  357. "ArrowDown"
  358. ])
  359. ) {
  360. return null
  361. }
  362. $event.preventDefault()
  363. return _vm.decrease($event)
  364. }
  365. ]
  366. }
  367. })
  368. ],
  369. 1
  370. )
  371. }
  372. var staticRenderFns = []
  373. render._withStripped = true
  374. // CONCATENATED MODULE: ./packages/input-number/src/input-number.vue?vue&type=template&id=42f8cf66&
  375. // EXTERNAL MODULE: external "element-ui/lib/input"
  376. var input_ = __webpack_require__(10);
  377. var input_default = /*#__PURE__*/__webpack_require__.n(input_);
  378. // EXTERNAL MODULE: external "element-ui/lib/mixins/focus"
  379. var focus_ = __webpack_require__(22);
  380. var focus_default = /*#__PURE__*/__webpack_require__.n(focus_);
  381. // EXTERNAL MODULE: ./src/directives/repeat-click.js
  382. var repeat_click = __webpack_require__(30);
  383. // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/input-number/src/input-number.vue?vue&type=script&lang=js&
  384. //
  385. //
  386. //
  387. //
  388. //
  389. //
  390. //
  391. //
  392. //
  393. //
  394. //
  395. //
  396. //
  397. //
  398. //
  399. //
  400. //
  401. //
  402. //
  403. //
  404. //
  405. //
  406. //
  407. //
  408. //
  409. //
  410. //
  411. //
  412. //
  413. //
  414. //
  415. //
  416. //
  417. //
  418. //
  419. //
  420. //
  421. //
  422. //
  423. //
  424. //
  425. //
  426. //
  427. //
  428. //
  429. //
  430. //
  431. /* harmony default export */ var input_numbervue_type_script_lang_js_ = ({
  432. name: 'ElInputNumber',
  433. mixins: [focus_default()('input')],
  434. inject: {
  435. elForm: {
  436. default: ''
  437. },
  438. elFormItem: {
  439. default: ''
  440. }
  441. },
  442. directives: {
  443. repeatClick: repeat_click["a" /* default */]
  444. },
  445. components: {
  446. ElInput: input_default.a
  447. },
  448. props: {
  449. step: {
  450. type: Number,
  451. default: 1
  452. },
  453. stepStrictly: {
  454. type: Boolean,
  455. default: false
  456. },
  457. max: {
  458. type: Number,
  459. default: Infinity
  460. },
  461. min: {
  462. type: Number,
  463. default: -Infinity
  464. },
  465. value: {},
  466. disabled: Boolean,
  467. size: String,
  468. controls: {
  469. type: Boolean,
  470. default: true
  471. },
  472. controlsPosition: {
  473. type: String,
  474. default: ''
  475. },
  476. name: String,
  477. label: String,
  478. placeholder: String,
  479. precision: {
  480. type: Number,
  481. validator: function validator(val) {
  482. return val >= 0 && val === parseInt(val, 10);
  483. }
  484. }
  485. },
  486. data: function data() {
  487. return {
  488. currentValue: 0,
  489. userInput: null
  490. };
  491. },
  492. watch: {
  493. value: {
  494. immediate: true,
  495. handler: function handler(value) {
  496. var newVal = value === undefined ? value : Number(value);
  497. if (newVal !== undefined) {
  498. if (isNaN(newVal)) {
  499. return;
  500. }
  501. if (this.stepStrictly) {
  502. var stepPrecision = this.getPrecision(this.step);
  503. var precisionFactor = Math.pow(10, stepPrecision);
  504. newVal = Math.round(newVal / this.step) * precisionFactor * this.step / precisionFactor;
  505. }
  506. if (this.precision !== undefined) {
  507. newVal = this.toPrecision(newVal, this.precision);
  508. }
  509. }
  510. if (newVal >= this.max) newVal = this.max;
  511. if (newVal <= this.min) newVal = this.min;
  512. this.currentValue = newVal;
  513. this.userInput = null;
  514. this.$emit('input', newVal);
  515. }
  516. }
  517. },
  518. computed: {
  519. minDisabled: function minDisabled() {
  520. return this._decrease(this.value, this.step) < this.min;
  521. },
  522. maxDisabled: function maxDisabled() {
  523. return this._increase(this.value, this.step) > this.max;
  524. },
  525. numPrecision: function numPrecision() {
  526. var value = this.value,
  527. step = this.step,
  528. getPrecision = this.getPrecision,
  529. precision = this.precision;
  530. var stepPrecision = getPrecision(step);
  531. if (precision !== undefined) {
  532. if (stepPrecision > precision) {
  533. console.warn('[Element Warn][InputNumber]precision should not be less than the decimal places of step');
  534. }
  535. return precision;
  536. } else {
  537. return Math.max(getPrecision(value), stepPrecision);
  538. }
  539. },
  540. controlsAtRight: function controlsAtRight() {
  541. return this.controls && this.controlsPosition === 'right';
  542. },
  543. _elFormItemSize: function _elFormItemSize() {
  544. return (this.elFormItem || {}).elFormItemSize;
  545. },
  546. inputNumberSize: function inputNumberSize() {
  547. return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
  548. },
  549. inputNumberDisabled: function inputNumberDisabled() {
  550. return this.disabled || !!(this.elForm || {}).disabled;
  551. },
  552. displayValue: function displayValue() {
  553. if (this.userInput !== null) {
  554. return this.userInput;
  555. }
  556. var currentValue = this.currentValue;
  557. if (typeof currentValue === 'number') {
  558. if (this.stepStrictly) {
  559. var stepPrecision = this.getPrecision(this.step);
  560. var precisionFactor = Math.pow(10, stepPrecision);
  561. currentValue = Math.round(currentValue / this.step) * precisionFactor * this.step / precisionFactor;
  562. }
  563. if (this.precision !== undefined) {
  564. currentValue = currentValue.toFixed(this.precision);
  565. }
  566. }
  567. return currentValue;
  568. }
  569. },
  570. methods: {
  571. toPrecision: function toPrecision(num, precision) {
  572. if (precision === undefined) precision = this.numPrecision;
  573. return parseFloat(Math.round(num * Math.pow(10, precision)) / Math.pow(10, precision));
  574. },
  575. getPrecision: function getPrecision(value) {
  576. if (value === undefined) return 0;
  577. var valueString = value.toString();
  578. var dotPosition = valueString.indexOf('.');
  579. var precision = 0;
  580. if (dotPosition !== -1) {
  581. precision = valueString.length - dotPosition - 1;
  582. }
  583. return precision;
  584. },
  585. _increase: function _increase(val, step) {
  586. if (typeof val !== 'number' && val !== undefined) return this.currentValue;
  587. var precisionFactor = Math.pow(10, this.numPrecision);
  588. // Solve the accuracy problem of JS decimal calculation by converting the value to integer.
  589. return this.toPrecision((precisionFactor * val + precisionFactor * step) / precisionFactor);
  590. },
  591. _decrease: function _decrease(val, step) {
  592. if (typeof val !== 'number' && val !== undefined) return this.currentValue;
  593. var precisionFactor = Math.pow(10, this.numPrecision);
  594. return this.toPrecision((precisionFactor * val - precisionFactor * step) / precisionFactor);
  595. },
  596. increase: function increase() {
  597. if (this.inputNumberDisabled || this.maxDisabled) return;
  598. var value = this.value || 0;
  599. var newVal = this._increase(value, this.step);
  600. this.setCurrentValue(newVal);
  601. },
  602. decrease: function decrease() {
  603. if (this.inputNumberDisabled || this.minDisabled) return;
  604. var value = this.value || 0;
  605. var newVal = this._decrease(value, this.step);
  606. this.setCurrentValue(newVal);
  607. },
  608. handleBlur: function handleBlur(event) {
  609. this.$emit('blur', event);
  610. },
  611. handleFocus: function handleFocus(event) {
  612. this.$emit('focus', event);
  613. },
  614. setCurrentValue: function setCurrentValue(newVal) {
  615. var oldVal = this.currentValue;
  616. if (typeof newVal === 'number' && this.precision !== undefined) {
  617. newVal = this.toPrecision(newVal, this.precision);
  618. }
  619. if (newVal >= this.max) newVal = this.max;
  620. if (newVal <= this.min) newVal = this.min;
  621. if (oldVal === newVal) return;
  622. this.userInput = null;
  623. this.$emit('input', newVal);
  624. this.$emit('change', newVal, oldVal);
  625. this.currentValue = newVal;
  626. },
  627. handleInput: function handleInput(value) {
  628. this.userInput = value;
  629. },
  630. handleInputChange: function handleInputChange(value) {
  631. var newVal = value === '' ? undefined : Number(value);
  632. if (!isNaN(newVal) || value === '') {
  633. this.setCurrentValue(newVal);
  634. }
  635. this.userInput = null;
  636. },
  637. select: function select() {
  638. this.$refs.input.select();
  639. }
  640. },
  641. mounted: function mounted() {
  642. var innerInput = this.$refs.input.$refs.input;
  643. innerInput.setAttribute('role', 'spinbutton');
  644. innerInput.setAttribute('aria-valuemax', this.max);
  645. innerInput.setAttribute('aria-valuemin', this.min);
  646. innerInput.setAttribute('aria-valuenow', this.currentValue);
  647. innerInput.setAttribute('aria-disabled', this.inputNumberDisabled);
  648. },
  649. updated: function updated() {
  650. if (!this.$refs || !this.$refs.input) return;
  651. var innerInput = this.$refs.input.$refs.input;
  652. innerInput.setAttribute('aria-valuenow', this.currentValue);
  653. }
  654. });
  655. // CONCATENATED MODULE: ./packages/input-number/src/input-number.vue?vue&type=script&lang=js&
  656. /* harmony default export */ var src_input_numbervue_type_script_lang_js_ = (input_numbervue_type_script_lang_js_);
  657. // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
  658. var componentNormalizer = __webpack_require__(0);
  659. // CONCATENATED MODULE: ./packages/input-number/src/input-number.vue
  660. /* normalize component */
  661. var component = Object(componentNormalizer["a" /* default */])(
  662. src_input_numbervue_type_script_lang_js_,
  663. render,
  664. staticRenderFns,
  665. false,
  666. null,
  667. null,
  668. null
  669. )
  670. /* hot reload */
  671. if (false) { var api; }
  672. component.options.__file = "packages/input-number/src/input-number.vue"
  673. /* harmony default export */ var input_number = (component.exports);
  674. // CONCATENATED MODULE: ./packages/input-number/index.js
  675. /* istanbul ignore next */
  676. input_number.install = function (Vue) {
  677. Vue.component(input_number.name, input_number);
  678. };
  679. /* harmony default export */ var packages_input_number = __webpack_exports__["default"] = (input_number);
  680. /***/ })
  681. /******/ });