@sunny-base-web/effects 0.8.12 → 0.8.14

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
@@ -3075,6 +3075,34 @@ export declare interface UseSelectOptionsReturn {
3075
3075
  clearCache: (dictCode?: string | number) => void;
3076
3076
  }
3077
3077
 
3078
+ export declare function useTable({ columns, editRules, toolbarButtons, data, editable, editTrigger, editMode, height, gridId, gridEvents, }?: UseTableOptions): readonly [DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>, VxeGridApi_2];
3079
+
3080
+ declare interface UseTableOptions {
3081
+ /** 表格列配置 */
3082
+ columns?: VxeGridProps_2['columns'];
3083
+ /** 表格编辑规则 */
3084
+ editRules?: any;
3085
+ /** 工具栏按钮 */
3086
+ toolbarButtons?: Array<{
3087
+ code: string;
3088
+ name: string;
3089
+ }>;
3090
+ /** 表格数据 */
3091
+ data?: any[];
3092
+ /** 是否启用编辑,默认 false */
3093
+ editable?: boolean;
3094
+ /** 编辑触发方式 */
3095
+ editTrigger?: 'click' | 'dblclick';
3096
+ /** 编辑模式 */
3097
+ editMode?: 'row' | 'cell';
3098
+ /** 表格高度 */
3099
+ height?: string | number;
3100
+ /** 表格 ID */
3101
+ gridId?: string;
3102
+ /** 表格事件 */
3103
+ gridEvents?: Record<string, (...args: any[]) => any>;
3104
+ }
3105
+
3078
3106
  /**
3079
3107
  * 获取用户资源
3080
3108
  * @param cModnumb - 模块编号