input-number.js 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740
  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 = 78);
  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. /***/ 19:
  180. /***/ (function(module, exports) {
  181. module.exports = require("element-ui/lib/mixins/focus");
  182. /***/ }),
  183. /***/ 2:
  184. /***/ (function(module, exports) {
  185. module.exports = require("element-ui/lib/utils/dom");
  186. /***/ }),
  187. /***/ 25:
  188. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  189. "use strict";
  190. /* harmony import */ var element_ui_src_utils_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
  191. /* 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__);
  192. /* harmony default export */ __webpack_exports__["a"] = ({
  193. bind: function bind(el, binding, vnode) {
  194. var interval = null;
  195. var startTime = void 0;
  196. var handler = function handler() {
  197. return vnode.context[binding.expression].apply();
  198. };
  199. var clear = function clear() {
  200. if (Date.now() - startTime < 100) {
  201. handler();
  202. }
  203. clearInterval(interval);
  204. interval = null;
  205. };
  206. Object(element_ui_src_utils_dom__WEBPACK_IMPORTED_MODULE_0__["on"])(el, 'mousedown', function (e) {
  207. if (e.button !== 0) return;
  208. startTime = Date.now();
  209. Object(element_ui_src_utils_dom__WEBPACK_IMPORTED_MODULE_0__["once"])(document, 'mouseup', clear);
  210. clearInterval(interval);
  211. interval = setInterval(handler, 100);
  212. });
  213. }
  214. });
  215. /***/ }),
  216. /***/ 78:
  217. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  218. "use strict";
  219. __webpack_require__.r(__webpack_exports__);
  220. // 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&
  221. var render = function() {
  222. var _vm = this
  223. var _h = _vm.$createElement
  224. var _c = _vm._self._c || _h
  225. return _c(
  226. "div",
  227. {
  228. class: [
  229. "el-input-number",
  230. _vm.inputNumberSize ? "el-input-number--" + _vm.inputNumberSize : "",
  231. { "is-disabled": _vm.inputNumberDisabled },
  232. { "is-without-controls": !_vm.controls },
  233. { "is-controls-right": _vm.controlsAtRight }
  234. ],
  235. on: {
  236. dragstart: function($event) {
  237. $event.preventDefault()
  238. }
  239. }
  240. },
  241. [
  242. _vm.controls
  243. ? _c(
  244. "span",
  245. {
  246. directives: [
  247. {
  248. name: "repeat-click",
  249. rawName: "v-repeat-click",
  250. value: _vm.decrease,
  251. expression: "decrease"
  252. }
  253. ],
  254. staticClass: "el-input-number__decrease",
  255. class: { "is-disabled": _vm.minDisabled },
  256. attrs: { role: "button" },
  257. on: {
  258. keydown: function($event) {
  259. if (
  260. !("button" in $event) &&
  261. _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")
  262. ) {
  263. return null
  264. }
  265. return _vm.decrease($event)
  266. }
  267. }
  268. },
  269. [
  270. _c("i", {
  271. class:
  272. "el-icon-" + (_vm.controlsAtRight ? "arrow-down" : "minus")
  273. })
  274. ]
  275. )
  276. : _vm._e(),
  277. _vm.controls
  278. ? _c(
  279. "span",
  280. {
  281. directives: [
  282. {
  283. name: "repeat-click",
  284. rawName: "v-repeat-click",
  285. value: _vm.increase,
  286. expression: "increase"
  287. }
  288. ],
  289. staticClass: "el-input-number__increase",
  290. class: { "is-disabled": _vm.maxDisabled },
  291. attrs: { role: "button" },
  292. on: {
  293. keydown: function($event) {
  294. if (
  295. !("button" in $event) &&
  296. _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")
  297. ) {
  298. return null
  299. }
  300. return _vm.increase($event)
  301. }
  302. }
  303. },
  304. [
  305. _c("i", {
  306. class: "el-icon-" + (_vm.controlsAtRight ? "arrow-up" : "plus")
  307. })
  308. ]
  309. )
  310. : _vm._e(),
  311. _c("el-input", {
  312. ref: "input",
  313. attrs: {
  314. value: _vm.displayValue,
  315. placeholder: _vm.placeholder,
  316. disabled: _vm.inputNumberDisabled,
  317. size: _vm.inputNumberSize,
  318. max: _vm.max,
  319. min: _vm.min,
  320. name: _vm.name,
  321. label: _vm.label
  322. },
  323. on: {
  324. blur: _vm.handleBlur,
  325. focus: _vm.handleFocus,
  326. input: _vm.handleInput,
  327. change: _vm.handleInputChange
  328. },
  329. nativeOn: {
  330. keydown: [
  331. function($event) {
  332. if (
  333. !("button" in $event) &&
  334. _vm._k($event.keyCode, "up", 38, $event.key, ["Up", "ArrowUp"])
  335. ) {
  336. return null
  337. }
  338. $event.preventDefault()
  339. return _vm.increase($event)
  340. },
  341. function($event) {
  342. if (
  343. !("button" in $event) &&
  344. _vm._k($event.keyCode, "down", 40, $event.key, [
  345. "Down",
  346. "ArrowDown"
  347. ])
  348. ) {
  349. return null
  350. }
  351. $event.preventDefault()
  352. return _vm.decrease($event)
  353. }
  354. ]
  355. }
  356. })
  357. ],
  358. 1
  359. )
  360. }
  361. var staticRenderFns = []
  362. render._withStripped = true
  363. // CONCATENATED MODULE: ./packages/input-number/src/input-number.vue?vue&type=template&id=42f8cf66&
  364. // EXTERNAL MODULE: external "element-ui/lib/input"
  365. var input_ = __webpack_require__(9);
  366. var input_default = /*#__PURE__*/__webpack_require__.n(input_);
  367. // EXTERNAL MODULE: external "element-ui/lib/mixins/focus"
  368. var focus_ = __webpack_require__(19);
  369. var focus_default = /*#__PURE__*/__webpack_require__.n(focus_);
  370. // EXTERNAL MODULE: ./src/directives/repeat-click.js
  371. var repeat_click = __webpack_require__(25);
  372. // 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&
  373. //
  374. //
  375. //
  376. //
  377. //
  378. //
  379. //
  380. //
  381. //
  382. //
  383. //
  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. /* harmony default export */ var input_numbervue_type_script_lang_js_ = ({
  421. name: 'ElInputNumber',
  422. mixins: [focus_default()('input')],
  423. inject: {
  424. elForm: {
  425. default: ''
  426. },
  427. elFormItem: {
  428. default: ''
  429. }
  430. },
  431. directives: {
  432. repeatClick: repeat_click["a" /* default */]
  433. },
  434. components: {
  435. ElInput: input_default.a
  436. },
  437. props: {
  438. step: {
  439. type: Number,
  440. default: 1
  441. },
  442. stepStrictly: {
  443. type: Boolean,
  444. default: false
  445. },
  446. max: {
  447. type: Number,
  448. default: Infinity
  449. },
  450. min: {
  451. type: Number,
  452. default: -Infinity
  453. },
  454. value: {},
  455. disabled: Boolean,
  456. size: String,
  457. controls: {
  458. type: Boolean,
  459. default: true
  460. },
  461. controlsPosition: {
  462. type: String,
  463. default: ''
  464. },
  465. name: String,
  466. label: String,
  467. placeholder: String,
  468. precision: {
  469. type: Number,
  470. validator: function validator(val) {
  471. return val >= 0 && val === parseInt(val, 10);
  472. }
  473. }
  474. },
  475. data: function data() {
  476. return {
  477. currentValue: 0,
  478. userInput: null
  479. };
  480. },
  481. watch: {
  482. value: {
  483. immediate: true,
  484. handler: function handler(value) {
  485. var newVal = value === undefined ? value : Number(value);
  486. if (newVal !== undefined) {
  487. if (isNaN(newVal)) {
  488. return;
  489. }
  490. if (this.stepStrictly) {
  491. var stepPrecision = this.getPrecision(this.step);
  492. var precisionFactor = Math.pow(10, stepPrecision);
  493. newVal = Math.round(newVal / this.step) * precisionFactor * this.step / precisionFactor;
  494. }
  495. if (this.precision !== undefined) {
  496. newVal = this.toPrecision(newVal, this.precision);
  497. }
  498. }
  499. if (newVal >= this.max) newVal = this.max;
  500. if (newVal <= this.min) newVal = this.min;
  501. this.currentValue = newVal;
  502. this.userInput = null;
  503. this.$emit('input', newVal);
  504. }
  505. }
  506. },
  507. computed: {
  508. minDisabled: function minDisabled() {
  509. return this._decrease(this.value, this.step) < this.min;
  510. },
  511. maxDisabled: function maxDisabled() {
  512. return this._increase(this.value, this.step) > this.max;
  513. },
  514. numPrecision: function numPrecision() {
  515. var value = this.value,
  516. step = this.step,
  517. getPrecision = this.getPrecision,
  518. precision = this.precision;
  519. var stepPrecision = getPrecision(step);
  520. if (precision !== undefined) {
  521. if (stepPrecision > precision) {
  522. console.warn('[Element Warn][InputNumber]precision should not be less than the decimal places of step');
  523. }
  524. return precision;
  525. } else {
  526. return Math.max(getPrecision(value), stepPrecision);
  527. }
  528. },
  529. controlsAtRight: function controlsAtRight() {
  530. return this.controls && this.controlsPosition === 'right';
  531. },
  532. _elFormItemSize: function _elFormItemSize() {
  533. return (this.elFormItem || {}).elFormItemSize;
  534. },
  535. inputNumberSize: function inputNumberSize() {
  536. return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
  537. },
  538. inputNumberDisabled: function inputNumberDisabled() {
  539. return this.disabled || (this.elForm || {}).disabled;
  540. },
  541. displayValue: function displayValue() {
  542. if (this.userInput !== null) {
  543. return this.userInput;
  544. }
  545. var currentValue = this.currentValue;
  546. if (typeof currentValue === 'number') {
  547. if (this.stepStrictly) {
  548. var stepPrecision = this.getPrecision(this.step);
  549. var precisionFactor = Math.pow(10, stepPrecision);
  550. currentValue = Math.round(currentValue / this.step) * precisionFactor * this.step / precisionFactor;
  551. }
  552. if (this.precision !== undefined) {
  553. currentValue = currentValue.toFixed(this.precision);
  554. }
  555. }
  556. return currentValue;
  557. }
  558. },
  559. methods: {
  560. toPrecision: function toPrecision(num, precision) {
  561. if (precision === undefined) precision = this.numPrecision;
  562. return parseFloat(Number(num).toFixed(precision));
  563. },
  564. getPrecision: function getPrecision(value) {
  565. if (value === undefined) return 0;
  566. var valueString = value.toString();
  567. var dotPosition = valueString.indexOf('.');
  568. var precision = 0;
  569. if (dotPosition !== -1) {
  570. precision = valueString.length - dotPosition - 1;
  571. }
  572. return precision;
  573. },
  574. _increase: function _increase(val, step) {
  575. if (typeof val !== 'number' && val !== undefined) return this.currentValue;
  576. var precisionFactor = Math.pow(10, this.numPrecision);
  577. // Solve the accuracy problem of JS decimal calculation by converting the value to integer.
  578. return this.toPrecision((precisionFactor * val + precisionFactor * step) / precisionFactor);
  579. },
  580. _decrease: function _decrease(val, step) {
  581. if (typeof val !== 'number' && val !== undefined) return this.currentValue;
  582. var precisionFactor = Math.pow(10, this.numPrecision);
  583. return this.toPrecision((precisionFactor * val - precisionFactor * step) / precisionFactor);
  584. },
  585. increase: function increase() {
  586. if (this.inputNumberDisabled || this.maxDisabled) return;
  587. var value = this.value || 0;
  588. var newVal = this._increase(value, this.step);
  589. this.setCurrentValue(newVal);
  590. },
  591. decrease: function decrease() {
  592. if (this.inputNumberDisabled || this.minDisabled) return;
  593. var value = this.value || 0;
  594. var newVal = this._decrease(value, this.step);
  595. this.setCurrentValue(newVal);
  596. },
  597. handleBlur: function handleBlur(event) {
  598. this.$emit('blur', event);
  599. },
  600. handleFocus: function handleFocus(event) {
  601. this.$emit('focus', event);
  602. },
  603. setCurrentValue: function setCurrentValue(newVal) {
  604. var oldVal = this.currentValue;
  605. if (typeof newVal === 'number' && this.precision !== undefined) {
  606. newVal = this.toPrecision(newVal, this.precision);
  607. }
  608. if (newVal >= this.max) newVal = this.max;
  609. if (newVal <= this.min) newVal = this.min;
  610. if (oldVal === newVal) return;
  611. this.userInput = null;
  612. this.$emit('input', newVal);
  613. this.$emit('change', newVal, oldVal);
  614. this.currentValue = newVal;
  615. },
  616. handleInput: function handleInput(value) {
  617. this.userInput = value;
  618. },
  619. handleInputChange: function handleInputChange(value) {
  620. var newVal = value === '' ? undefined : Number(value);
  621. if (!isNaN(newVal) || value === '') {
  622. this.setCurrentValue(newVal);
  623. }
  624. this.userInput = null;
  625. },
  626. select: function select() {
  627. this.$refs.input.select();
  628. }
  629. },
  630. mounted: function mounted() {
  631. var innerInput = this.$refs.input.$refs.input;
  632. innerInput.setAttribute('role', 'spinbutton');
  633. innerInput.setAttribute('aria-valuemax', this.max);
  634. innerInput.setAttribute('aria-valuemin', this.min);
  635. innerInput.setAttribute('aria-valuenow', this.currentValue);
  636. innerInput.setAttribute('aria-disabled', this.inputNumberDisabled);
  637. },
  638. updated: function updated() {
  639. if (!this.$refs || !this.$refs.input) return;
  640. var innerInput = this.$refs.input.$refs.input;
  641. innerInput.setAttribute('aria-valuenow', this.currentValue);
  642. }
  643. });
  644. // CONCATENATED MODULE: ./packages/input-number/src/input-number.vue?vue&type=script&lang=js&
  645. /* harmony default export */ var src_input_numbervue_type_script_lang_js_ = (input_numbervue_type_script_lang_js_);
  646. // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
  647. var componentNormalizer = __webpack_require__(0);
  648. // CONCATENATED MODULE: ./packages/input-number/src/input-number.vue
  649. /* normalize component */
  650. var component = Object(componentNormalizer["a" /* default */])(
  651. src_input_numbervue_type_script_lang_js_,
  652. render,
  653. staticRenderFns,
  654. false,
  655. null,
  656. null,
  657. null
  658. )
  659. /* hot reload */
  660. if (false) { var api; }
  661. component.options.__file = "packages/input-number/src/input-number.vue"
  662. /* harmony default export */ var input_number = (component.exports);
  663. // CONCATENATED MODULE: ./packages/input-number/index.js
  664. /* istanbul ignore next */
  665. input_number.install = function (Vue) {
  666. Vue.component(input_number.name, input_number);
  667. };
  668. /* harmony default export */ var packages_input_number = __webpack_exports__["default"] = (input_number);
  669. /***/ }),
  670. /***/ 9:
  671. /***/ (function(module, exports) {
  672. module.exports = require("element-ui/lib/input");
  673. /***/ })
  674. /******/ });