Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19202 from ant-design/master
chore: master merge feature
- Loading branch information
Showing
34 changed files
with
368 additions
and
79 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 |
---|---|---|
|
@@ -70,7 +70,7 @@ | |
|
||
.@{collapse-prefix-cls}-arrow { | ||
right: @padding-md; | ||
left: initial; | ||
left: auto; | ||
} | ||
} | ||
} | ||
|
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,30 @@ | ||
import createReactContext from '@ant-design/create-react-context'; | ||
import defaultRenderEmpty, { RenderEmptyHandler } from './renderEmpty'; | ||
import { Locale } from '../locale-provider'; | ||
|
||
export interface CSPConfig { | ||
nonce?: string; | ||
} | ||
|
||
export interface ConfigConsumerProps { | ||
getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement; | ||
rootPrefixCls?: string; | ||
getPrefixCls: (suffixCls: string, customizePrefixCls?: string) => string; | ||
renderEmpty: RenderEmptyHandler; | ||
csp?: CSPConfig; | ||
autoInsertSpaceInButton?: boolean; | ||
locale?: Locale; | ||
} | ||
|
||
export const ConfigContext = createReactContext<ConfigConsumerProps>({ | ||
// We provide a default function for Context without provider | ||
getPrefixCls: (suffixCls: string, customizePrefixCls?: string) => { | ||
if (customizePrefixCls) return customizePrefixCls; | ||
|
||
return `ant-${suffixCls}`; | ||
}, | ||
|
||
renderEmpty: defaultRenderEmpty, | ||
}); | ||
|
||
export const ConfigConsumer = ConfigContext.Consumer; |
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
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
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
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
Oops, something went wrong.