@sunny-base-web/effects 0.8.58 → 0.8.60

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 CHANGED
@@ -2418,6 +2418,11 @@ declare interface TabConfig {
2418
2418
  code: string;
2419
2419
  name: string;
2420
2420
  }>;
2421
+ /** 聚合配置(用于行分组等场景) */
2422
+ aggregateConfig?: {
2423
+ groupFields?: string[];
2424
+ [key: string]: any;
2425
+ };
2421
2426
  };
2422
2427
  }
2423
2428
 
@@ -2598,7 +2603,7 @@ declare interface UseFormOptions extends Partial<SunnyFormProps> {
2598
2603
  handleValuesChange?: (values: Record<string, any>, changedFields: string[]) => void;
2599
2604
  }
2600
2605
 
2601
- export declare function useFormTable({ formSchema, tableColumns, tableEditRules, tableToolbarButtons, objectToValueFields }?: UseFormTableOptions): readonly [DefineComponent< {}, () => VNode<RendererNode, RendererElement, {
2606
+ export declare function useFormTable({ formSchema, tableColumns, tableEditRules, tableToolbarButtons, objectToValueFields, aggregateConfig, }?: UseFormTableOptions): readonly [DefineComponent< {}, () => VNode<RendererNode, RendererElement, {
2602
2607
  [key: string]: any;
2603
2608
  }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, FormApi, DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>, VxeGridApi_2];
2604
2609
 
@@ -2611,6 +2616,11 @@ declare interface UseFormTableOptions {
2611
2616
  name: string;
2612
2617
  }>;
2613
2618
  objectToValueFields?: string[];
2619
+ /** 聚合配置(用于行分组等场景) */
2620
+ aggregateConfig?: {
2621
+ groupFields?: string[];
2622
+ [key: string]: any;
2623
+ };
2614
2624
  }
2615
2625
 
2616
2626
  export declare function useFormTabs({ formSchema, tabsConfig, objectToValueFields }?: UseFormTabsOptions): readonly [DefineComponent< {}, () => VNode<RendererNode, RendererElement, {
@@ -2732,6 +2742,13 @@ export declare function useList<T>(options: {
2732
2742
  * @default false
2733
2743
  */
2734
2744
  showCheckbox?: boolean;
2745
+ /**
2746
+ * 聚合配置(用于行分组等场景)
2747
+ */
2748
+ aggregateConfig?: {
2749
+ groupFields?: string[];
2750
+ [key: string]: any;
2751
+ };
2735
2752
  }): {
2736
2753
  QueryForm: DefineComponent< {}, () => VNode<RendererNode, RendererElement, {
2737
2754
  [key: string]: any;
@@ -3182,7 +3199,7 @@ export declare interface UseSelectOptionsReturn {
3182
3199
  clearCache: (dictCode?: string | number) => void;
3183
3200
  }
3184
3201
 
3185
- export declare function useTable({ columns, editRules, toolbarButtons, data, editable, editTrigger, editMode, height, gridId, gridEvents, showOverflow, }?: UseTableOptions): readonly [DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>, VxeGridApi_2 & {
3202
+ export declare function useTable({ columns, editRules, toolbarButtons, data, editable, editTrigger, editMode, height, gridId, gridEvents, showOverflow, aggregateConfig, }?: UseTableOptions): readonly [DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>, VxeGridApi_2 & {
3186
3203
  setColumns: (newColumns: any[]) => void;
3187
3204
  setToolbarButtons: (buttons: Array<{
3188
3205
  code: string;
@@ -3216,6 +3233,11 @@ declare interface UseTableOptions {
3216
3233
  gridEvents?: Record<string, (...args: any[]) => any>;
3217
3234
  /** 全局溢出提示,默认 false */
3218
3235
  showOverflow?: boolean | 'tooltip' | 'ellipsis';
3236
+ /** 聚合配置(用于行分组等场景) */
3237
+ aggregateConfig?: {
3238
+ groupFields?: string[];
3239
+ [key: string]: any;
3240
+ };
3219
3241
  }
3220
3242
 
3221
3243
  /**