From 353af43e22406e31e9cc402fca77b1bfe641a995 Mon Sep 17 00:00:00 2001 From: Dan Popescu Date: Sun, 28 Jun 2020 03:29:05 +0300 Subject: [PATCH] feat(QDate): add day slot for content #7076, #7290 --- docs/src/examples/QDate/DaySlot.vue | 108 ++++++++++++++++++++++++++ docs/src/pages/vue-components/date.md | 6 ++ ui/dev/src/pages/form/date.vue | 86 ++++++++++++++++++++ ui/src/components/date/QDate.js | 19 +++-- ui/src/components/date/QDate.json | 53 +++++++++++++ 5 files changed, 266 insertions(+), 6 deletions(-) create mode 100644 docs/src/examples/QDate/DaySlot.vue diff --git a/docs/src/examples/QDate/DaySlot.vue b/docs/src/examples/QDate/DaySlot.vue new file mode 100644 index 000000000000..f3a16c7abb0f --- /dev/null +++ b/docs/src/examples/QDate/DaySlot.vue @@ -0,0 +1,108 @@ + + + + + diff --git a/docs/src/pages/vue-components/date.md b/docs/src/pages/vue-components/date.md index 6e6e4f79beff..be8e81d70c3f 100644 --- a/docs/src/pages/vue-components/date.md +++ b/docs/src/pages/vue-components/date.md @@ -108,6 +108,12 @@ The first example is using an array and the second example is using a function. +### Day scoped slot + +You can use the `day` scoped slot to render custom event markers or tooltips specific to each day. + + + ### Limiting options * You can use the `options` prop to limit user selection to certain times. diff --git a/ui/dev/src/pages/form/date.vue b/ui/dev/src/pages/form/date.vue index cd2e842fb17d..dd4cf2848f8b 100644 --- a/ui/dev/src/pages/form/date.vue +++ b/ui/dev/src/pages/form/date.vue @@ -133,6 +133,35 @@ /> +
+ Day slot +
+
+ + + +
+
Limited options
@@ -327,6 +356,39 @@ + +