@yidun/antd-super-table 0.0.6 → 0.0.7
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/README.md +141 -18
- package/dist/config.d.ts +0 -7
- package/dist/index.js +1264 -1315
- package/dist/utils/service.d.ts +1 -24
- package/package.json +1 -1
package/dist/utils/service.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { SuperTableQueryScene } from '../typings';
|
|
|
2
2
|
/**
|
|
3
3
|
* 接口响应数据结构
|
|
4
4
|
*/
|
|
5
|
-
interface IResponse {
|
|
5
|
+
export interface IResponse {
|
|
6
6
|
/** 状态码 */
|
|
7
7
|
code: number;
|
|
8
8
|
/** 响应数据 */
|
|
@@ -19,18 +19,6 @@ interface LocalStorageConfig {
|
|
|
19
19
|
/** 设置场景列表 */
|
|
20
20
|
setScenes: (newScenes: SuperTableQueryScene[]) => void;
|
|
21
21
|
}
|
|
22
|
-
/**
|
|
23
|
-
* API存储策略配置选项
|
|
24
|
-
*/
|
|
25
|
-
interface ApiStorageConfig {
|
|
26
|
-
/** API地址配置 */
|
|
27
|
-
sceneRequestUrls?: {
|
|
28
|
-
query: string;
|
|
29
|
-
create: string;
|
|
30
|
-
update: string;
|
|
31
|
-
delete: string;
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
22
|
/**
|
|
35
23
|
* 本地存储场景服务
|
|
36
24
|
*/
|
|
@@ -42,17 +30,6 @@ export declare const localStorageSceneService: (config: LocalStorageConfig) => {
|
|
|
42
30
|
updateScene: (params: any) => Promise<IResponse>;
|
|
43
31
|
deleteScene: (params: string[]) => Promise<IResponse>;
|
|
44
32
|
};
|
|
45
|
-
/**
|
|
46
|
-
* API存储场景服务
|
|
47
|
-
*/
|
|
48
|
-
export declare const apiSceneService: (config?: ApiStorageConfig) => {
|
|
49
|
-
querySceneList: (params: {
|
|
50
|
-
type: string;
|
|
51
|
-
}) => Promise<IResponse>;
|
|
52
|
-
createScene: (params: any) => Promise<IResponse>;
|
|
53
|
-
updateScene: (params: any) => Promise<IResponse>;
|
|
54
|
-
deleteScene: (params: string[]) => Promise<IResponse>;
|
|
55
|
-
};
|
|
56
33
|
/** 不启用场景时,返回的场景服务 */
|
|
57
34
|
export declare const disabledSceneService: () => {
|
|
58
35
|
querySceneList: () => Promise<IResponse>;
|