Open exqmjmz opened 10 months ago
从报错来看,你是在钩子里面调用了钩子,导致钩子循环嵌套了 从我测试来看,在函数CurrentUserHookComp 里添加属性是行得通的
从报错来看,你是在钩子里面调用了钩子,导致钩子循环嵌套了 从我测试来看,在函数CurrentUserHookComp 里添加属性是行得通的
换了另外一种方式绕过去了 直接在getCurrentUser获取具体的用户信息时,一并获取对应授权的app
通过把授权的应用加载进来,可以通过配置grid布局方式,单独创建应用首页,把这个默认页设置成默认应用,用户进来显示的第一个页面就是这个应用页面,再通过这个页面跳转到别的应用。 而不是进入到lowcoder自带的,因为自带的还会显示出其他如模块、导航、文件夹这种界面,对应实际使用的用户来讲过于混乱了
应该能实现你的需求,另外,没用的属性可以不用打印,pick你需要的属性,渲染列表开销比较大
应该能实现你的需求,另外,没用的属性可以不用打印,pick你需要的属性,渲染列表开销比较大
明白,渲染这点也发现了,组件多和属性多的情况下,editor页面会卡顿
你这个自定义导航页的想法很不错! 但是放在currentUser还是觉得不是很理想,随着App多了的话,没必要浪费这部分开销,我后面有空的话把查询可访问页面搞到lowcoder_API里吧,不过这得改后端,JAVA不熟 - -!到时候先试一试吧
你这个自定义导航页的想法很不错! 但是放在currentUser还是觉得不是很理想,随着App多了的话,没必要浪费这部分开销,我后面有空的话把查询可访问页面搞到lowcoder_API里吧,不过这得改后端,JAVA不熟 - -!到时候先试一试吧
JAVA不熟+1,之前有想过专门针对每个用户群,可以设置多个APP应用,如果是一个APP应用就跳转到这个应用。如果是多个的,就单独跳转到一个独立页面,做选择后再跳转。
同时再问一下,自定义数据源的文档有吗? 想尝试加入自定义JavaScript脚本作为数据源,新建脚本后直接默认挂载到window或者也可以通过定义好传参,然后多个地方都可以直接引用,也可以在这个地方调用
现在两种引用外部js方式,或多或少到后期都有不方便的地方
采用库的方式引用,不方便修改 采用高级设置的方式引用,如果脚本一多了,也不好维护
哎。。。。哪来的文档啊,组件文档我都没时间写
哎。。。。哪来的文档啊,组件文档我都没时间写
我回头整理一下我这边改过的,之前试过给组件标题加入大小、粗体的样式属性
哎。。。。哪来的文档啊,组件文档我都没时间写
找到了,在lowcoder官网上有,自定义数据源的文档 https://docs.lowcoder.cloud/lowcoder-documentation/lowcoder-extension/develop-data-source-plugins
有空我研究看看
@ljm000 已经添加了lowcoder API查询可访问App的方法,你可以试一下有没有问题
@ljm000 已经添加了lowcoder API查询可访问App的方法,你可以试一下有没有问题
已经看到对应文档
我想在currentUser这个全局变量中加入能获取到这个用户角色可以访问的应用,通过接口查到,获取能访问的应用是通过folderElementsSelector获取,当我在 client\packages\lowcoder\src\comps\hooks\hookComp.tsx 加入以下代码时会直接报错
如果我想加入一个或者修改原有的hook,请问有什么建议或者该如何操作? 报错如下: