@teamias/rex-design 0.1.13 → 0.1.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.
Files changed (87) hide show
  1. package/dist/components/action-buttons/demo/FilterDemo.d.ts +6 -0
  2. package/dist/components/action-buttons/demo/FilterDemo.js +117 -0
  3. package/dist/components/action-buttons/demo/index.d.ts +4 -0
  4. package/dist/components/action-buttons/demo/index.js +6 -15
  5. package/dist/components/base-form/demo/Base.js +1 -3
  6. package/dist/components/base-form/demo/CustomDemo.d.ts +6 -0
  7. package/dist/components/base-form/demo/CustomDemo.js +85 -0
  8. package/dist/components/base-form/demo/CustomDescriptionsDemo.d.ts +6 -0
  9. package/dist/components/base-form/demo/{BaseFormBasicTest.js → CustomDescriptionsDemo.js} +93 -167
  10. package/dist/components/base-form/demo/DateDemo.d.ts +6 -0
  11. package/dist/components/base-form/demo/DateDemo.js +52 -0
  12. package/dist/components/base-form/demo/DependencyDemo.d.ts +6 -0
  13. package/dist/components/base-form/demo/{BaseFormBasicDepend.js → DependencyDemo.js} +100 -125
  14. package/dist/components/base-form/demo/DescriptionsDemo.d.ts +6 -0
  15. package/dist/components/base-form/demo/{BaseProFormSelectDim.js → DescriptionsDemo.js} +84 -232
  16. package/dist/components/base-form/demo/InputDemo.d.ts +6 -0
  17. package/dist/components/base-form/demo/InputDemo.js +59 -0
  18. package/dist/components/base-form/demo/MultipleDemo.d.ts +6 -0
  19. package/dist/components/base-form/demo/MultipleDemo.js +97 -0
  20. package/dist/components/base-form/demo/SelectDemo.d.ts +6 -0
  21. package/dist/components/base-form/demo/SelectDemo.js +141 -0
  22. package/dist/components/base-list-table/demo/BasicBaseListTable.d.ts +4 -0
  23. package/dist/components/base-list-table/demo/BasicBaseListTable.js +7 -17
  24. package/dist/components/base-list-table/demo/NoData.d.ts +4 -0
  25. package/dist/components/base-list-table/demo/NoData.js +6 -1
  26. package/dist/components/base-list-table/demo/TableMaxRowCount.d.ts +4 -0
  27. package/dist/components/base-list-table/demo/TableMaxRowCount.js +7 -11
  28. package/dist/components/base-list-table/demo/VirtualDemo.d.ts +4 -0
  29. package/dist/components/base-list-table/demo/VirtualDemo.js +6 -1
  30. package/dist/components/base-table/demo/BaseTableAll.d.ts +4 -0
  31. package/dist/components/base-table/demo/BaseTableAll.js +6 -1
  32. package/dist/components/base-table/demo/BaseTableBasic.d.ts +4 -0
  33. package/dist/components/base-table/demo/BaseTableBasic.js +6 -1
  34. package/dist/components/base-table/demo/BaseTableIndex.d.ts +4 -0
  35. package/dist/components/base-table/demo/BaseTableIndex.js +7 -11
  36. package/dist/components/base-table/demo/BaseTableRowSelect.d.ts +4 -0
  37. package/dist/components/base-table/demo/BaseTableRowSelect.js +6 -1
  38. package/dist/components/base-table/demo/DynamicData.d.ts +4 -0
  39. package/dist/components/base-table/demo/DynamicData.js +6 -1
  40. package/dist/components/data-cell/demo/DynamicData.js +1 -2
  41. package/dist/components/data-cell/demo/GroupDemo.d.ts +6 -0
  42. package/dist/components/data-cell/demo/GroupDemo.js +68 -0
  43. package/dist/components/data-cell/demo/GroupV2Demo.d.ts +6 -0
  44. package/dist/components/data-cell/demo/GroupV2Demo.js +89 -0
  45. package/dist/components/data-cell/demo/IconDemo.d.ts +6 -0
  46. package/dist/components/data-cell/demo/IconDemo.js +52 -0
  47. package/dist/components/{base-form/demo/BaseFormBasicDepend.d.ts → data-cell/demo/ImageDemo.d.ts} +4 -0
  48. package/dist/components/data-cell/demo/ImageDemo.js +31 -0
  49. package/dist/components/data-cell/demo/LinkDemo.d.ts +6 -0
  50. package/dist/components/data-cell/demo/LinkDemo.js +52 -0
  51. package/dist/components/data-cell/demo/LinkGroupDemo.d.ts +6 -0
  52. package/dist/components/data-cell/demo/LinkGroupDemo.js +62 -0
  53. package/dist/components/{base-form/demo/BaseFormCustomContent.d.ts → data-cell/demo/NestedDemo.d.ts} +4 -0
  54. package/dist/components/data-cell/demo/NestedDemo.js +50 -0
  55. package/dist/components/data-cell/demo/TagDemo.d.ts +6 -0
  56. package/dist/components/data-cell/demo/TagDemo.js +47 -0
  57. package/dist/components/data-cell/demo/TextDemo.d.ts +6 -0
  58. package/dist/components/data-cell/demo/TextDemo.js +43 -0
  59. package/dist/components/data-cell/modules/cellItemMap.js +22 -17
  60. package/dist/components/flow/core/custom-node.js +58 -50
  61. package/dist/components/flow/core/util.d.ts +4 -14
  62. package/dist/components/flow/core/util.js +116 -5
  63. package/dist/components/flow/demo/menu-demo.js +174 -83
  64. package/dist/components/flow/demo/toolbar-demo.js +0 -2
  65. package/dist/components/flow/types.d.ts +8 -6
  66. package/dist/components/simple-modal/demo/Demo.js +34 -4
  67. package/dist/context/request-fields-container/demo/index.js +6 -2
  68. package/dist/context/rex-pro-config-provider/demo/index.js +6 -2
  69. package/dist/hooks/use-state-data/demo/index.d.ts +4 -0
  70. package/dist/hooks/use-state-data/demo/index.js +6 -1
  71. package/dist/hooks/use-sync-value-effect/demo/index.js +94 -0
  72. package/package.json +7 -3
  73. package/dist/components/base-form/demo/BaseFormBasicTest.d.ts +0 -2
  74. package/dist/components/base-form/demo/BaseFormCustomContent.js +0 -121
  75. package/dist/components/base-form/demo/BaseFormCustomDescriptions.d.ts +0 -2
  76. package/dist/components/base-form/demo/BaseFormCustomDescriptions.js +0 -332
  77. package/dist/components/base-form/demo/BaseFormCustomFormItem.d.ts +0 -2
  78. package/dist/components/base-form/demo/BaseFormCustomFormItem.js +0 -72
  79. package/dist/components/base-form/demo/BaseFormDescriptions.d.ts +0 -2
  80. package/dist/components/base-form/demo/BaseFormDescriptions.js +0 -325
  81. package/dist/components/base-form/demo/BaseProFormDateRangePickerV2.d.ts +0 -2
  82. package/dist/components/base-form/demo/BaseProFormDateRangePickerV2.js +0 -50
  83. package/dist/components/base-form/demo/BaseProFormDigitRangeV2.d.ts +0 -2
  84. package/dist/components/base-form/demo/BaseProFormDigitRangeV2.js +0 -59
  85. package/dist/components/base-form/demo/BaseProFormSelectDim.d.ts +0 -2
  86. package/dist/components/data-cell/demo/index.js +0 -364
  87. /package/dist/{components/data-cell → hooks/use-sync-value-effect}/demo/index.d.ts +0 -0
