Button Row
fun ButtonRow(id: String, cancelText: String = "取消", confirmText: String = "确定", cancelButtonType: ButtonType = ButtonType.DEFAULT, confirmButtonType: ButtonType = ButtonType.PRIMARY, onCancelClick: suspend CoroutineScope.() -> Boolean = { true }, onConfirmClick: suspend CoroutineScope.() -> Boolean = { true })
双按钮行组件(取消 + 确定),供各 Builder 复用 两个按钮等宽排列,中间间隔 32dp
Parameters
id
String 所在弹窗的唯一标识,用于回调内部关闭弹窗
cancel Text
String 取消按钮文字,默认"取消"
confirm Text
String 确定按钮文字,默认"确定"
cancel Button Type
ButtonType 取消按钮样式,默认 ButtonType.DEFAULT
confirm Button Type
ButtonType 确定按钮样式,默认 ButtonType.PRIMARY
on Cancel Click
取消按钮点击回调,返回 true 则自动关闭弹窗
on Confirm Click
确定按钮点击回调,返回 true 则自动关闭弹窗