@riil-frontend/component-del-dialog

1.0.3 • Public • Published

DelDialog

@riil-frontend/component-del-dialog

删除操作的两种确认提示框

API

BalloonConfirm 气泡确认提示框 可通过修改 title 用于其他气泡确认功能

参数名 说明 必填 类型 默认值 备注
trigger Balloon.tigger - any -
balloonProps Balloon 透传属性 - object -
title 气泡框的标题 - string 确认删除?
onOk 气泡框确定回调 - ()=>{} null
onCancel 气泡框取消回调 - ()=>{} null

openDelConfirm Riil 删除功能,规范化后的 Dialog 弹出方法

参数完全和 next Dialog.confirm 参数相同,这里只做了默认配置的设定:

{

title: '删除',

content: '删除后不可恢复,确定删除吗?',

okProps: { children: '确定' },

cancelProps: { children: '取消' },

messageProps: {

​ type: 'warning',

},

}

CHANGE LOG

Readme

Keywords

Package Sidebar

Install

npm i @riil-frontend/component-del-dialog

Weekly Downloads

6

Version

1.0.3

License

MIT

Unpacked Size

812 kB

Total Files

15

Last publish

Collaborators

  • riil-frontend