hlyc-web-pack 3.0.7 → 3.1.0

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.MemoExoticComponent<React.ForwardRefExoticComponent<ButtonGroupTypeProps & React.RefAttributes<unknown>>>;
28
+ declare const _default: React.NamedExoticComponent<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.MemoExoticComponent<React.ForwardRefExoticComponent<PropType & React.RefAttributes<unknown>>>;
22
+ declare const _default: React.NamedExoticComponent<PropType & React.RefAttributes<unknown>>;
23
23
  export default _default;
@@ -19,7 +19,7 @@ export declare type ScrollXYType = {
19
19
  x?: string | number | true | undefined;
20
20
  y?: string | number | undefined;
21
21
  };
22
- interface GenerateTableProp {
22
+ export interface GenerateTableProp {
23
23
  extra: {
24
24
  /** 支持antd Table组件官方传参所有类型 */
25
25
  tableConfig?: TableProps<any>;
@@ -12,5 +12,5 @@ interface Props {
12
12
  /** 选择图标回调 */
13
13
  onConfirm?: (item: string) => void;
14
14
  }
15
- declare const _default: React.MemoExoticComponent<(props: Props) => JSX.Element>;
15
+ declare const _default: React.NamedExoticComponent<Props>;
16
16
  export default _default;
@@ -51,5 +51,5 @@ export interface LayoutFormModalCallType {
51
51
  getFormSubmitValues: () => Promise<AnyObjectType | undefined>;
52
52
  }
53
53
  export declare type LayoutFormModalListType = FormListType;
54
- declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<LayoutFormPropTypes & React.RefAttributes<unknown>>>;
54
+ declare const _default: React.NamedExoticComponent<LayoutFormPropTypes & React.RefAttributes<unknown>>;
55
55
  export default _default;
@@ -1,8 +1,10 @@
1
1
  import React from 'react';
2
+ import { RowProps } from 'antd/lib/row';
3
+ import { ColProps } from 'antd/lib/col';
2
4
  import { TableProps, ColumnType } from 'antd/es/table';
3
5
  import { FormProps } from 'antd/es/form';
4
6
  import { FormListType, FormCallType } from '../GenerateForm';
5
- import { TableCallType } from '../GenerateTable';
7
+ import { TableCallType, GenerateTableProp } from '../GenerateTable';
6
8
  import { AnyObjectType, PromiseAxiosResultType } from '../unrelated/typings';
7
9
  import './index.less';
8
10
  export declare type LayoutTableModalCallType = TableCallType & FormCallType & {
@@ -50,8 +52,35 @@ export interface LayoutTableModalPropType {
50
52
  manualParameterChange?: (params: AnyObjectType) => AnyObjectType;
51
53
  /** 静态表格数据 */
52
54
  data?: AnyObjectType[];
55
+ /** 已选列表 */
56
+ openSelected?: {
57
+ /** 是否打开 */
58
+ visible: boolean;
59
+ /** 默认已选中 */
60
+ defaultValues?: AnyObjectType[];
61
+ /** 显示的字段名 */
62
+ fileName: string;
63
+ /** 内容区域高度 */
64
+ height?: number;
65
+ };
66
+ /** 排列方式布局Row */
67
+ rowProps?: RowProps;
68
+ /** 主内容Col */
69
+ colProps?: ColProps;
70
+ /** 左边插槽 */
71
+ leftSlot?: {
72
+ colProps: ColProps;
73
+ jsx: React.ReactNode;
74
+ };
75
+ /** 右边插槽 */
76
+ rightSlot?: {
77
+ colProps: ColProps;
78
+ jsx: React.ReactNode;
79
+ };
53
80
  /** 数据调用成功回调 */
54
81
  getTableSuccessData?: (data: AnyObjectType) => void;
82
+ /** 行选中回调 */
83
+ onSelect?: GenerateTableProp['extra']['onSelect'];
55
84
  /** 关闭弹窗回调 */
56
85
  onCancel?: () => void;
57
86
  /** 确定弹窗回调 */
@@ -27,5 +27,5 @@ export interface QuicklyProcessTypes {
27
27
  /** 关闭弹窗回调 */
28
28
  onCancel?: (pageObj?: AnyObjectType) => void;
29
29
  }
30
- declare const _default: React.MemoExoticComponent<(props: QuicklyProcessTypes) => JSX.Element>;
30
+ declare const _default: React.NamedExoticComponent<QuicklyProcessTypes>;
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.MemoExoticComponent<React.ForwardRefExoticComponent<PropTypes & React.RefAttributes<unknown>>>;
47
+ declare const _default: React.NamedExoticComponent<PropTypes & React.RefAttributes<unknown>>;
48
48
  export default _default;
@@ -10,7 +10,12 @@ export declare type PropsType = {
10
10
  /** 上传成功回调 */
11
11
  uploadSuccess?: (data: AnyObjectType[]) => void;
12
12
  } & UploadProps;
13
- /** 上传文件组件 */
14
- declare function Upload(props: PropsType): JSX.Element;
15
- declare const _default: React.MemoExoticComponent<typeof Upload>;
13
+ declare const _default: React.NamedExoticComponent<{
14
+ /** 选择文件按钮 */
15
+ children: JSX.Element;
16
+ /** 设置上传的请求头部 */
17
+ headers?: AnyObjectType;
18
+ /** 上传成功回调 */
19
+ uploadSuccess?: (data: AnyObjectType[]) => void;
20
+ } & UploadProps<any>>;
16
21
  export default _default;