@yeeyoon/library 3.3.7 → 3.4.0

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.
@@ -1,3 +1,5 @@
1
+ @import '~antd/es/style/themes/default.less';
2
+
1
3
  .user-avatar-box {
2
4
  position: relative;
3
5
  display: inline-block;
package/lib/config/env.js CHANGED
@@ -56,6 +56,7 @@ const envHost = {
56
56
  const devHostPortMap = {
57
57
  iam: 8001,
58
58
  profile: 8003,
59
+ portrait: 8004,
59
60
  collab: 8009,
60
61
  bpm: 8010,
61
62
  zhongtai: 3001,
@@ -101,6 +102,7 @@ export const HOST_OFFICIAL = getEnvHost('official');
101
102
  export const HOST_IAM = getEnvHost('iam', '/login');
102
103
  export const HOST_COLLAB = getEnvHost('collab');
103
104
  export const HOST_BPM = getEnvHost('bpm');
105
+ export const HOST_PORTRAIT = getEnvHost('portrait');
104
106
  export const HOST_PROFILE_TASK = getEnvHost(
105
107
  'profile',
106
108
  '/task-center/home/list'
@@ -137,6 +139,7 @@ console.log(
137
139
  `HOST_IAM: ${HOST_IAM}\n`,
138
140
  `HOST_COLLAB: ${HOST_COLLAB}\n`,
139
141
  `HOST_BPM: ${HOST_BPM}\n`,
142
+ `HOST_BPM: ${HOST_PORTRAIT}\n`,
140
143
  `HOST_PROFILE_TASK: ${HOST_PROFILE_TASK}\n`,
141
144
  `HOST_PROFILE_DASH_BOARD: ${HOST_PROFILE_DASH_BOARD}\n`,
142
145
  `HOST_PROFILE_USER: ${HOST_PROFILE_USER}\n`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeeyoon/library",
3
- "version": "3.3.7",
3
+ "version": "3.4.0",
4
4
  "description": "宜云前端组件库和通用服务",
5
5
  "main": "index.js",
6
6
  "repository": {
package/src/global.css CHANGED
@@ -4,7 +4,7 @@ html, body, #root {
4
4
 
5
5
  body {
6
6
  margin: 0;
7
- background-color: #000 !important;
7
+ /* background-color: #000 !important; */
8
8
  }
9
9
 
10
10
  body * {
@@ -1,14 +1,17 @@
1
- import React, { useState, useEffect } from 'react';
1
+ import React from 'react';
2
2
  import Header from '../../lib/components/Header/';
3
+ import TenantSelector from '../../lib/components/TenantSelector';
3
4
 
4
5
  // eslint-disable-next-line react/display-name
5
6
  export default function () {
6
- const [tenantId, setTenantId] = useState('');
7
- useEffect(() => {
8
- setTimeout(() => {
9
- setTenantId('053a033a063711ecb0c00c42a1ff8370');
10
- // setTenantId('f12a71b6063611ecb0c00c42a1ff8370');
11
- }, 3000);
12
- }, []);
13
- return <Header productName="bpm" tenantId={tenantId} />;
7
+ return (
8
+ <>
9
+ <Header productName="bpm" slot={<div>nasa</div>} />
10
+ <TenantSelector
11
+ tenantId="b7b0e19414927b878814094f33b43543"
12
+ appId="bbe5c8f0063711ecb0c00c42a1ff8370"
13
+ tenantIdChangeCb={() => {}}
14
+ />
15
+ </>
16
+ );
14
17
  }