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

建议组件与结构分离 #61

Open
jlhejs opened this issue Sep 7, 2022 · 2 comments
Open

建议组件与结构分离 #61

jlhejs opened this issue Sep 7, 2022 · 2 comments

Comments

@jlhejs
Copy link

jlhejs commented Sep 7, 2022

store中的com为带有children 的结构数据,建议整理成单数组形式也就是之前那样
原因如下:考虑到有些组件带有层级结构可考虑在screen中增加zIndexList字段来决定组件层级结构,因为这样数组在删除时候,后端可以更快找到该组件,且若后端是mongodb一个组件保存为一个文档,后期在查询组件的时候,无法保证组件的顺序,整存整取除外
image

@pengxiaotian
Copy link
Owner

store中的com为带有children 的结构数据,建议整理成单数组形式也就是之前那样 原因如下:考虑到有些组件带有层级结构可考虑在screen中增加zIndexList字段来决定组件层级结构,因为这样数组在删除时候,后端可以更快找到该组件,且若后端是mongodb一个组件保存为一个文档,后期在查询组件的时候,无法保证组件的顺序,整存整取除外 image

最初是有zIndexList,后来把后端项目干掉了,就没考虑过。后面考虑再加过来吧。
最近加班没精力啊😪

@jlhejs
Copy link
Author

jlhejs commented Sep 23, 2022

还有一个问题就是右侧属性栏其实可以提供组件,以option配置项去渲染配置项,我看目前是以配置项生成的.vue代码,是否考虑的为后期组件属性自定义化

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

2 participants