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

t-icon无法离线使用 #129

Closed
chenyueqin1010 opened this issue Dec 29, 2021 · 1 comment
Closed

t-icon无法离线使用 #129

chenyueqin1010 opened this issue Dec 29, 2021 · 1 comment

Comments

@chenyueqin1010
Copy link

Describe Framework

tdesign-vue

Describe Environment

Add browser version here

Describe the bug
A clear and concise description of what the bug is.

Additional context
Add any other context about the problem here.

@uyarn
Copy link
Collaborator

uyarn commented Dec 29, 2021

t-icon需要依赖CDN的资源,目前的方案短期内不能在离线环境下使用,需要在离线环境下使用,请通过tdesign-icons-vue的包按需引用。
以close 关闭图标为例

<t-icon name="close" />

需调整为

import { CloseIcon} from 'tdesign-icons-vue'

<CloseIcon />

@uyarn uyarn closed this as completed Dec 29, 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