@thefreshop/tb 1.0.11 → 1.0.13
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/cjs/index.js +63 -46
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/tbframe/layout/frame.d.ts +2 -1
- package/dist/cjs/tbpage/component/modules/antBaseModalCreate/modal_props.d.ts +0 -1
- package/dist/cjs/types/index.d.ts +0 -10
- package/dist/cjs/types/provider.types.d.ts +1 -7
- package/dist/cjs/types/tbframe.types.d.ts +18 -5
- package/dist/esm/index.js +65 -48
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/tbframe/layout/frame.d.ts +2 -1
- package/dist/esm/tbpage/component/modules/antBaseModalCreate/modal_props.d.ts +0 -1
- package/dist/esm/types/index.d.ts +0 -10
- package/dist/esm/types/provider.types.d.ts +1 -7
- package/dist/esm/types/tbframe.types.d.ts +18 -5
- package/dist/index.d.ts +19 -22
- package/package.json +1 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { tbframeType, topType, navType, bottomType } from "../../types";
|
|
3
|
-
declare const TbFrame: ({ setting, top, bottom, nav, top_banner, }: {
|
|
3
|
+
declare const TbFrame: ({ setting, top, bottom, nav, top_banner, hashmode, }: {
|
|
4
4
|
setting: tbframeType;
|
|
5
5
|
top: topType;
|
|
6
6
|
bottom?: bottomType;
|
|
7
7
|
nav: navType;
|
|
8
8
|
top_banner?: React.ReactNode;
|
|
9
|
+
hashmode?: boolean;
|
|
9
10
|
}) => React.JSX.Element;
|
|
10
11
|
export default TbFrame;
|
|
@@ -3,13 +3,3 @@ export * from "./searchbox.type";
|
|
|
3
3
|
export * from "./user.types";
|
|
4
4
|
export * from "./tbframe.types";
|
|
5
5
|
export * from "./provider.types";
|
|
6
|
-
import { tabType } from "./provider.types";
|
|
7
|
-
export interface tbframeType {
|
|
8
|
-
islogin?: boolean;
|
|
9
|
-
isgroup?: boolean;
|
|
10
|
-
isgroupauth?: boolean;
|
|
11
|
-
startpage?: React.ReactNode;
|
|
12
|
-
loginpage?: React.ReactNode;
|
|
13
|
-
logoutComponent?: React.ReactNode;
|
|
14
|
-
globalpages?: tabType[];
|
|
15
|
-
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { userType } from "./user.types";
|
|
2
|
-
import { navType } from "./tbframe.types";
|
|
2
|
+
import { navType, tabType } from "./tbframe.types";
|
|
3
3
|
export type ProviderType = {
|
|
4
4
|
topkey: string;
|
|
5
5
|
setTopkey: (value: string) => void;
|
|
@@ -21,12 +21,6 @@ export type ProviderType = {
|
|
|
21
21
|
setMenupages: (value: navType) => void;
|
|
22
22
|
goTabs: (key: string) => void;
|
|
23
23
|
};
|
|
24
|
-
export type tabType = {
|
|
25
|
-
title: string;
|
|
26
|
-
key: string;
|
|
27
|
-
page?: React.ReactNode;
|
|
28
|
-
noremove?: boolean;
|
|
29
|
-
};
|
|
30
24
|
export type ErrMsgType = {
|
|
31
25
|
err?: string;
|
|
32
26
|
errType?: string;
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
export interface tbframeType {
|
|
2
|
+
islogin?: boolean;
|
|
3
|
+
isgroup?: boolean;
|
|
4
|
+
isgroupauth?: boolean;
|
|
5
|
+
startpage?: React.ReactNode;
|
|
6
|
+
loginpage?: React.ReactNode;
|
|
7
|
+
logoutComponent?: React.ReactNode;
|
|
8
|
+
globalpages?: tabType[];
|
|
9
|
+
}
|
|
1
10
|
export declare const baseAdminDat: TbFrameType;
|
|
2
11
|
export type TbFrameType = {
|
|
3
12
|
admin_account_id: number;
|
|
@@ -26,21 +35,25 @@ export type topType = {
|
|
|
26
35
|
export type bottomType = {
|
|
27
36
|
bottomRight?: React.ReactNode;
|
|
28
37
|
};
|
|
29
|
-
export type
|
|
38
|
+
export type tabType = {
|
|
30
39
|
title: string;
|
|
31
|
-
icon?: React.ReactElement | JSX.Element;
|
|
32
40
|
key: string;
|
|
33
|
-
children?: menuType[];
|
|
34
41
|
page?: React.ReactNode;
|
|
42
|
+
noremove?: boolean;
|
|
43
|
+
};
|
|
44
|
+
export type menuType = {
|
|
45
|
+
tab: tabType;
|
|
46
|
+
icon?: React.ReactElement | JSX.Element;
|
|
47
|
+
children?: menuType[];
|
|
35
48
|
hasPage?: boolean;
|
|
36
49
|
defalultOpen?: boolean;
|
|
37
50
|
};
|
|
38
51
|
export type navType = {
|
|
39
|
-
menuSet:
|
|
52
|
+
menuSet: menuSetType[];
|
|
40
53
|
openIcon?: React.ReactElement | JSX.Element;
|
|
41
54
|
closeIcon?: React.ReactElement | JSX.Element;
|
|
42
55
|
};
|
|
43
|
-
export type
|
|
56
|
+
export type menuSetType = {
|
|
44
57
|
parentkey?: string;
|
|
45
58
|
menuSetting: menuType[];
|
|
46
59
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -168,6 +168,15 @@ interface authMenuType {
|
|
|
168
168
|
menu_key: string[];
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
+
interface tbframeType {
|
|
172
|
+
islogin?: boolean;
|
|
173
|
+
isgroup?: boolean;
|
|
174
|
+
isgroupauth?: boolean;
|
|
175
|
+
startpage?: React.ReactNode;
|
|
176
|
+
loginpage?: React.ReactNode;
|
|
177
|
+
logoutComponent?: React.ReactNode;
|
|
178
|
+
globalpages?: tabType[];
|
|
179
|
+
}
|
|
171
180
|
declare const baseAdminDat: TbFrameType;
|
|
172
181
|
type TbFrameType = {
|
|
173
182
|
admin_account_id: number;
|
|
@@ -196,21 +205,25 @@ type topType = {
|
|
|
196
205
|
type bottomType = {
|
|
197
206
|
bottomRight?: React.ReactNode;
|
|
198
207
|
};
|
|
199
|
-
type
|
|
208
|
+
type tabType = {
|
|
200
209
|
title: string;
|
|
201
|
-
icon?: React.ReactElement | JSX.Element;
|
|
202
210
|
key: string;
|
|
203
|
-
children?: menuType[];
|
|
204
211
|
page?: React.ReactNode;
|
|
212
|
+
noremove?: boolean;
|
|
213
|
+
};
|
|
214
|
+
type menuType = {
|
|
215
|
+
tab: tabType;
|
|
216
|
+
icon?: React.ReactElement | JSX.Element;
|
|
217
|
+
children?: menuType[];
|
|
205
218
|
hasPage?: boolean;
|
|
206
219
|
defalultOpen?: boolean;
|
|
207
220
|
};
|
|
208
221
|
type navType = {
|
|
209
|
-
menuSet:
|
|
222
|
+
menuSet: menuSetType[];
|
|
210
223
|
openIcon?: React.ReactElement | JSX.Element;
|
|
211
224
|
closeIcon?: React.ReactElement | JSX.Element;
|
|
212
225
|
};
|
|
213
|
-
type
|
|
226
|
+
type menuSetType = {
|
|
214
227
|
parentkey?: string;
|
|
215
228
|
menuSetting: menuType[];
|
|
216
229
|
};
|
|
@@ -236,12 +249,6 @@ type ProviderType = {
|
|
|
236
249
|
setMenupages: (value: navType) => void;
|
|
237
250
|
goTabs: (key: string) => void;
|
|
238
251
|
};
|
|
239
|
-
type tabType = {
|
|
240
|
-
title: string;
|
|
241
|
-
key: string;
|
|
242
|
-
page?: React.ReactNode;
|
|
243
|
-
noremove?: boolean;
|
|
244
|
-
};
|
|
245
252
|
type ErrMsgType = {
|
|
246
253
|
err?: string;
|
|
247
254
|
errType?: string;
|
|
@@ -250,15 +257,5 @@ type ErrMsgType = {
|
|
|
250
257
|
isPopup?: boolean;
|
|
251
258
|
};
|
|
252
259
|
|
|
253
|
-
interface tbframeType {
|
|
254
|
-
islogin?: boolean;
|
|
255
|
-
isgroup?: boolean;
|
|
256
|
-
isgroupauth?: boolean;
|
|
257
|
-
startpage?: React.ReactNode;
|
|
258
|
-
loginpage?: React.ReactNode;
|
|
259
|
-
logoutComponent?: React.ReactNode;
|
|
260
|
-
globalpages?: tabType[];
|
|
261
|
-
}
|
|
262
|
-
|
|
263
260
|
export { baseAdminDat, topbase };
|
|
264
|
-
export type { AntBaseTableRefProps, AnyObject, ErrMsgType, ProviderType, TbFrameType, antBaseColumnType, antBasePropsType, authMenuType, authType, bottomType, btnReturnFType, btnReturnTType, customBtnReturnFType, customBtnReturnTType, groupType,
|
|
261
|
+
export type { AntBaseTableRefProps, AnyObject, ErrMsgType, ProviderType, TbFrameType, antBaseColumnType, antBasePropsType, authMenuType, authType, bottomType, btnReturnFType, btnReturnTType, customBtnReturnFType, customBtnReturnTType, groupType, menuSetType, menuType, navType, searchBoxType, searchDataType, searchItemOptionsType, searchItemsType, searchOptionType, selectType, submitItemType, tabType, tbframeType, topMenuType, topType, userType };
|