mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2026-09-25 13:26:22 +00:00
ENABLE_PROPS_FORM_VALIDATE 原先 provide 的是布尔快照,父组件动态切换 enablePropsFormValidate 后子孙组件拿不到新值。改为与 isLargeStageContainer 一致用 computed 注入,注入键类型变为 InjectionKey<ComputedRef<boolean>>, PropsPanel / FormPanel 侧统一按 .value 读取。 同时 FormPanel 内 MForm 的 type-match-valid / validate-on-init 由硬编码 true 改为跟随 enablePropsFormValidate,未开启时不再做 typeMatch 校验与 初始化校验。