mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/unity.git
synced 2026-08-19 12:24:01 +00:00
21 lines
563 B
Vue
21 lines
563 B
Vue
<template>
|
|
<div class="mb-2">
|
|
<label v-if="label">{{ label }}</label>
|
|
<v-switch
|
|
v-model="form[input_name]"
|
|
color="primary"
|
|
:value="value"
|
|
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', 'value', 'form', 'label', 'value']
|
|
}
|
|
</script> |