@@ -0,0 +1,89 @@
1
+ import { DataCell, RexProConfigProvider } from "../../..";
2
+
3
+ /**
4
+ * title: group-v2 组合类型(推荐)
5
+ * description: 增强的组合类型,支持 label、分隔符、排列方向等更多配置。推荐在大多数场景使用此类型。
6
+ */
7
+ import { jsx as _jsx } from "react/jsx-runtime";
8
+ export default (function () {
9
+ return /*#__PURE__*/_jsx(RexProConfigProvider, {
10
+ value: {},
11
+ children: /*#__PURE__*/_jsx(DataCell, {
12
+ items: [{
13
+ type: 'group-v2',
14
+ props: {
15
+ label: '商品规格',
16
+ labelStyle: {
17
+ color: '#666',
18
+ marginRight: 8
19
+ },
20
+ itemsDirection: 'row',
21
+ itemsGap: 4,
22
+ itemsSeparator: ' / ',
23
+ items: [{
24
+ type: 'text',
25
+ value: '红色'
26
+ }, {
27
+ type: 'text',
28
+ value: 'XL'
29
+ }, {
30
+ type: 'text',
31
+ value: '128GB'
32
+ }]
33
+ }
34
+ }, {
35
+ type: 'group-v2',
36
+ props: {
37
+ label: '操作记录',
38
+ itemsDirection: 'column',
39
+ itemsGap: 8,
40
+ items: [{
41
+ type: 'text',
42
+ value: '2024-01-10 创建订单',
43
+ style: {
44
+ color: '#666'
45
+ }
46
+ }, {
47
+ type: 'text',
48
+ value: '2024-01-11 已发货',
49
+ style: {
50
+ color: '#1890ff'
51
+ }
52
+ }, {
53
+ type: 'text',
54
+ value: '2024-01-12 已签收',
55
+ style: {
56
+ color: '#52c41a'
57
+ }
58
+ }]
59
+ }
60
+ }, {
61
+ type: 'group-v2',
62
+ props: {
63
+ label: '商品信息',
64
+ itemsDirection: 'row',
65
+ itemsGap: 12,
66
+ items: [{
67
+ type: 'img',
68
+ src: 'https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png',
69
+ width: 50,
70
+ height: 50
71
+ }, {
72
+ type: 'tag',
73
+ value: '热销',
74
+ color: 'red'
75
+ }, {
76
+ type: 'text',
77
+ value: '查看详情',
78
+ action: 'url',
79
+ url: '/detail',
80
+ style: {
81
+ color: '#1890ff',
82
+ cursor: 'pointer'
83
+ }
84
+ }]
85
+ }
86
+ }]
87
+ })
88
+ });
89
+ });
@@ -0,0 +1,6 @@
1
+ /**
2
+ * title: 图标类型
3
+ * description: 展示图标,支持 iconify 图标库和自定义图标
4
+ */
5
+ declare const _default: () => import("react/jsx-runtime").JSX.Element;
6
+ export default _default;
@@ -0,0 +1,52 @@
1
+ import { DataCell } from "../../..";
2
+
3
+ /**
4
+ * title: 图标类型
5
+ * description: 展示图标,支持 iconify 图标库和自定义图标
6
+ */
7
+ import { jsx as _jsx } from "react/jsx-runtime";
8
+ export default (function () {
9
+ return /*#__PURE__*/_jsx(DataCell, {
10
+ items: [{
11
+ type: 'icon',
12
+ props: {
13
+ label: 'iconify',
14
+ value: 'mdi:home',
15
+ style: {
16
+ fontSize: 24,
17
+ color: '#1890ff'
18
+ }
19
+ }
20
+ }, {
21
+ type: 'icon',
22
+ props: {
23
+ label: 'iconify',
24
+ value: 'mdi:account',
25
+ style: {
26
+ fontSize: 24,
27
+ color: '#52c41a'
28
+ }
29
+ }
30
+ }, {
31
+ type: 'icon',
32
+ props: {
33
+ label: 'iconify',
34
+ value: 'mdi:cog',
35
+ style: {
36
+ fontSize: 24,
37
+ color: '#faad14'
38
+ }
39
+ }
40
+ }, {
41
+ type: 'icon',
42
+ props: {
43
+ label: 'iconify',
44
+ value: 'svg-spinners:ring-resize',
45
+ style: {
46
+ fontSize: 24,
47
+ color: '#1890ff'
48
+ }
49
+ }
50
+ }]
51
+ });
52
+ });
@@ -1,2 +1,6 @@
1
+ /**
2
+ * title: 图片类型
3
+ * description: 展示图片,支持预览功能
4
+ */
1
5
  declare const _default: () => import("react/jsx-runtime").JSX.Element;
