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

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?: Omit<HTableProps, "configData" | "request">;
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?: Omit<HTableProps, "configData" | "request">;
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-v8",
3
+ "version": "0.0.4-beta-v9",
4
4
  "description": "基于antd二次开发table组件",
5
5
  "keywords": [
6
6
  "table"
@@ -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?: Omit<HTableProps, "configData"|"request">;
111
111
  dialogTable?: HDiaLogTableInstance;
112
112
  params?: Record<string, any>;
113
113
  configData?: HTableProps["configData"];
@@ -23,6 +23,10 @@ const configData = [
23
23
  searchType: "rangePicker",
24
24
  },
25
25
  ];
26
+ const AddBtn=(props)=>{
27
+ console.log(props);
28
+ return <div>fff</div>
29
+ }
26
30
  export default () => {
27
31
  const { run, loading, error, data } = useRequest(
28
32
  (params) => {
@@ -57,7 +61,7 @@ export default () => {
57
61
  >
58
62
  <Space direction={"vertical"} style={{ width: "100%" }}>
59
63
  <HTableHeader />
60
- <HTableBody pagination={false} scroll={{ x: 1000, y: 100 }} />
64
+ <HTableBody pagination={false} scroll={{ x: 1000, y: 100 }} headerTitle={<AddBtn/>}/>
61
65
  <HTablePagination />
62
66
  <HTableFooter />
63
67
  </Space>