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

Safari浏览器,苹果手机使用RingProgress时出现正则错误,SyntaxError: Invalid regular expression: invalid group specifier name🐛[BUG] #257

Closed
heyuncoder opened this issue Oct 17, 2020 · 1 comment

Comments

@heyuncoder
Copy link

🐛 bug 描述 [详细地描述 bug,让大家都能理解]

Safari浏览器,苹果手机使用RingProgress时出现正则错误,SyntaxError: Invalid regular expression: invalid group specifier name🐛[BUG]

📷 复现步骤 [清晰描述复现步骤,让别人也能看到问题]

用的是umi框架

🏞 期望结果 [描述你原本期望看到的结果]

正常显示

💻 复现代码 [提供可复现的代码,仓库,或线上示例]

render() {
  const config = {
      height: 100,
      width: 100,
      autoFit: false,
      percent: 0.7,
      statistic: {
        content: {
          style: {
            fill: '#FF2AA8',
            fontSize: 18,
            textAlign: 'center',
          },
          formatter: ({ percent }) => {
            return Math.round(percent * 100) + "%";
          }
        }
      },
      progressStyle: ({ percent, type }) => {
        if (type === 'current') {
          return { fill: '#FF2AA8' };
        }
        return {
          fill: '#EDEDED',
        };
      }
    };

  return <>
    ...
    <RingProgress  {...config} />
    ...
  </>
}

© 版本信息

  • ant-design-charts 版本:

"@ant-design/charts": "^1.0.0",
"umi": "^3.2.20",

  • 浏览器环境
    Safari浏览器,版本13.1.1 (15609.2.9.1.2)
  • 开发环境 [e.g. mac OS]

🚑 其他信息 [如截图等其他信息可以贴在这里]

image

@heyuncoder
Copy link
Author

发现G2Plot那边已经解决了这个问题,升级到1.0.1就好了
antvis/G2Plot#1687

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