Improve client

This commit is contained in:
syuilo
2021-04-17 14:06:32 +09:00
parent c27c3817a9
commit 61461b7f59
6 changed files with 87 additions and 3 deletions

View File

@ -5,9 +5,9 @@
<MkLoading/>
</div>
</div>
<div v-else-if="resolved">
<FormGroup v-else-if="resolved" class="_formItem">
<slot :result="result"></slot>
</div>
</FormGroup>
<div class="_formItem" v-else>
<div class="_formPanel">
error!
@ -20,8 +20,13 @@
<script lang="ts">
import { defineComponent, PropType, ref, watch } from 'vue';
import './form.scss';
import FormGroup from './group.vue';
export default defineComponent({
components: {
FormGroup,
},
props: {
p: {
type: Function as PropType<() => Promise<any>>,