Skip to content

v0.6.0

Compare
Choose a tag to compare
@chengpeiquan chengpeiquan released this 05 Dec 08:27
· 23 commits to main since this release
590c88e
  • Refined TypeScript type declarations to now get better type deduction
  • Refactored components using Composition API and TSX, the build products are now index.mjs (ESM) / index.cjs (CJS) / index.min.js (UMD), you don’t need to pay attention to the file type when using , it can be automatically identified by importing from the package name
  • Optimized document experience, see https://cropper.chengpeiquan.com
  • Added live demos and source code reference in the document, see live demos
  • The build tool migrated from Rollup to Vite (if you want to know how to build a Vue component with Vite, you can refer to the repository source code)

  • 完善了 TypeScript 类型声明,现在可以获得更完善的类型推导
  • 使用 Composition API 和 TSX 重构了组件,构建产物现在分别是 index.mjs (ESM) / index.cjs (CJS) / index.min.js (UMD) ,使用时无须关注文件类型,从包名导入即可自动识别
  • 优化了文档体验,见 https://cropper.chengpeiquan.com/zh/
  • 文档内新增了在线 demo 及源码参考,见 在线演示
  • 构建工具从 Rollup 迁移到 Vite (如果你想了解用 Vite 构建一个 Vue 组件,可以参考仓库源码)