feat: support binding context var (#1227)
Co-authored-by: Joel <iamjoel007@gmail.com>
This commit is contained in:
parent
59236b789f
commit
18c710c906
44 changed files with 711 additions and 77 deletions
|
|
@ -17,6 +17,7 @@ export type ConfirmCommonProps = {
|
|||
onConfirm?: () => void
|
||||
showOperate?: boolean
|
||||
showOperateCancel?: boolean
|
||||
confirmBtnClassName?: string
|
||||
confirmText?: string
|
||||
}
|
||||
|
||||
|
|
@ -29,6 +30,7 @@ const ConfirmCommon: FC<ConfirmCommonProps> = ({
|
|||
onConfirm,
|
||||
showOperate = true,
|
||||
showOperateCancel = true,
|
||||
confirmBtnClassName,
|
||||
confirmText,
|
||||
}) => {
|
||||
const { t } = useTranslation()
|
||||
|
|
@ -72,7 +74,7 @@ const ConfirmCommon: FC<ConfirmCommonProps> = ({
|
|||
}
|
||||
<Button
|
||||
type='primary'
|
||||
className=''
|
||||
className={confirmBtnClassName || ''}
|
||||
onClick={onConfirm}
|
||||
>
|
||||
{confirmText || CONFIRM_MAP[type].confirmText}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue