Skip to content

Commit

Permalink
fix: 🐛 修改组件库导出方式
Browse files Browse the repository at this point in the history
  • Loading branch information
G committed Dec 15, 2023
1 parent 1301467 commit 49c8b0e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 38 deletions.
7 changes: 7 additions & 0 deletions packages/gbeata/.fatherrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ export default defineConfig({
ignores: [
'src/**/*.md', // 避免打包demo文件到npm包里面
],
output: 'es',
},
cjs: {
ignores: [
'src/**/*.md', // 避免打包demo文件到npm包里面
],
output: 'lib',
},
// 打包的时候自动引入antd的样式链接
extraBabelPlugins: [
Expand Down
39 changes: 1 addition & 38 deletions packages/gbeata/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import GTable, {
} from './GTable';

import { default as GTagGroup } from './GTagGroup';
export * from './index.d';
export {
GAction,
GButton,
Expand Down Expand Up @@ -55,41 +56,3 @@ export {
success,
warning,
};

const init = {
success,
info,
GCard,
GCtrl,
error,
warning,
GTagGroup,
GButton,
setPermissionList,
GForm,
registerField,
GFields,
GField,
GDialog,
setGlobalDialogField,
GDialogForm,
GSearch,
setSearchDefaultVisibleRow,
GCardGroup,
GSearchTable,
Selection,
SelectionAll,
setSearchTableDefaultValue,
GSelect,
GTable,
setDefaultDataFilter,
setDefaultSearchFilter,
registerTableRender,
setTableDefaultProps,
GAction,
registerAction,
GSearchList,
};

export default init;
// export * from './index.d';

0 comments on commit 49c8b0e

Please sign in to comment.