xmirror-components 1.0.30-alpha.6 → 1.0.30-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/README.md +30 -0
  2. package/build/dist/index.cjs +65 -34
  3. package/build/dist/index.mjs +4359 -2664
  4. package/build/es/components/Table/ResizableColumns/index.d.ts +9 -0
  5. package/build/es/components/Table/ResizableColumns/index.js +76 -0
  6. package/build/es/components/Table/ResizableColumns/styles.d.ts +8 -0
  7. package/build/es/components/Table/ResizableColumns/styles.js +11 -0
  8. package/build/es/components/Table/index.js +3 -2
  9. package/build/es/components/Table/types.d.ts +4 -0
  10. package/build/es/components/Table/utils.d.ts +6 -0
  11. package/build/es/components/Table/utils.js +13 -0
  12. package/build/es/hooks/useTable/index.js +19 -13
  13. package/build/es/hooks/useTable/types.d.ts +8 -29
  14. package/build/es/index.d.ts +1 -0
  15. package/build/es/index.js +1 -0
  16. package/build/lib/components/Table/ResizableColumns/index.js +114 -0
  17. package/build/lib/components/Table/ResizableColumns/styles.js +17 -0
  18. package/build/lib/components/Table/index.js +3 -2
  19. package/build/lib/components/Table/utils.js +17 -0
  20. package/build/lib/hooks/useTable/index.js +19 -13
  21. package/build/lib/index.d.ts +126 -0
  22. package/build/lib/index.js +3 -1
  23. package/build/package.json +7 -5
  24. package/build/types/components/Table/ResizableColumns/index.d.ts +9 -0
  25. package/build/types/components/Table/ResizableColumns/styles.d.ts +8 -0
  26. package/build/types/components/Table/types.d.ts +4 -0
  27. package/build/types/components/Table/utils.d.ts +6 -0
  28. package/build/types/hooks/useTable/types.d.ts +8 -29
  29. package/build/types/index.d.ts +1 -0
  30. package/package.json +7 -5
package/README.md CHANGED
@@ -271,6 +271,36 @@ npm run lint
271
271
 
272
272
  本项目采用 MIT 许可证 - 查看 [LICENSE](./LICENSE) 文件了解详情。
273
273
 
274
+ ## 🔧 最近更新
275
+
276
+ ### v1.0.2 (2024-01-XX)
277
+
278
+ #### 样式系统优化
279
+ - **ResizableColumns 样式转换**: 将 `index.less` 文件转换为 `@emotion/styled` 形式
280
+ - 创建了 `styles.ts` 文件,使用 `@emotion/styled` 实现样式组件
281
+ - 添加了 `react-resizable` 和 `@types/react-resizable` 依赖
282
+ - 创建了 `utils.ts` 工具文件,提供 `dataIndexToString` 函数
283
+ - 修复了所有 TypeScript 类型错误,提升了类型安全性
284
+ - 删除了不再需要的 `index.less` 文件
285
+
286
+ #### 改进
287
+ - 统一了项目的样式系统,全部使用 `@emotion/styled`
288
+ - 提升了代码的类型安全性和可维护性
289
+ - 优化了组件库的构建和打包流程
290
+
291
+ ### v1.0.1 (2024-01-XX)
292
+
293
+ #### 修复
294
+ - **useTable Hook 类型兼容性修复**: 修复了 `onChangeTable` 函数与 Antd Table 组件 `onChange` 回调的类型不匹配问题
295
+ - 更新了 `TableChangeParams` 类型,使 `current` 和 `pageSize` 属性可选
296
+ - 更新了 `FilterParams` 和 `SortParams` 类型,提高与 Antd 类型的兼容性
297
+ - 优化了排序参数处理逻辑,支持数组形式的排序信息
298
+ - 修复了行选择回调函数的类型定义
299
+
300
+ #### 改进
301
+ - 提升了类型安全性,减少了 TypeScript 编译错误
302
+ - 优化了代码的可维护性和扩展性
303
+
274
304
  ## 🔗 相关链接
275
305
 
276
306
  - [React 官方文档](https://react.dev/)