index.vue.vm 474 B

1234567891011121314151617181920
  1. <script lang="ts" setup>
  2. import { onMounted } from 'vue';
  3. import { usePopup } from '@jnpf/ui/popup';
  4. import FormPopup from './FormPopup.vue';
  5. const [registerFormPopup, { openPopup: openFormPopup }] = usePopup();
  6. function init() {
  7. openFormPopup(true, {});
  8. }
  9. onMounted(() => {
  10. init();
  11. });
  12. </script>
  13. <template>
  14. <div class="jnpf-content-wrapper bg-white">
  15. <FormPopup @register="registerFormPopup" />
  16. </div>
  17. </template>