Skip to content

Commit

Permalink
🔧 custom attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
roiLeo committed Jul 18, 2023
1 parent 4fdd52e commit b23263f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 24 deletions.
41 changes: 18 additions & 23 deletions components/rmrk/Create/AttributeInput.vue
Original file line number Diff line number Diff line change
@@ -1,28 +1,23 @@
<template>
<NeoField grouped>
<p v-if="!disabled" class="control">
<NeoButton
no-shadow
size="medium"
icon-left="times"
@click.native="remove" />
</p>
<NeoField label="Trait">
<NeoInput
v-model="vKey"
placeholder="Background"
expanded
:disabled="disabled"
spellcheck="true" />
</NeoField>
<NeoField label="Value">
<NeoInput
v-model="vValue"
placeholder="Dark"
expanded
spellcheck="true"
:disabled="disabled" />
</NeoField>
<NeoButton
v-if="!disabled"
no-shadow
size="medium"
icon-left="times"
@click.native="remove" />
<NeoInput
v-model="vKey"
placeholder="Section"
expanded
:disabled="disabled"
spellcheck="true" />
<NeoInput
v-model="vValue"
placeholder="Value"
expanded
spellcheck="true"
:disabled="disabled" />
</NeoField>
</template>

Expand Down
2 changes: 1 addition & 1 deletion components/rmrk/Create/CustomAttributeInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</div>
<NeoButton
no-shadow
class="mt-2"
class="my-4"
:disabled="disabled"
icon-left="plus"
@click.native="addAttribute">
Expand Down

0 comments on commit b23263f

Please sign in to comment.