KE.YANG
KE.YANG
需要手工引入 import '@antv/f2/es/interaction/pan'。 备注:果用Rollup打包的话,需要使用 @rollup/plugin-commonjs 插件,且配置 transformMixedEsModules:true。
@zengyue 如果review的过程中需要我,请随时联系。
@zengyue 重构了Canvas,以便能够通过测试用例(graphic/createImage)中 [`expect(createImageCallback.mock.calls.length).toBe(1)`](https://github.com/antvis/F2/pull/1585/files#diff-19d2038d3939cf1641646e0258e7cbad1eab9fbce8cb0becfff2e20751762111R226)。
首先,个人建议还是用SFC吧,这TSX写得太碎了.... 其次,定位问题建议使用“最小化”原则,即:新建一个“干净”的项目,并引入最少元素。已经说过无数次了,就是不听。 > 新建项目,使用这个BasicLayout.tsx,即可验证ProLayout的默认插槽中使用RouterView,并不会引发渲染两次的问题。 ``` import { defineComponent, h, type VNode } from 'vue'; import { RouterView } from 'vue-router'; import ProLayout from '@ant-design-vue/pro-layout'; export default defineComponent({ setup() { return...
_https://github.com/lolarun/codesandbox_ [Sandbox](https://codesandbox.io/p/github/lolarun/codesandbox/draft/aged-forest?selection=%5B%7B%22endColumn%22%3A20%2C%22endLineNumber%22%3A2%2C%22startColumn%22%3A20%2C%22startLineNumber%22%3A2%7D%5D&file=%2Fpackage.json&workspace=%257B%2522activeFileId%2522%253A%2522cl9x19j0r0009lrdy644k8mma%2522%252C%2522openFiles%2522%253A%255B%2522%252Fpackage.json%2522%255D%252C%2522sidebarPanel%2522%253A%2522EXPLORER%2522%252C%2522gitSidebarPanel%2522%253A%2522COMMIT%2522%252C%2522sidekickItems%2522%253A%255B%257B%2522type%2522%253A%2522PREVIEW%2522%252C%2522taskId%2522%253A%2522serve%2522%252C%2522port%2522%253A8080%252C%2522key%2522%253A%2522cl9x1kmf3025l3n6ip5ggefig%2522%252C%2522isMinimized%2522%253Afalse%252C%2522path%2522%253A%2522%252Fwelcome%2522%257D%255D%257D) [preview](https://26g0jc-8080.preview.csb.app/welcome)