Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
curder committed Mar 18, 2024
1 parent 2ae92b9 commit 06ecc19
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/packages/laravel/prompts.md
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,18 @@ pause('Press ENTER to continue.');

## 输出类型

Laravel Prompts 当前支持在终端输出常见的输出类型,例如:

- 消息 `note(string $message, ?string $type = null)`
- 信息 `info(string $message)`
- 警告 `warning(string $message)`
- 错误 `error(string $message)`
- 提示 `alert(string $message)`
- 表格 `table(array|Collection $headers = [], array|Collection|null $rows = null)`
- 转动 `spin(Closure $callback, string $message = '')`
- 进度条 `progress(string $label, iterable|int $steps, ?Closure $callback = null, string $hint = '')`


### 消息 Note

使用 `note``info``warning``error``alert` 函数可用于显示信息性消息:
Expand Down

0 comments on commit 06ecc19

Please sign in to comment.