mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-16 01:41:02 +08:00
178d8d6f19
* chore: init notification style * chore: comment style * chore: clean up recv deps * chore: trigger
29 lines
819 B
TypeScript
29 lines
819 B
TypeScript
// deps-lint-skip-all
|
|
import { genComponentStyleHook } from '../../_util/theme';
|
|
import type { FullToken, GenerateStyle } from '../../_util/theme';
|
|
|
|
/** Component only token. Which will handle additional calculation of alias token */
|
|
export interface ComponentToken {}
|
|
|
|
export interface NotificationToken extends FullToken<'Notification'> {}
|
|
|
|
// =============================== Base ===============================
|
|
const genBaseStyle: GenerateStyle<NotificationToken> = token => {
|
|
const { componentCls } = token;
|
|
|
|
return {
|
|
[componentCls]: {},
|
|
};
|
|
};
|
|
|
|
// ============================== Export ==============================
|
|
export default genComponentStyleHook(
|
|
'Notification',
|
|
token => [genBaseStyle(token)],
|
|
token => {
|
|
// Not error in lint tmp
|
|
console.log('>>', !!token);
|
|
return {};
|
|
},
|
|
);
|