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组件添加全局注入svg 文件路径 #28

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zh1047842950
Copy link

Icon组件添加全局注入svg 文件路径,以便于生产部署在服务器非根路径下的web应用

@dufu1991
Copy link
Member

Icon 组件本身就有 path 这个 API,直接将这个路径传入即可,比如你这个示例中传入
path='webapps/svelte_demo/fonts/symbol.svg',这样应该也是能满足这种情况的吧。通过 Context 传和直接 API 传是一样的效果啊。麻烦具体描述一下无法满足的情况。

@dufu1991
Copy link
Member

dufu1991 commented Sep 7, 2024

目前的API是不是无法满足你的需求?

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

Successfully merging this pull request may close these issues.

2 participants