Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How use vue-mention with element el-input ? #11

Closed
treefung opened this issue Jun 30, 2020 · 2 comments
Closed

How use vue-mention with element el-input ? #11

treefung opened this issue Jun 30, 2020 · 2 comments

Comments

@treefung
Copy link

<Mentionable><textarea v-model="text" /></Mentionable>

use element el-input can't work, because el-input in div box

<Mentionable><el-input type="textarea" v-model="text"></el-input></Mentionable>

@iampawan31
Copy link

@treefung Hi, i am also trying to use el-input with vue-mention, but cant get it to work. Were you able to figure out the solution?

@iampawan31
Copy link

@treefung Hi, i got it to working

<Mentionable 
    :keys="['@']"
    :items="users"
    @open="loadUsers()"
    placement="bottom"
    insert-space
    offset="6"
>
    <textarea
     rows="8"
    class="el-textarea__inner"
    v-model="form.comment"
    />
    <template #no-result>
    {{ loading ? "Loading..." : "No result" }}
    </template>

    <template #item-@="{ item }">
    <div class="user">
        {{ item.label }}
        <span class="dim">({{ item.value }})</span>
    </div>
    </template>
</Mentionable>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants