mirror of
https://github.com/zhigang1992/react.git
synced 2026-04-24 04:15:54 +08:00
docs: show and copy the theme codes of user changes
This commit is contained in:
@@ -14,11 +14,11 @@ export interface Props {
|
||||
theme?: ThemeParam
|
||||
}
|
||||
|
||||
interface MergeObject {
|
||||
export interface MergeObject {
|
||||
[key: string]: any
|
||||
}
|
||||
|
||||
const isObject = (target: any) => target && typeof target === 'object'
|
||||
export const isObject = (target: any) => target && typeof target === 'object'
|
||||
|
||||
export const deepMergeObject = <T extends MergeObject,>(source: T, target: T): T => {
|
||||
if (!isObject(target) || !isObject(source)) return source
|
||||
|
||||
Reference in New Issue
Block a user