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

icon in tableaction #182

Closed
cugliang opened this issue Jan 13, 2021 · 0 comments
Closed

icon in tableaction #182

cugliang opened this issue Jan 13, 2021 · 0 comments

Comments

@cugliang
Copy link

cugliang commented Jan 13, 2021

Subject of the issue

Describe your issue here.
use TableAction in demo FixedColumn,but there is a bug of icon,it can't display an icon but display the name of the icon setted.

<template #action="{ record }">
            <TableAction
            :actions="[
                {
                    label: '删除',
                    icon: 'ic:outline-delete-outline',
                    onClick: handleDelete.bind(null, record),
                },
            ]"
            />
        </template>

html's code here:
<button oktext="确认" canceltext="取消" enable="false" label="删除" class="ant-btn ant-btn-link ant-btn-sm" type="button">ic:outline-delete-outline<span class="mr-1 app-iconify anticon mr-1" style="font-size: 16px; display: inline-flex;"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--ic" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5l-1-1h-5l-1 1H5v2h14V4h-3.5z" fill="currentColor"></path></svg></span><span>删除</span></button>

Your environment

  • OS:
  • Packages:
  • Env:

Steps to reproduce

Tell us how to reproduce this issue. Please provide a working and simplified example.

🎉 BONUS POINTS for creating a minimal reproduction and uploading it to GitHub. This will get you the fastest support. 🎉

Expected behaviour

What should happen?

Actual behaviour

What happens instead?

anncwb added a commit that referenced this issue Jan 13, 2021
@anncwb anncwb closed this as completed Jan 13, 2021
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