diff --git a/package/component/src/component/input/index.vue b/package/component/src/component/input/index.vue index c455b521..8a002516 100644 --- a/package/component/src/component/input/index.vue +++ b/package/component/src/component/input/index.vue @@ -27,6 +27,8 @@ export interface InputProps { password?: boolean; size?: InputSize; maxlength?: number; + max?: number; + min?: number; } const props = withDefaults(defineProps(), { @@ -159,6 +161,8 @@ const showPassword = () => { :autofocus="autofocus" :autocomplete="autocomplete" :maxlength="maxlength" + :max="max" + :min="min" :readonly="readonly" @input="onInput" @change="onChange" diff --git a/package/component/src/component/inputNumber/index.vue b/package/component/src/component/inputNumber/index.vue index 3aca4e92..9b2fb340 100644 --- a/package/component/src/component/inputNumber/index.vue +++ b/package/component/src/component/inputNumber/index.vue @@ -135,11 +135,13 @@ const isNumber = function (num: any) {