mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/unity.git
synced 2026-08-19 04:13:58 +00:00
ad85832e75
user login UI
25 lines
611 B
Vue
25 lines
611 B
Vue
<template>
|
|
<div class="mb-2">
|
|
<label v-if="label">{{ label }}</label>
|
|
<v-switch
|
|
v-model="form[input_name]"
|
|
color="primary"
|
|
:value="1"
|
|
hide-details
|
|
></v-switch>
|
|
<div class="text-danger text-left" v-if="form.errors.has(input_name)" v-text="form.errors.get(input_name)"></div>
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<script type="text/javascript">
|
|
import {ToggleButton} from 'vue-js-toggle-button'
|
|
|
|
export default {
|
|
props: {
|
|
input_name: String,
|
|
form: Object,
|
|
label: String
|
|
}
|
|
}
|
|
</script> |