xmirror-components 1.0.30-alpha.7 → 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.
- package/README.md +30 -0
- package/build/dist/index.cjs +65 -34
- package/build/dist/index.mjs +4307 -2752
- package/build/es/components/Table/ResizableColumns/index.d.ts +9 -0
- package/build/es/components/Table/ResizableColumns/index.js +76 -0
- package/build/es/components/Table/ResizableColumns/styles.d.ts +8 -0
- package/build/es/components/Table/ResizableColumns/styles.js +11 -0
- package/build/es/components/Table/index.js +3 -2
- package/build/es/components/Table/types.d.ts +4 -0
- package/build/es/components/Table/utils.d.ts +6 -0
- package/build/es/components/Table/utils.js +13 -0
- package/build/es/hooks/useTable/index.js +19 -13
- package/build/es/hooks/useTable/types.d.ts +8 -29
- package/build/lib/components/Table/ResizableColumns/index.js +114 -0
- package/build/lib/components/Table/ResizableColumns/styles.js +17 -0
- package/build/lib/components/Table/index.js +3 -2
- package/build/lib/components/Table/utils.js +17 -0
- package/build/lib/hooks/useTable/index.js +19 -13
- package/build/lib/index.d.ts +5 -36
- package/build/package.json +7 -5
- package/build/types/components/Table/ResizableColumns/index.d.ts +9 -0
- package/build/types/components/Table/ResizableColumns/styles.d.ts +8 -0
- package/build/types/components/Table/types.d.ts +4 -0
- package/build/types/components/Table/utils.d.ts +6 -0
- package/build/types/hooks/useTable/types.d.ts +8 -29
- 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/)
|