2
6
  export default _default;
@@ -0,0 +1,31 @@
1
+ import { DataCell } from "../../..";
2
+
3
+ /**
4
+ * title: 图片类型
5
+ * description: 展示图片,支持预览功能
6
+ */
7
+ import { jsx as _jsx } from "react/jsx-runtime";
8
+ export default (function () {
9
+ return /*#__PURE__*/_jsx(DataCell, {
10
+ items: [{
11
+ type: 'img',
12
+ props: {
13
+ label: '商品图片',
14
+ value: 'https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png',
15
+ width: 80,
16
+ height: 80
17
+ }
18
+ }, {
19
+ type: 'img',
20
+ props: {
21
+ label: '用户头像',
22
+ value: 'https://gw.alipayobjects.com/zos/antfincdn/LlvErxo8H9/photo-1503023345310-bd7c1de61c7d.jfif',
23
+ width: 60,
24
+ height: 60,
25
+ style: {
26
+ borderRadius: '50%'
27
+ }
28
+ }
29
+ }]
30
+ });
31
+ });
@@ -0,0 +1,6 @@
1
+ /**
2
+ * title: 链接类型
3
+ * description: 可点击的链接,支持 URL 跳转、文件预览/下载、自定义点击事件
4
+ */
5
+ declare const _default: () => import("react/jsx-runtime").JSX.Element;
6
+ export default _default;
@@ -0,0 +1,52 @@
1
+ import { DataCell, RexProConfigProvider } from "../../..";
2
+
3
+ /**
4
+ * title: 链接类型
5
+ * description: 可点击的链接,支持 URL 跳转、文件预览/下载、自定义点击事件
6
+ */
7
+ import { jsx as _jsx } from "react/jsx-runtime";
8
+ export default (function () {
9
+ return /*#__PURE__*/_jsx(RexProConfigProvider, {
10
+ value: {},
11
+ children: /*#__PURE__*/_jsx(DataCell, {
12
+ items: [{
13
+ type: 'link',
14
+ props: {
15
+ label: '外部链接(新窗口)',
16
+ value: 'https://ant.design',
17
+ action: 'url',
18
+ urlTarget: '_blank'
19
+ }
20
+ }, {
21
+ type: 'link',
22
+ props: {
23
+ label: '内部跳转(当前窗口)',
24
+ value: '/components/data-cell',
25
+ action: 'url',
26
+ urlTarget: '_self'
27
+ }
28
+ }, {
29
+ type: 'link',
30
+ props: {
31
+ label: '文件预览/下载',
32
+ value: 'https://zzzz-zkp.oss-cn-shenzhen.aliyuncs.com/%E5%85%A5%E8%81%8C%E5%BD%95%E7%94%A8%E9%80%9A%E7%9F%A5.pdf',
33
+ action: 'file'
34
+ }
35
+ }, {
36
+ type: 'link',
37
+ props: {
38
+ label: '自定义点击事件',
39
+ value: 'custom-data',
40
+ action: 'custom'
41
+ }
42
+ }],
43
+ onClick: function onClick(item) {
44
+ var _item$props;
45
+ if (((_item$props = item.props) === null || _item$props === void 0 ? void 0 : _item$props.action) === 'custom') {
46
+ var _item$props2;
47
+ alert("\u81EA\u5B9A\u4E49\u70B9\u51FB: ".concat((_item$props2 = item.props) === null || _item$props2 === void 0 ? void 0 : _item$props2.value));
48
+ }
49
+ }
50
+ })
51
+ });
52
+ });
@@ -0,0 +1,6 @@
1
+ /**
2
+ * title: 链接组类型
3
+ * description: 多个链接组合展示,支持自定义分隔符
4
+ */
5
+ declare const _default: () => import("react/jsx-runtime").JSX.Element;
6
+ export default _default;
@@ -0,0 +1,62 @@
1
+ import { DataCell, RexProConfigProvider } from "../../..";
2
+
3
+ /**
4
+ * title: 链接组类型
5
+ * description: 多个链接组合展示,支持自定义分隔符
6
+ */
7
+ import { jsx as _jsx } from "react/jsx-runtime";
8
+ export default (function () {
9
+ return /*#__PURE__*/_jsx(RexProConfigProvider, {
10
+ value: {},
11
+ children: /*#__PURE__*/_jsx(DataCell, {
12
+ items: [{
13
+ type: 'link-group',
14
+ props: {
15
+ separator: ' / ',
16
+ items: [{
17
+ label: '查看',
18
+ value: '/detail/1',
19
+ action: 'url',
20
+ urlTarget: '_self'
21
+ }, {
22
+ label: '编辑',
23
+ value: '/edit/1',
24
+ action: 'url',
25
+ urlTarget: '_self'
26
+ }, {
27
+ label: '删除',
28
+ value: 'delete-1',
29
+ action: 'custom',
30
+ style: {
31
+ color: '#ff4d4f'
32
+ }
33
+ }]
34
+ }
35
+ }, {
36
+ type: 'link-group',
37
+ props: {
38
+ separator: ' | ',
39
+ items: [{
40
+ label: '首页',
41
+ value: '/',
42
+ action: 'url'
43
+ }, {
44
+ label: '文档',
45
+ value: '/docs',
46
+ action: 'url'
47
+ }, {
48
+ label: '关于',
49
+ value: '/about',
50
+ action: 'url'
51
+ }]
52
+ }
53
+ }],
54
+ onClick: function onClick(item) {
55
+ var _item$props;
56
+ alert("\u81EA\u5B9A\u4E49\u64CD\u4F5C: ".concat((_item$props = item.props) === null || _item$props === void 0 ? void 0 : _item$props.label));
57
+ // if (subItem?.action === 'custom') {
58
+ // }
59
+ }
60
+ })
61
+ });
62
+ });
@@ -1,2 +1,6 @@
1
+ /**
2
+ * title: 嵌套使用
3
+ * description: text 类型的 value 支持嵌套其他类型
4
+ */
1
5
  declare const _default: () => import("react/jsx-runtime").JSX.Element;
