@sunny-base-web/effects 0.8.10 → 0.8.12
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/index.d.ts +56 -0
- package/dist/index.js +5 -5
- package/dist/index.mjs +730 -705
- package/package.json +9 -9
package/dist/index.d.ts
CHANGED
|
@@ -42,6 +42,7 @@ import { RendererNode } from 'vue';
|
|
|
42
42
|
import { SelectFieldMapping } from '../../../@ui/src/index.ts';
|
|
43
43
|
import { SelectOption as SelectOption_2 } from '../../../@ui/src/index.ts';
|
|
44
44
|
import { SelectOptionsAdapter } from '../../../@ui/src/index.ts';
|
|
45
|
+
import { ShallowRef } from 'vue';
|
|
45
46
|
import { ShallowUnwrapRef } from 'vue';
|
|
46
47
|
import { Slot } from 'vue';
|
|
47
48
|
import { Store } from 'pinia';
|
|
@@ -50,7 +51,9 @@ import { VNode } from 'vue';
|
|
|
50
51
|
import { VNodeChild } from 'vue';
|
|
51
52
|
import { VNodeProps } from 'vue';
|
|
52
53
|
import { VxeGridApi } from '../../../@ui/src/data/query-grid/api';
|
|
54
|
+
import { VxeGridApi as VxeGridApi_2 } from '../../../@ui/src/data/edit-grid/api';
|
|
53
55
|
import { VxeGridProps } from '../../../../../@ui/src/index.ts';
|
|
56
|
+
import { VxeGridProps as VxeGridProps_2 } from '../../../@ui/src/index.ts';
|
|
54
57
|
import { VxeGridPropTypes } from '@sunny-base-web/ui';
|
|
55
58
|
import { WatchOptions } from 'vue';
|
|
56
59
|
import { WatchStopHandle } from 'vue';
|
|
@@ -2364,6 +2367,19 @@ export declare interface SystemSettingForm {
|
|
|
2364
2367
|
agentToken: string;
|
|
2365
2368
|
}
|
|
2366
2369
|
|
|
2370
|
+
declare interface TabConfig {
|
|
2371
|
+
title: string;
|
|
2372
|
+
type: 'grid' | 'form';
|
|
2373
|
+
gridConfig?: {
|
|
2374
|
+
columns: VxeGridProps_2['columns'];
|
|
2375
|
+
editRules: any;
|
|
2376
|
+
toolbarButtons?: Array<{
|
|
2377
|
+
code: string;
|
|
2378
|
+
name: string;
|
|
2379
|
+
}>;
|
|
2380
|
+
};
|
|
2381
|
+
}
|
|
2382
|
+
|
|
2367
2383
|
/**
|
|
2368
2384
|
* 表格列配置
|
|
2369
2385
|
*/
|
|
@@ -2476,6 +2492,31 @@ declare interface UseFormOptions extends Partial<SunnyFormProps> {
|
|
|
2476
2492
|
handleValuesChange?: (values: Record<string, any>, changedFields: string[]) => void;
|
|
2477
2493
|
}
|
|
2478
2494
|
|
|
2495
|
+
export declare function useFormTable({ formSchema, tableColumns, tableEditRules, tableToolbarButtons, objectToValueFields }?: UseFormTableOptions): readonly [DefineComponent< {}, () => VNode<RendererNode, RendererElement, {
|
|
2496
|
+
[key: string]: any;
|
|
2497
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, FormApi, DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>, VxeGridApi_2];
|
|
2498
|
+
|
|
2499
|
+
declare interface UseFormTableOptions {
|
|
2500
|
+
formSchema?: any[];
|
|
2501
|
+
tableColumns?: VxeGridProps_2['columns'];
|
|
2502
|
+
tableEditRules?: any;
|
|
2503
|
+
tableToolbarButtons?: Array<{
|
|
2504
|
+
code: string;
|
|
2505
|
+
name: string;
|
|
2506
|
+
}>;
|
|
2507
|
+
objectToValueFields?: string[];
|
|
2508
|
+
}
|
|
2509
|
+
|
|
2510
|
+
export declare function useFormTabs({ formSchema, tabsConfig, objectToValueFields }?: UseFormTabsOptions): readonly [DefineComponent< {}, () => VNode<RendererNode, RendererElement, {
|
|
2511
|
+
[key: string]: any;
|
|
2512
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, FormApi, ShallowRef<any[], any[]>, Ref<any[], any[]>];
|
|
2513
|
+
|
|
2514
|
+
declare interface UseFormTabsOptions {
|
|
2515
|
+
formSchema?: any[];
|
|
2516
|
+
tabsConfig?: TabConfig[];
|
|
2517
|
+
objectToValueFields?: string[];
|
|
2518
|
+
}
|
|
2519
|
+
|
|
2479
2520
|
export declare function useGlobalLoading(): UseGlobalLoadingReturn;
|
|
2480
2521
|
|
|
2481
2522
|
/**
|
|
@@ -3034,6 +3075,21 @@ export declare interface UseSelectOptionsReturn {
|
|
|
3034
3075
|
clearCache: (dictCode?: string | number) => void;
|
|
3035
3076
|
}
|
|
3036
3077
|
|
|
3078
|
+
/**
|
|
3079
|
+
* 获取用户资源
|
|
3080
|
+
* @param cModnumb - 模块编号
|
|
3081
|
+
* @returns 资源按钮列表
|
|
3082
|
+
*/
|
|
3083
|
+
export declare function useUserResources(cModnumb: string): {
|
|
3084
|
+
loading: Ref<boolean, boolean>;
|
|
3085
|
+
resourceButtons: Ref< {
|
|
3086
|
+
[key: string]: any[];
|
|
3087
|
+
}, {
|
|
3088
|
+
[key: string]: any[];
|
|
3089
|
+
}>;
|
|
3090
|
+
fetchResources: () => Promise<void>;
|
|
3091
|
+
};
|
|
3092
|
+
|
|
3037
3093
|
/**
|
|
3038
3094
|
* 弱密码项
|
|
3039
3095
|
*/
|