py-test-component 1.0.5 → 1.0.7
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/dist/py-component.esm.js +1 -1
- package/dist/py-component.js +1 -1
- package/package.json +1 -1
- package/src/react/index.js +2 -2
package/package.json
CHANGED
package/src/react/index.js
CHANGED
|
@@ -94,8 +94,8 @@ export const PyTable = forwardRef(function PyTable({ data, loading: propsLoading
|
|
|
94
94
|
|
|
95
95
|
useEffect(() => {
|
|
96
96
|
if (elRef.current && data && loaded) {
|
|
97
|
-
//
|
|
98
|
-
elRef.current.
|
|
97
|
+
// 直接设置 property,比 setAttribute 更可靠
|
|
98
|
+
elRef.current.tableData = data;
|
|
99
99
|
}
|
|
100
100
|
}, [data, loaded]);
|
|
101
101
|
|