@nocobase/plugin-mobile 1.4.0-alpha → 1.4.0-alpha.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,13 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import { ISchema } from '@nocobase/client';
1
10
  import { MobileRouteItem } from '../../../mobile-providers';
2
- export declare function getMobileTabBarItemSchema(routeItem: MobileRouteItem): {
3
- name: number;
4
- type: string;
5
- 'x-decorator': string;
6
- 'x-settings': string;
7
- 'x-component': string;
8
- 'x-toolbar-props': {
9
- showBorder: boolean;
10
- showBackground: boolean;
11
- };
12
- 'x-component-props': any;
13
- };
11
+ export declare function getMobileTabBarItemSchema(routeItem: MobileRouteItem): ISchema;
@@ -8,42 +8,42 @@
8
8
  */
9
9
  export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
10
10
  mobileTabBar: {
11
- position: string;
11
+ position: "absolute";
12
12
  bottom: number;
13
13
  left: number;
14
14
  right: number;
15
15
  height: number;
16
- boxSizing: string;
16
+ boxSizing: "border-box";
17
17
  borderTop: string;
18
- backgroundColor: string;
18
+ backgroundColor: "var(--adm-color-background)";
19
19
  };
20
20
  mobileTabBarContent: {
21
- display: string;
22
- justifyContent: string;
23
- alignItems: string;
21
+ display: "flex";
22
+ justifyContent: "space-between";
23
+ alignItems: "center";
24
24
  gap: string;
25
25
  height: string;
26
26
  };
27
27
  mobileTabBarList: {
28
- display: string;
29
- justifyContent: string;
28
+ display: "flex";
29
+ justifyContent: "space-around";
30
30
  flex: number;
31
- alignItems: string;
32
- overflowX: string;
31
+ alignItems: "center";
32
+ overflowX: "auto";
33
33
  '.adm-tab-bar-item': {
34
34
  maxWidth: string;
35
35
  '.adm-tab-bar-item-title': {
36
36
  maxWidth: string;
37
- overflow: string;
38
- whiteSpace: string;
39
- textOverflow: string;
37
+ overflow: "hidden";
38
+ whiteSpace: "nowrap";
39
+ textOverflow: "ellipsis";
40
40
  };
41
41
  };
42
42
  '&>div': {
43
43
  flex: number;
44
- display: string;
45
- justifyContent: string;
46
- alignItems: string;
44
+ display: "flex";
45
+ justifyContent: "center";
46
+ alignItems: "center";
47
47
  };
48
48
  '.ant-btn-icon': {
49
49
  marginInlineEnd: string;
@@ -10,5 +10,6 @@ import { FC } from 'react';
10
10
  import { MobileTabBarItemProps } from '../../MobileTabBar.Item';
11
11
  export interface MobileTabBarPageProps extends Omit<MobileTabBarItemProps, 'onClick' | 'selected'> {
12
12
  schemaUid: string;
13
+ url?: string;
13
14
  }
14
15
  export declare const MobileTabBarPage: FC<MobileTabBarPageProps>;
@@ -7,5 +7,6 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
  export * from './MobilePageContent';
10
+ export * from './MobilePageContentContainer';
10
11
  export * from './initializer';
11
12
  export * from './schema';
@@ -9,6 +9,6 @@
9
9
  export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
10
10
  mobilePageContent: {
11
11
  maxWidth: string;
12
- overflowX: string;
12
+ overflowX: "hidden";
13
13
  };
14
14
  }>;
@@ -11,7 +11,7 @@ export declare const useStyles: (props?: unknown) => import("antd-style").Return
11
11
  maxWidth: string;
12
12
  '.adm-space': {
13
13
  maxWidth: string;
14
- overflow: string;
14
+ overflow: "hidden";
15
15
  };
16
16
  };
