@hzab/list-render 1.10.0 → 1.10.2-beta

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,10 +1,14 @@
1
+ # @hzab/list-render@1.10.2
2
+
3
+ feat: table 标题支持自定义
4
+
1
5
  # @hzab/list-render@1.10.1
2
6
 
3
- fix: editMode 修复行内编辑保存路由id为0的情况
7
+ fix: 拖动事件页码错误问题
4
8
 
5
9
  # @hzab/list-render@1.10.0
6
10
 
7
- feat: editMode 编辑模式。支持行内编辑、单元格编辑 modal 弹窗/抽屉编辑; line 编辑整行,编辑按钮在操作列; line-cell 编辑整行,操作按钮在单元格; cell 编辑指定单元格
11
+ feat: editMode 编辑模式。支持行内编辑、单元格编辑 modal 弹窗/抽屉编辑; line 编辑整行,编辑按钮在操作列; line-cell 编辑整行,操作按钮在单元格; cell 编辑指定单元格; 修复行内编辑保存路由 id 为 0 的情况
8
12
 
9
13
  # @hzab/list-render@1.9.16
10
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hzab/list-render",
3
- "version": "1.10.0",
3
+ "version": "1.10.2-beta",
4
4
  "description": "",
5
5
  "main": "src",
6
6
  "scripts": {
@@ -435,7 +435,7 @@ const ListRender = forwardRef(function (props, parentRef) {
435
435
  list={list}
436
436
  config={props.tableConf}
437
437
  hasAction={props.hasAction}
438
- query={model?.query}
438
+ query={{ ...model?.query, ...paginationQueryRef.current }}
439
439
  Slots={props.Slots}
440
440
  onEdit={onEdit}
441
441
  onDel={onDel}
@@ -3,7 +3,7 @@ import { Form, Table, Button, Popconfirm, Tooltip, Checkbox, Popover } from "ant
3
3
  import { QuestionCircleOutlined, FilterOutlined, SettingOutlined, MenuOutlined } from "@ant-design/icons";
4
4
  import { SortableContainer, SortableElement, SortableHandle } from "react-sortable-hoc";
5
5
  import { arrayMoveImmutable } from "array-move";
6
- import _ from "lodash";
6
+ import _, { isFunction } from "lodash";
7
7
 
8
8
  import { FormProvider, FormConsumer } from "@formily/react";
9
9
  import { createForm, onFormValuesChange, onFieldValueChange } from "@formily/core";
@@ -220,7 +220,7 @@ function TableRender(props) {
220
220
  ..._colConf,
221
221
  onCell: (record, rowIndex) =>
222
222
  _colConf?.onCell?.({ ...record, _field: { ...field, ...(fieldSchemas?.[name] || {}) } }, rowIndex) || {},
223
- title: _title,
223
+ title: isFunction(_colConf?.title) ? _colConf?.title() : _title,
224
224
  key: name,
225
225
  dataIndex: name,
226
226
  render: getColRender(colRender),