-
Notifications
You must be signed in to change notification settings - Fork 503
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(useconfig): fix useConfig merge error (#386)
* fix(useconfig): fix useConfig merge error * chore(usereceiver): update use
- Loading branch information
Showing
11 changed files
with
70 additions
and
88 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import defaultConfig from './zh_CN_config'; | ||
|
||
// TODO 替换 zh_CN_config 配置拆分,local内未走查,走查后更换,暂时使用现有配置 | ||
// import defaultLocale from '../_common/js/locale/zh_CN'; | ||
// export type Locale = typeof defaultLocale; | ||
|
||
export enum EAnimationType { | ||
ripple = 'ripple', | ||
expand = 'expand', | ||
fade = 'fade', | ||
} | ||
|
||
export const defaultClassPrefix = 't'; | ||
|
||
export const defaultAnimation: { | ||
include: string[]; | ||
exclude: string[]; | ||
} = { | ||
include: [EAnimationType.ripple, EAnimationType.expand, EAnimationType.fade], | ||
exclude: [], | ||
}; | ||
|
||
export const defaultGlobalConfig = { | ||
animation: defaultAnimation, | ||
classPrefix: defaultClassPrefix, | ||
...defaultConfig, | ||
}; | ||
|
||
export type GlobalConfig = typeof defaultGlobalConfig; | ||
|
||
export interface Config { | ||
globalConfig?: GlobalConfig; | ||
} |
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 was deleted.
Oops, something went wrong.
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