Skip to content

怎样用svg图标做markup?How to add svg string as markup #2215

Answered by Rackar
Rackar asked this question in Q&A
Discussion options

You must be logged in to vote

感谢,可以了。才发现示例中有一个使用SVG自定义图标就是这样实现的。之前怎么没找到

{
            tagName: "path",
            attrs: {
              d:
                'M24.82,48.678c5.422,0,9.832-6.644,9.832-14.811c0-8.165-4.41-14.809-9.832-14.809s-9.833,6.644-9.833,14.809C14.987,42.034,19.399,48.678,24.82,48.678z',
            },
          },

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Rackar
Comment options

You must be logged in to vote
4 replies
@NewByVector
Comment options

@Rackar
Comment options

@NewByVector
Comment options

@Rackar
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants