Skip to content

Commit 06892d5

Browse files
committed
fix: make zhlint happy
1 parent c398bc1 commit 06892d5

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/api/application.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -629,9 +629,9 @@ console.log(app.config)
629629

630630
配置此应用中通过 [useId()](/api/general#useid) 生成的所有 ID 的前缀。
631631

632-
- **类型:** `string`
632+
- **类型** `string`
633633

634-
- **默认值:** `undefined`
634+
- **默认值** `undefined`
635635

636636
- **示例**
637637

src/api/reactivity-core.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,15 +433,15 @@
433433

434434
第二个参数是在发生变化时要调用的回调函数。这个回调函数接受三个参数:新值、旧值,以及一个用于注册副作用清理的回调函数。该回调函数会在副作用下一次重新执行前调用,可以用来清除无效的副作用,例如等待中的异步请求。
435435

436-
当侦听多个来源时,回调函数接受两个数组,分别对应来源数组中的新值和旧值。
436+
当侦听多个来源时,回调函数接受两个数组,分别对应来源数组中的新值和旧值。
437437

438438
第三个可选的参数是一个对象,支持以下这些选项:
439439

440440
- **`immediate`**:在侦听器创建时立即触发回调。第一次调用时旧值是 `undefined`
441441
- **`deep`**:如果源是对象,强制深度遍历,以便在深层级变更时触发回调。在 3.5+ 中,此参数还可以是指示最大遍历深度的数字。参考[深层侦听器](/guide/essentials/watchers#deep-watchers)。
442442
- **`flush`**:调整回调函数的刷新时机。参考[回调的刷新时机](/guide/essentials/watchers#callback-flush-timing)及 [`watchEffect()`](/api/reactivity-core#watcheffect)。
443443
- **`onTrack / onTrigger`**:调试侦听器的依赖。参考[调试侦听器](/guide/extras/reactivity-in-depth#watcher-debugging)。
444-
- **`once`**3.4+回调函数只会运行一次。侦听器将在回调函数首次运行后自动停止。
444+
- **`once`**(3.4+) 回调函数只会运行一次。侦听器将在回调函数首次运行后自动停止。
445445

446446
与 [`watchEffect()`](#watcheffect) 相比,`watch()` 使我们可以:
447447

src/guide/components/async.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ const AsyncComp = defineAsyncComponent({
176176
})
177177
```
178178

179-
也可以是多个事件类型的列表:
179+
也可以是多个事件类型的列表
180180

181181
```js
182182
hydrateOnInteraction(['wheel', 'mouseover'])

0 commit comments

Comments
 (0)