Skip to content

Commit

Permalink
fix: 修复antdv4,drawer弹窗过时的api
Browse files Browse the repository at this point in the history
  • Loading branch information
greper committed Oct 25, 2023
1 parent 5d95b40 commit 9514db6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions packages/fast-crud/src/use/use-crud.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ export type UseCrudRet = {

// 导出useCrud
export function useCrud(ctx: UseCrudProps): UseCrudRet {
if (ctx.context == null) {
ctx.context = {};
}
const ui = uiContext.get();
const { t } = useI18n();
let options: CrudOptions = ctx.crudOptions as CrudOptions;
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/ui-antdv4/src/antdv.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export class Antdv implements UiInterface {
return { afterClose: onClosed };
} else if (is === "a-drawer") {
return {
onAfterVisibleChange: (visible: boolean) => {
onAfterOpenChange: (visible: boolean) => {
if (visible === false) {
onClosed(visible);
}
Expand Down

0 comments on commit 9514db6

Please sign in to comment.