戴富阳
戴富阳
> There is no need to use [] in the tag, only the type is defined as an array, and the incoming is separated by commas. example: > > ```go...
> Sorry, I confirmed it, and it is determined that form passing arrays is not supported in zero. There are two ways to solve it. > > 1. Pass the...
把oauth当请求服务。然后所有的都走api中间件验证就可以了
改为yarn
我准备尝试一下这个需求
一周后来反馈进度
目前demo有了新的进展,利用plugin和custom/setter可以完成拖拽了。细节上还需要进一步的优化。稍后会奉上代码
由于是利用官方的插件讨巧实现的,所以感觉有些卡顿。应该是官方做了防抖导致的。具体优化需要等待官方提供更优雅的解决方案。实现原理就是监听官方的画布拖拽事件然后通过设置器实时修改样式属性。稍后附上完整的例子。欢迎讨论提供更好的解决方案 目录结构: 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 './setters/dragon-setter'; const DragonEventPlugin = (ctx: IPublicModelPluginContext) =>...
经过最近的有一段时间研究,结合官方反馈了一些思路,有了新的进展。稍后我会附上自由拖拽和磁吸的例子
经过没日没夜的尝试:终于完成了可用的版本 http://lowcode.zerocmf.com/ 拖拽一个容器,选上自由布局,然后就可以拖入若干个可以移动的按钮了。遇到问题欢迎反馈。我继续优化 代码:https://github.com/daifuyang/zero-materials 我最近打算做一个用于nextjs的低代码物料。主要用于建站业务。不知道官方的渲染器不知道支不支持ssr。不支持的话后续可能还会实现基于nextjs的渲染器。有志同道合的小伙伴欢迎一起入坑。