mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-04 20:27:44 +08:00
0456c790db
* feat: add mention component * fix: build error * fix: build error * feat: delete as a whole * fix: update docs * fix: update global.d.ts * fix: update * fix: update code * fix: update code * fix: update code * fix: rename * fix: update code * fix: upload code * fix: update code * fix: fixed cursor position abnormality * fix: update code * fix: docs add avatar * fix: tooltip position is wrong when placing on top * feat: add overview icon * fix: overview icon color
33 lines
472 B
Vue
33 lines
472 B
Vue
<template>
|
|
<el-mention
|
|
v-model="value"
|
|
:options="options"
|
|
style="width: 320px"
|
|
placeholder="Please input"
|
|
/>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { ref } from 'vue'
|
|
const value = ref('@')
|
|
|
|
const options = ref([
|
|
{
|
|
label: 'Fuphoenixes',
|
|
value: 'Fuphoenixes',
|
|
},
|
|
{
|
|
label: 'kooriookami',
|
|
value: 'kooriookami',
|
|
},
|
|
{
|
|
label: 'Jeremy',
|
|
value: 'Jeremy',
|
|
},
|
|
{
|
|
label: 'btea',
|
|
value: 'btea',
|
|
},
|
|
])
|
|
</script>
|