@hw-component/table 0.0.4-beta-v7 → 0.0.4-beta-v8

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/es/modal.d.ts CHANGED
@@ -82,7 +82,7 @@ export interface HDiaLogTableInstance {
82
82
  hide: () => void;
83
83
  }
84
84
  export interface ModalTableProps extends ModalProps {
85
- tableProps: HTableProps;
85
+ tableProps?: HTableProps;
86
86
  dialogTable?: HDiaLogTableInstance;
87
87
  params?: Record<string, any>;
88
88
  configData?: HTableProps["configData"];
package/lib/modal.d.ts CHANGED
@@ -82,7 +82,7 @@ export interface HDiaLogTableInstance {
82
82
  hide: () => void;
83
83
  }
84
84
  export interface ModalTableProps extends ModalProps {
85
- tableProps: HTableProps;
85
+ tableProps?: HTableProps;
86
86
  dialogTable?: HDiaLogTableInstance;
87
87
  params?: Record<string, any>;
88
88
  configData?: HTableProps["configData"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hw-component/table",
3
- "version": "0.0.4-beta-v7",
3
+ "version": "0.0.4-beta-v8",
4
4
  "description": "基于antd二次开发table组件",
5
5
  "keywords": [
6
6
  "table"
@@ -22,13 +22,13 @@ export const useTableProps = ({
22
22
  configData,
23
23
  params,
24
24
  title,
25
- request,
25
+ request,
26
26
  }: Omit<ModalTableProps, "tableProps">) => {
27
27
  const [modalTableParams, setModalTableParams] = useState({
28
28
  params,
29
29
  title,
30
30
  configData,
31
- request
31
+ request,
32
32
  });
33
33
  return {
34
34
  modalTableParams,
@@ -3,8 +3,8 @@ import Table from "../Table";
3
3
  import type { ModalTableProps } from "../modal";
4
4
  import { useCurrentTable, useTableProps, useVisible } from "./hooks";
5
5
  export default ({
6
- configData:configDataProps,
7
- request:requestProps,
6
+ configData: configDataProps,
7
+ request: requestProps,
8
8
  tableProps,
9
9
  dialogTable,
10
10
  visible = false,
@@ -14,8 +14,8 @@ export default ({
14
14
  const { modalVisible, setModalVisible } = useVisible(visible);
15
15
  const { modalTableParams, setModalTableParams } = useTableProps({
16
16
  ...props,
17
- configData:configDataProps,
18
- request:requestProps
17
+ configData: configDataProps,
18
+ request: requestProps,
19
19
  });
20
20
  const currentTable = useCurrentTable({
21
21
  show: (showParams) => {
@@ -62,7 +62,7 @@ export default ({
62
62
  >
63
63
  <Table
64
64
  {...tableProps}
65
- configData={configData||[]}
65
+ configData={configData || []}
66
66
  table={currentTable}
67
67
  request={req}
68
68
  />
@@ -107,7 +107,7 @@ export interface HDiaLogTableInstance {
107
107
  hide: () => void;
108
108
  }
109
109
  export interface ModalTableProps extends ModalProps {
110
- tableProps: HTableProps;
110
+ tableProps?: HTableProps;
111
111
  dialogTable?: HDiaLogTableInstance;
112
112
  params?: Record<string, any>;
113
113
  configData?: HTableProps["configData"];
@@ -84,10 +84,7 @@ export default () => {
84
84
  >
85
85
  点我333
86
86
  </Button>
87
- <HModalTable
88
- dialogTable={dialogTable}
89
- configData={configData}
90
- />
87
+ <HModalTable dialogTable={dialogTable} configData={configData} />
91
88
  </>
92
89
  );
93
90
  };