Skip to content

Commit

Permalink
Fixes example
Browse files Browse the repository at this point in the history
  • Loading branch information
syropian committed Jul 2, 2020
1 parent 7b93eee commit 599227f
Show file tree
Hide file tree
Showing 3 changed files with 226 additions and 306 deletions.
22 changes: 11 additions & 11 deletions example/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
placeholder="@..."
@tribute-no-match="noMatchFound"
ref="foo"
>
/>
</vue-tribute>
<br>
<br />
<h3>Textarea</h3>
<vue-tribute :options="options">
<textarea placeholder="@..."></textarea>
</vue-tribute>
<br>
<br />
<h3>contenteditable element</h3>
<vue-tribute :options="options">
<div
Expand All @@ -24,11 +24,8 @@
placeholder="@..."
></div>
</vue-tribute>
<br>
<button
@click="append"
class="btn"
>Append New Item</button>
<br />
<button @click="append" class="btn">Append New Item</button>
</div>
</template>
<script>
Expand All @@ -47,7 +44,7 @@ export default {
{ key: "Evan You", value: "youyuxi" },
{ key: "Adam Wathan", value: "adamwathan" }
],
positionMenu: false,
positionMenu: true,
menuContainer: document.querySelector(".menu-container")
}
};
Expand Down Expand Up @@ -86,7 +83,7 @@ body {
align-items: center;
justify-content: center;
color: #fff;
font-family: 'Helvetica Neue', 'Arial', sans-serif;
font-family: "Helvetica Neue", "Arial", sans-serif;
}
.scroll {
width: 100%;
Expand All @@ -103,10 +100,13 @@ body {
flex-direction: column;
padding: 0 20px;
}
.v-tribute {
width: 100%;
position: relative;
}
input[type='text'],
input[type="text"],
.content-editable {
appearance: none;
border: none;
Expand Down
Loading

0 comments on commit 599227f

Please sign in to comment.