Skip to content

Commit

Permalink
chore(ui): add father config
Browse files Browse the repository at this point in the history
  • Loading branch information
sunshinesmilelk committed May 7, 2024
1 parent 76cadd2 commit fab97b9
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
13 changes: 13 additions & 0 deletions .changeset/six-carpets-matter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
'@difizen/mana-ui': patch
'@difizen/mana-docs': patch
'@difizen/mana-app': patch
'@difizen/mana-common': patch
'@difizen/mana-core': patch
'@difizen/mana-l10n': patch
'@difizen/mana-observable': patch
'@difizen/mana-react': patch
'@difizen/mana-syringe': patch
---

chore: add father config
9 changes: 8 additions & 1 deletion packages/mana-ui/.fatherrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@ export default {
cjs: {
output: 'lib',
},
extraBabelPlugins: [],
extraBabelPlugins: [
['@babel/plugin-proposal-decorators', { legacy: true }],
['@babel/plugin-transform-flow-strip-types'],
['@babel/plugin-transform-class-properties', { loose: true }],
['@babel/plugin-transform-private-methods', { loose: true }],
['@babel/plugin-transform-private-property-in-object', { loose: true }],
'babel-plugin-parameter-decorator',
],
extraBabelPresets: [
[
'@babel/preset-react',
Expand Down
7 changes: 4 additions & 3 deletions packages/mana-ui/src/enhancers/antd-table/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ export type TableQueryParams = {

export type TableParams<
FormValues extends Record<string, any> | undefined = undefined,
> = FormValues extends Record<string, any>
? [TableQueryParams, FormValues?]
: [TableQueryParams];
> =
FormValues extends Record<string, any>
? [TableQueryParams, FormValues?]
: [TableQueryParams];

export type Pagination = {
current: number;
Expand Down

0 comments on commit fab97b9

Please sign in to comment.