py-test-component 1.0.4 → 1.0.5
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 +1 -0
package/package.json
CHANGED
package/src/react/index.js
CHANGED
|
@@ -94,6 +94,7 @@ export const PyTable = forwardRef(function PyTable({ data, loading: propsLoading
|
|
|
94
94
|
|
|
95
95
|
useEffect(() => {
|
|
96
96
|
if (elRef.current && data && loaded) {
|
|
97
|
+
// 通过属性传递数据(vue-custom-element 会自动解析 JSON 字符串)
|
|
97
98
|
elRef.current.setAttribute('table-data', JSON.stringify(data));
|
|
98
99
|
}
|
|
99
100
|
}, [data, loaded]);
|