@hzab/list-render 1.9.14 → 1.9.15

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/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # @hzab/list-render@1.9.15
2
+
3
+ fix: components改为外部可配置
4
+
1
5
  # @hzab/list-render@1.9.14
2
6
 
3
7
  fix: 拖动列添加fixed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hzab/list-render",
3
- "version": "1.9.14",
3
+ "version": "1.9.15",
4
4
  "description": "",
5
5
  "main": "src",
6
6
  "scripts": {
@@ -350,13 +350,17 @@ function TableRender(props) {
350
350
  expandable={config.expandable}
351
351
  loading={props.loading}
352
352
  onRow={config?.onRow}
353
+ components={
354
+ isDargTable
355
+ ? {
356
+ body: {
357
+ wrapper: DraggableContainer,
358
+ row: DraggableBodyRow,
359
+ },
360
+ }
361
+ : undefined
362
+ }
353
363
  {...props.tableProps}
354
- components={{
355
- body: {
356
- wrapper: DraggableContainer,
357
- row: DraggableBodyRow,
358
- },
359
- }}
360
364
  />
361
365
  <FormilyField
362
366
  schema={props.schema}