@rsmax/web 1.3.5 → 1.3.6
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/CHANGELOG.md +6 -0
- package/cjs/types/config.d.ts +89 -0
- package/cjs/types/config.js +2 -0
- package/cjs/types/index.d.ts +1 -89
- package/cjs/types/index.js +15 -0
- package/esm/types/config.d.ts +89 -0
- package/esm/types/config.js +1 -0
- package/esm/types/index.d.ts +1 -89
- package/esm/types/index.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.3.6](https://github.com/remaxjs/remax/compare/v1.3.5...v1.3.6) (2025-06-03)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **web:** [#10](https://github.com/remaxjs/remax/issues/10) ([44ea6ee](https://github.com/remaxjs/remax/commit/44ea6ee67d2529611142ca802563526cf7323551))
|
|
11
|
+
|
|
6
12
|
## [1.3.5](https://github.com/remaxjs/remax/compare/v1.3.4...v1.3.5) (2025-06-02)
|
|
7
13
|
|
|
8
14
|
**Note:** Version bump only for package @rsmax/web
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface Page {
|
|
3
|
+
route: string;
|
|
4
|
+
config: PageConfig;
|
|
5
|
+
}
|
|
6
|
+
export declare const enum RouterType {
|
|
7
|
+
hash = "hash",
|
|
8
|
+
browser = "browser"
|
|
9
|
+
}
|
|
10
|
+
export interface BootstrapOptions {
|
|
11
|
+
async?: boolean;
|
|
12
|
+
appComponent: React.ComponentType;
|
|
13
|
+
appConfig: AppConfig;
|
|
14
|
+
plugins?: any[];
|
|
15
|
+
pageComponents: Array<() => Promise<{
|
|
16
|
+
default: React.ComponentType;
|
|
17
|
+
}> | React.ComponentType>;
|
|
18
|
+
pages: Page[];
|
|
19
|
+
}
|
|
20
|
+
export interface TabItem {
|
|
21
|
+
/**
|
|
22
|
+
* 设置页面路径
|
|
23
|
+
*/
|
|
24
|
+
url: string;
|
|
25
|
+
/**
|
|
26
|
+
* 名称
|
|
27
|
+
*/
|
|
28
|
+
title: string;
|
|
29
|
+
/**
|
|
30
|
+
* 平常图标路径
|
|
31
|
+
*/
|
|
32
|
+
image: string;
|
|
33
|
+
/**
|
|
34
|
+
* 高亮图标路径
|
|
35
|
+
*/
|
|
36
|
+
activeImage?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface TabBarConfig {
|
|
39
|
+
/**
|
|
40
|
+
* 标题颜色
|
|
41
|
+
*/
|
|
42
|
+
textColor?: string;
|
|
43
|
+
/**
|
|
44
|
+
* 选中标题颜色
|
|
45
|
+
*/
|
|
46
|
+
selectedColor?: string;
|
|
47
|
+
/**
|
|
48
|
+
* 背景色
|
|
49
|
+
*/
|
|
50
|
+
backgroundColor?: string;
|
|
51
|
+
/**
|
|
52
|
+
* 每个 tab 配置
|
|
53
|
+
*/
|
|
54
|
+
items: TabItem[];
|
|
55
|
+
}
|
|
56
|
+
interface WindowConfig {
|
|
57
|
+
/**
|
|
58
|
+
* 页面默认标题
|
|
59
|
+
*/
|
|
60
|
+
defaultTitle?: string;
|
|
61
|
+
/**
|
|
62
|
+
* 默认值:false
|
|
63
|
+
* 是否开启全局的下拉刷新。
|
|
64
|
+
*/
|
|
65
|
+
pullRefresh?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* 默认值:50
|
|
68
|
+
* 页面触底事件触发时距页面底部距离,单位为 px。
|
|
69
|
+
*/
|
|
70
|
+
onReachBottomDistance?: number;
|
|
71
|
+
}
|
|
72
|
+
/** 全局配置文件 */
|
|
73
|
+
export interface AppConfig {
|
|
74
|
+
/**
|
|
75
|
+
* 设置页面路径
|
|
76
|
+
*/
|
|
77
|
+
pages: string[];
|
|
78
|
+
window?: WindowConfig;
|
|
79
|
+
/**
|
|
80
|
+
* 设置底部 tab bar 的表现
|
|
81
|
+
*/
|
|
82
|
+
tabBar?: TabBarConfig;
|
|
83
|
+
router?: {
|
|
84
|
+
type: RouterType;
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
/** 页面配置文件 */
|
|
88
|
+
export type PageConfig = WindowConfig;
|
|
89
|
+
export {};
|
package/cjs/types/index.d.ts
CHANGED
|
@@ -1,89 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export interface Page {
|
|
3
|
-
route: string;
|
|
4
|
-
config: PageConfig;
|
|
5
|
-
}
|
|
6
|
-
export declare const enum RouterType {
|
|
7
|
-
hash = "hash",
|
|
8
|
-
browser = "browser"
|
|
9
|
-
}
|
|
10
|
-
export interface BootstrapOptions {
|
|
11
|
-
async?: boolean;
|
|
12
|
-
appComponent: React.ComponentType;
|
|
13
|
-
appConfig: AppConfig;
|
|
14
|
-
plugins?: any[];
|
|
15
|
-
pageComponents: Array<() => Promise<{
|
|
16
|
-
default: React.ComponentType;
|
|
17
|
-
}> | React.ComponentType>;
|
|
18
|
-
pages: Page[];
|
|
19
|
-
}
|
|
20
|
-
export interface TabItem {
|
|
21
|
-
/**
|
|
22
|
-
* 设置页面路径
|
|
23
|
-
*/
|
|
24
|
-
url: string;
|
|
25
|
-
/**
|
|
26
|
-
* 名称
|
|
27
|
-
*/
|
|
28
|
-
title: string;
|
|
29
|
-
/**
|
|
30
|
-
* 平常图标路径
|
|
31
|
-
*/
|
|
32
|
-
image: string;
|
|
33
|
-
/**
|
|
34
|
-
* 高亮图标路径
|
|
35
|
-
*/
|
|
36
|
-
activeImage?: string;
|
|
37
|
-
}
|
|
38
|
-
export interface TabBarConfig {
|
|
39
|
-
/**
|
|
40
|
-
* 标题颜色
|
|
41
|
-
*/
|
|
42
|
-
textColor?: string;
|
|
43
|
-
/**
|
|
44
|
-
* 选中标题颜色
|
|
45
|
-
*/
|
|
46
|
-
selectedColor?: string;
|
|
47
|
-
/**
|
|
48
|
-
* 背景色
|
|
49
|
-
*/
|
|
50
|
-
backgroundColor?: string;
|
|
51
|
-
/**
|
|
52
|
-
* 每个 tab 配置
|
|
53
|
-
*/
|
|
54
|
-
items: TabItem[];
|
|
55
|
-
}
|
|
56
|
-
interface WindowConfig {
|
|
57
|
-
/**
|
|
58
|
-
* 页面默认标题
|
|
59
|
-
*/
|
|
60
|
-
defaultTitle?: string;
|
|
61
|
-
/**
|
|
62
|
-
* 默认值:false
|
|
63
|
-
* 是否开启全局的下拉刷新。
|
|
64
|
-
*/
|
|
65
|
-
pullRefresh?: boolean;
|
|
66
|
-
/**
|
|
67
|
-
* 默认值:50
|
|
68
|
-
* 页面触底事件触发时距页面底部距离,单位为 px。
|
|
69
|
-
*/
|
|
70
|
-
onReachBottomDistance?: number;
|
|
71
|
-
}
|
|
72
|
-
/** 全局配置文件 */
|
|
73
|
-
export interface AppConfig {
|
|
74
|
-
/**
|
|
75
|
-
* 设置页面路径
|
|
76
|
-
*/
|
|
77
|
-
pages: string[];
|
|
78
|
-
window?: WindowConfig;
|
|
79
|
-
/**
|
|
80
|
-
* 设置底部 tab bar 的表现
|
|
81
|
-
*/
|
|
82
|
-
tabBar?: TabBarConfig;
|
|
83
|
-
router?: {
|
|
84
|
-
type: RouterType;
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
/** 页面配置文件 */
|
|
88
|
-
export type PageConfig = WindowConfig;
|
|
89
|
-
export {};
|
|
1
|
+
export * from './config';
|
package/cjs/types/index.js
CHANGED
|
@@ -1,2 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./config"), exports);
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface Page {
|
|
3
|
+
route: string;
|
|
4
|
+
config: PageConfig;
|
|
5
|
+
}
|
|
6
|
+
export declare const enum RouterType {
|
|
7
|
+
hash = "hash",
|
|
8
|
+
browser = "browser"
|
|
9
|
+
}
|
|
10
|
+
export interface BootstrapOptions {
|
|
11
|
+
async?: boolean;
|
|
12
|
+
appComponent: React.ComponentType;
|
|
13
|
+
appConfig: AppConfig;
|
|
14
|
+
plugins?: any[];
|
|
15
|
+
pageComponents: Array<() => Promise<{
|
|
16
|
+
default: React.ComponentType;
|
|
17
|
+
}> | React.ComponentType>;
|
|
18
|
+
pages: Page[];
|
|
19
|
+
}
|
|
20
|
+
export interface TabItem {
|
|
21
|
+
/**
|
|
22
|
+
* 设置页面路径
|
|
23
|
+
*/
|
|
24
|
+
url: string;
|
|
25
|
+
/**
|
|
26
|
+
* 名称
|
|
27
|
+
*/
|
|
28
|
+
title: string;
|
|
29
|
+
/**
|
|
30
|
+
* 平常图标路径
|
|
31
|
+
*/
|
|
32
|
+
image: string;
|
|
33
|
+
/**
|
|
34
|
+
* 高亮图标路径
|
|
35
|
+
*/
|
|
36
|
+
activeImage?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface TabBarConfig {
|
|
39
|
+
/**
|
|
40
|
+
* 标题颜色
|
|
41
|
+
*/
|
|
42
|
+
textColor?: string;
|
|
43
|
+
/**
|
|
44
|
+
* 选中标题颜色
|
|
45
|
+
*/
|
|
46
|
+
selectedColor?: string;
|
|
47
|
+
/**
|
|
48
|
+
* 背景色
|
|
49
|
+
*/
|
|
50
|
+
backgroundColor?: string;
|
|
51
|
+
/**
|
|
52
|
+
* 每个 tab 配置
|
|
53
|
+
*/
|
|
54
|
+
items: TabItem[];
|
|
55
|
+
}
|
|
56
|
+
interface WindowConfig {
|
|
57
|
+
/**
|
|
58
|
+
* 页面默认标题
|
|
59
|
+
*/
|
|
60
|
+
defaultTitle?: string;
|
|
61
|
+
/**
|
|
62
|
+
* 默认值:false
|
|
63
|
+
* 是否开启全局的下拉刷新。
|
|
64
|
+
*/
|
|
65
|
+
pullRefresh?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* 默认值:50
|
|
68
|
+
* 页面触底事件触发时距页面底部距离,单位为 px。
|
|
69
|
+
*/
|
|
70
|
+
onReachBottomDistance?: number;
|
|
71
|
+
}
|
|
72
|
+
/** 全局配置文件 */
|
|
73
|
+
export interface AppConfig {
|
|
74
|
+
/**
|
|
75
|
+
* 设置页面路径
|
|
76
|
+
*/
|
|
77
|
+
pages: string[];
|
|
78
|
+
window?: WindowConfig;
|
|
79
|
+
/**
|
|
80
|
+
* 设置底部 tab bar 的表现
|
|
81
|
+
*/
|
|
82
|
+
tabBar?: TabBarConfig;
|
|
83
|
+
router?: {
|
|
84
|
+
type: RouterType;
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
/** 页面配置文件 */
|
|
88
|
+
export type PageConfig = WindowConfig;
|
|
89
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/esm/types/index.d.ts
CHANGED
|
@@ -1,89 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export interface Page {
|
|
3
|
-
route: string;
|
|
4
|
-
config: PageConfig;
|
|
5
|
-
}
|
|
6
|
-
export declare const enum RouterType {
|
|
7
|
-
hash = "hash",
|
|
8
|
-
browser = "browser"
|
|
9
|
-
}
|
|
10
|
-
export interface BootstrapOptions {
|
|
11
|
-
async?: boolean;
|
|
12
|
-
appComponent: React.ComponentType;
|
|
13
|
-
appConfig: AppConfig;
|
|
14
|
-
plugins?: any[];
|
|
15
|
-
pageComponents: Array<() => Promise<{
|
|
16
|
-
default: React.ComponentType;
|
|
17
|
-
}> | React.ComponentType>;
|
|
18
|
-
pages: Page[];
|
|
19
|
-
}
|
|
20
|
-
export interface TabItem {
|
|
21
|
-
/**
|
|
22
|
-
* 设置页面路径
|
|
23
|
-
*/
|
|
24
|
-
url: string;
|
|
25
|
-
/**
|
|
26
|
-
* 名称
|
|
27
|
-
*/
|
|
28
|
-
title: string;
|
|
29
|
-
/**
|
|
30
|
-
* 平常图标路径
|
|
31
|
-
*/
|
|
32
|
-
image: string;
|
|
33
|
-
/**
|
|
34
|
-
* 高亮图标路径
|
|
35
|
-
*/
|
|
36
|
-
activeImage?: string;
|
|
37
|
-
}
|
|
38
|
-
export interface TabBarConfig {
|
|
39
|
-
/**
|
|
40
|
-
* 标题颜色
|
|
41
|
-
*/
|
|
42
|
-
textColor?: string;
|
|
43
|
-
/**
|
|
44
|
-
* 选中标题颜色
|
|
45
|
-
*/
|
|
46
|
-
selectedColor?: string;
|
|
47
|
-
/**
|
|
48
|
-
* 背景色
|
|
49
|
-
*/
|
|
50
|
-
backgroundColor?: string;
|
|
51
|
-
/**
|
|
52
|
-
* 每个 tab 配置
|
|
53
|
-
*/
|
|
54
|
-
items: TabItem[];
|
|
55
|
-
}
|
|
56
|
-
interface WindowConfig {
|
|
57
|
-
/**
|
|
58
|
-
* 页面默认标题
|
|
59
|
-
*/
|
|
60
|
-
defaultTitle?: string;
|
|
61
|
-
/**
|
|
62
|
-
* 默认值:false
|
|
63
|
-
* 是否开启全局的下拉刷新。
|
|
64
|
-
*/
|
|
65
|
-
pullRefresh?: boolean;
|
|
66
|
-
/**
|
|
67
|
-
* 默认值:50
|
|
68
|
-
* 页面触底事件触发时距页面底部距离,单位为 px。
|
|
69
|
-
*/
|
|
70
|
-
onReachBottomDistance?: number;
|
|
71
|
-
}
|
|
72
|
-
/** 全局配置文件 */
|
|
73
|
-
export interface AppConfig {
|
|
74
|
-
/**
|
|
75
|
-
* 设置页面路径
|
|
76
|
-
*/
|
|
77
|
-
pages: string[];
|
|
78
|
-
window?: WindowConfig;
|
|
79
|
-
/**
|
|
80
|
-
* 设置底部 tab bar 的表现
|
|
81
|
-
*/
|
|
82
|
-
tabBar?: TabBarConfig;
|
|
83
|
-
router?: {
|
|
84
|
-
type: RouterType;
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
/** 页面配置文件 */
|
|
88
|
-
export type PageConfig = WindowConfig;
|
|
89
|
-
export {};
|
|
1
|
+
export * from './config';
|
package/esm/types/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './config';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsmax/web",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.6",
|
|
4
4
|
"description": "Shim of web for rsmax",
|
|
5
5
|
"author": "Wei Zhu <yesmeck@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/remaxjs/remax#readme",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@loadable/component": "^5.12.0",
|
|
28
28
|
"@remax/react-router-cache-route": "^1.8.4",
|
|
29
|
-
"@rsmax/framework-shared": "1.3.
|
|
29
|
+
"@rsmax/framework-shared": "1.3.6",
|
|
30
30
|
"history": "^5.3.0",
|
|
31
31
|
"qs": "^6.9.3",
|
|
32
32
|
"react-is": "^18.3.0",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"publishConfig": {
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "1121e316785a7e49396bdc6d19f654580d9aed7a"
|
|
53
53
|
}
|