update
This commit is contained in:
1 parent
4ce50f697b
commit
d9363d3b93
12 files changed
+610
-91
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user