Skip to content

Commit

Permalink
feat(export): 增加HomeBaseLayout 以及 HomeBaseLayout 导出
Browse files Browse the repository at this point in the history
  • Loading branch information
KuangPF committed Aug 4, 2023
1 parent 9d49cb8 commit 1c7aeed
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,11 @@
"url": "https://github.com/KuangPF/dumi-theme-antd"
},
"license": "MIT",
"main": "dist/index.js",
"types": "dist/types.d.ts",
"files": [
"dist"
],
"exports": {
"./loading": "./dist/common/Loading/index.js",
"./homeBaseLayout": "./dist/builtins/HomeBaseLayout/index.js"
},
"scripts": {
"build": "father build",
"build:docs": "cross-env APP_ROOT=example dumi build",
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useSiteToken.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { TinyColor } from '@ctrl/tinycolor';
import { theme } from 'antd';
import type { GlobalToken } from 'antd';
import { ConfigContext } from 'antd/es/config-provider';
import { ConfigContext } from 'antd/lib/config-provider';
import { useContext } from 'react';
import SiteContext from '../slots/SiteContext';
import type { SiteContextProps } from '../slots/SiteContext';
Expand Down
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { IAllThemeConfig } from './types';
import Loading from './common/Loading';
import HomeBaseLayout from './builtins/HomeBaseLayout';

/**
* @description provider declaration of config files
Expand All @@ -8,3 +10,5 @@ import { IAllThemeConfig } from './types';
export function defineThemeConfig(config: IAllThemeConfig): IAllThemeConfig {
return config;
}

export { Loading, HomeBaseLayout };

0 comments on commit 1c7aeed

Please sign in to comment.