@giteeteam/apps-team-components 1.0.2-alpha.3 → 1.0.3
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/README.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
1
|
# @giteeteam/apps-team-components
|
|
2
2
|
|
|
3
3
|
- gitee team components
|
|
4
|
+
|
|
5
|
+
## 注意
|
|
6
|
+
插件使用需要加上speedy:false,防止切换应用时css会丢失
|
|
7
|
+
|
|
8
|
+
```jsx
|
|
9
|
+
import { LibraryProvider } from "@giteeteam/apps-team-components";
|
|
10
|
+
|
|
11
|
+
const Demo = ({children}) => {
|
|
12
|
+
return (
|
|
13
|
+
<LibraryProvider emotionCacheOptions={{ key: "appKey", speedy: false }}>
|
|
14
|
+
{children}
|
|
15
|
+
</LibraryProvider>
|
|
16
|
+
)
|
|
17
|
+
}
|
|
18
|
+
```
|
|
@@ -43,7 +43,7 @@ const BaseTableCell = ({ className, cellData, column, rowData, readComponents =
|
|
|
43
43
|
const cls = `field-cell-layout field-layout ${className}`;
|
|
44
44
|
const timeoutCurrent = useRef();
|
|
45
45
|
const ReadComponent = readComponents[column.cellType] || readComponents[column.componentType];
|
|
46
|
-
const EditComponent =
|
|
46
|
+
const EditComponent = editComponents[column.cellType] || editComponents[column.componentType];
|
|
47
47
|
const handleMouseOver = useCallback(() => {
|
|
48
48
|
if (!isEmpty(editComponents)) {
|
|
49
49
|
timeoutCurrent.current = setTimeout(() => {
|