improve: modal调整

This commit is contained in:
From-wh 2023-03-09 09:19:16 +08:00
parent 3693d10fa8
commit 03975529b8
3 changed files with 39 additions and 15 deletions

View File

@ -716,3 +716,10 @@ body {
.pt10 {
padding-top: 10px;
}
.common-form-create-footer{
display: flex;
justify-content: right;
}
.common-form-button{
margin-right: 10px;
}

View File

@ -114,7 +114,7 @@ Modal.newInstance = (properties) => {
},
domProps: {
innerHTML: this.title,
style: 'margin-bottom: 10px;',
style: 'margin-bottom: 20px;border-bottom:1px solid #f2f2f2;padding-bottom:10px;',
},
}),
],

View File

@ -133,22 +133,39 @@ export default function (formRequestPromise, { width = '700' } = { width: '700'
},
},
}),
h(
'Button',
{
class: 'common-form-button',
props: {
type: 'primary',
long: true,
},
on: {
click: () => {
fApi.submit();
h('div', { class: 'common-form-create-footer' }, [
h(
'Button',
{
class: 'common-form-button',
props: {
long: false,
},
on: {
click: () => {
modalInstance.remove();
},
},
},
},
['提交'],
),
['取消'],
),
h(
'Button',
{
class: 'common-form-button',
props: {
type: 'primary',
long: false,
},
on: {
click: () => {
fApi.submit();
},
},
},
['提交'],
),
]),
]);
},
});