@fe-free/core 3.0.8 → 3.0.9
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fe-free/core",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.9",
|
|
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.9"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@ant-design/pro-components": "2.8.9",
|
|
@@ -9,7 +9,6 @@ interface CRUDOfPureProps<
|
|
|
9
9
|
DataSource extends Record<string, any> = any,
|
|
10
10
|
Key extends string | number = string,
|
|
11
11
|
> extends CRUDProps<DataSource, Key> {
|
|
12
|
-
specialSearch?: boolean;
|
|
13
12
|
/** 特殊位置的 toolbar,向上 margin,是的 search 和 toolbar 一起。仅适用于 search 很少的情况。 */
|
|
14
13
|
specialToolbar?: boolean;
|
|
15
14
|
}
|
|
@@ -47,7 +46,6 @@ function CRUDOfPureComponent(props: CRUDOfPureProps, ref: React.ForwardedRef<CRU
|
|
|
47
46
|
'fec-crud-of-pure',
|
|
48
47
|
{
|
|
49
48
|
'fec-crud-of-pure-no-search': noSearch,
|
|
50
|
-
'fec-crud-of-pure-special-search': props.specialSearch,
|
|
51
49
|
'fec-crud-of-pure-special-toolbar': props.specialToolbar,
|
|
52
50
|
},
|
|
53
51
|
props.className,
|
|
@@ -49,22 +49,17 @@
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
&.fec-crud-of-pure-special-
|
|
52
|
+
&.fec-crud-of-pure-special-toolbar {
|
|
53
53
|
.ant-pro-table-search {
|
|
54
|
-
|
|
55
|
-
z-index: 1;
|
|
56
|
-
background: transparent;
|
|
57
|
-
width: auto;
|
|
54
|
+
z-index: 10;
|
|
58
55
|
}
|
|
59
56
|
|
|
60
|
-
.ant-pro-
|
|
61
|
-
|
|
57
|
+
.ant-pro-card:not(.ant-pro-table-search) {
|
|
58
|
+
margin-top: -48px;
|
|
62
59
|
}
|
|
63
|
-
}
|
|
64
60
|
|
|
65
|
-
&.fec-crud-of-pure-special-toolbar {
|
|
66
61
|
.ant-pro-table-list-toolbar {
|
|
67
|
-
|
|
62
|
+
z-index: 10;
|
|
68
63
|
pointer-events: none;
|
|
69
64
|
|
|
70
65
|
.ant-pro-table-list-toolbar-right > div {
|