beer-assembly-biz 1.1.2-alpha.3 → 1.1.2-alpha.5

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.
package/AppLayout.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import React, { useEffect, useState } from 'react';
2
2
  import { css } from '@emotion/css';
3
3
  import { ProLayout } from '@ant-design/pro-components';
4
- import { Dropdown, message, Typography } from 'antd';
4
+ import { Dropdown, message, theme, Typography } from 'antd';
5
5
  import { Session } from 'beer-network/session';
6
6
  import dayjs from 'dayjs';
7
7
  import ImageLayout01 from './images/layout_01.png';
@@ -9,6 +9,7 @@ import ImageLayout02 from './images/layout_02.png';
9
9
  import ImageLayout03 from './images/layout_03.png';
10
10
  dayjs.locale('zh-cn');
11
11
  const Component = (props) => {
12
+ const { token } = theme.useToken();
12
13
  const [messageApi, contextHolder] = message.useMessage();
13
14
  // App
14
15
  const [app, setApp] = useState({});
@@ -182,7 +183,7 @@ const Component = (props) => {
182
183
  paddingInlineLayoutMenu: 4,
183
184
  colorMenuBackground: '#fff',
184
185
  colorTextMenu: 'rgb(87, 89, 102)',
185
- colorTextMenuSelected: 'rgb(51, 51, 51)',
186
+ colorTextMenuSelected: 'rgba(0,0,0,0.8)',
186
187
  colorBgMenuItemSelected: 'rgba(0,0,0,0.08)'
187
188
  },
188
189
  pageContainer: {
@@ -209,7 +210,7 @@ const Component = (props) => {
209
210
  return React.createElement(React.Fragment, null, props?.collapsed ? undefined : React.createElement("div", { style: {
210
211
  padding: '2px 0',
211
212
  textIndent: 10,
212
- fontSize: 15,
213
+ fontSize: token.fontSize + 2,
213
214
  color: '#333',
214
215
  fontWeight: 500
215
216
  } }, app?.name));
@@ -223,7 +224,7 @@ const Component = (props) => {
223
224
  }, subMenuItemRender: (props, _defaultDom, menuProps) => {
224
225
  return React.createElement("div", { style: {
225
226
  height: 32,
226
- fontSize: 13,
227
+ fontSize: token.fontSize,
227
228
  display: 'flex',
228
229
  alignItems: 'center',
229
230
  justifyContent: menuProps.collapsed ? 'center' : undefined,
@@ -241,7 +242,7 @@ const Component = (props) => {
241
242
  const isSub = (props.locale?.toString()
242
243
  ?.split('.') || []).length > 2;
243
244
  return React.createElement("a", { style: {
244
- fontSize: 13,
245
+ fontSize: token.fontSize,
245
246
  userSelect: 'none',
246
247
  height: 32,
247
248
  display: 'flex',
@@ -2,7 +2,9 @@ import React from 'react';
2
2
  import { css } from '@emotion/css';
3
3
  import { PageContainer } from '@ant-design/pro-components';
4
4
  import { useNavigate } from 'react-router-dom';
5
+ import { theme } from 'antd';
5
6
  export const Component = (props) => {
7
+ const { token } = theme.useToken();
6
8
  const navigate = useNavigate();
7
9
  return React.createElement(React.Fragment, null,
8
10
  React.createElement(PageContainer, { onBack: () => {
@@ -13,14 +15,14 @@ export const Component = (props) => {
13
15
  }
14
16
 
15
17
  .ant-page-header-heading-title {
16
- font-size: 15px;
18
+ font-size: ${token.fontSize + 2}px;
17
19
  line-height: 1.5;
18
20
  color: #333;
19
21
  }
20
22
  `, header: {
21
23
  style: {
22
24
  background: '#fff',
23
- padding: '10px 24px 10px 24px',
25
+ padding: '10px 24px',
24
26
  borderBottom: '1px solid rgba(0, 0, 0, 0.06)'
25
27
  }
26
28
  }, title: props.title, ghost: true, childrenContentStyle: {
package/UserModals.js CHANGED
@@ -28,7 +28,7 @@ export class UserModals {
28
28
  }
29
29
  };
30
30
  return [handler, React.createElement(React.Fragment, null,
31
- React.createElement(Modal, { title: "\u91CD\u7F6E\u5BC6\u7801", width: 380, open: isOpenModal, onOk: () => onConfirm(), onCancel: () => setIsOpenModal(false), styles: { body: { padding: '12px 0' } } },
31
+ React.createElement(Modal, { title: "\u91CD\u7F6E\u5BC6\u7801", width: 340, open: isOpenModal, onOk: () => onConfirm(), onCancel: () => setIsOpenModal(false), styles: { body: { padding: '6px 0' } } },
32
32
  React.createElement(Form, { form: form, labelCol: { span: 5 } },
33
33
  React.createElement(Form.Item, { name: "password", style: { margin: 0 }, rules: [{
34
34
  required: true,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "beer-assembly-biz",
3
3
  "private": false,
4
- "version": "1.1.2-alpha.3",
4
+ "version": "1.1.2-alpha.5",
5
5
  "scripts": {
6
6
  "pub-w": "tsc && copy package.json .\\dist\\package.json && npm publish ./dist",
7
7
  "pub-m": "tsc && cp -a src/icon ./dist && cp -a src/fonts ./dist && cp -a src/images ./dist && cp package.json ./dist/package.json && npm publish ./dist"