根据CAPI文档,https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/\_ark\_u\_i\_\_\_native\_module-V5,使用NODE\_ALIGN\_SELF的时候发现,文档描述的使用方法有误。
根据文档描述,NODE\_ALIGN\_SELF参数类型为ArkUI\_ItemAlign,默认值为ARKUI\_ITEM\_ALIGN\_AUTO,使用时发现编译报错。"error: use of undeclared identifier 'ArkUI\_ItemAlign'; did you mean 'ARKUI\_ITEM\_ALIGNMENT\_AUTO'?",使用ARKUI\_ITEM\_ALIGNMENT\_AUTO可以设置成功。
参考gitee文档:https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis-arkui/\_ark\_u\_i\_\_\_native\_module.md,文档里搜索NODE\_ALIGN\_SELF。