Skip to content

Commit 8aee4c7

Browse files
committed
docs: update layout
1 parent 51a4ceb commit 8aee4c7

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

packages/docs/.vuepress/config.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,19 @@ export default defineUserConfig<DefaultThemeOptions>({
4444
},
4545
},
4646
],
47+
[
48+
'@vuepress/container',
49+
{
50+
type: 'demo-rounded',
51+
render: function (tokens, idx) {
52+
if (tokens[idx].nesting === 1) {
53+
return '<div class="docs-example border rounded p-4">\n'
54+
} else {
55+
return '</div>\n'
56+
}
57+
},
58+
},
59+
],
4760
[
4861
'@vuepress/container',
4962
{

packages/docs/components/table.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Due to the widespread use of `<CTable>` elements across third-party widgets like
1111

1212
Using the most basic table CoreUI, here's how `<CTable>`-based tables look in CoreUI.
1313

14-
::: demo
14+
::: demo-rounded
1515
<CTable :columns="columns" :items="items" />
1616
:::
1717

@@ -694,7 +694,7 @@ These hoverable rows can also be combined with the striped variant:
694694

695695
Highlight a table row or cell by adding a `active` property.
696696

697-
::: demo
697+
::: demo-rounded
698698
<CTable :columns="columnsActiveTableExample" :items="itemsActiveTableExample" />
699699
:::
700700

0 commit comments

Comments
 (0)