Skip to content

Commit 6f538dc

Browse files
authored
chore: use father plugin (#1009)
* chore: use plugin * chore: fix type * chore: clean up
1 parent da571ea commit 6f538dc

File tree

4 files changed

+7
-12
lines changed

4 files changed

+7
-12
lines changed

.fatherrc.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
import { defineConfig } from 'father';
22

33
export default defineConfig({
4-
platform: 'browser',
5-
cjs: { output: 'lib' },
6-
esm: {
7-
output: 'es',
8-
alias: { 'rc-util/lib': 'rc-util/es' },
9-
},
10-
});
4+
plugins: ['@rc-component/father-plugin'],
5+
});

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,16 @@
6060
"rc-util": "^5.27.1"
6161
},
6262
"devDependencies": {
63+
"@rc-component/father-plugin": "^1.0.2",
6364
"@testing-library/jest-dom": "^5.16.5",
6465
"@testing-library/react": "^12.1.5",
6566
"@types/enzyme": "^3.10.5",
6667
"@types/react": "^17.0.35",
6768
"@types/react-dom": "^18.0.5",
6869
"@types/responselike": "^1.0.0",
70+
"@types/testing-library__jest-dom": "^5.14.5",
6971
"@umijs/fabric": "^3.0.0",
72+
"@vitest/coverage-c8": "^0.31.0",
7073
"cross-env": "^7.0.0",
7174
"dumi": "^2.1.3",
7275
"enzyme": "^3.1.0",
@@ -78,6 +81,7 @@
7881
"glob": "^7.1.6",
7982
"husky": "^8.0.3",
8083
"immutability-helper": "^3.0.0",
84+
"jsdom": "^22.0.0",
8185
"less": "^3.10.3",
8286
"lint-staged": "^13.1.0",
8387
"np": "^7.0.0",
@@ -96,9 +100,6 @@
96100
"regenerator-runtime": "^0.13.7",
97101
"styled-components": "^5.0.1",
98102
"typescript": "^4.8.4",
99-
"@vitest/coverage-c8": "^0.31.0",
100-
"@types/testing-library__jest-dom": "^5.14.5",
101-
"jsdom": "^22.0.0",
102103
"vitest": "^0.31.0"
103104
},
104105
"lint-staged": {

src/Body/BodyRow.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,6 @@ function BodyRow<RecordType extends { children?: readonly RecordType[] }>(
193193
dataIndex={dataIndex}
194194
render={render}
195195
shouldCellUpdate={column.shouldCellUpdate}
196-
expanded={appendCellNode && expanded}
197196
{...fixedInfo}
198197
appendNode={appendCellNode}
199198
additionalProps={additionalCellProps}

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export {
1111
Summary,
1212
Column,
1313
ColumnGroup,
14-
TableProps,
14+
type TableProps,
1515
INTERNAL_COL_DEFINE,
1616
EXPAND_COLUMN,
1717
INTERNAL_HOOKS,

0 commit comments

Comments
 (0)