[type] uni.showModel 中 icon 缺少error
Open
doubleCheck
- Dominant language
- JavaScript
- Stars
- 41.6k
- Forks
- 3.7k
- Avg merge
- 7h 6m
- Merged PRs (30d)
- 6
Description
**问题描述**
uni.showModel 中 icon 缺少error 的定义,建议利用多个interface 或 type 定义实现多个重载
```ts
type ShowModelArgs = IconModelArgs | StringIconModelArgs;
interface IconModelArgs {
icon: 'load'|'success'|'...'
}
interface StringIconModelArgs{
icon: string
}
```
**复现步骤**
使用typescript
Contributor guide
Assessment
This issue has not been assessed yet.