hlyc-web-pack 3.3.5 → 3.3.8

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.
@@ -25,5 +25,5 @@ export interface ButtonGroupTypeProps {
25
25
  export interface ButtonGroupCallType {
26
26
  getButtonGroupSelected: () => ButtonGroupListType[];
27
27
  }
28
- declare const _default: React.NamedExoticComponent<ButtonGroupTypeProps & React.RefAttributes<unknown>>;
28
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<ButtonGroupTypeProps & React.RefAttributes<unknown>>>;
29
29
  export default _default;
@@ -19,5 +19,5 @@ export interface MapType {
19
19
  lng: number;
20
20
  };
21
21
  }
22
- declare const _default: React.NamedExoticComponent<PropType & React.RefAttributes<unknown>>;
22
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<PropType & React.RefAttributes<unknown>>>;
23
23
  export default _default;
@@ -1,9 +1,10 @@
1
1
  import React from 'react';
2
2
  import { RadioChangeEvent } from 'antd';
3
- import moment from 'moment';
4
3
  import { RowProps } from 'antd/es/row';
5
4
  import { ColProps } from 'antd/es/col';
6
5
  import { FormProps, Rule, FormItemProps } from 'antd/es/form';
6
+ import { RangePickerSharedProps } from 'rc-picker/lib/RangePicker';
7
+ import { PickerSharedProps } from 'rc-picker/lib/Picker';
7
8
  import { RateProps } from 'antd/es/rate';
8
9
  import { TreeSelectProps } from 'antd/es/tree-select';
9
10
  import { SelectProps } from 'antd/es/select';
@@ -91,8 +92,8 @@ export declare type FormListType = {
91
92
  selectChange?: (e: string, other?: any) => void;
92
93
  multipleChange?: (e: string, other?: any) => void;
93
94
  remoteSearchChange?: (e: string, other?: any) => void;
94
- datePickerChange?: (e: moment.Moment, other?: any) => void;
95
- rangePickerChange?: (e: [moment.Moment, moment.Moment], other?: any) => void;
95
+ datePickerChange?: PickerSharedProps<any>['onChange'];
96
+ rangePickerChange?: RangePickerSharedProps<any>['onChange'];
96
97
  switchChange?: (e: boolean, other?: any) => void;
97
98
  radioChange?: (e: RadioChangeEvent, other?: any) => void;
98
99
  checkboxChange?: (e: CheckboxValueType[], other?: any) => void;
@@ -121,5 +122,5 @@ interface GenerateFormProp {
121
122
  /** 动态渲染操作按钮或其他元素 */
122
123
  render?: () => React.ReactElement;
123
124
  }
124
- declare const _default: React.NamedExoticComponent<GenerateFormProp & React.RefAttributes<unknown>>;
125
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<GenerateFormProp & React.RefAttributes<unknown>>>;
125
126
  export default _default;
@@ -6,13 +6,23 @@ import './index.less';
6
6
  export declare type TableColumns<T = AnyObjectType> = ColumnType<T> & Partial<EditableColumnsType>;
7
7
  export interface TableCallType {
8
8
  setTableLoading: (data: boolean) => void;
9
- getPages: () => TablePaginationType | undefined;
10
- setRowSelected: (selectedRowKeys: string[]) => void;
9
+ /** 调用接口手动加载数据 */
11
10
  getTableList: (values?: AnyObjectType, callBack?: () => void) => void;
12
- getSelectIds: () => string[];
13
- removeSelectIds: (data: string[]) => void;
11
+ /** 获取分页数据 */
12
+ getPages: () => TablePaginationType | undefined;
13
+ /** 设置选中,当设置original=true时,不会重置selectRowIds,会在原有的selectRowIds扩展 */
14
+ setRowSelected: (selectedRowKeys: any[], original?: true) => void;
15
+ /** 获取选中id */
16
+ getSelectIds: () => any[];
17
+ /** 清空选中 */
18
+ clearSelectIds: () => void;
19
+ /** 获取选中的数据项 */
14
20
  getSelectRowsArray: () => AnyObjectType[];
21
+ /** 删除选中id */
22
+ removeSelectIds: (data: string[]) => void;
23
+ /** 获取表格静态数据 */
15
24
  getStaticDataList: () => AnyObjectType[];
25
+ /** 设置表格静态数据 */
16
26
  setStaticDataList: (row: AnyObjectType | AnyObjectType[], callback?: () => void) => void;
17
27
  }
18
28
  export declare type ScrollXYType = {
@@ -48,5 +58,5 @@ export interface GenerateTableProp {
48
58
  declare type TablePaginationType = TablePaginationConfig & {
49
59
  pages: number;
50
60
  };
51
- declare const _default: React.NamedExoticComponent<GenerateTableProp & React.RefAttributes<unknown>>;
61
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<GenerateTableProp & React.RefAttributes<unknown>>>;
52
62
  export default _default;
@@ -12,5 +12,5 @@ interface Props {
12
12
  /** 选择图标回调 */
13
13
  onConfirm?: (item: string) => void;
14
14
  }
15
- declare const _default: React.NamedExoticComponent<Props>;
15
+ declare const _default: React.MemoExoticComponent<(props: Props) => JSX.Element>;
16
16
  export default _default;
@@ -27,5 +27,5 @@ export interface QuicklyProcessTypes {
27
27
  /** 关闭弹窗回调 */
28
28
  onCancel?: (pageObj?: AnyObjectType) => void;
29
29
  }
30
- declare const _default: React.NamedExoticComponent<QuicklyProcessTypes>;
30
+ declare const _default: React.MemoExoticComponent<(props: QuicklyProcessTypes) => JSX.Element>;
31
31
  export default _default;
@@ -44,5 +44,5 @@ export interface TreeType {
44
44
  children?: TreeType[];
45
45
  [key: string]: any;
46
46
  }
47
- declare const _default: React.NamedExoticComponent<PropTypes & React.RefAttributes<unknown>>;
47
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<PropTypes & React.RefAttributes<unknown>>>;
48
48
  export default _default;
@@ -11,12 +11,7 @@ export declare type PropsType = {
11
11
  /** 上传成功回调 */
12
12
  uploadSuccess?: (data: UploadFile<any>[]) => void;
13
13
  } & UploadProps;
14
- declare const _default: React.NamedExoticComponent<{
15
- /** 选择文件按钮 */
16
- children: JSX.Element;
17
- /** 设置上传的请求头部 */
18
- headers?: AnyObjectType;
19
- /** 上传成功回调 */
20
- uploadSuccess?: (data: UploadFile<any>[]) => void;
21
- } & UploadProps<any>>;
14
+ /** 上传文件组件 */
15
+ declare function Upload(props: PropsType): JSX.Element;
16
+ declare const _default: React.MemoExoticComponent<typeof Upload>;
22
17
  export default _default;