在 page-slot.module.ts 里,定义一个配置对象 ConfigUIDebug.

这个配置对象定义在 cms-component-data.ts 的 ConfigUIDebug 对象里,包含一个 boolean 类型字段:switchOn
通过:
给 DefaultConfigChunk 提供了运行时实现。
这样,在运行时,PageSlotComponent 就可以在构造函数里注入全局 Config 对象,进而访问到字段 switchOn 的值。
在 page-slot.module.ts 里,定义一个配置对象 ConfigUIDebug.
这个配置对象定义在 cms-component-data.ts 的 ConfigUIDebug 对象里,包含一个 boolean 类型字段:switchOn
通过:
给 DefaultConfigChunk 提供了运行时实现。
这样,在运行时,PageSlotComponent 就可以在构造函数里注入全局 Config 对象,进而访问到字段 switchOn 的值。