forked from NG-ZORRO/ng-zorro-antd
-
Notifications
You must be signed in to change notification settings - Fork 1
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 customized modal config (current "autoBod…
…yPadding") close NG-ZORRO#1720
- Loading branch information
1 parent
30498c8
commit 22fed34
Showing
6 changed files
with
91 additions
and
7 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
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 { | ||
autoBodyPadding: boolean; // Whether add the padding-right and overflow to body automatically to play smoothly | ||
} |
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