好吧我才反应过来框架中很多设置是直接改全局配置
有群吗 框架得思想太高深了
群号点我头像
V1.1.1 版本更新
What’s Changed
- 升级插件版本 by @1226085293 in #80
- 插件包装提示及安全性修复 by @1226085293 in #81
- 优化节点树插件 by @1226085293 in #82
- 修复关闭引用生成了空脚本 by @1226085293 in #83
- 修复类型错误及添加更新本地 Bundle 版本 by @1226085293 in #84
- 增加 init、drive 接口参数类型 by @1226085293 in #85
- Bump brace-expansion from 2.0.1 to 2.0.2 in /tool/typedoc by @dependabot in #86
- Bump brace-expansion from 1.1.11 to 1.1.12 in /extensions/MKFramework by @dependabot in #87
- 修复编辑器刷新后多语言键被重置 by @1226085293 in #88
- 适配插件到3.8.6 by @1226085293 in #89
- 更新插件版本 by @1226085293 in #90
- Bump brace-expansion from 2.0.1 to 2.0.2 in /plugin/node-tree by @dependabot in #91
- 添加open、close事件 by @1226085293 in #92
- 修复关闭隐藏模块未重新激活 active by @1226085293 in #94
Full Changelog : v1.1.0…v1.1.1
1赞
不错,比tgx 好多了
1赞
V1.1.2 版本更新
增加
- 增加框架模块剔除/恢复功能
- 增加 MVVM 单独示例
- 为打开动画增加是否等待选项
修改
- 修改命名风格为驼峰
- 升级至 3.8.6
- 简化示例项目
- 删除已弃用接口的使用
- 更新 README,增加仓库导航
修复
- 防止分组重复添加相同音频单元
- 增加音频单元自动释放管理
- 修复 MKHttp 中的编解码器未使用
What’s Changed
- 修复资源加载默认 bundle 为当前场景所在 bundle,其次为 resources by @1226085293 in https://github.com/1226085293/MKFramework/pull/96
- 修改命名风格为驼峰 by @1226085293 in https://github.com/1226085293/MKFramework/pull/98
- Bump tmp from 0.2.1 to 0.2.4 by @dependabot[bot] in https://github.com/1226085293/MKFramework/pull/97
- Bump form-data from 4.0.0 to 4.0.4 in /extensions/MKFramework by @dependabot[bot] in https://github.com/1226085293/MKFramework/pull/99
- 升级插件 by @1226085293 in https://github.com/1226085293/MKFramework/pull/100
- 更新引导及Bundle内的注释 by @1226085293 in https://github.com/1226085293/MKFramework/pull/101
Full Changelog: https://github.com/1226085293/MKFramework/compare/v1.1.1...v1.1.2
V1.1.3 版本更新
What’s Changed
- 修复使用console时未限制打印类型 by @1226085293 in https://github.com/1226085293/MKFramework/pull/102
- 增加网络事件自动取消 by @1226085293 in https://github.com/1226085293/MKFramework/pull/104
- Bump sha.js from 2.4.11 to 2.4.12 in /extensions/MKFramework by @dependabot[bot] in https://github.com/1226085293/MKFramework/pull/103
- 修复存储器初始化数据不存在时获取数据报错 by @1226085293 in https://github.com/1226085293/MKFramework/pull/106
- Update FUNDING.yml by @1226085293 in https://github.com/1226085293/MKFramework/pull/107
- 修复类型错误 by @1226085293 in https://github.com/1226085293/MKFramework/pull/108
- 修复 getTexture 的跟随释放对象类型错误 by @1226085293 in https://github.com/1226085293/MKFramework/pull/109
- 修复 emit 时没有触发之前的 request 请求 by @1226085293 in https://github.com/1226085293/MKFramework/pull/110
- 优化注释内容 by @1226085293 in https://github.com/1226085293/MKFramework/pull/111
- 更新 README.md by @1226085293 in https://github.com/1226085293/MKFramework/pull/112
- 删减不必要的代码,修改属性名 by @1226085293 in https://github.com/1226085293/MKFramework/pull/113
- 修复渲染层级相关问题 by @1226085293 in https://github.com/1226085293/MKFramework/pull/114
- 防止 bundleStr、sceneStr 被外部设置 by @1226085293 in https://github.com/1226085293/MKFramework/pull/115
- 设置preBundleStr、preSceneStr、isSwitchScene为只读属性 by @1226085293 in https://github.com/1226085293/MKFramework/pull/116
- bundle 管理器中删除 network,添加事件对象列表 by @1226085293 in https://github.com/1226085293/MKFramework/pull/117
- 更新安装插件 by @1226085293 in https://github.com/1226085293/MKFramework/pull/118
- Bump axios from 1.8.2 to 1.12.0 in /plugin/quick-store by @dependabot[bot] in https://github.com/1226085293/MKFramework/pull/119
- Bump form-data from 4.0.0 to 4.0.4 in /plugin/quick-store by @dependabot[bot] in https://github.com/1226085293/MKFramework/pull/105
- 修复 Bundle 管理器模板错误 by @1226085293 in https://github.com/1226085293/MKFramework/pull/120
- 适配低版本nodejs by @1226085293 in https://github.com/1226085293/MKFramework/pull/121
- 优化 protected 属性的命名规则 by @1226085293 in https://github.com/1226085293/MKFramework/pull/122
- 进行遗漏的代码格式化 by @1226085293 in https://github.com/1226085293/MKFramework/pull/123
- Update FUNDING.yml by @1226085293 in https://github.com/1226085293/MKFramework/pull/124
Full Changelog: https://github.com/1226085293/MKFramework/compare/v1.1.2...v1.1.3
1赞
打开ui,需要传递脚本名,这样是不是没法解耦,这样脚本分包就不好弄
脚本名可以走配置,单独放一个地方
可以具体说下吗?我现在想兼顾不影响分包,但传参的智能提示在,又不需要手动处理参数
这种有坑点,本来只想更新某个子包,增加了窗体,那么就会连主包也更新.
那就采用注册形式的呗,加载bundle的脚本后自动注册,然后再打开Bundle里的界面
这不会造成任何影响,如果你不使用某个类型那么就应该删除,而且不会造成循环引用,也更方便查看代码
从预制体到脚本或从枚举到脚本会导致代码查看不便,这才是落后的方式
对于分包,即使你使用其他方式也得保证你使用的脚本已经存在,引用未加载的脚本的结果是报错,你分割开了顶多可以拦截报错,而且编码更麻烦,没有任何好处
选择其他方式时,你可以想想另外的方式比这个方式好在哪儿
能代码分包~
正常的也能,代码分包取决于你的项目架构,或者你可以举例直接引用类型不能做分包但是其他方式可以分包的情况
我认为静态import和动态import都能解决你的问题
所以我在问有什么办法能解决。
用字符串可以处理,但智能化不够。
你的情况是需要在先加载的A Bundle调用B Bundle的脚本是吧,要么把逻辑放在B,要么就得动态import,没啥好办法
