mirror of
https://github.com/tenrok/vue-tribute.git
synced 2026-06-06 09:52:27 +03:00
22 lines
504 B
Vue
22 lines
504 B
Vue
<template>
|
|
<div id="container">
|
|
<vue-tribute :options="options">
|
|
<input type="text" class="" placeholder="@..." />
|
|
</vue-tribute>
|
|
</div>
|
|
</template>
|
|
<script setup lang="ts">
|
|
import VueTribute from '../lib'
|
|
|
|
const options = {
|
|
trigger: '@',
|
|
values: [
|
|
{ key: 'Collin Henderson', value: 'syropian' },
|
|
{ key: 'Sarah Drasner', value: 'sarah_edo' },
|
|
{ key: 'Evan You', value: 'youyuxi' },
|
|
{ key: 'Adam Wathan', value: 'adamwathan' },
|
|
],
|
|
positionMenu: true,
|
|
}
|
|
</script>
|