From 406fcedfc1278fef6a0f6f065e2d0c51834a926a Mon Sep 17 00:00:00 2001 From: Ahad Birang Date: Tue, 2 Aug 2022 20:01:40 +0430 Subject: [PATCH] feat(``): support fallback default slot (#1405) --- docs/components/content/ExampleTheTitle.vue | 2 +- docs/components/content/MyButton.vue | 2 +- docs/content/3.guide/1.writing/3.mdc.md | 4 ++-- docs/content/4.api/1.components/5.markdown.md | 3 +-- docs/content/6.blog/1.announcing-v2.md | 2 +- src/runtime/components/Markdown.vue | 18 ++++++++++++------ test/basic.test.ts | 6 ++++++ .../basic/components/content/Alert.vue | 2 +- .../basic/components/content/TestMarkdown.vue | 14 ++++++++++++++ .../basic/content/_partial/markdown.md | 3 +++ 10 files changed, 42 insertions(+), 14 deletions(-) create mode 100644 test/fixtures/basic/components/content/TestMarkdown.vue create mode 100644 test/fixtures/basic/content/_partial/markdown.md diff --git a/docs/components/content/ExampleTheTitle.vue b/docs/components/content/ExampleTheTitle.vue index eac4512a0..9a942d655 100644 --- a/docs/components/content/ExampleTheTitle.vue +++ b/docs/components/content/ExampleTheTitle.vue @@ -1,5 +1,5 @@ diff --git a/docs/components/content/MyButton.vue b/docs/components/content/MyButton.vue index 56f5f142b..0a190d70f 100644 --- a/docs/components/content/MyButton.vue +++ b/docs/components/content/MyButton.vue @@ -9,7 +9,7 @@ defineProps({ diff --git a/docs/content/3.guide/1.writing/3.mdc.md b/docs/content/3.guide/1.writing/3.mdc.md index e4d6b697f..0b18362da 100755 --- a/docs/content/3.guide/1.writing/3.mdc.md +++ b/docs/content/3.guide/1.writing/3.mdc.md @@ -115,7 +115,7 @@ The `unwrap` prop accepts an HTML tag that will be used to unwrap the content, u ```html [TheTitle.vue] ``` @@ -189,7 +189,7 @@ defineProps(['type']) ``` diff --git a/docs/content/4.api/1.components/5.markdown.md b/docs/content/4.api/1.components/5.markdown.md index ea1f3464a..fc8d57de9 100644 --- a/docs/content/4.api/1.components/5.markdown.md +++ b/docs/content/4.api/1.components/5.markdown.md @@ -10,9 +10,8 @@ It is useful when creating components that you want to use in your Markdown cont ## Props - `use`{lang=ts}: The slot to bind on, you must provide a `use`{lang=ts} via `$slots.{your_slot}`{lang=ts} in `