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

[Bug Report]table中不能使用Dropdown #233

Open
yinxing123 opened this issue Feb 13, 2023 · 1 comment
Open

[Bug Report]table中不能使用Dropdown #233

yinxing123 opened this issue Feb 13, 2023 · 1 comment

Comments

@yinxing123
Copy link

Environment

window10、Chrome、vue3

Reproduction link

https://run.iviewui.com/OBx6EpPe

Steps to reproduce

将Dropdown 放在Table的自定义列模板中

What is expected?

Dropdown可以正常使用

What is actually happening?

Dropdown不能使用

@DebugIsFalse
Copy link
Collaborator

<template>
    <Table border :columns="columns" :data="data">
        <template #name="{ row }">
            <strong>{{ row.name }}</strong>
        </template>
        <template #action="{ row, index }">
            <Dropdown transfer>
                        <a href="javascript:void(0)"> 更多
                            <Icon type="ios-arrow-down"></Icon>
                        </a>
              		<template #list>
                            <DropdownMenu>
                              <DropdownItem>
                                  角色分配
                              </DropdownItem>
                              <DropdownItem>
                                  编辑
                              </DropdownItem>
                              <DropdownItem>
                                  删除
                              </DropdownItem>
                        	  </DropdownMenu>
              	    </template>
                        
                    </Dropdown>
        </template>
    </Table>
</template>

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