2
6
  export default _default;
@@ -0,0 +1,50 @@
1
+ import { DataCell } from "../../..";
2
+
3
+ /**
4
+ * title: 嵌套使用
5
+ * description: text 类型的 value 支持嵌套其他类型
6
+ */
7
+ import { jsx as _jsx } from "react/jsx-runtime";
8
+ export default (function () {
9
+ return /*#__PURE__*/_jsx(DataCell, {
10
+ items: [{
11
+ type: 'text',
12
+ props: {
13
+ label: '状态',
14
+ value: {
15
+ type: 'tag',
16
+ props: {
17
+ value: '进行中',
18
+ color: 'processing'
19
+ }
20
+ }
21
+ }
22
+ }, {
23
+ type: 'text',
24
+ props: {
25
+ label: '图片',
26
+ value: {
27
+ type: 'img',
28
+ props: {
29
+ value: 'https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png',
30
+ width: 40,
31
+ height: 40
32
+ }
33
+ }
34
+ }
35
+ }, {
36
+ type: 'text',
37
+ props: {
38
+ label: '链接',
39
+ value: {
40
+ type: 'link',
41
+ props: {
42
+ label: '点击查看',
43
+ value: 'https://ant.design',
44
+ action: 'url'
45
+ }
46
+ }
47
+ }
48
+ }]
49
+ });
50
+ });
@@ -0,0 +1,6 @@
1
+ /**
2
+ * title: 标签类型
3
+ * description: 展示标签样式的内容,继承 antd Tag 的所有属性
4
+ */
5
+ declare const _default: () => import("react/jsx-runtime").JSX.Element;
6
+ export default _default;
@@ -0,0 +1,47 @@
1
+ import { DataCell } from "../../..";
2
+
3
+ /**
4
+ * title: 标签类型
5
+ * description: 展示标签样式的内容,继承 antd Tag 的所有属性
6
+ */
7
+ import { jsx as _jsx } from "react/jsx-runtime";
8
+ export default (function () {
9
+ return /*#__PURE__*/_jsx(DataCell, {
10
+ items: [{
11
+ type: 'tag',
12
+ props: {
13
+ label: '状态',
14
+ value: '进行中',
15
+ color: 'processing'
16
+ }
17
+ }, {
18
+ type: 'tag',
19
+ props: {
20
+ label: '结果',
21
+ value: '成功',
22
+ color: 'success'
23
+ }
24
+ }, {
25
+ type: 'tag',
26
+ props: {
27
+ label: '警告',
28
+ value: '待处理',
29
+ color: 'warning'
30
+ }
31
+ }, {
32
+ type: 'tag',
33
+ props: {
34
+ label: '错误',
35
+ value: '失败',
36
+ color: 'error'
37
+ }
38
+ }, {
39
+ type: 'tag',
40
+ props: {
41
+ label: '自定义颜色',
42
+ value: 'VIP用户',
43
+ color: '#f50'
44
+ }
45
+ }]
46
+ });
47
+ });
@@ -0,0 +1,6 @@
1
+ /**
2
+ * title: 文本类型
3
+ * description: 展示文本内容,支持 label + value 格式,可配置省略、复制、提示等功能
4
+ */
5
+ declare const _default: () => import("react/jsx-runtime").JSX.Element;
6
+ export default _default;
@@ -0,0 +1,43 @@
1
+ import { DataCell } from "../../..";
2
+
3
+ /**
4
+ * title: 文本类型
5
+ * description: 展示文本内容,支持 label + value 格式,可配置省略、复制、提示等功能
6
+ */
7
+ import { jsx as _jsx } from "react/jsx-runtime";
8
+ export default (function () {
9
+ return /*#__PURE__*/_jsx(DataCell, {
10
+ items: [{
11
+ type: 'text',
12
+ props: {
13
+ label: '用户名',
14
+ value: '张三'
15
+ }
16
+ }, {
17
+ type: 'text',
18
+ props: {
19
+ label: '订单号',
20
+ value: 'ORD202401100001',
21
+ copyable: true
22
+ }
23
+ }, {
24
+ type: 'text',
25
+ props: {
26
+ label: '备注',
27
+ value: '这是一段很长的备注信息,超过指定行数会自动省略显示,鼠标悬停可查看完整内容',
28
+ ellipsis: 1,
29
+ tooltip: '这是一段很长的备注信息,超过指定行数会自动省略显示,鼠标悬停可查看完整内容'
30
+ }
31
+ }, {
32
+ type: 'text',
33
+ props: {
34
+ label: '金额',
35
+ value: 1999.99,
36
+ valueStyle: {
37
+ color: '#f5222d',
38
+ fontWeight: 'bold'
39
+ }
40
+ }
41
+ }]
42
+ });
43
+ });
@@ -13,7 +13,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
13
13
  import { EyeOutlined } from '@ant-design/icons';
