update: export toolbar defaultConfig

This commit is contained in:
itellyou 2022-01-25 20:52:36 +08:00
parent fc7d2d7303
commit 1b0896cff3
3 changed files with 18 additions and 5 deletions

View File

@ -17,7 +17,7 @@ export default Toolbar;
export {
ToolbarPlugin,
ToolbarComponent,
getToolbarDefaultConfig,
getToolbarDefaultConfig as getDefaultConfig,
fontFamilyDefaultData,
fontfamily,
};

View File

@ -334,4 +334,8 @@ const Toolbar: React.FC<ToolbarProps> = ({
};
export default Toolbar;
export { fontFamilyDefaultData, fontfamily };
export {
fontFamilyDefaultData,
fontfamily,
getToolbarDefaultConfig as getDefaultConfig,
};

View File

@ -1,10 +1,19 @@
import { fontFamilyDefaultData, fontfamily } from './config/toolbar';
import ToolbarPlugin, { ToolbarComponent } from './plugin';
import type { ToolbarOptions } from './plugin';
import Toolbar from './Toolbar';
import Toolbar, {
getDefaultConfig,
fontFamilyDefaultData,
fontfamily,
} from './Toolbar';
import type { ToolbarProps, GroupItemProps, ToolbarItemProps } from './Toolbar';
import './index.css';
export default Toolbar;
export { ToolbarPlugin, ToolbarComponent, fontFamilyDefaultData, fontfamily };
export {
ToolbarPlugin,
ToolbarComponent,
fontFamilyDefaultData,
fontfamily,
getDefaultConfig,
};
export type { ToolbarProps, GroupItemProps, ToolbarItemProps, ToolbarOptions };