zjj

Results 11 comments of zjj

> 可以在基座通过子应用的方式去加载 lowcode-demo, 也可以在子应用嵌套子应用加载 lowcode-demo作为子应用加载时,遇到 找不到window上定义的全局变量React等,你是怎么解决的啊? ![image](https://user-images.githubusercontent.com/5880014/197144515-3bfc1d28-737c-4dd8-afce-94e435724ee1.png)

我找到了hack的解决方法。 在主应用中引入子应用(lowcode-demo)的cdn包,主引用会将这些变量挂载到window上。具体原因见这个[issue](https://github.com/umijs/qiankun/issues/718)中的3楼 ![image](https://user-images.githubusercontent.com/5880014/198262204-c54d2f46-4603-4316-95f2-f5662e4797f8.png)

> lowcode-demo 是哪个项目? https://github.com/alibaba/lowcode-demo

我猜测是这里导致的,window.xxx,但不知道应该怎么修改。求大佬指点 @bailicangdu ![image](https://user-images.githubusercontent.com/5880014/187345646-165b60d1-ee48-4e7e-a197-e720c4838459.png) 按着官方提供的解决方案,也不晓得这种情况应该如何修改。https://micro-zoe.github.io/micro-app/docs.html#/zh-cn/questions?id=_12%e3%80%81%e9%94%99%e8%af%af%e4%bf%a1%e6%81%af%ef%bc%9axxx-%e6%9c%aa%e5%ae%9a%e4%b9%89

应该如何把子应用window上的属性,挂到最外层基座window上啊? @bailicangdu ![image](https://user-images.githubusercontent.com/5880014/187813156-d70a6231-dc10-4977-b861-ff4b7925632b.png)

> vite 沙箱正在开发中,敬请期待 这个有预期的时间吗?我们系统也是vite+vue的... @bailicangdu

期待性能详细介绍

> 请问你有解决吗?是怎么解决的?我尝试了各种方式都不生效,还是undefined @lyh0371

生效是指,meta.ts中的props属性,写在最外层,开源的lowcode-materials中物料的设计器中有该属性。但我的代码中,将props写在最外层,不生效,只有写在 configure.props 中,效果才与开源物料一致 ![image](https://user-images.githubusercontent.com/5880014/184809072-8919816f-b1fc-4a32-a873-7897c45eeab6.png) ![image](https://user-images.githubusercontent.com/5880014/184809170-1b1393bc-19d5-495d-ba11-f099a1ca9d87.png)

「外层的 props 是入料模块自动生成的,内层的 configure.props 是人工设置的」,是不是写反了? 我执行 `lowcode:dev` 自动生成的meta.ts中,有内层的 configure.props,无外层的 props。 我另一个疑问是,我手动去写外层的props,ts定义中并没有外层的 props.title 属性,如上图会飘红,且配置了页面上也不生效。为啥 lowcode-materials项目可以这么用,且生效呢? @LeoYuan