@thefreshop/tb 1.0.7 → 1.0.9
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.d.ts +1 -0
- package/dist/cjs/index.js +416 -32
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/tbframe/layout/main.d.ts +1 -1
- package/dist/cjs/tbframe/layout/tabs.d.ts +5 -2
- package/dist/cjs/tbpage/component/modules/antBaseTable/listview.d.ts +10 -0
- package/dist/cjs/tbpage/component/modules/index.d.ts +3 -2
- package/dist/cjs/tbpage/component/tblist.d.ts +12 -0
- package/dist/cjs/tbpage/index.d.ts +1 -0
- package/dist/cjs/types/provider.types.d.ts +1 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +418 -35
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/tbframe/layout/main.d.ts +1 -1
- package/dist/esm/tbframe/layout/tabs.d.ts +5 -2
- package/dist/esm/tbpage/component/modules/antBaseTable/listview.d.ts +10 -0
- package/dist/esm/tbpage/component/modules/index.d.ts +3 -2
- package/dist/esm/tbpage/component/tblist.d.ts +12 -0
- package/dist/esm/tbpage/index.d.ts +1 -0
- package/dist/esm/types/provider.types.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/package.json +9 -6
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { navType } from "../../types";
|
|
3
|
+
declare const Tabs: ({ nav: { menuSet, openIcon, closeIcon } }: {
|
|
4
|
+
nav: navType;
|
|
5
|
+
}) => React.JSX.Element;
|
|
3
6
|
export default Tabs;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AntBaseTableRefProps, antBasePropsType } from "../../../../types";
|
|
3
|
+
declare module "react" {
|
|
4
|
+
function forwardRef<T, P = {}>(render: (props: P, ref: React.Ref<T>) => React.ReactElement | null): (props: P & React.RefAttributes<T>) => React.ReactElement | null;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: <ItemType, KEY extends keyof ItemType>(props: {
|
|
7
|
+
tableProps: antBasePropsType<ItemType>;
|
|
8
|
+
render?: (item: ItemType[], index: number) => React.ReactNode | null;
|
|
9
|
+
} & React.RefAttributes<AntBaseTableRefProps<ItemType>>) => React.ReactElement | null;
|
|
10
|
+
export default _default;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { default as AntBaseTable } from
|
|
2
|
-
export {
|
|
1
|
+
export { default as AntBaseTable } from "./antBaseTable";
|
|
2
|
+
export { default as AntBaseList } from "./antBaseTable/listview";
|
|
3
|
+
export { SearchBox } from "./searchbox";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { antBasePropsType } from "../../types";
|
|
3
|
+
export declare const Tblist: <ItemType, KEY extends keyof ItemType>({ tableProps, searchOption, searchDisabled, onSubmit, isLoading, title, decs, render, }: {
|
|
4
|
+
tableProps: antBasePropsType<ItemType>;
|
|
5
|
+
searchOption?: any;
|
|
6
|
+
searchDisabled?: boolean;
|
|
7
|
+
onSubmit?: (searchdata?: any, rowdata?: any, isReset?: boolean) => void;
|
|
8
|
+
isLoading?: boolean;
|
|
9
|
+
title?: string;
|
|
10
|
+
decs?: string;
|
|
11
|
+
render?: (item: ItemType[], index: number) => React.ReactNode | null;
|
|
12
|
+
}) => React.JSX.Element;
|
|
@@ -2,6 +2,7 @@ export * from "./component/authTable";
|
|
|
2
2
|
export { TbpProvider } from "./provider/provider";
|
|
3
3
|
export { ContentLayout } from "./component/content_layout";
|
|
4
4
|
export { Tbpage } from "./component/tbpage";
|
|
5
|
+
export { Tblist } from "./component/tblist";
|
|
5
6
|
export { TbpageSm } from "./component/tbpagesm";
|
|
6
7
|
export { TbpageMulti } from "./component/tbpageMulti";
|
|
7
8
|
export { default as AntBaseTable } from "./component/modules/antBaseTable";
|
|
@@ -16,6 +16,7 @@ export type ProviderType = {
|
|
|
16
16
|
SetWarning: (value: ErrMsgType) => void;
|
|
17
17
|
errMsg?: ErrMsgType;
|
|
18
18
|
setGlobalpages: (value: tabType[]) => void;
|
|
19
|
+
globalpages?: tabType[];
|
|
19
20
|
addGlobalTabs: (key: string) => void;
|
|
20
21
|
setMenupages: (value: navType) => void;
|
|
21
22
|
goTabs: (key: string) => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -231,6 +231,7 @@ type ProviderType = {
|
|
|
231
231
|
SetWarning: (value: ErrMsgType) => void;
|
|
232
232
|
errMsg?: ErrMsgType;
|
|
233
233
|
setGlobalpages: (value: tabType[]) => void;
|
|
234
|
+
globalpages?: tabType[];
|
|
234
235
|
addGlobalTabs: (key: string) => void;
|
|
235
236
|
setMenupages: (value: navType) => void;
|
|
236
237
|
goTabs: (key: string) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thefreshop/tb",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "tb framework",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "/tb",
|
|
@@ -15,9 +15,10 @@
|
|
|
15
15
|
"@monaco-editor/react": "^4.7.0",
|
|
16
16
|
"antd": "^6.0.0",
|
|
17
17
|
"dayjs": "^1.11.13",
|
|
18
|
-
"react": "^
|
|
19
|
-
"react-dom": "^
|
|
20
|
-
"react-error-boundary": "^4.0.13"
|
|
18
|
+
"react": "^19.1.1",
|
|
19
|
+
"react-dom": "^19.1.1",
|
|
20
|
+
"react-error-boundary": "^4.0.13",
|
|
21
|
+
"react-router": "^7.10.0"
|
|
21
22
|
},
|
|
22
23
|
"devDependencies": {
|
|
23
24
|
"@babel/core": "^7.25.2",
|
|
@@ -29,6 +30,7 @@
|
|
|
29
30
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
30
31
|
"@rollup/plugin-typescript": "^11.1.6",
|
|
31
32
|
"@types/react": "^18.3.3",
|
|
33
|
+
"antd": "^6.0.0",
|
|
32
34
|
"antd-img-crop": "^4.23.0",
|
|
33
35
|
"axios": "^1.7.4",
|
|
34
36
|
"babel-preset-react-app": "^10.0.1",
|
|
@@ -36,10 +38,11 @@
|
|
|
36
38
|
"postcss": "^8.4.41",
|
|
37
39
|
"postcss-loader": "^8.1.1",
|
|
38
40
|
"postcss-prefixer": "^3.0.0",
|
|
39
|
-
"react": "^
|
|
40
|
-
"react-dom": "^
|
|
41
|
+
"react": "^19.1.1",
|
|
42
|
+
"react-dom": "^19.1.1",
|
|
41
43
|
"react-image-file-resizer": "^0.4.8",
|
|
42
44
|
"react-quill": "^2.0.0",
|
|
45
|
+
"react-router": "^7.10.0",
|
|
43
46
|
"rollup": "^4.20.0",
|
|
44
47
|
"rollup-plugin-dts": "^6.1.1",
|
|
45
48
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|