mirror of
https://github.com/tenrok/vue-tribute.git
synced 2026-05-17 19:49:39 +03:00
21 lines
502 B
Vue
21 lines
502 B
Vue
<template>
|
|
<div id="container">
|
|
<vue-tribute :options="options">
|
|
<input type="text" class="w-3/4 sm:1/2 input" placeholder="@..." />
|
|
</vue-tribute>
|
|
</div>
|
|
</template>
|
|
<script setup lang="ts">
|
|
import { VueTribute } from '../lib'
|
|
|
|
const options = {
|
|
trigger: '@',
|
|
values: [
|
|
{ key: 'Sarah Drasner', value: 'sarah_edo' },
|
|
{ key: 'Evan You', value: 'youyuxi' },
|
|
{ key: 'Adam Wathan', value: 'adamwathan' },
|
|
{ key: 'Rich Harris', value: 'Rich_Harris' },
|
|
],
|
|
}
|
|
</script>
|