@yeeyoon/library 3.3.6 → 3.3.9
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.
@@ -24,7 +24,7 @@ const AvatarInfo = ({
|
|
24
24
|
}) => {
|
25
25
|
const CustomAvatar =
|
26
26
|
mode === 'group' ? (
|
27
|
-
<div
|
27
|
+
<div className={styles['user-avatar-box']}>
|
28
28
|
<div
|
29
29
|
className={`${blocked ? styles.blocked : styles.unDisplay} ${
|
30
30
|
styles['user-avatar-blocked-scale']
|
@@ -41,9 +41,9 @@ const AvatarInfo = ({
|
|
41
41
|
/>
|
42
42
|
</div>
|
43
43
|
) : (
|
44
|
-
<span style={{ display: 'flex' }}>
|
44
|
+
<span style={{ display: 'flex', alignItems: 'center' }}>
|
45
45
|
{icon || name || id ? (
|
46
|
-
<div
|
46
|
+
<div className={styles['user-avatar-box']}>
|
47
47
|
<div
|
48
48
|
className={`${blocked ? styles.blocked : styles.unDisplay} ${
|
49
49
|
styles['user-avatar-blocked-scale']
|
package/lib/config/env.js
CHANGED
@@ -101,6 +101,7 @@ export const HOST_OFFICIAL = getEnvHost('official');
|
|
101
101
|
export const HOST_IAM = getEnvHost('iam', '/login');
|
102
102
|
export const HOST_COLLAB = getEnvHost('collab');
|
103
103
|
export const HOST_BPM = getEnvHost('bpm');
|
104
|
+
export const HOST_PORTRAIT = getEnvHost('portrait');
|
104
105
|
export const HOST_PROFILE_TASK = getEnvHost(
|
105
106
|
'profile',
|
106
107
|
'/task-center/home/list'
|
@@ -137,6 +138,7 @@ console.log(
|
|
137
138
|
`HOST_IAM: ${HOST_IAM}\n`,
|
138
139
|
`HOST_COLLAB: ${HOST_COLLAB}\n`,
|
139
140
|
`HOST_BPM: ${HOST_BPM}\n`,
|
141
|
+
`HOST_BPM: ${HOST_PORTRAIT}\n`,
|
140
142
|
`HOST_PROFILE_TASK: ${HOST_PROFILE_TASK}\n`,
|
141
143
|
`HOST_PROFILE_DASH_BOARD: ${HOST_PROFILE_DASH_BOARD}\n`,
|
142
144
|
`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.
|
3
|
+
"version": "3.3.9",
|
4
4
|
"description": "宜云前端组件库和通用服务",
|
5
5
|
"main": "index.js",
|
6
6
|
"repository": {
|
@@ -22,7 +22,7 @@
|
|
22
22
|
"dependencies": {
|
23
23
|
"@ant-design/pro-layout": "^6.26.0",
|
24
24
|
"@ant-design/pro-list": "^1.12.0",
|
25
|
-
"antd": "^4.
|
25
|
+
"antd": "^4.10.0",
|
26
26
|
"dva": "^2.6.0-beta.6",
|
27
27
|
"local-storage": "^2.0.0",
|
28
28
|
"lodash": "^4.17.21",
|
package/src/global.css
CHANGED
package/src/pages/index.js
CHANGED
@@ -1,14 +1,17 @@
|
|
1
|
-
import 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
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
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
|
}
|