"use strict";

var _interopRequireDefault = require("E:/OPU/\u524D\u7AEF\u5F00\u53D1\u9879\u76EE/opu-components-vue/node_modules/@babel/runtime/helpers/interopRequireDefault.js").default;

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

require("core-js/modules/es.number.constructor.js");

var _babelHelperVueJsxMergeProps = _interopRequireDefault(require("@vue/babel-helper-vue-jsx-merge-props"));

var _objectSpread2 = _interopRequireDefault(require("E:/OPU/\u524D\u7AEF\u5F00\u53D1\u9879\u76EE/opu-components-vue/node_modules/@babel/runtime/helpers/esm/objectSpread2.js"));

var _inputNumber = require("ant-design-vue/lib/input-number");

var _default = {
  name: "InputNumber",
  components: {},
  props: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _inputNumber.InputNumberProps), {}, {
    value: {
      type: [String, Number]
    }
  }),
  model: {
    prop: "value",
    event: "update"
  },
  data: function data() {
    return {};
  },
  watch: {},
  computed: {},
  created: function created() {},
  mounted: function mounted() {},
  updated: function updated() {},
  methods: {
    focus: function focus() {
      this.$refs.inputNumber.focus();
    },
    select: function select() {
      var _this = this;

      setTimeout(function () {
        _this.$refs.inputNumber.$refs.inputNumberRef.$refs.inputRef.select();
      }, 50);
    }
  },
  render: function render() {
    var _this2 = this;

    var h = arguments[0];
    var propsData = this.$options.propsData;
    var props = {
      style: {
        width: "100%"
      },
      ref: "inputNumber",
      props: (0, _objectSpread2.default)({}, propsData),
      on: {
        change: function change(value) {
          _this2.$emit("update", value);

          _this2.$emit("change", value);
        },
        pressEnter: function pressEnter(e) {
          _this2.$emit("inputPressEnter", e);
        }
      }
    };
    return h("a-input-number", (0, _babelHelperVueJsxMergeProps.default)([{}, props]));
  }
};
exports.default = _default;