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

请问针对渐变的Svg应该如何处理 #17

Open
chai13 opened this issue Mar 29, 2021 · 0 comments
Open

请问针对渐变的Svg应该如何处理 #17

chai13 opened this issue Mar 29, 2021 · 0 comments

Comments

@chai13
Copy link

chai13 commented Mar 29, 2021

`<svg xmlns="http://www.w3.org/2000/svg"
:width="width"
:height="height"
:viewBox="viewBox"
:aria-labelledby="iconName"
role="presentation"

<title
    :id="iconName"
    lang="en"
>{{ iconName }} icon</title>
<defs>
    <linearGradient x1="100%" y1="81.5315548%" x2="0%" y2="18.4684452%" id="linearGradient-1">
        <stop stop-color="#35B8FF" offset="0%"></stop>
        <stop stop-color="#007EFE" offset="100%"></stop>
    </linearGradient>
</defs>
<g :fill="iconColor">
    <slot />
</g>

`

如上所示,defs如何放在子组件里

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

1 participant