diff --git a/api-generator/components/inputnumber.js b/api-generator/components/inputnumber.js index a26c00166..6cfaf9a73 100644 --- a/api-generator/components/inputnumber.js +++ b/api-generator/components/inputnumber.js @@ -131,6 +131,12 @@ const InputNumberProps = [ default: "true", description: "Determines whether the input field is empty." }, + { + name: "readonly", + type: "boolean", + default: "false", + description: "When present, it specifies that an input field is read-only." + }, { name: "inputStyle", type: "any", diff --git a/src/components/inputnumber/InputNumber.d.ts b/src/components/inputnumber/InputNumber.d.ts index a5aa33d31..4e6d3f0da 100755 --- a/src/components/inputnumber/InputNumber.d.ts +++ b/src/components/inputnumber/InputNumber.d.ts @@ -133,6 +133,10 @@ export interface InputNumberProps { * Default value is true. */ allowEmpty?: boolean | undefined; + /** + * When present, it specifies that an input field is read-only. + */ + readonly?: boolean | undefined; /** * Inline style of the input field. */ diff --git a/src/components/inputnumber/InputNumber.vue b/src/components/inputnumber/InputNumber.vue index 03774246a..2732188b1 100755 --- a/src/components/inputnumber/InputNumber.vue +++ b/src/components/inputnumber/InputNumber.vue @@ -1,6 +1,6 @@