14
14
  import { downloadResourceFile, Icons, MediaViewer, showFileViewer } from "../../..";
15
15
  import { Tag, Tooltip, Typography } from 'antd';
16
- import React from 'react';
16
+ import React, { cloneElement } from 'react';
17
17
  import { DataCell } from "../data-cell";
18
18
  import { DataCellRowText, DataCellRowTextLabel, DataCellRowTextValue } from "../style";
19
19
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -386,28 +386,33 @@ export var cellItemMap = {
386
386
  }, "renderItem-".concat(index, "-").concat(count++));
387
387
  }
388
388
  if (action === 'file') {
389
- return /*#__PURE__*/_jsxs("a", {
389
+ return /*#__PURE__*/_jsx("a", {
390
390
  href: "void",
391
- style: _objectSpread({
392
- wordBreak: 'break-all'
393
- }, style),
391
+ style: style,
394
392
  onClick: function onClick(e) {
395
393
  e.preventDefault();
396
394
  e.stopPropagation();
397
395
  downloadResourceFile(url || '');
398
396
  },
399
- children: [/*#__PURE__*/_jsx(EyeOutlined, {
400
- style: {
401
- marginRight: 4
402
- },
403
- onClick: function onClick(e) {
404
- e.preventDefault();
405
- e.stopPropagation();
406
- showFileViewer({
407
- fileUrl: url || ''
408
- });
409
- }
410
- }), afterContent]
397
+ children: /*#__PURE__*/cloneElement(afterContent, {
398
+ style: _objectSpread({
399
+ wordBreak: 'break-all'
400
+ }, afterContent.props.style),
401
+ children: /*#__PURE__*/_jsxs(_Fragment, {
402
+ children: [/*#__PURE__*/_jsx(EyeOutlined, {
403
+ style: {
404
+ marginRight: 4
405
+ },
406
+ onClick: function onClick(e) {
407
+ e.preventDefault();
408
+ e.stopPropagation();
409
+ showFileViewer({
410
+ fileUrl: url || ''
411
+ });
412
+ }
413
+ }), afterContent.props.children]
414
+ })
415
+ })
411
416
  }, "renderItem-".concat(index, "-").concat(count++));
412
417
  }
413
418
  if (action === 'custom') {