This commit is contained in:
539943419 committed 2024-08-10 02:11:20 +08:00
1 parent 4ce50f697b
commit d9363d3b93
12 files changed
+610 -91

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
import { ref, Ref } from "vue";
export default class VirtualPage {
constructor() {
this.visible = ref<boolean>(true);
this.title = ref<string>("");
this.uid = Math.ceil(Math.random() * 10000000000000);
}
visible: Ref<boolean>;
title: Ref<string>;
uid: number;
switchShow() {
// @ts-ignore 你只要知道这是对的就行了
this.visible = !this.visible;
}
setTitle(newTitle: string) {
// @ts-ignore 你只要知道这是对的就行了
this.title = newTitle;
}
}