chore: 修复编译 warnning

This commit is contained in:
wuduoyi 2022-07-22 15:20:19 +08:00
parent 89dbd7a56d
commit 6f9c810e26
3 changed files with 8 additions and 1 deletions

View File

@ -73,6 +73,9 @@ npm run update-snapshot
# 先通过一下命令设置版本号
npm run version
# 如果是 beta 版本使用如下命令
# npm run version -- 2.0.1-beta.0 --no-git-tag-version
# 发布内部 registry
npm run publish-to-internal

View File

@ -228,7 +228,7 @@ export default class TableView extends React.Component<TableViewProps, object> {
renderTrs(trs: TrObject[]) {
const {data} = this.props;
const tr = trs.map((tr, rowIndex) =>
this.renderTr(resolveMappingObject(tr, data), rowIndex)
this.renderTr(resolveMappingObject(tr, data) as TrObject, rowIndex)
);
return tr;
}

View File

@ -6,6 +6,10 @@ npm run build --workspaces
rm -rf npm
mkdir npm
# 如果有问题可以注释掉这两行,不知道为啥会导致 cp -rf 挂掉
# rm -rf packages/amis/node_modules/.bin
# rm -rf packages/amis-ui/node_modules/.bin
cp -rf packages npm
cp package.json npm