4.6.201910301109 • Published 5 years ago
@dfeidao/fd-aw000030 v4.6.201910301109
confirm确认提示
Params
Name | Type | Default value | describe |
---|---|---|---|
content | string | - | 提示的内容 |
title | string | - | 标题上的文字 |
yes | string | - | 确认按钮上的文字 |
no | string | - | 取消按钮上的文字 |
background | string | "#1890ff" | 背景颜色,默认为:#1890ff |
Example
import aw30, { ConfirmResult } from '@dfeidao/fd-aw000030';
const flag = await aw30('确定删除吗', '提示', '确定' , '取消', 'red');
switch (flag) {
case ConfirmResult.YES:
// todo
break;
case 'no':
// todo
break;
default: // cancel
// todo
break;
}
4.6.201910301109
5 years ago
4.6.201910261739
5 years ago