fix: 优化部分无用代码及升级ui版本 🚀

This commit is contained in:
山人自有妙计
2022-03-12 18:22:28 +08:00
parent 6558e1597c
commit 12e62d1179
15 changed files with 964 additions and 962 deletions

View File

@@ -93,7 +93,7 @@
function handleSubmit() {
subLoading.value = true;
console.log(subLoading.value)
console.log(subLoading.value);
emit('on-ok');
}

View File

@@ -4,7 +4,6 @@ import { ModalMethods, UseModalReturnType } from '../type';
import { getDynamicProps } from '@/utils';
import { tryOnUnmounted } from '@vueuse/core';
export function useModal(props): UseModalReturnType {
const modalRef = ref<Nullable<ModalMethods>>(null);
const currentInstance = getCurrentInstance();

View File

@@ -12,8 +12,8 @@ export interface ModalMethods {
/**
* 支持修改DialogOptions 參數
*/
export interface ModalProps extends DialogOptions { }
export type ModalProps = DialogOptions;
export type RegisterFn = (ModalInstance: ModalMethods) => void;
export type UseModalReturnType = [RegisterFn, ModalMethods];
export type UseModalReturnType = [RegisterFn, ModalMethods];