dcloudio / dcloudio/uni-app

[type] uni.showModel 中 icon 缺少error

Open
#2,487 7 comments 0 reactions 1 assignee Claimed by @StrivingRabbit View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.