@v-c/input-number 1.0.2 → 1.0.4
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.
- package/dist/InputNumber.d.ts +1 -0
- package/dist/InputNumber.js +8 -2
- package/package.json +3 -3
package/dist/InputNumber.d.ts
CHANGED
|
@@ -56,6 +56,7 @@ export interface InputNumberProps<T extends ValueType = ValueType> {
|
|
|
56
56
|
onCompositionEnd?: (event: CompositionEvent) => void;
|
|
57
57
|
onBeforeInput?: (event: InputEvent) => void;
|
|
58
58
|
stringMode?: boolean;
|
|
59
|
+
placeholder?: string;
|
|
59
60
|
}
|
|
60
61
|
export interface InputNumberRef extends HTMLInputElement {
|
|
61
62
|
focus: (options?: InputFocusOptions) => void;
|
package/dist/InputNumber.js
CHANGED
|
@@ -267,9 +267,9 @@ var InputNumber_default = /* @__PURE__ */ defineComponent((props, { attrs, slots
|
|
|
267
267
|
});
|
|
268
268
|
watch(() => inputValue.value, () => {
|
|
269
269
|
if (props.formatter) restoreCursor();
|
|
270
|
-
});
|
|
270
|
+
}, { flush: "post" });
|
|
271
271
|
return () => {
|
|
272
|
-
const { prefixCls = defaults.prefixCls, classNames: classNames$1, styles, step = defaults.step, disabled, readOnly, controls = defaults.controls, mode = defaults.mode } = props;
|
|
272
|
+
const { prefixCls = defaults.prefixCls, classNames: classNames$1, styles, step = defaults.step, disabled, readOnly, controls = defaults.controls, mode = defaults.mode, placeholder } = props;
|
|
273
273
|
const mergedPrefixCls = prefixCls || defaults.prefixCls;
|
|
274
274
|
const { class: className, style, ...restAttrs } = attrs;
|
|
275
275
|
const mergedClassName = props.className || className;
|
|
@@ -387,6 +387,7 @@ var InputNumber_default = /* @__PURE__ */ defineComponent((props, { attrs, slots
|
|
|
387
387
|
"onInput": onInternalInput,
|
|
388
388
|
"disabled": disabled,
|
|
389
389
|
"readonly": readOnly,
|
|
390
|
+
"placeholder": placeholder,
|
|
390
391
|
"onFocus": onFocus,
|
|
391
392
|
"onBlur": onBlur,
|
|
392
393
|
"onKeydown": onKeyDown,
|
|
@@ -626,6 +627,11 @@ var InputNumber_default = /* @__PURE__ */ defineComponent((props, { attrs, slots
|
|
|
626
627
|
type: Boolean,
|
|
627
628
|
required: false,
|
|
628
629
|
default: void 0
|
|
630
|
+
},
|
|
631
|
+
placeholder: {
|
|
632
|
+
type: String,
|
|
633
|
+
required: false,
|
|
634
|
+
default: void 0
|
|
629
635
|
}
|
|
630
636
|
}, defaults),
|
|
631
637
|
name: "InputNumber",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@v-c/input-number",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.4",
|
|
5
5
|
"description": "",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"vue": "^3.0.0"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@v-c/input": "^1.0.2",
|
|
28
27
|
"@v-c/mini-decimal": "^1.0.1",
|
|
29
|
-
"@v-c/
|
|
28
|
+
"@v-c/input": "^1.0.2",
|
|
29
|
+
"@v-c/util": "^1.0.18"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"build": "vite build",
|