update 增加useDialog类型
This commit is contained in:
parent
19cd1fc54c
commit
43e2fa5372
@ -1,7 +1,17 @@
|
|||||||
|
import { Ref } from 'vue';
|
||||||
|
|
||||||
interface Options {
|
interface Options {
|
||||||
title?: string;
|
title?: string;
|
||||||
}
|
}
|
||||||
export default (ops?: Options) => {
|
|
||||||
|
interface Return {
|
||||||
|
title: Ref<string>;
|
||||||
|
visible: Ref<boolean>;
|
||||||
|
|
||||||
|
openDialog: () => void;
|
||||||
|
closeDialog: () => void;
|
||||||
|
}
|
||||||
|
export default (ops?: Options): Return => {
|
||||||
const visible = ref(false);
|
const visible = ref(false);
|
||||||
const title = ref(ops.title || '');
|
const title = ref(ops.title || '');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user