diff --git a/components/action-sheet/action-sheet-options.provider.ts b/components/action-sheet/action-sheet-options.provider.ts index 14f12f65..48fcdf65 100644 --- a/components/action-sheet/action-sheet-options.provider.ts +++ b/components/action-sheet/action-sheet-options.provider.ts @@ -2,8 +2,8 @@ import { Injectable, TemplateRef } from '@angular/core'; @Injectable() export class ActionSheetOptions { - prefixCls?: string; - maskClosable?: boolean; + prefixCls?: string = 'am-action-sheet'; + maskClosable?: boolean = true; cancelButtonIndex?: number; destructiveButtonIndex?: number; title?: string | TemplateRef; @@ -22,6 +22,7 @@ export class ShareOption { @Injectable() export class ShareActionSheetWithOptions extends ActionSheetOptions { options: ShareOption[] | ShareOption[][]; + cancelButtonText?: string = 'Cancel'; } @Injectable() diff --git a/components/action-sheet/action-sheet.component.html b/components/action-sheet/action-sheet.component.html index c1fc6bf1..442a9983 100644 --- a/components/action-sheet/action-sheet.component.html +++ b/components/action-sheet/action-sheet.component.html @@ -1,74 +1,74 @@ -
-
+
+