mirror of
https://github.com/jekip/naive-ui-admin.git
synced 2026-02-13 09:42:27 +08:00
fix: 优化部分无用代码及升级ui版本 🚀
This commit is contained in:
@@ -93,7 +93,7 @@
|
||||
|
||||
function handleSubmit() {
|
||||
subLoading.value = true;
|
||||
console.log(subLoading.value)
|
||||
console.log(subLoading.value);
|
||||
emit('on-ok');
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user