Skip to content

Commit

Permalink
fix(comp:modal): the size of button should be 'md' (#1582)
Browse files Browse the repository at this point in the history
  • Loading branch information
danranVm authored Jun 28, 2023
1 parent b7a3557 commit 00c7c6c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/components/modal/src/ModalWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ export default defineComponent({

return () => {
const prefixCls = mergedPrefixCls.value
const okButton = { size: 'md', ...props.okButton } as const
const cancelButton = { size: 'md', ...props.cancelButton } as const

return (
<div
Expand Down Expand Up @@ -191,13 +193,13 @@ export default defineComponent({
v-slots={slots}
class={`${prefixCls}-footer`}
cancel={handleCancel}
cancelButton={props.cancelButton}
cancelButton={cancelButton}
cancelLoading={cancelLoading.value}
cancelText={cancelText.value}
cancelVisible={cancelVisible.value}
footer={props.footer}
ok={handleOk}
okButton={props.okButton}
okButton={okButton}
okLoading={okLoading.value}
okText={okText.value}
></ɵFooter>
Expand Down

0 comments on commit 00c7c6c

Please sign in to comment.