17
17
  navigationBarActionIcon: {
@@ -20,9 +20,9 @@ export declare const useStyles: (props?: unknown) => import("antd-style").Return
20
20
  lineHeight: string;
21
21
  fontSize: number;
22
22
  padding: number;
23
- display: string;
24
- alignItems: string;
25
- justifyContent: string;
23
+ display: "flex";
24
+ alignItems: "center";
25
+ justifyContent: "center";
26
26
  '.schema-toolbar': {
27
27
  inset: string;
28
28
  };
@@ -11,16 +11,16 @@ export declare const useStyles: (props?: unknown) => import("antd-style").Return
11
11
  '.adm-nav-bar': {
12
12
  maxWidth: string;
13
13
  height: number;
14
- overflow: string;
14
+ overflow: "hidden";
15
15
  '.adm-nav-bar-left': {
16
- display: string;
17
- alignItems: string;
18
- justifyContent: string;
16
+ display: "flex";
17
+ alignItems: "center";
18
+ justifyContent: "flex-start";
19
19
  };
20
20
  '.adm-nav-bar-right': {
21
- display: string;
22
- alignItems: string;
23
- justifyContent: string;
21
+ display: "flex";
22
+ alignItems: "center";
23
+ justifyContent: "flex-end";
24
24
  };
25
25
  };
26
26
  };
@@ -8,11 +8,11 @@
8
8
  */
9
9
  export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
10
10
  mobilePageHeader: {
11
- position: string;
11
+ position: "absolute";
12
12
  top: number;
13
13
  left: number;
14
14
  right: number;
15
15
  borderBottom: string;
16
- backgroundColor: string;
16
+ backgroundColor: "var(--adm-color-background)";
17
17
  };
18
18
  }>;
@@ -8,9 +8,9 @@
8
8
  */
9
9
  export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
10
10
  mobilePageTabs: {
11
- display: string;
12
- alignItems: string;
13
- justifyContent: string;
11
+ display: "flex";
12
+ alignItems: "center";
13
+ justifyContent: "space-between";
14
14
  };
15
15
  mobilePageTabsList: {
16
16
  '.adm-tabs-header': {
@@ -10,24 +10,24 @@
10
10
  module.exports = {
11
11
  "@emotion/css": "11.13.4",
12
12
  "@formily/core": "2.3.0",
13
- "@formily/shared": "2.3.0",
14
- "@nocobase/client": "1.4.0-alpha",
15
- "@nocobase/plugin-acl": "1.4.0-alpha",
13
+ "@formily/shared": "2.3.2",
14
+ "@nocobase/client": "1.4.0-alpha.0",
15
+ "@nocobase/plugin-acl": "1.4.0-alpha.0",
16
16
  "ahooks": "3.7.8",
17
17
  "antd": "5.12.8",
18
18
  "lodash": "4.17.21",
19
19
  "react": "18.2.0",
20
20
  "react-i18next": "11.18.6",
21
21
  "react-router-dom": "6.21.0",
22
- "@nocobase/database": "1.4.0-alpha",
23
- "@nocobase/server": "1.4.0-alpha",
24
- "@nocobase/test": "1.4.0-alpha",
25
- "@nocobase/utils": "1.4.0-alpha",
22
+ "@nocobase/database": "1.4.0-alpha.0",
23
+ "@nocobase/server": "1.4.0-alpha.0",
24
+ "@nocobase/test": "1.4.0-alpha.0",
25
+ "@nocobase/utils": "1.4.0-alpha.0",
26
26
  "@formily/react": "2.3.0",
27
- "@nocobase/plugin-mobile": "1.4.0-alpha",
27
+ "@nocobase/plugin-mobile": "1.4.0-alpha.0",
28
28
  "@ant-design/icons": "5.2.6",
29
29
  "react-dom": "18.2.0",
30
- "antd-style": "3.4.5",
31
- "@nocobase/sdk": "1.4.0-alpha",
30
+ "antd-style": "3.7.1",
31
+ "@nocobase/sdk": "1.4.0-alpha.0",
32
32
  "@formily/antd-v5": "1.1.9"
33
33
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-mobile",
3
- "version": "1.4.0-alpha",
3
+ "version": "1.4.0-alpha.0",
4
4
  "main": "dist/server/index.js",
5
5
  "homepage": "https://docs.nocobase.com/handbook/mobile",
6
6
  "homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/mobile",
@@ -26,11 +26,11 @@
26
26
  "@types/react-dom": "17.x",
27
27
  "ahooks": "3.x",
28
28
  "antd": "5.x",
29
- "antd-mobile": "^5.36.1",
29
+ "antd-mobile": "^5.38",
30
30
  "lodash": "4.x",
31
31
  "re-resizable": "6.6.0",
32
32
  "react-device-detect": "2.2.3",
33
33
  "react-i18next": "11.x"
34
34
  },
35
- "gitHead": "f097a2bddec152522b5645bd5d451f4c866d2060"
35
+ "gitHead": "8ffa7b54bbaf720c0c9857da4b19a99110dffc4b"
36
36
  }