@sunny-base-web/effects 0.8.31 → 0.8.33
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 +28 -31
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { App } from 'vue';
|
|
|
3
3
|
import { AxiosInstance } from 'axios';
|
|
4
4
|
import { AxiosRequestConfig } from 'axios';
|
|
5
5
|
import { AxiosResponse } from 'axios';
|
|
6
|
-
import { BusinessSearchAdapter } from '
|
|
6
|
+
import { BusinessSearchAdapter } from '@sunny-base-web/ui';
|
|
7
7
|
import { ComponentCustomProperties } from 'vue';
|
|
8
8
|
import { ComponentCustomProps } from 'vue';
|
|
9
9
|
import { ComponentInternalInstance } from 'vue';
|
|
@@ -21,19 +21,17 @@ import { DefineSetupFnComponent } from 'vue';
|
|
|
21
21
|
import { ExtractPropTypes } from 'vue';
|
|
22
22
|
import { FavoriteItem } from '@sunny-base-web/stores';
|
|
23
23
|
import { FavoriteState } from '@sunny-base-web/stores';
|
|
24
|
-
import { FormApi } from '
|
|
25
|
-
import { FormCommonConfig } from '
|
|
26
|
-
import { FormSchema } from '
|
|
27
|
-
import { FormSchema as FormSchema_2 } from '../../../../../../@ui/src/index.ts';
|
|
28
|
-
import { FormSchema as FormSchema_3 } from '../../../@ui/src/index.ts';
|
|
24
|
+
import { FormApi } from '@sunny-base-web/ui';
|
|
25
|
+
import { FormCommonConfig } from '@sunny-base-web/ui';
|
|
26
|
+
import { FormSchema } from '@sunny-base-web/ui';
|
|
29
27
|
import { GlobalComponents } from 'vue';
|
|
30
28
|
import { GlobalDirectives } from 'vue';
|
|
31
29
|
import { InjectionKey } from 'vue';
|
|
32
30
|
import { InternalAxiosRequestConfig } from 'axios';
|
|
33
|
-
import { ModalProps } from '
|
|
31
|
+
import { ModalProps } from 'node_modules/@sunny-base-web/ui/src/feedback/modal/types';
|
|
34
32
|
import { nextTick } from 'vue';
|
|
35
33
|
import { OnCleanup } from '@vue/reactivity';
|
|
36
|
-
import { PermissionFieldMapping } from '
|
|
34
|
+
import { PermissionFieldMapping } from '@sunny-base-web/ui';
|
|
37
35
|
import { PiniaCustomStateProperties } from 'pinia';
|
|
38
36
|
import { PropType } from 'vue';
|
|
39
37
|
import { PublicProps } from 'vue';
|
|
@@ -41,21 +39,20 @@ import { Ref } from 'vue';
|
|
|
41
39
|
import { ref } from 'vue';
|
|
42
40
|
import { RendererElement } from 'vue';
|
|
43
41
|
import { RendererNode } from 'vue';
|
|
44
|
-
import { SelectFieldMapping } from '
|
|
45
|
-
import { SelectOption as SelectOption_2 } from '
|
|
46
|
-
import { SelectOptionsAdapter } from '
|
|
42
|
+
import { SelectFieldMapping } from '@sunny-base-web/ui';
|
|
43
|
+
import { SelectOption as SelectOption_2 } from '@sunny-base-web/ui';
|
|
44
|
+
import { SelectOptionsAdapter } from '@sunny-base-web/ui';
|
|
47
45
|
import { ShallowRef } from 'vue';
|
|
48
46
|
import { ShallowUnwrapRef } from 'vue';
|
|
49
47
|
import { Slot } from 'vue';
|
|
50
48
|
import { Store } from 'pinia';
|
|
51
|
-
import { SunnyFormProps } from '
|
|
49
|
+
import { SunnyFormProps } from '@sunny-base-web/ui';
|
|
52
50
|
import { VNode } from 'vue';
|
|
53
51
|
import { VNodeChild } from 'vue';
|
|
54
52
|
import { VNodeProps } from 'vue';
|
|
55
|
-
import { VxeGridApi } from '
|
|
56
|
-
import { VxeGridApi as VxeGridApi_2 } from '
|
|
57
|
-
import { VxeGridProps } from '
|
|
58
|
-
import { VxeGridProps as VxeGridProps_2 } from '../../../@ui/src/index.ts';
|
|
53
|
+
import { VxeGridApi } from 'node_modules/@sunny-base-web/ui/src/data/query-grid/api';
|
|
54
|
+
import { VxeGridApi as VxeGridApi_2 } from 'node_modules/@sunny-base-web/ui/src/data/edit-grid/api';
|
|
55
|
+
import { VxeGridProps } from '@sunny-base-web/ui';
|
|
59
56
|
import { VxeGridPropTypes } from '@sunny-base-web/ui';
|
|
60
57
|
import { WatchOptions } from 'vue';
|
|
61
58
|
import { WatchStopHandle } from 'vue';
|
|
@@ -311,7 +308,7 @@ export declare const childGridColumns: VxeGridProps<any>['columns'];
|
|
|
311
308
|
* console.log(dictCodes); // ['SFQY', 'LANG']
|
|
312
309
|
* ```
|
|
313
310
|
*/
|
|
314
|
-
export declare function collectSchemaDictCodes(schema:
|
|
311
|
+
export declare function collectSchemaDictCodes(schema: FormSchema[]): (string | number)[];
|
|
315
312
|
|
|
316
313
|
/**
|
|
317
314
|
* 收集 Schema 中的权限编码(工具函数)
|
|
@@ -326,7 +323,7 @@ export declare function collectSchemaDictCodes(schema: FormSchema_3[]): (string
|
|
|
326
323
|
* console.log(codes); // ['FACTORY', 'COMPANY']
|
|
327
324
|
* ```
|
|
328
325
|
*/
|
|
329
|
-
export declare function collectSchemaPermissionCodes(schema:
|
|
326
|
+
export declare function collectSchemaPermissionCodes(schema: FormSchema[]): (string | number)[];
|
|
330
327
|
|
|
331
328
|
/**
|
|
332
329
|
* 创建 @effects 插件实例
|
|
@@ -608,9 +605,9 @@ declare interface FormItem {
|
|
|
608
605
|
}
|
|
609
606
|
|
|
610
607
|
export declare const getAssSendoaConfig: ({ t }: AssSendoaConfig) => {
|
|
611
|
-
searchFormSchema:
|
|
608
|
+
searchFormSchema: FormSchema[];
|
|
612
609
|
tableColumns: VxeGridPropTypes.Columns<AssSendoaVO>;
|
|
613
|
-
addEditFormSchema:
|
|
610
|
+
addEditFormSchema: FormSchema[];
|
|
614
611
|
userSfqyOpts: {
|
|
615
612
|
cKeyname: string;
|
|
616
613
|
cKeynumb: string;
|
|
@@ -623,12 +620,12 @@ export declare const getAssSendoaConfig: ({ t }: AssSendoaConfig) => {
|
|
|
623
620
|
export declare function getEnterStrategy(data?: any): Promise<ResponseResult<LoginStrategyResult>>;
|
|
624
621
|
|
|
625
622
|
export declare const getGgcxtcConfig: ({ t }: GgcxtcConfig) => {
|
|
626
|
-
searchFormSchema:
|
|
623
|
+
searchFormSchema: FormSchema[];
|
|
627
624
|
tableColumns: VxeGridPropTypes.Columns<GgcxtcVO>;
|
|
628
625
|
};
|
|
629
626
|
|
|
630
627
|
export declare const getJobGroupConfig: ({ t }: JobGroupConfig) => {
|
|
631
|
-
searchFormSchema:
|
|
628
|
+
searchFormSchema: FormSchema[];
|
|
632
629
|
tableColumns: VxeGridPropTypes.Columns<JobGroupVO>;
|
|
633
630
|
statusOptions: {
|
|
634
631
|
cKeyname: string;
|
|
@@ -641,7 +638,7 @@ export declare const getJobGroupConfig: ({ t }: JobGroupConfig) => {
|
|
|
641
638
|
};
|
|
642
639
|
|
|
643
640
|
export declare const getJobInfoConfig: ({ t }: JobInfoConfig) => {
|
|
644
|
-
searchFormSchema:
|
|
641
|
+
searchFormSchema: FormSchema[];
|
|
645
642
|
tableColumns: VxeGridPropTypes.Columns<JobInfoVO>;
|
|
646
643
|
scheduleTypeOptions: {
|
|
647
644
|
cKeyname: string;
|
|
@@ -658,7 +655,7 @@ export declare const getJobInfoConfig: ({ t }: JobInfoConfig) => {
|
|
|
658
655
|
};
|
|
659
656
|
|
|
660
657
|
export declare const getJobLogConfig: ({ t }: JobLogConfig) => {
|
|
661
|
-
searchFormSchema:
|
|
658
|
+
searchFormSchema: FormSchema[];
|
|
662
659
|
tableColumns: VxeGridPropTypes.Columns<JobLogVO>;
|
|
663
660
|
triggerCodeOptions: {
|
|
664
661
|
cKeyname: string;
|
|
@@ -2103,7 +2100,7 @@ export declare interface SchemaOptionsLoaderReturn {
|
|
|
2103
2100
|
* 增强后的 Schema(自动注入 options)
|
|
2104
2101
|
* Enhanced Schema (with auto-injected options)
|
|
2105
2102
|
*/
|
|
2106
|
-
enhancedSchema: ComputedRef<
|
|
2103
|
+
enhancedSchema: ComputedRef<FormSchema[]>;
|
|
2107
2104
|
/**
|
|
2108
2105
|
* 选项映射表
|
|
2109
2106
|
* Options map
|
|
@@ -2130,7 +2127,7 @@ export declare interface SchemaPermissionLoaderReturn {
|
|
|
2130
2127
|
* 增强后的 Schema(自动注入 options)
|
|
2131
2128
|
* Enhanced Schema (with auto-injected options)
|
|
2132
2129
|
*/
|
|
2133
|
-
enhancedSchema: ComputedRef<
|
|
2130
|
+
enhancedSchema: ComputedRef<FormSchema[]>;
|
|
2134
2131
|
/**
|
|
2135
2132
|
* 选项映射表
|
|
2136
2133
|
* Options map
|
|
@@ -2373,7 +2370,7 @@ declare interface TabConfig {
|
|
|
2373
2370
|
title: string;
|
|
2374
2371
|
type: 'grid' | 'form';
|
|
2375
2372
|
gridConfig?: {
|
|
2376
|
-
columns:
|
|
2373
|
+
columns: VxeGridProps['columns'];
|
|
2377
2374
|
editRules: any;
|
|
2378
2375
|
toolbarButtons?: Array<{
|
|
2379
2376
|
code: string;
|
|
@@ -2542,7 +2539,7 @@ export declare function useFormTable({ formSchema, tableColumns, tableEditRules,
|
|
|
2542
2539
|
|
|
2543
2540
|
declare interface UseFormTableOptions {
|
|
2544
2541
|
formSchema?: any[];
|
|
2545
|
-
tableColumns?:
|
|
2542
|
+
tableColumns?: VxeGridProps['columns'];
|
|
2546
2543
|
tableEditRules?: any;
|
|
2547
2544
|
tableToolbarButtons?: Array<{
|
|
2548
2545
|
code: string;
|
|
@@ -2942,7 +2939,7 @@ export declare const userSfqyOpts: SelectOption[];
|
|
|
2942
2939
|
* })
|
|
2943
2940
|
* ```
|
|
2944
2941
|
*/
|
|
2945
|
-
export declare function useSchemaOptionsLoader(schema:
|
|
2942
|
+
export declare function useSchemaOptionsLoader(schema: FormSchema[] | Ref<FormSchema[]>, immediate?: boolean): SchemaOptionsLoaderReturn;
|
|
2946
2943
|
|
|
2947
2944
|
/**
|
|
2948
2945
|
* 处理声明式 Schema 的权限选项加载
|
|
@@ -2976,7 +2973,7 @@ export declare function useSchemaOptionsLoader(schema: FormSchema_3[] | Ref<Form
|
|
|
2976
2973
|
* })
|
|
2977
2974
|
* ```
|
|
2978
2975
|
*/
|
|
2979
|
-
export declare function useSchemaPermissionLoader(schema:
|
|
2976
|
+
export declare function useSchemaPermissionLoader(schema: FormSchema[] | Ref<FormSchema[]>, immediate?: boolean): SchemaPermissionLoaderReturn;
|
|
2980
2977
|
|
|
2981
2978
|
/**
|
|
2982
2979
|
* 查询方案 API 实现
|
|
@@ -3129,7 +3126,7 @@ export declare function useTable({ columns, editRules, toolbarButtons, data, edi
|
|
|
3129
3126
|
|
|
3130
3127
|
declare interface UseTableOptions {
|
|
3131
3128
|
/** 表格列配置 */
|
|
3132
|
-
columns?:
|
|
3129
|
+
columns?: VxeGridProps['columns'];
|
|
3133
3130
|
/** 表格编辑规则 */
|
|
3134
3131
|
editRules?: any;
|
|
3135
3132
|
/** 工具栏按钮 */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sunny-base-web/effects",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.33",
|
|
4
4
|
"private": false,
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"xe-utils": "3.9.1",
|
|
35
35
|
"zod": "^4.3.6",
|
|
36
36
|
"@sunny-base-web/icons": "^0.8.31",
|
|
37
|
-
"@sunny-base-web/stores": "^0.8.31",
|
|
38
|
-
"@sunny-base-web/locales": "^0.8.31",
|
|
39
37
|
"@sunny-base-web/ui": "^0.8.31",
|
|
38
|
+
"@sunny-base-web/locales": "^0.8.31",
|
|
39
|
+
"@sunny-base-web/stores": "^0.8.31",
|
|
40
40
|
"@sunny-base-web/utils": "^0.8.31"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"typescript": "^5.7.2",
|
|
49
49
|
"vite": "^7.3.1",
|
|
50
50
|
"vite-plugin-dts": "^4.5.4",
|
|
51
|
-
"@sunny-base-web/constants": "0.8.31",
|
|
52
51
|
"@sunny-base-web/designer-studio": "^0.1.0",
|
|
52
|
+
"@sunny-base-web/constants": "0.8.31",
|
|
53
53
|
"@sunny-base-web/tailwind-config": "0.8.31",
|
|
54
54
|
"@sunny-base-web/tsconfig": "0.8.31"
|
|
55
55
|
},
|