mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
fix: 修复表单项有多个的时候回车不提交问题; ci 时自动生成 sdk (#1387)
This commit is contained in:
parent
625f2f1691
commit
1e3a921a9f
@ -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
|
||||
|
||||
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user