Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

对Vue组件化的理解 #74

Open
GGXXMM opened this issue Dec 29, 2020 · 0 comments
Open

对Vue组件化的理解 #74

GGXXMM opened this issue Dec 29, 2020 · 0 comments
Labels

Comments

@GGXXMM
Copy link
Owner

GGXXMM commented Dec 29, 2020

  1. 组件是独立和可复用的代码组织单元。组件系统是Vue核心特性之一,它使开发者使用小型、独立和可复用的组件构建大型应用;
  2. 组件化开发能大幅度提高应用开发效率、测试性、复用性等;
  3. 组件按使用可分为3类:页面组件、业务组件(适用业务场景)、通用组件(按钮/表单等)
  4. vue的组件是基于配置的,框架后续会生成其构造函数,它们基于VueComponent,扩展vue;
  5. vue中常见组件化技术:属性prop、自定义事件、插槽等,它们主要用于组件通信、扩展等;
  6. 合理的划分组件,有助于提升应用性能;
  7. 组件应该是高内聚、低耦合的;
  8. 遵循单向数据流的原则。
@GGXXMM GGXXMM added the vue label Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant