mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/unity.git
synced 2026-08-30 09:44:07 +00:00
setup
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user