-
Notifications
You must be signed in to change notification settings - Fork 713
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
数据源 处理 报错path_1[1] #608
Comments
可以给一个数据源的demo吗? |
formConfig/initValue 与组件的是一摸一样的,datasource.ts就是你写的MyDataSource |
在playground / page 里面这么用吗? 注册到 DataSourceManager 后, 组件怎么用? |
还有个问题 DataSourceManager 是 页面的data管理 还是数据源管理的概念 = =? |
在组件的formConfig中加上type: 'data-source-select' / 'data-source-field-select',或者直接在文本输入宽中输入${数据源id.字段name}。然后再组件中的config中就可以获取到对应的数据源数据。 DataSourceManager 中的data就是所有数据源的数据,会自动赋值到config中 |
runtime中会监听数据源变化然后更新dsl tmagic-editor/runtime/vue3/page/App.vue Line 28 in 20a540f
DataSourceManager 中会编译好数据源相关的数据,然后生成新的组件配置,通知runtime更新
|
根据源码 查找到数据源定义 要用class extend Base
问题1: key不存在执行不下去
问题2: 把第1个问题处理完后, 遇到第二个报错点:
原因是 declaration.name 为undefined
就可以生成对应的datasource-entry.js 入口文件
是我对初始化数据源的定义设定错了,还是这个源码是不完善的?
The text was updated successfully, but these errors were encountered: