@hzab/list-render 1.10.20-alpha.1 → 1.10.20-alpha.4

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.10.20
2
+
3
+ fix: 修复 PaginationRender 的 全部样式
4
+
1
5
  # @hzab/list-render@1.10.19
2
6
 
3
7
  fix: 修复 PaginationRender 的 pageSizeOptions 取值
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hzab/list-render",
3
- "version": "1.10.20-alpha.1",
3
+ "version": "1.10.20-alpha.4",
4
4
  "description": "",
5
5
  "main": "src",
6
6
  "scripts": {
@@ -41,8 +41,10 @@ export const useSlotsComponents = (props) => {
41
41
  Object.keys(formilyComponents || {}).forEach((key) => {
42
42
  formilyComponents[key] = function (cProps) {
43
43
  const field = useField();
44
- const index = useIndex();
45
- const record = useRecord();
44
+ // useIndex 适用于 ArrayTable 默认表单从 props 获取
45
+ const index = useIndex() ?? cProps.index;
46
+ // useRecord 适用于 ArrayTable 默认表单从 props 获取
47
+ const record = useRecord() ?? cProps.record;
46
48
 
47
49
  const fieldSchema = useFieldSchema();
48
50
  const name = fieldSchema.name;
@@ -59,7 +61,7 @@ export const useSlotsComponents = (props) => {
59
61
  ...cProps,
60
62
  index,
61
63
  record,
62
- text: cProps.value,
64
+ text: cProps.value || cProps.text,
63
65
  field: field,
64
66
  fieldSchema: fieldSchema,
65
67
  /** 原始组件 */
@@ -8,4 +8,47 @@
8
8
  margin-bottom: 8px;
9
9
  }
10
10
  }
11
+ .pagination-infinity {
12
+ .ant-pagination-options {
13
+ .rc-virtual-list-holder-inner {
14
+ .ant-select-item {
15
+ &:last-child {
16
+ .ant-select-item-option-content {
17
+ position: relative;
18
+ color: transparent;
19
+ &::after {
20
+ color: rgba(0, 0, 0, 0.85);
21
+ cursor: pointer;
22
+ transition: background 0.3s ease;
23
+ content: "全部";
24
+ position: absolute;
25
+ left: 0;
26
+ top: 0;
27
+ }
28
+ }
29
+ }
30
+ }
31
+ }
32
+ }
33
+ }
34
+ .pagination-infinity-checked {
35
+ .ant-pagination-options {
36
+ .ant-select-selector {
37
+ .ant-select-selection-item {
38
+ position: relative;
39
+ color: transparent;
40
+ &::after {
41
+ color: rgba(0, 0, 0, 0.85);
42
+ cursor: pointer;
43
+ transition: background 0.3s ease;
44
+ content: "全部";
45
+ position: absolute;
46
+ left: 0;
47
+ top: 0;
48
+ visibility: visible;
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
11
54
  }
@@ -313,6 +313,7 @@ const TableRender = forwardRef(function (props, tableRef) {
313
313
  return {
314
314
  ..._onRowRes,
315
315
  record,
316
+ index,
316
317
  id: record[props.idKey || "id"],
317
318
  rowFormMapRef,
318
319
  editingInofRef,