@arim-aisdc/public-components 0.0.54 → 0.0.55

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,7 +0,0 @@
1
- import { FC } from 'react';
2
- export interface MicroComponentProps {
3
- name: string;
4
- componentName: string;
5
- params?: any;
6
- }
7
- export declare const MicroComponent: FC<MicroComponentProps>;
@@ -1,14 +1,20 @@
1
- import { MicroAppWithMemoHistory } from 'umi';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- export var MicroComponent = function MicroComponent(_ref) {
4
- var name = _ref.name,
5
- componentName = _ref.componentName,
6
- params = _ref.params;
7
- return /*#__PURE__*/_jsx(MicroAppWithMemoHistory, {
8
- url: "/".concat(name),
9
- name: name,
10
- type: "component",
11
- componentName: componentName,
12
- params: params
13
- });
14
- };
1
+ // import { FC } from 'react';
2
+ // import { MicroAppWithMemoHistory } from 'umi';
3
+
4
+ // export interface MicroComponentProps {
5
+ // name: string;
6
+ // componentName: string;
7
+ // params?: any;
8
+ // }
9
+
10
+ // export const MicroComponent: FC<MicroComponentProps> = ({ name, componentName, params }) => {
11
+ // return (
12
+ // <MicroAppWithMemoHistory
13
+ // url={`/${name}`}
14
+ // name={name}
15
+ // type="component"
16
+ // componentName={componentName}
17
+ // params={params}
18
+ // />
19
+ // );
20
+ // };
@@ -1,13 +1,13 @@
1
1
  import { TableMaxColumnType } from "../../type";
2
- export declare const numberSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
3
- export declare const stringSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
4
- export declare const numberOrStringSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
5
- export declare const timeSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
2
+ export declare const numberSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
3
+ export declare const stringSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
4
+ export declare const numberOrStringSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
5
+ export declare const timeSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
6
6
  declare const customSortFns: {
7
- numberSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
8
- stringSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
9
- timeSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
10
- numberOrStringSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
7
+ numberSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
8
+ stringSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
9
+ timeSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
10
+ numberOrStringSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
11
11
  };
12
12
  export default customSortFns;
13
13
  export type SortFnType = keyof typeof customSortFns | undefined;
package/dist/index.d.ts CHANGED
@@ -27,4 +27,3 @@ export { default as SchemaForm } from './components/SchemaForm';
27
27
  export * from './hooks/useEventBus';
28
28
  export { default as useEventBus } from './hooks/useEventBus';
29
29
  export { default as usePageCacheState } from './hooks/usePageCacheState';
30
- export * from './components/MicroComponent';
package/dist/index.js CHANGED
@@ -29,5 +29,4 @@ export { default as SchemaForm } from "./components/SchemaForm";
29
29
  // hooks
30
30
  export * from "./hooks/useEventBus";
31
31
  export { default as useEventBus } from "./hooks/useEventBus";
32
- export { default as usePageCacheState } from "./hooks/usePageCacheState";
33
- export * from "./components/MicroComponent";
32
+ export { default as usePageCacheState } from "./hooks/usePageCacheState";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arim-aisdc/public-components",
3
- "version": "0.0.54",
3
+ "version": "0.0.55",
4
4
  "description": "前端组件库",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -53,7 +53,6 @@
53
53
  "ahooks": "^3.7.8",
54
54
  "antd": "^4.24.15",
55
55
  "css-vars-ponyfill": "^2.4.8",
56
- "expr-eval": "^2.0.2",
57
56
  "fs": "^0.0.1-security",
58
57
  "immer": "^10.0.3",
59
58
  "jsep": "^1.3.8",
@@ -87,11 +86,9 @@
87
86
  "stylelint": "^14.9.1"
88
87
  },
89
88
  "peerDependencies": {
90
- "@umijs/plugins": "^4.1.5",
91
89
  "moment": ">=2.29.4",
92
90
  "react": ">=17.0.1",
93
91
  "react-dom": ">=17.0.1",
94
- "umi": "^4.1.2",
95
92
  "umi-request": "^1.4.0"
96
93
  },
97
94
  "publishConfig": {