openharmony 鸿蒙 arkts-ui-widget-adapt-faq

2026-08-25 浏览 (1)

ArkTS Widget Adaptation FAQs

Does ArkTS widget development support V2 decorators? How do I migrate from V1 to V2?

ArkTS widget development supports the V2 decorator syntax (such as @ObservedV2 and @ComponentV2). You are advised to use V2 decorators to replace the V1 syntax for state management, so as to achieve better component rendering performance and state synchronization capabilities. For details about the syntax differences, migration procedure, and sample code, see V1 to V2 Migration Overview.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 arkts-ui-liveform-funinteraction-development

openharmony 鸿蒙 js-ui-widget-development

openharmony 鸿蒙 arkts-ui-widget-page-animation

openharmony 鸿蒙 arkts-ui-widget-event-uiability

openharmony 鸿蒙 arkts-form-overview

openharmony 鸿蒙 arkts-ui-widget-creation

openharmony 鸿蒙 arkts-ui-widget-event-call

openharmony 鸿蒙 arkts-ui-widget-dark-light-color-adapt

openharmony 鸿蒙 arkts-ui-widget-configuration

openharmony 鸿蒙 arkts-ui-widget-visual-effect-sys

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/ANYgbvpG