Skip to content

Instantly share code, notes, and snippets.

@derpdead
Created December 17, 2019 12:02
Show Gist options
  • Save derpdead/3c4726c88f1a6d810e801c8f8905d543 to your computer and use it in GitHub Desktop.
Save derpdead/3c4726c88f1a6d810e801c8f8905d543 to your computer and use it in GitHub Desktop.
Form example
<template>
<BaseForm>
<TextField
v-model="attribute.id"
solid
regular />
<TextField
v-model="attribute.code"
solid
regular />
<TextField
v-model="attribute.type"
solid
regular />
<Select
v-model="attribute.groups"
multiselect
solid
regular
:options="['1', '2', '3']" />
</BaseForm>
</template>
<script>
export default {
name: 'AttributeForm',
data() {
return {
attribute: {
code: '',
type: '',
id: '',
groups: [],
},
};
},
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment