-
Notifications
You must be signed in to change notification settings - Fork 4k
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…
- Loading branch information
1 parent
bc7bf17
commit 1d5e06c
Showing
6 changed files
with
93 additions
and
9 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