fix: 修复表单项有多个的时候回车不提交问题; ci 时自动生成 sdk (#1387)

This commit is contained in:
吴多益 2021-01-14 11:03:11 +08:00 committed by GitHub
parent 625f2f1691
commit 1e3a921a9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View File

@ -19,6 +19,12 @@ cp -r gh-pages/zh-CN/docs/* gh-pages/docs/
cp ./schema.json ./gh-pages
sh build.sh
tar -zcvf sdk.tar.gz sdk
mv sdk.tar.gz gh-pages/
# 不走 cdn 了
# node ./scripts/upload2cdn.js $1 $2

View File

@ -1343,15 +1343,12 @@ export default class Form extends React.Component<FormProps, object> {
<code>{JSON.stringify(store.data, null, 2)}</code>
</pre>
) : null}
<Spinner show={store.loading} overlay />
{this.renderFormItems({
tabs,
fieldSet,
controls
})}
{render(
'modal',
{
@ -1367,7 +1364,6 @@ export default class Form extends React.Component<FormProps, object> {
show: store.dialogOpen
}
)}
{render(
'modal',
{
@ -1383,6 +1379,8 @@ export default class Form extends React.Component<FormProps, object> {
show: store.drawerOpen
}
)}
{/* 实现回车自动提交 */}
<input type="submit" style={{display: 'none'}} />
</WrapperComponent>
);
}