@v-c/input-number 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -166,7 +166,8 @@ var InputNumber = /* @__PURE__ */ defineComponent((props, { attrs, slots, expose
166
166
  inputValueRef.value = inputStr;
167
167
  inputValue.value = inputStr;
168
168
  if (!compositionRef.value) {
169
- const finalDecimal = getMiniDecimal(mergedParser(inputStr));
169
+ const finalValue = mergedParser(inputStr);
170
+ const finalDecimal = getMiniDecimal(finalValue);
170
171
  if (!finalDecimal.isNaN()) triggerValueUpdate(finalDecimal, true);
171
172
  }
172
173
  props.onInput?.(inputStr);
@@ -526,22 +527,31 @@ var InputNumber = /* @__PURE__ */ defineComponent((props, { attrs, slots, expose
526
527
  default: void 0
527
528
  },
528
529
  min: {
530
+ type: [String, Number],
529
531
  required: false,
530
532
  default: void 0
531
533
  },
532
534
  max: {
535
+ type: [String, Number],
533
536
  required: false,
534
537
  default: void 0
535
538
  },
536
539
  step: {
540
+ type: [String, Number],
537
541
  required: false,
538
542
  default: void 0
539
543
  },
540
544
  defaultValue: {
545
+ type: [String, Number],
541
546
  required: false,
542
547
  default: void 0
543
548
  },
544
549
  value: {
550
+ type: [
551
+ String,
552
+ Number,
553
+ null
554
+ ],
545
555
  required: false,
546
556
  default: void 0
547
557
  },
@@ -26,7 +26,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
26
26
  type: FunctionConstructor;
27
27
  required: true;
28
28
  };
29
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "step"[], "step", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
29
+ }>, () => import('vue/jsx-runtime').JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "step"[], "step", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
30
30
  prefixCls: {
31
31
  type: StringConstructor;
32
32
  required: true;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@v-c/input-number",
3
3
  "type": "module",
4
- "version": "1.1.0",
4
+ "version": "1.1.1",
5
5
  "description": "",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/antdv-next/vue-components/tree/next/packages/input-number",
@@ -32,7 +32,7 @@
32
32
  "dependencies": {
33
33
  "@v-c/input": "^1.1.2",
34
34
  "@v-c/mini-decimal": "^1.0.1",
35
- "@v-c/util": "^1.2.0"
35
+ "@v-c/util": "^1.3.0"
36
36
  },
37
37
  "scripts": {
38
38
  "build": "vite build",