Components
A shared component library from the internal business of
Gitee Team
, which is open for application access. These include:
- LibraryProvider (Config Provider)
- TableCell (Field Type Component)
Quick Start
Install and Initialization
We install @giteeteam/apps-team-components
from yarn
yarn add @giteeteam/apps-team-components --save
Initialization
Modify src/App.js
, import LibraryProvider
component from @giteeteam/apps-team-components
.
import React, {useEffect, Suspense, useMemo} from 'react';
import {LibraryProvider} from '@giteeteam/apps-team-components';
const App: React.FC = props => {
const qiankunContextValue: any = useMemo(
() => ({
...props,
}),
[props],
);
return (
<LibraryProvider
tenant={QianKunProps?.context?.env?.TENANT_KEY}
workspaceKey={QianKunProps?.context?.env?.WORKSPACE_KEY}
locale={QianKunProps?.context?.env?.LOCALES ?? 'en'}
teamBasePath={QianKunProps?.context?.env?.PROXIMA_BASE_PATH}
teamGateway={QianKunProps?.context?.env?.PROXIMA_GATEWAY}
>
......
</LibraryProvider>
);
};