@yeeyoon/library 2.3.9 → 2.4.3

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.
@@ -56,7 +56,7 @@ const PlatformModal = (props) => {
56
56
  <Row gutter={16} style={{ padding: '10px' }}>
57
57
  {platforms.map((item, index) => {
58
58
  return (
59
- <Col span={12} key={index}>
59
+ <Col span={24 / platforms.length} key={index}>
60
60
  <Card key={index}>
61
61
  <div
62
62
  style={{
@@ -108,6 +108,7 @@ const ProductListMenu = (props) => {
108
108
  title="请选择平台"
109
109
  footer={null}
110
110
  onCancel={() => setPlatModal(false)}
111
+ width={700}
111
112
  >
112
113
  <PlatformModal platforms={platforms} tenantId={tenantId} />
113
114
  </Modal>
@@ -59,8 +59,9 @@ const Header = (props) => {
59
59
  const [systemUserInfo, setSystemUserInfo] = useState(null);
60
60
  const [tenants, setTenants] = useState([]);
61
61
  const [userId, setUserId] = useState([]);
62
- const [productListMenuDrawerShow, setProductListMenuDrawerShow] =
63
- useState(false);
62
+ const [productListMenuDrawerShow, setProductListMenuDrawerShow] = useState(
63
+ false
64
+ );
64
65
  const [platformsModalShow, setPlatformsModalShow] = useState(false);
65
66
  const [avatarProps, setAvatarProps] = useState({});
66
67
  const [redirectUrl, setRedirectUrl] = useState('');
@@ -142,7 +143,12 @@ const Header = (props) => {
142
143
  setTenants(tenants);
143
144
  setUserId(id);
144
145
  setAvatarProps(
145
- data.headUrl ? { src: data.headUrl } : { icon: <UserOutlined /> }
146
+ data.headUrl
147
+ ? { src: data.headUrl }
148
+ : {
149
+ src:
150
+ 'https://demo-yeeyoon-fm.oss-cn-zhangjiakou.aliyuncs.com/userCenter/userAvatar/user_avatar3.png',
151
+ }
146
152
  );
147
153
  currentProduct = tenants[0].applications || [];
148
154
  getProductList(id);
@@ -295,6 +301,7 @@ const Header = (props) => {
295
301
  onCancel={() => {
296
302
  setPlatformsModalShow(false);
297
303
  }}
304
+ width={700}
298
305
  >
299
306
  <PlatformModal
300
307
  platforms={platforms.filter((item) => {
@@ -22,6 +22,7 @@
22
22
  border: 1px solid #f0f0f0;
23
23
  border-bottom-right-radius: 8px;
24
24
  border-bottom-left-radius: 8px;
25
+ padding-bottom: 40px;
25
26
  :global {
26
27
  .ant-pro-list-row-description {
27
28
  text-align: left;
@@ -29,16 +30,9 @@
29
30
  }
30
31
  }
31
32
  &__see-all {
32
- width: 100%;
33
- height: 50px;
34
- margin: 0;
35
- color: #fff;
36
- line-height: 50px;
37
- text-align: center;
38
- background-color: #4eaaeb;
39
- border-bottom-right-radius: 4px;
40
- border-bottom-left-radius: 4px;
41
- cursor: pointer;
33
+ position: absolute;
34
+ left: 0;
35
+ bottom: 0;
42
36
  }
43
37
  }
44
38
 
@@ -116,7 +116,7 @@ const RecentNotification = (props) => {
116
116
  setMsgListShow(true);
117
117
  }}
118
118
  onMouseLeave={() => {
119
- setMsgListShow(false);
119
+ // setMsgListShow(false);
120
120
  }}
121
121
  >
122
122
  {/* <Tooltip title="消息中心"> */}
@@ -161,14 +161,14 @@ const RecentNotification = (props) => {
161
161
  },
162
162
  }}
163
163
  />
164
- <p
164
+ <Button
165
+ block
166
+ type="primary"
167
+ size="large"
165
168
  className={styles['notification-container__see-all']}
166
- onClick={() => {
167
- window.open(getMessageCenterRedirectUrl(), '_blank');
168
- }}
169
169
  >
170
170
  查看全部消息
171
- </p>
171
+ </Button>
172
172
  </div>
173
173
  )}
174
174
  </div>
package/lib/config/env.js CHANGED
@@ -1,4 +1,4 @@
1
- // const REACT_APP_ENV = REACT_APP_ENV || 'testing';
1
+ const REACT_APP_ENV = REACT_APP_ENV || 'testing';
2
2
 
3
3
  const envApi = {
4
4
  // IAM
@@ -59,10 +59,16 @@ function getEnvHost(product, path = '') {
59
59
  }
60
60
  if (product === 'official') {
61
61
  product = '';
62
- } else {
62
+ } else if (REACT_APP_ENV !== 'prod') {
63
63
  product = `-${product}`;
64
64
  }
65
- return `${prefix}${REACT_APP_ENV}${product}${suffix}${path}`;
65
+ if (REACT_APP_ENV === 'prod') {
66
+ return `${prefix}${product}${
67
+ product === '' ? suffix.substr(1) : suffix
68
+ }${path}`;
69
+ } else {
70
+ return `${prefix}${REACT_APP_ENV}${product}${suffix}${path}`;
71
+ }
66
72
  }
67
73
 
68
74
  function getEnvApi(product, path = '') {
@@ -76,7 +76,7 @@ const theme = {
76
76
  'pagination-item-size-sm': '28px',
77
77
 
78
78
  // Tag
79
- 'tag-default-bg': 'rgba(115, 103, 240, 0.12)',
79
+ 'tag-default-bg': 'fade(@primary-color, 12%)',
80
80
  'tag-default-color': '@primary-color',
81
81
  'tag-font-size': '@font-paragraph-small',
82
82
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeeyoon/library",
3
- "version": "2.3.9",
3
+ "version": "2.4.3",
4
4
  "description": "宜云前端组件库和通用服务",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -12,8 +12,6 @@ export default function () {
12
12
  productName="profile"
13
13
  tenantId="053a033a063711ecb0c00c42a1ff8370"
14
14
  token="ZmI1YzU4NzEyOTdlNDM2MTg2YjI0N2IyZGQzOGI3NDg1NDE2MzI2MjU4NjMzNzY="
15
- avatar="https://demo-yeeyoon-fm.oss-cn-zhangjiakou.aliyuncs.com/userCenter/userAvatar/user_avatar2.png"
16
- userName="王甍"
17
15
  />
18
16
  {/* <TenantSelector
19
17
  tenantId="14bfb5d71d1011eca9820c42a1f6bf88"