@yeeyoon/library 2.3.7 → 2.4.1

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) => {
@@ -42,9 +42,9 @@
42
42
  }
43
43
  }
44
44
 
45
- body {
46
- background: transparent !important;
47
- }
45
+ // body {
46
+ // background: transparent !important;
47
+ // }
48
48
  :global {
49
49
  .ant-layout {
50
50
  background: transparent !important;
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 || 'staging';
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 = '') {
@@ -44,18 +44,18 @@ body {
44
44
  // :global {
45
45
  // Scrollbar
46
46
  ::-webkit-scrollbar {
47
- width: @border-radius-base;
48
- height: @border-radius-base;
47
+ width: @border-radius-base !important;
48
+ height: @border-radius-base !important;
49
49
  }
50
50
  ::-webkit-scrollbar-thumb {
51
- background: @primary-color;
52
- border-radius: @border-radius-base;
51
+ background: @primary-color !important;
52
+ border-radius: @border-radius-base !important;
53
53
  }
54
54
  ::-webkit-scrollbar-track {
55
- border-radius: @border-radius-base;
55
+ border-radius: @border-radius-base !important;
56
56
  }
57
57
  ::-webkit-scrollbar-corner {
58
- background: transparent;
58
+ background: transparent !important;
59
59
  }
60
60
  // Button
61
61
  .ant-btn {
@@ -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.7",
3
+ "version": "2.4.1",
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"