@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.
- package/dist/client/adaptor-of-desktop/{BasicZIndexProvider.d.ts → zIndex.d.ts} +0 -12
- package/dist/client/index.js +14 -14
- package/dist/client/mobile-layout/mobile-tab-bar/MobileTabBar.Item/schema.d.ts +10 -12
- package/dist/client/mobile-layout/mobile-tab-bar/styles.d.ts +16 -16
- package/dist/client/mobile-layout/mobile-tab-bar/types/MobileTabBar.Page/MobileTabBar.Page.d.ts +1 -0
- package/dist/client/pages/dynamic-page/content/index.d.ts +1 -0
- package/dist/client/pages/dynamic-page/content/styles.d.ts +1 -1
- package/dist/client/pages/dynamic-page/header/navigation-bar/actions/mobile-navigation-bar-action/styles.d.ts +4 -4
- package/dist/client/pages/dynamic-page/header/navigation-bar/styles.d.ts +7 -7
- package/dist/client/pages/dynamic-page/header/styles.d.ts +2 -2
- package/dist/client/pages/dynamic-page/header/tabs/styles.d.ts +3 -3
- package/dist/externalVersion.js +10 -10
- package/package.json +3 -3
|
@@ -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:
|
|
11
|
+
position: "absolute";
|
|
12
12
|
bottom: number;
|
|
13
13
|
left: number;
|
|
14
14
|
right: number;
|
|
15
15
|
height: number;
|
|
16
|
-
boxSizing:
|
|
16
|
+
boxSizing: "border-box";
|
|
17
17
|
borderTop: string;
|
|
18
|
-
backgroundColor:
|
|
18
|
+
backgroundColor: "var(--adm-color-background)";
|
|
19
19
|
};
|
|
20
20
|
mobileTabBarContent: {
|
|
21
|
-
display:
|
|
22
|
-
justifyContent:
|
|
23
|
-
alignItems:
|
|
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:
|
|
29
|
-
justifyContent:
|
|
28
|
+
display: "flex";
|
|
29
|
+
justifyContent: "space-around";
|
|
30
30
|
flex: number;
|
|
31
|
-
alignItems:
|
|
32
|
-
overflowX:
|
|
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:
|
|
38
|
-
whiteSpace:
|
|
39
|
-
textOverflow:
|
|
37
|
+
overflow: "hidden";
|
|
38
|
+
whiteSpace: "nowrap";
|
|
39
|
+
textOverflow: "ellipsis";
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
42
|
'&>div': {
|
|
43
43
|
flex: number;
|
|
44
|
-
display:
|
|
45
|
-
justifyContent:
|
|
46
|
-
alignItems:
|
|
44
|
+
display: "flex";
|
|
45
|
+
justifyContent: "center";
|
|
46
|
+
alignItems: "center";
|
|
47
47
|
};
|
|
48
48
|
'.ant-btn-icon': {
|
|
49
49
|
marginInlineEnd: string;
|
package/dist/client/mobile-layout/mobile-tab-bar/types/MobileTabBar.Page/MobileTabBar.Page.d.ts
CHANGED
|
@@ -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>;
|
|
@@ -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:
|
|
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:
|
|
24
|
-
alignItems:
|
|
25
|
-
justifyContent:
|
|
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:
|
|
14
|
+
overflow: "hidden";
|
|
15
15
|
'.adm-nav-bar-left': {
|
|
16
|
-
display:
|
|
17
|
-
alignItems:
|
|
18
|
-
justifyContent:
|
|
16
|
+
display: "flex";
|
|
17
|
+
alignItems: "center";
|
|
18
|
+
justifyContent: "flex-start";
|
|
19
19
|
};
|
|
20
20
|
'.adm-nav-bar-right': {
|
|
21
|
-
display:
|
|
22
|
-
alignItems:
|
|
23
|
-
justifyContent:
|
|
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:
|
|
11
|
+
position: "absolute";
|
|
12
12
|
top: number;
|
|
13
13
|
left: number;
|
|
14
14
|
right: number;
|
|
15
15
|
borderBottom: string;
|
|
16
|
-
backgroundColor:
|
|
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:
|
|
12
|
-
alignItems:
|
|
13
|
-
justifyContent:
|
|
11
|
+
display: "flex";
|
|
12
|
+
alignItems: "center";
|
|
13
|
+
justifyContent: "space-between";
|
|
14
14
|
};
|
|
15
15
|
mobilePageTabsList: {
|
|
16
16
|
'.adm-tabs-header': {
|
package/dist/externalVersion.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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": "
|
|
35
|
+
"gitHead": "8ffa7b54bbaf720c0c9857da4b19a99110dffc4b"
|
|
36
36
|
}
|