Skip to content

Commit

Permalink
fix(element): fix opened name writing error (#3695)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhiLinLiang committed Feb 3, 2023
1 parent 9fe0520 commit c616bf1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/element/docs/guide/form-dialog.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ type IFormDialogProps = Omit<DialogProps, 'title'> & {
okText?: string | Component | VNode | (() => VNode)
okButtonProps?: ButtonProps
onOpen?: () => void
onOpend?: () => void
onOpened?: () => void
onClose?: () => void
onClosed?: () => void
onCancel?: () => void
Expand Down
2 changes: 1 addition & 1 deletion packages/element/docs/guide/form-drawer.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type IFormDrawerProps = Omit<DrawerProps, 'title'> & {
okText?: string | Component | VNode | (() => VNode)
okButtonProps?: ButtonProps
onOpen?: () => void
onOpend?: () => void
onOpened?: () => void
onClose?: () => void
onClosed?: () => void
onCancel?: () => void
Expand Down
8 changes: 4 additions & 4 deletions packages/element/src/form-dialog/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type IFormDialogProps = Omit<DialogProps, 'title'> & {
okText?: string | Component | VNode | (() => VNode)
okButtonProps?: ButtonProps
onOpen?: () => void
onOpend?: () => void
onOpened?: () => void
onClose?: () => void
onClosed?: () => void
onCancel?: () => void
Expand Down Expand Up @@ -162,7 +162,7 @@ export function FormDialog(
onClose,
onClosed,
onOpen,
onOpend,
onOpened,
onOK,
onCancel,
title,
Expand Down Expand Up @@ -205,8 +205,8 @@ export function FormDialog(
open: () => {
onOpen?.()
},
opend: () => {
onOpend?.()
opened: () => {
onOpened?.()
},
},
},
Expand Down
8 changes: 4 additions & 4 deletions packages/element/src/form-drawer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type IFormDrawerProps = Omit<DrawerProps, 'title'> & {
okText?: string | Component | VNode | (() => VNode)
okButtonProps?: ButtonProps
onOpen?: () => void
onOpend?: () => void
onOpened?: () => void
onClose?: () => void
onClosed?: () => void
onCancel?: () => void
Expand Down Expand Up @@ -161,7 +161,7 @@ export function FormDrawer(
onClose,
onClosed,
onOpen,
onOpend,
onOpened,
onOK,
onCancel,
title,
Expand Down Expand Up @@ -204,8 +204,8 @@ export function FormDrawer(
open: () => {
onOpen?.()
},
opend: () => {
onOpend?.()
opened: () => {
onOpened?.()
},
},
},
Expand Down

0 comments on commit c616bf1

Please sign in to comment.