-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(module: modal): support
nzMask
and nzMaskClosable
global con…
…fig (#3033)
- Loading branch information
1 parent
7c52774
commit 12cac9e
Showing
6 changed files
with
153 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,7 @@ | ||
import { InjectionToken } from '@angular/core'; | ||
|
||
export const NZ_MODAL_DEFAULT_CONFIG: NzModalConfig = { | ||
autoBodyPadding: true | ||
}; | ||
|
||
export const NZ_MODAL_CONFIG = new InjectionToken<NzModalConfig>('NzModalConfig', { | ||
providedIn: 'root', | ||
factory: () => NZ_MODAL_DEFAULT_CONFIG // Default config | ||
}); | ||
|
||
export interface NzModalConfig { | ||
/** | ||
* @deprecated used {@link BlockScrollStrategy} instead. | ||
*/ | ||
autoBodyPadding?: boolean; // Whether add the padding-right and overflow to body automatically to play smoothly | ||
nzMask?: boolean; | ||
nzMaskClosable?: boolean; | ||
} | ||
export const NZ_MODAL_CONFIG = new InjectionToken<NzModalConfig>('NZ_MODAL_CONFIG'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters