The article archive

云间连下榻,
天上接行杯。

Scroll down
  • vue (8)
  • JavaScript (4)
  • hexo (3)
  • node (3)
  • vitepress (2)
  • WebComponents (2)
  • vscode (2)
  • Flutter (2)
  • electron (2)
  • css (2)
  • vite (1)
  • 工具 (1)
  • AST (1)
  • npm (1)
  • 小程序 (1)
  • Pjax (1)
  • video (1)
  • github (1)
  • MongoDB (1)
  • git (1)
  • vuex (1)
  • vue-route (1)
  • elemelt-ui (1)
  • devenv (1)
  • webpack (1)
  • hello world (1)
WebComponents

有时候想写一个无关框架组件,又不想用原生或者 Jquery 那套去写,而且还要避免样式冲突,用 Web Components 去做刚觉就挺合适的。但是现在 Web Components 使用起来还是不够灵活,很多地方还是不太方便的,如果能和 MVVM 搭配使用就好了。早在之前 Angular 就支持将组件构建成 Web Components,Vue3 3.2+ 开始终于支持将组建构建成 Web Components 了。正好最近想重构下评论插件,于是上手试了试。

Web Components
  • 20-05-10
  • 02:16

组件是前端的发展方向,现在流行的 React 和 Vue 都是组件框架。如今 Web Components 被越来越多的浏览器所支持,Web Components 或许是未来的方向。

本站已加入BLOGS·CN