Skip to content

Commit 65b5e15

Browse files
author
zuofenghua
committed
chore: fix docs
1 parent a9df58a commit 65b5e15

File tree

4 files changed

+15
-17
lines changed

4 files changed

+15
-17
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"screenfull": "^5.1.0",
6969
"ts-jest": "^25.2.1",
7070
"typescript": "^4.1.5",
71-
"vitepress-for-component": "^0.14.2",
71+
"vitepress-for-component": "^0.14.4",
7272
"vue": "^3.0.1",
7373
"whatwg-fetch": "^3.5.0"
7474
},

src/useFullscreen/index.en-US.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ const [isFullscreen, { setFull, exitFull, toggleFull }] = useFullScreen(target,
3737

3838
### Params
3939

40-
| Property | Description | Type | Default |
41-
| -------- | ------------------------- | ---------------------------------------------------------------- | ------- |
42-
| target | DOM element or Ref Object | `HTMLElement` \| `() => HTMLElement` \| `React.MutableRefObject` | - |
43-
| options | setting(optional) | `Options` | - |
40+
| Property | Description | Type | Default |
41+
| -------- | ------------------------- | ------------------------------------ | ------- |
42+
| target | DOM element or Ref Object | `HTMLElement` \| `() => HTMLElement` |
43+
| options | setting(optional) | `Options` | - |
4444

4545
### Options
4646

src/useFullscreen/index.zh-CN.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,14 @@ Api 与[ahooks](https://ahooks.js.org/zh-CN/hooks/dom/use-fullscreen)一致。
1515

1616
### 基本用法
1717

18-
<demo
19-
src="./demo/demo1.vue"
18+
<demo src="./demo/demo1.vue"
2019
language="vue"
2120
desc="使用 ref 设置需要全屏的元素。">
2221
</demo>
2322

2423
### 传入目标元素
2524

26-
<demo
27-
src="./demo/demo2.vue"
25+
<demo src="./demo/demo2.vue"
2826
language="vue"
2927
desc="传入一个元素。">
3028
</demo>
@@ -37,10 +35,10 @@ const [isFullscreen, { setFull, exitFull, toggleFull }] = useFullScreen(target,
3735

3836
### Params
3937

40-
| 参数 | 说明 | 类型 | 默认值 |
41-
| ------- | --------------------- | ---------------------------------------------------------------- | ------ |
42-
| target | DOM 节点或者 Ref 对象 | `HTMLElement` \| `() => HTMLElement` \| `React.MutableRefObject` | - |
43-
| options | 设置(可选) | `Options` | - |
38+
| 参数 | 说明 | 类型 | 默认值 |
39+
| ------- | --------------------- | ------------------------------------ | ------ |
40+
| target | DOM 节点或者 Ref 对象 | `HTMLElement` \| `() => HTMLElement` |
41+
| options | 设置(可选) | `Options` | - |
4442

4543
### Options
4644

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7581,10 +7581,10 @@ vite@^2.0.1:
75817581
optionalDependencies:
75827582
fsevents "~2.3.1"
75837583

7584-
vitepress-for-component@^0.14.2:
7585-
version "0.14.2"
7586-
resolved "https://registry.yarnpkg.com/vitepress-for-component/-/vitepress-for-component-0.14.2.tgz#844615c4a300b1c1632fdd2a6601ba5df72baf55"
7587-
integrity sha512-lNd9ErmaRYaSVWiz01NN9/+A168LQkfx0GagujCEa/zXAXAbsrzKQ+Vfu+89ib6B9JVUGCmxbq1427KSUu4YGg==
7584+
vitepress-for-component@^0.14.4:
7585+
version "0.14.4"
7586+
resolved "https://registry.yarnpkg.com/vitepress-for-component/-/vitepress-for-component-0.14.4.tgz#6dee452d2740464847976bf5026e1415f2a7beee"
7587+
integrity sha512-k+o12vEMmERp4UwOwEjyIuzuXI6Kqql/5xZn5lyjg3ODQI8CyMyuRjd+7XUISUOI/CQx9GCasmQ9O7RCeDml6g==
75887588
dependencies:
75897589
"@docsearch/css" "^1.0.0-alpha.28"
75907590
"@docsearch/js" "^1.0.0-alpha.28"

0 commit comments

Comments
 (0)