vap1 0.5.3 → 0.5.4

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.
@@ -1,6 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- // console.log(UTILS.validatorCustom)
4
- // console.log(UTILS.defWhereFunc)
5
- // console.log(UTILS.defWhereLogic)
6
- // console.log(UTILS.defFunc)
@@ -13,4 +13,5 @@ export declare const ApiTable: React.ForwardRefExoticComponent<import("./index")
13
13
  selectDisabled?: (record: any) => boolean;
14
14
  actionBar?: Array<import("./Components/ActionBar").TableActionButton[]> | React.ReactNode;
15
15
  autoLoad?: false;
16
+ fixHeader?: boolean;
16
17
  } & Pick<ApiOption, "api" | "tipField" | "tipDisabled" | "aop"> & React.RefAttributes<ApiModel>>;
@@ -13,6 +13,7 @@ export declare const ApiTableModal: React.ForwardRefExoticComponent<import(".").
13
13
  selectDisabled?: (record: any) => boolean;
14
14
  actionBar?: Array<import("./Components/ActionBar").TableActionButton[]> | React.ReactNode;
15
15
  autoLoad?: false;
16
+ fixHeader?: boolean;
16
17
  } & Pick<import("../../hooks/useApiBase").ApiOption, "api" | "tipField" | "tipDisabled" | "aop"> & Omit<import("antd/es/modal").ModalProps, "visible" | "onCancel" | "onOk"> & {
17
18
  open?: boolean;
18
19
  onOk?: (data?: import("../..").PlainObject) => void;
@@ -37,6 +37,7 @@ export declare const VTable: React.ForwardRefExoticComponent<import("./index").T
37
37
  selectDisabled?: (record: any) => boolean;
38
38
  actionBar?: Array<TableActionButton[]> | React.ReactNode;
39
39
  autoLoad?: false;
40
+ fixHeader?: boolean;
40
41
  } & {
41
42
  /**
42
43
  * 列表模型,可以使用系统提供的 useApi/useArray 等,也可自行实现列表模型
@@ -59,6 +59,14 @@ export type BaseTableProps = TableDefine & Pick<BoxProps, 'mode' | 'selectBar' |
59
59
  * 是否自动查询,默认为TRUE
60
60
  */
61
61
  autoLoad?: false;
62
+ /**
63
+ * @experimental
64
+ * 说明: 1.5 版本才有此属性
65
+ * 2.0版本会自动锁定表头
66
+ * 1.5版本有问题: http://192.168.119.213:9999/vap2/why-not/#%E4%B8%BA%E4%BB%80%E4%B9%881-5%E7%89%88%E6%9C%AC%E7%9A%84vtable%E4%B8%8D%E6%94%AF%E6%8C%81%E9%94%81%E5%AE%9A%E8%A1%A8%E5%A4%B4
67
+ * 传此参数后,会试验性的计算,可能会有BUG
68
+ */
69
+ fixHeader?: boolean;
62
70
  };
63
71
  import type { ApiTableProps } from './ApiTable';
64
72
  export type ApiTable = ForwardRefExoticComponent<ApiTableProps & RefAttributes<ApiModel>> & TableDefined;
@@ -67,7 +75,7 @@ import type { VTableProps, VTableRef } from './VTable';
67
75
  export type VTable = ForwardRefExoticComponent<VTableProps & RefAttributes<VTableRef>> & TableDefined;
68
76
  export declare const VTable: VTable;
69
77
  import type { STableProps } from './STable';
70
- export type STable = ExoticComponent<STableProps> & TableDefined;
78
+ export type STable = ForwardRefExoticComponent<STableProps & RefAttributes<VTableRef>> & TableDefined;
71
79
  export declare const STable: STable;
72
80
  import type { TopTableProps } from './TopTable';
73
81
  export type TopTable = ExoticComponent<TopTableProps> & TableDefined;
@@ -1,6 +1,6 @@
1
1
  import type { UModalProps } from '../components/UForm';
2
2
  import type { PlainObject } from "../basetype";
3
- type ModalsState = {
3
+ export type ModalsState = {
4
4
  modalProps: Pick<UModalProps, 'open' | 'onCancel' | 'data' | 'isEdit'>;
5
5
  open: boolean;
6
6
  isEdit: boolean;
@@ -37,4 +37,3 @@ export declare const useModals: () => {
37
37
  showUpload: (extra?: any) => void;
38
38
  showDetail: (data?: PlainObject, extra?: any) => void;
39
39
  };
40
- export {};
package/index.d.ts CHANGED
@@ -165,5 +165,8 @@ export { Role, type RoleProps } from './components/_common/Role';
165
165
  export { IAutoComplete, type IAutoCompleteProps } from './components/_common/AutoComplete';
166
166
  export { PromiseLabel, type PromiseLabelProps } from './components/_common/PromiseLabel';
167
167
  export type { Key, BaseTypes, PlainObject, BaseItem, BaseOption, PageProps, } from './basetype';
168
- export type { ApiModel, ListModel } from './hooks/_list';
169
168
  export type { Moment as Dayjs } from 'dayjs';
169
+ export type { FC, ForwardRefExoticComponent, ReactNode, PropsWithChildren, CSSProperties, RefAttributes, MutableRefObject, } from 'react';
170
+ export type { ModalsState } from './hooks/useModals';
171
+ export type { ApiModel, ListModel } from './hooks/_list';
172
+ export type { OpenState } from './hooks/useOpenState';
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"vap1","version":"0.5.3","description":"vap1, Both support MicroService and SAP FrameWork, Support IE>9","main":"index.js","author":"Xiang da","license":"ISC"}
1
+ {"name":"vap1","version":"0.5.4","description":"vap1, Both support MicroService and SAP FrameWork, Support IE>9","main":"index.js","author":"Xiang da","license":"ISC"}