diff --git a/packages/hippy_ui_react/src/provider/Provider.tsx b/packages/hippy_ui_react/src/provider/Provider.tsx index b54bb56..170bd74 100644 --- a/packages/hippy_ui_react/src/provider/Provider.tsx +++ b/packages/hippy_ui_react/src/provider/Provider.tsx @@ -1,4 +1,4 @@ -import React, { Component, isValidElement, cloneElement } from 'react'; +import React, { Component, isValidElement, cloneElement, PropsWithChildren } from 'react'; import { View } from '@hippy/react'; import { getProviderValue, @@ -16,7 +16,7 @@ import { ConfigCommon, setConfigCommon } from './ConfigCommon'; /** * @visibleName Provider 全局模式 */ -export default class Provider extends Component { +export default class Provider extends Component, ProviderState> { state: ProviderState = { globalViews: {}, };