diff --git a/api-generator/components/calendar.js b/api-generator/components/calendar.js index 002269e4f..595067450 100644 --- a/api-generator/components/calendar.js +++ b/api-generator/components/calendar.js @@ -227,6 +227,12 @@ const CalendarProps = [ default: "body", description: 'A valid query selector or an HTMLElement to specify where the overlay gets attached. Special keywords are "body" for document body and "self" for the element itself.' }, + { + name: "placeholder", + type: "string", + default: "null", + description: "Placeholder text for the input." + }, { name: "id", type: "string", diff --git a/src/components/calendar/Calendar.d.ts b/src/components/calendar/Calendar.d.ts index c6e97b6ea..33ed32023 100755 --- a/src/components/calendar/Calendar.d.ts +++ b/src/components/calendar/Calendar.d.ts @@ -237,6 +237,10 @@ export interface CalendarProps { * When present, it specifies that an input field is read-only. */ readonly?: boolean | undefined; + /** + * Placeholder text for the input. + */ + placeholder?: string | undefined; /** * A valid query selector or an HTMLElement to specify where the overlay gets attached. Special keywords are 'body' for document body and 'self' for the element itself. * @see CalendarAppendToType diff --git a/src/components/calendar/Calendar.vue b/src/components/calendar/Calendar.vue index 058ae2858..d012f8c69 100755 --- a/src/components/calendar/Calendar.vue +++ b/src/components/calendar/Calendar.vue @@ -1,6 +1,6 @@