Skip to content

Commit

Permalink
Merge pull request #215 from suyuan32/dev
Browse files Browse the repository at this point in the history
fix(loading): wrong function name
  • Loading branch information
suyuan32 authored May 30, 2024
2 parents 75d6b79 + e41a009 commit cfa36fd
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 cfa36fd

Please sign in to comment.