Skip to content

Commit

Permalink
fix(loading): wrong function name
Browse files Browse the repository at this point in the history
fix(loading): wrong function name
  • Loading branch information
suyuan32 committed May 30, 2024
1 parent 0867477 commit e41a009
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Loading/src/createLoading.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function createLoading(props?: Partial<LoadingProps>, target?: HTMLElemen
target.appendChild(vm.el as HTMLElement);
}

function destory() {
function destroy() {
container && render(null, container);
container = vm = null;
}
Expand All @@ -53,7 +53,7 @@ export function createLoading(props?: Partial<LoadingProps>, target?: HTMLElemen
vm,
close,
open,
destory,
destroy,
setTip: (tip: string) => {
data.tip = tip;
},
Expand Down

0 comments on commit e41a009

Please sign in to comment.