Merge branch 'cobaTampilan' of https://git.rssa.top/dwi.firman/cobaKeuangan into keycloak
# Conflicts: # components/Master/DialogModal.vue # pages/Setting/typeUser/index.vue
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<script lang="ts" setup>
|
||||
import {ref, watch, defineProps} from 'vue';
|
||||
import { ref, watch, defineProps } from 'vue';
|
||||
|
||||
const props = defineProps({
|
||||
stateValue: {type: Boolean, required: true}
|
||||
stateValue: { type: Boolean, required: true }
|
||||
});
|
||||
|
||||
const isActive = ref(props.stateValue);
|
||||
@@ -41,12 +41,12 @@ $fetch(`/api/setting/getListMenu`)
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<template v-slot:text>
|
||||
<MasterListMenu :itemMenu="listMenu" />
|
||||
</template>
|
||||
<slot name="text">
|
||||
<!-- text -->
|
||||
</slot>
|
||||
|
||||
<v-card-actions>
|
||||
<v-btn text @click="$emit('stateValue', false)">Disagree</v-btn>
|
||||
<v-btn text @click="$emit('stateValue', false)">Agree</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</template>
|
||||
|
||||
42
components/Master/formTypeUser.vue
Normal file
42
components/Master/formTypeUser.vue
Normal file
@@ -0,0 +1,42 @@
|
||||
<script setup lang="ts">
|
||||
const data = ref(null)
|
||||
const onSubmit = () => {
|
||||
// console.log("ini disimpan:",data.value?.data.typeUser);
|
||||
console.log("ini disimpan:",data.value.form$.data);
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="d-flex flex-column gap-1 mx-1 pa-7 pt-0 pb-0">
|
||||
<Vueform
|
||||
ref="data"
|
||||
validate-on="change|step"
|
||||
method="post"
|
||||
:endpoint="onSubmit"
|
||||
size="md"
|
||||
:display-errors="false"
|
||||
>
|
||||
<!-- <StaticElement
|
||||
name="register_title"
|
||||
content="Create account"
|
||||
tag="h1"
|
||||
/>
|
||||
<StaticElement
|
||||
name="divider"
|
||||
tag="hr"
|
||||
/> -->
|
||||
<GroupElement
|
||||
name="container"
|
||||
description="Pastikan Tipe Pengguna Belum ada"
|
||||
>
|
||||
<TextElement
|
||||
name="typeUser"
|
||||
label="Type user"
|
||||
:rules="['required', 'max:255', 'min:3']"
|
||||
/>
|
||||
</GroupElement>
|
||||
<ButtonElement name="primaryButton" button-label="Button" :submits="true" size="lg"/>
|
||||
</Vueform>
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user