From e5b496050bf05966c85d34e47d8f962374fbe229 Mon Sep 17 00:00:00 2001 From: novlan1 <1576271227@qq.com> Date: Mon, 19 Feb 2024 23:54:45 +0800 Subject: [PATCH] docs: add toast docs --- docs/zh/toast.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 docs/zh/toast.md diff --git a/docs/zh/toast.md b/docs/zh/toast.md new file mode 100644 index 00000000..0d2329a8 --- /dev/null +++ b/docs/zh/toast.md @@ -0,0 +1,31 @@ +[[toc]] + +## 引入 + +```ts +import { showLoading-web } from 't-comm'; + +// or + +import { showLoading-web} from 't-comm/lib/toast/index'; +``` + + +## `showLoading-web(options)` + + +**描述**:
显示loading Toast
+ +**参数**: + + +| 参数名 | 类型 | 描述 | +| --- | --- | --- | +| options |string
\| object
| 配置,传递字符串时候为message
| +| options.message |string
| 内容
| +| options.duration |number
| 展示时长(ms),值为 0 时,toast 不会消失
| +| options.forbidClick |boolean
| 是否禁止背景点击
| +| options.selector |string
| 自定义选择器
| + + +