form belum fix

This commit is contained in:
2025-05-28 07:20:01 +07:00
parent 692ffdf2f1
commit b397e09634
10 changed files with 13615 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
<template>
<TextElement
name="email"
input-type="email"
:rules="['nullable', 'email']"
label="Email"
/>
</template>
+3
View File
@@ -0,0 +1,3 @@
<template>
<TextElement name="username" label="Nama" />
</template>
+3
View File
@@ -0,0 +1,3 @@
<template>
<TextElement name="password" input-type="password" label="Password" />
</template>
+24
View File
@@ -0,0 +1,24 @@
<template>
<SelectElement
name="role"
:search="true"
:native="false"
input-type="search"
autocomplete="off"
label="Hak Akses"
:items="[
{
value: 0,
label: 'Administrator',
},
{
value: '1',
label: 'Manager',
},
{
value: '2',
label: 'Staff',
},
]"
/>
</template>
@@ -23,6 +23,23 @@ const sidebarItem: menu[] = [
icon: "adhesive-plaster-outline",
to: "/",
},
{
title: "master",
to: "/master",
external: false,
children:[
{
title: "index",
to: "/master/index",
external: false,
},
{
title: "master",
to: "/master/form",
external: false,
},
]
},
{
title: "Front Pages",
icon: "home-angle-linear",
+30
View File
@@ -0,0 +1,30 @@
<template>
<!-- <v-card elevation="10" >
<v-card-item> -->
<div class="d-md-flex justify-space-between mb-mb-0 mb-3">
<!-- <v-card-title class="text-h5">Revenue Forecast</v-card-title> -->
</div>
<div class="mt-4 pt-2">
<Vueform v-model="data" validate-on="change|step" method="post" :endpoint="onSubmit">
<FormLibMasterName />
<FormLibMasterEmail />
<FormLibMasterPassword />
<FormLibMasterRole />
<ButtonElement
name="primaryButton"
button-label="Button"
:submits="true"
align="center"
size="lg"
/>
</Vueform>
</div>
<!-- </v-card-item>
</v-card> -->
</template>
<script setup lang="ts">
const data = ref('')
const onSubmit = () => {
console.log(data)
}
</script>