Skip to content

Commit

Permalink
fix(docs): 修正文档内容
Browse files Browse the repository at this point in the history
  • Loading branch information
renzp94 committed Apr 24, 2024
1 parent 10e5699 commit 33921da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/pages/object/removeKey.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
传入一个对象和属性名,返回删除属性后的对象。

```ts
import { numberSeparate } from '@renzp/utils'
import { removeKey } from '@renzp/utils'

const a = { a: 1, b: 2 };
const c = removeKey(a, "a"); // c = { b: 2 } a = { a: 1, b: 2 }
Expand Down
12 changes: 6 additions & 6 deletions docs/pages/window/copyText.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
```ts
import { copyText } from '@renzp/utils'

* const status = await copyText('复制文本'); // true
* const text = await navigator.clipboard.readText()
* console.log(text); // 复制文本
const status = await copyText('复制文本'); // true
const text = await navigator.clipboard.readText()
console.log(text); // 复制文本
```

## 参数
Expand All @@ -25,6 +25,6 @@ import { copyText } from '@renzp/utils'

## 返回

| 参数 | 说明 | 类型 |
| ---- | -------------- | ----------------- |
| v | 复制操作的状态 | `Promise<boolean` |
| 参数 | 说明 | 类型 |
| ---- | -------------- | ------------------ |
| v | 复制操作的状态 | `Promise<boolean>` |

0 comments on commit 33921da

Please sign in to comment.