-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
emmmmmmmm
committed
Oct 17, 2023
1 parent
6166bd7
commit 5fcc7f1
Showing
4 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# usage-vitepress | ||
|
||
## 信息提示、块折叠、多tab | ||
|
||
::: code-group | ||
|
||
```text [提示] | ||
# ::: [info | tip | warning | danger | details] 标题名 | ||
info box | ||
# ::: | ||
``` | ||
|
||
```text [块折叠] | ||
# ::: details 标题名 | ||
内部可以展示任何markdown语法 | ||
# ::: | ||
``` | ||
|
||
```text [块折叠] | ||
# ::: code-group | ||
#```js [标题名] | ||
<!-- code --> | ||
#``` | ||
|
||
# ::: | ||
``` | ||
::: | ||
## 引入其他md文件 | ||
使用`<!-- @include: file-path -->`即可 | ||
## 在md中使用vue组件 | ||
> 对于style预处理器,需要先安装,比如sass、less、stylus | ||
**直接使用**: | ||
可直接使用vue的`script`、`style`标签,而模板则不需要template标签包裹 | ||
**引入组件**: | ||
先通过`script`标签import导入组件,然后直接使用该组件即可,和vue一样 |