diff --git a/docs/state/useTitle.md b/docs/state/useTitle.md index 6e6974a..e98f112 100644 --- a/docs/state/useTitle.md +++ b/docs/state/useTitle.md @@ -1,62 +1,20 @@ # ``useTitle`` --- -用于设置页面的标签页标题 +Composition Function that sets title of the page -## API - -```typescript -export declare function useTitle( - title: string, - restoreOnUnMount?: boolean -): (title: string) => void; -``` - -## Params - -| 参数 | 说明 | 类型 | 默认值 | -| ---------------- | ------------------------ | ------- | ------ | -| title | 标签页标题 | string | | -| restoreOnUnMount | 组件卸载时是否恢复原标题 | boolean | false | - -## Methods - -该 Hook 返回以下函数: - -| 函数签名 | 描述 | -| ------------------------ | ---------------- | -| (title: string) => void | 用于设置页面标题 | - -## Example - - - - -## Code +## Usage --- ```vue - - +