初始代码
This commit is contained in:
21
TemplateCodeVue3/TemplateCode4/html/index.vue.vm
Normal file
21
TemplateCodeVue3/TemplateCode4/html/index.vue.vm
Normal file
@@ -0,0 +1,21 @@
|
||||
<template>
|
||||
<div class="zero-content-wrapper bg-white">
|
||||
<FormPopup @register="registerFormPopup" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { onMounted } from 'vue';
|
||||
import { usePopup } from '@/components/Popup';
|
||||
import FormPopup from './FormPopup.vue';
|
||||
|
||||
const [registerFormPopup, { openPopup: openFormPopup }] = usePopup();
|
||||
|
||||
function init() {
|
||||
openFormPopup(true, {});
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
init();
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user