From 871c149f6ecd9642a70b3757c9605363d3a0f32c Mon Sep 17 00:00:00 2001 From: portikM Date: Tue, 31 Oct 2023 17:09:00 -0400 Subject: [PATCH] fix(kcard): deprecate body slot instead of removing [KHCP-8971] --- docs/components/collapse.md | 8 ++++---- docs/guide/migrating-to-version-9.md | 2 +- sandbox/pages/SandboxCard.vue | 19 +++++++++++++++++++ src/components/KCard/KCard.vue | 20 ++++++++++++++++++-- src/components/KCatalog/KCatalogItem.vue | 14 +++++--------- src/components/KSlideout/KSlideout.vue | 6 ++---- 6 files changed, 49 insertions(+), 20 deletions(-) diff --git a/docs/components/collapse.md b/docs/components/collapse.md index d26d7fa182..1b8aaa52a8 100644 --- a/docs/components/collapse.md +++ b/docs/components/collapse.md @@ -166,9 +166,9 @@ To set the default state (collapsed or expanded) without binding to v-model you - + @@ -182,10 +182,10 @@ To set the default state (collapsed or expanded) without binding to v-model you - + ``` diff --git a/docs/guide/migrating-to-version-9.md b/docs/guide/migrating-to-version-9.md index 8fa8041e5a..4c8deedd51 100644 --- a/docs/guide/migrating-to-version-9.md +++ b/docs/guide/migrating-to-version-9.md @@ -101,7 +101,7 @@ Kongponents styles are no longer designed to be utilized standalone, separately #### Slots * `statusHat` slot has been removed -* `body` slot has been removed. Use `default` slot instead +* `body` slot has been deprecated in favor of `default` slot * `notifications` slot has been removed #### Events diff --git a/sandbox/pages/SandboxCard.vue b/sandbox/pages/SandboxCard.vue index c9b9a5c70d..d00bda22ed 100644 --- a/sandbox/pages/SandboxCard.vue +++ b/sandbox/pages/SandboxCard.vue @@ -96,6 +96,25 @@ + + + + + + When both `default` and `body` slots are present, `default` slot will be used. + + + + + + diff --git a/src/components/KCard/KCard.vue b/src/components/KCard/KCard.vue index fd62be5efd..11d6516f51 100644 --- a/src/components/KCard/KCard.vue +++ b/src/components/KCard/KCard.vue @@ -22,10 +22,12 @@
-

{{ content }}

+ +

{{ content }}

+