lulg

Results 1 comments of lulg

> 由于是利用官方的插件讨巧实现的,所以感觉有些卡顿。应该是官方做了防抖导致的。具体优化需要等待官方提供更优雅的解决方案。实现原理就是监听官方的画布拖拽事件然后通过设置器实时修改样式属性。稍后附上完整的例子。欢迎讨论提供更好的解决方案 目录结构: plugin-dragon-event |- setters |-|_ dragon-setter.tsx // 设置器 |_ index.tsx > > 在项目插件目录下,例如:demo-basic-antd/src/plugins下新建自定义插件 index.tsx > > ``` > import { IPublicModelPluginContext } from '@alilc/lowcode-types'; > import DragonSetter from...