File tree Expand file tree Collapse file tree 2 files changed +20
-6
lines changed
zh/reference/default-theme Expand file tree Collapse file tree 2 files changed +20
-6
lines changed Original file line number Diff line number Diff line change @@ -544,14 +544,21 @@ module.exports = {
544
544
545
545
#### themePlugins.container
546
546
547
- - Type: ` { [name: 'tip' | 'warning' | 'danger' | 'details']: boolean} `
548
-
549
- - Default: ` { tip: true, warning: true, danger: true, details: true } `
547
+ - Type: ` Record<ContainerType, boolean> `
550
548
551
549
- Details:
552
550
553
551
Enable custom blocks that powered by [ @vuepress/plugin-container ] ( ../plugin/container.md ) or not.
554
552
553
+ ` ContainerType ` type is:
554
+
555
+ - ` tip `
556
+ - ` warning `
557
+ - ` danger `
558
+ - ` details `
559
+ - ` codeGroup `
560
+ - ` codeGroupItem `
561
+
555
562
- Also see:
556
563
- [ Default Theme > Markdown > Custom Blocks] ( ./markdown.md#custom-blocks )
557
564
Original file line number Diff line number Diff line change @@ -544,14 +544,21 @@ module.exports = {
544
544
545
545
#### themePlugins.container
546
546
547
- - 类型: ` { [name: 'tip' | 'warning' | 'danger' | 'details']: boolean} `
548
-
549
- - 默认值: ` { tip: true, warning: true, danger: true, details: true } `
547
+ - 类型: ` Record<ContainerType, boolean> `
550
548
551
549
- 详情:
552
550
553
551
是否启用由 [ @vuepress/plugin-container ] ( ../plugin/container.md ) 支持的自定义容器。
554
552
553
+ ` ContainerType ` 类型为:
554
+
555
+ - ` tip `
556
+ - ` warning `
557
+ - ` danger `
558
+ - ` details `
559
+ - ` codeGroup `
560
+ - ` codeGroupItem `
561
+
555
562
- 参考:
556
563
- [ 默认主题 > Markdown > 自定义容器] ( ./markdown.md#自定义容器 )
557
564
You can’t perform that action at this time.
0 commit comments