diff --git a/src/components/Loading/src/createLoading.ts b/src/components/Loading/src/createLoading.ts index d7819df7..7e2c9eed 100644 --- a/src/components/Loading/src/createLoading.ts +++ b/src/components/Loading/src/createLoading.ts @@ -41,7 +41,7 @@ export function createLoading(props?: Partial, target?: HTMLElemen target.appendChild(vm.el as HTMLElement); } - function destory() { + function destroy() { container && render(null, container); container = vm = null; } @@ -53,7 +53,7 @@ export function createLoading(props?: Partial, target?: HTMLElemen vm, close, open, - destory, + destroy, setTip: (tip: string) => { data.tip = tip; },