Skip to content

Commit

Permalink
fix(comp:modal): the size of button should be 'md'
Browse files Browse the repository at this point in the history
  • Loading branch information
danranVm committed Jun 28, 2023
1 parent ab4e4b0 commit 1c5e4f5
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 1c5e4f5

Please sign in to comment.