Skip to content

Commit

Permalink
feat: locale 属性可选
Browse files Browse the repository at this point in the history
  • Loading branch information
bobihuang committed Nov 23, 2023
1 parent 61c9d27 commit 20f3ff6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/config-provider/config-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function getDefaultConfig() {

const ConfigContext = React.createContext<Config | null>(null)

export type ConfigProviderProps = Config
export type ConfigProviderProps = Omit<Config, 'locale'> & { locale?: Locale }

export const ConfigProvider: FC<ConfigProviderProps> = props => {
const { children, ...config } = props
Expand Down

0 comments on commit 20f3ff6

Please sign in to comment.