From c6d34c9b602b860dcf615f18b72ff02cf9ffbdbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Fri, 12 Aug 2022 15:07:22 +0300 Subject: [PATCH] InputNumber | placeholder prop --- api-generator/components/inputnumber.js | 6 ++++++ src/components/inputnumber/InputNumber.d.ts | 4 ++++ src/components/inputnumber/InputNumber.vue | 6 +++++- src/views/inputnumber/InputNumberDoc.vue | 6 ++++++ 4 files changed, 21 insertions(+), 1 deletion(-) diff --git a/api-generator/components/inputnumber.js b/api-generator/components/inputnumber.js index 506cabd09..c0c9775ee 100644 --- a/api-generator/components/inputnumber.js +++ b/api-generator/components/inputnumber.js @@ -137,6 +137,12 @@ const InputNumberProps = [ default: "false", description: "When present, it specifies that an input field is read-only." }, + { + name: "placeholder", + type: "string", + default: "null", + description: "Placeholder text for the input." + }, { name: "inputId", type: "string", diff --git a/src/components/inputnumber/InputNumber.d.ts b/src/components/inputnumber/InputNumber.d.ts index 7acc5d005..d61fdd492 100755 --- a/src/components/inputnumber/InputNumber.d.ts +++ b/src/components/inputnumber/InputNumber.d.ts @@ -137,6 +137,10 @@ export interface InputNumberProps { * When present, it specifies that an input field is read-only. */ readonly?: boolean | undefined; + /** + * Placeholder text for the input. + */ + placeholder?: boolean | undefined; /** * Identifier of the focus input to match a label defined for the chips. */ diff --git a/src/components/inputnumber/InputNumber.vue b/src/components/inputnumber/InputNumber.vue index 3df4ce9d8..be53eb441 100755 --- a/src/components/inputnumber/InputNumber.vue +++ b/src/components/inputnumber/InputNumber.vue @@ -1,6 +1,6 @@