Skip to content

Commit efa0394

Browse files
committed
1
1 parent 3265988 commit efa0394

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

src/content/docs/astro-starlight/astro-starlight-encrypted.mdx

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,22 @@ import PasswordWrapper from '@components/PasswordWrapper.astro';
1111

1212
这段内容只有在输入正确密码后才能查看。
1313

14-
## 功能说明
14+
## 功能及使用
1515

1616
- 支持在 front-matter 中定义密码
17-
- 客户端加密/解密
18-
- 自动保存密码到 localStorage
17+
- 客户端加密/解密,自动保存密码到 localStorage
18+
19+
使用方法
20+
21+
```ts
22+
import PasswordWrapper from '@components/PasswordWrapper.astro';
23+
24+
<PasswordWrapper password="123456" passwordSubtitle="密码:123456">
25+
26+
这是加密内容
27+
28+
</PasswordWrapper>
29+
```
1930

2031
</PasswordWrapper>
2132

0 commit comments

Comments
 (0)