baidu / san

A fast, portable, flexible JavaScript component framework
https://baidu.github.io/san/
MIT License
4.73k stars 551 forks source link

引入svg标签linearGradient报错 #740

Closed hqqxxf closed 1 year ago

hqqxxf commented 1 year ago

san版本:3.10.8 代码:

<template>
        <svg width="300" height="180">
            <defs>
                <linearGradient id="myGradient" gradientTransform="rotate(90)">
                    <stop offset="5%" stop-color="gold" />
                    <stop offset="95%" stop-color="red" />
                </linearGradient>
            </defs>
            <path d="
            M 18,3
            L 46,3
            L 46,40
            L 61,40
            L 32,68
            L 3,40
            L 18,40
            Z
            "></path>
        </svg>
</template>

报错信息如下: b6f6f5e40c623af266b04868e644a1cd 报错位置: image