UNPKG

hm-router-register-plugin

Version:

鸿蒙ZRouter动态路由框架页面模板化插件

39 lines (36 loc) 1.47 kB
/* * @Author: yanyisong yanyisong@saicmobility.com * @Date: 2025-02-17 17:52:28 * @LastEditors: yanyisong yanyisong@saicmobility.com * @LastEditTime: 2025-02-18 14:38:27 * @FilePath: \RouterRegisterPlugin\src\models\constants.ts * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ /** * @author: HZWei * @date: 2024/10/8 * @desc: */ export default class Constants { static readonly ROUTER_PLUGIN_ID = "routerRegisterPlugin" static readonly BUILDER_REGISTER_FUN_FILE_NAME: string = 'builderRegister.ets' static readonly ROUTER_TEMPLATE_PATH: string = '../../template/builderRegister.txt' static readonly SERVICE_TEMPLATE_PATH: string = '../../template/serviceRegister.txt' static readonly PREFIX_ZR: string = 'SAICR' static readonly ETS_SUFFIX : string = '.ets' static readonly Z_ROUTER_PATHS: string[] = ['@saic/router'] static readonly DEF_MODULE_NAME: string = "entry" static readonly DEF_OBSERVER_ATTRIBUTE_NAME: string = "lifecycleObserver" /** * 未知类型 */ static readonly TYPE_UNKNOWN: number = -1 /** * 查找模块的Index.ets文件类型 */ static readonly TYPE_FIND_MODULE_INDEX_PATH: number = 0 /** * 查找注解常量 */ static readonly TYPE_FIND_ANNOTATION_CONST_VALUE: number = 1 }