F2 icon indicating copy to clipboard operation
F2 copied to clipboard

feat(@antv/f2-vue): 增强对自定义图形及自定义图表组件的JSX编译支持

Open lolarun opened this issue 1 year ago • 1 comments

Checklist
  • [x] npm test passes
  • [x] tests and/or benchmarks are included
  • [x] commit message follows commit guidelines
Description of change

解决Vue3项目中编译包含自定义View及自定义Shape时需要使用@babel/plugin-transform-react-jsx的问题。 备注:自定义View时,需高阶组件需从@antv/f2-vue中的导入。例如: import { withLegend } from "@antv/f2-vue"。

lolarun avatar Sep 07 '22 03:09 lolarun

@zengyue 重构了Canvas,以便能够通过测试用例(graphic/createImage)中 expect(createImageCallback.mock.calls.length).toBe(1)

lolarun avatar Sep 10 '22 01:09 lolarun