Skip to content

Commit

Permalink
refactor(control): improve order
Browse files Browse the repository at this point in the history
  • Loading branch information
14nrv committed Mar 1, 2021
1 parent 77a5be4 commit 852b4aa
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/components/Fields/Control.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,30 @@

<script>
import { slug } from '@/helpers'
import Checkbox from '@/components/Fields/Checkbox'
import Input from '@/components/Fields/Input'
import Radio from '@/components/Fields/Radio'
import Select from '@/components/Fields/Select'
import Textarea from '@/components/Fields/Textarea'
import Checkbox from '@/components/Fields/Checkbox'
import Radio from '@/components/Fields/Radio'
const NOT_NORMAL_INPUT = ['textarea', 'select', 'checkbox', 'radio']
const NOT_NORMAL_INPUT = [
'checkbox',
'radio',
'select',
'textarea'
]
export default {
name: 'Control',
filters: {
slugify: value => slug(value)
},
components: {
appCheckbox: Checkbox,
appInput: Input,
appRadio: Radio,
appSelect: Select,
appTextarea: Textarea,
appCheckbox: Checkbox,
appRadio: Radio
appTextarea: Textarea
},
data: () => ({
value: undefined
Expand Down

0 comments on commit 852b4aa

Please sign in to comment.