feat(ActionSheet): add close-icon prop (#5016)
This commit is contained in:
@@ -26,6 +26,7 @@ export type ActionSheetProps = PopupMixinProps & {
|
||||
title?: string;
|
||||
actions?: ActionSheetItem[];
|
||||
duration: number;
|
||||
closeIcon: string;
|
||||
cancelText?: string;
|
||||
description?: string;
|
||||
closeOnClickAction?: boolean;
|
||||
@@ -52,7 +53,7 @@ function ActionSheet(
|
||||
return (
|
||||
<div class={[bem('header'), BORDER_BOTTOM]}>
|
||||
{title}
|
||||
<Icon name="close" class={bem('close')} onClick={onCancel} />
|
||||
<Icon name={props.closeIcon} class={bem('close')} onClick={onCancel} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -158,6 +159,10 @@ ActionSheet.props = {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
closeIcon: {
|
||||
type: String,
|
||||
default: 'close'
|
||||
},
|
||||
safeAreaInsetBottom: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
|
||||
Reference in New Issue
Block a user