@fe-free/core 3.0.25 → 3.0.26
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 +6 -0
- package/package.json +2 -2
- package/src/crud/crud.tsx +8 -7
- package/src/crud/crud_delete.tsx +4 -2
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fe-free/core",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.26",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"author": "",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"safe-stable-stringify": "^2.5.0",
|
|
42
42
|
"vanilla-jsoneditor": "^0.23.1",
|
|
43
43
|
"zustand": "^4.5.4",
|
|
44
|
-
"@fe-free/tool": "3.0.
|
|
44
|
+
"@fe-free/tool": "3.0.26"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@ant-design/pro-components": "2.8.9",
|
package/src/crud/crud.tsx
CHANGED
|
@@ -112,7 +112,7 @@ function CRUD<DataSource extends Record<string, any> = any, Key extends string |
|
|
|
112
112
|
title: '操作',
|
|
113
113
|
fixed: 'right',
|
|
114
114
|
align: 'center',
|
|
115
|
-
width: operateColumnProps?.width ||
|
|
115
|
+
width: operateColumnProps?.width || 120,
|
|
116
116
|
render: function (_, record) {
|
|
117
117
|
const btns: React.ReactNode[] = [];
|
|
118
118
|
|
|
@@ -123,7 +123,7 @@ function CRUD<DataSource extends Record<string, any> = any, Key extends string |
|
|
|
123
123
|
if (disabled) {
|
|
124
124
|
btns.push(
|
|
125
125
|
<Tooltip title={readProps?.operateText || '查看'}>
|
|
126
|
-
<span key="read" className="cursor-not-allowed text-03">
|
|
126
|
+
<span key="read" className="cursor-not-allowed text-lg text-03">
|
|
127
127
|
{readProps?.operateText || <EyeOutlined />}
|
|
128
128
|
</span>
|
|
129
129
|
</Tooltip>,
|
|
@@ -137,7 +137,7 @@ function CRUD<DataSource extends Record<string, any> = any, Key extends string |
|
|
|
137
137
|
onSuccess={handleReload}
|
|
138
138
|
trigger={
|
|
139
139
|
<Tooltip title={readProps?.operateText || '查看'}>
|
|
140
|
-
<a>{readProps?.operateText || <EyeOutlined />}</a>
|
|
140
|
+
<a className="text-lg">{readProps?.operateText || <EyeOutlined />}</a>
|
|
141
141
|
</Tooltip>
|
|
142
142
|
}
|
|
143
143
|
action="read"
|
|
@@ -155,7 +155,7 @@ function CRUD<DataSource extends Record<string, any> = any, Key extends string |
|
|
|
155
155
|
if (disabled) {
|
|
156
156
|
btns.push(
|
|
157
157
|
<Tooltip title={readProps?.operateText || '查看'}>
|
|
158
|
-
<span key="read" className="cursor-not-allowed text-03">
|
|
158
|
+
<span key="read" className="cursor-not-allowed text-lg text-03">
|
|
159
159
|
{readProps?.operateText || <EyeOutlined />}
|
|
160
160
|
</span>
|
|
161
161
|
</Tooltip>,
|
|
@@ -167,6 +167,7 @@ function CRUD<DataSource extends Record<string, any> = any, Key extends string |
|
|
|
167
167
|
key="read_detail"
|
|
168
168
|
to={`./detail/${record[detailIdIndex || 'id']}`}
|
|
169
169
|
target={readProps?.target}
|
|
170
|
+
className="text-lg"
|
|
170
171
|
>
|
|
171
172
|
{readProps?.operateText || <EyeOutlined />}
|
|
172
173
|
</Link>
|
|
@@ -184,7 +185,7 @@ function CRUD<DataSource extends Record<string, any> = any, Key extends string |
|
|
|
184
185
|
if (disabled) {
|
|
185
186
|
btns.push(
|
|
186
187
|
<Tooltip title={updateProps?.operateText || '编辑'}>
|
|
187
|
-
<span key="update" className="cursor-not-allowed text-03">
|
|
188
|
+
<span key="update" className="cursor-not-allowed text-lg text-03">
|
|
188
189
|
{updateProps?.operateText || <EditOutlined />}
|
|
189
190
|
</span>
|
|
190
191
|
</Tooltip>,
|
|
@@ -198,7 +199,7 @@ function CRUD<DataSource extends Record<string, any> = any, Key extends string |
|
|
|
198
199
|
onSuccess={handleReload}
|
|
199
200
|
trigger={
|
|
200
201
|
<Tooltip title={updateProps?.operateText || '编辑'}>
|
|
201
|
-
<a>{updateProps?.operateText || <EditOutlined />}</a>
|
|
202
|
+
<a className="text-lg">{updateProps?.operateText || <EditOutlined />}</a>
|
|
202
203
|
</Tooltip>
|
|
203
204
|
}
|
|
204
205
|
action="update"
|
|
@@ -227,7 +228,7 @@ function CRUD<DataSource extends Record<string, any> = any, Key extends string |
|
|
|
227
228
|
}
|
|
228
229
|
|
|
229
230
|
return (
|
|
230
|
-
<div className="fec-crud-operate-column flex justify-center gap-
|
|
231
|
+
<div className="fec-crud-operate-column flex justify-center gap-4">
|
|
231
232
|
{operateColumnProps?.moreOperator && operateColumnProps.moreOperator(record)}
|
|
232
233
|
{btns}
|
|
233
234
|
{operateColumnProps?.moreOperatorAfter && operateColumnProps.moreOperatorAfter(record)}
|
package/src/crud/crud_delete.tsx
CHANGED
|
@@ -42,14 +42,16 @@ function OperateDelete(props: Params) {
|
|
|
42
42
|
if (disabled) {
|
|
43
43
|
return (
|
|
44
44
|
<Tooltip title="删除">
|
|
45
|
-
<span className="cursor-not-allowed text-03">
|
|
45
|
+
<span className="cursor-not-allowed text-lg text-03">
|
|
46
|
+
{operateText || <DeleteOutlined />}
|
|
47
|
+
</span>
|
|
46
48
|
</Tooltip>
|
|
47
49
|
);
|
|
48
50
|
}
|
|
49
51
|
|
|
50
52
|
return (
|
|
51
53
|
<Tooltip title="删除">
|
|
52
|
-
<a style={{ color: 'red' }} onClick={doDelete}>
|
|
54
|
+
<a style={{ color: 'red' }} className="text-lg" onClick={doDelete}>
|
|
53
55
|
{operateText || <DeleteOutlined />}
|
|
54
56
|
</a>
|
|
55
57
|
</Tooltip>
|