@hw-component/table 0.0.3-beta-v10 → 0.0.3-beta-v11

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.
@@ -93,7 +93,9 @@ var Body = (function (_ref) {
93
93
  tableAlertRender: false,
94
94
  search: false,
95
95
  options: {
96
- reload: tableInstance.table.reloadWithParams
96
+ reload: function reload() {
97
+ tableInstance.table.reloadWithParams();
98
+ }
97
99
  },
98
100
  tableStyle: {
99
101
  paddingBottom: 0
@@ -96,7 +96,9 @@ var Body = (function (_ref) {
96
96
  tableAlertRender: false,
97
97
  search: false,
98
98
  options: {
99
- reload: tableInstance.table.reloadWithParams
99
+ reload: function reload() {
100
+ tableInstance.table.reloadWithParams();
101
+ }
100
102
  },
101
103
  tableStyle: {
102
104
  paddingBottom: 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hw-component/table",
3
- "version": "0.0.3-beta-v10",
3
+ "version": "0.0.3-beta-v11",
4
4
  "description": "基于antd二次开发table组件",
5
5
  "keywords": [
6
6
  "table"
@@ -77,7 +77,9 @@ export default ({
77
77
  tableAlertRender={false}
78
78
  search={false}
79
79
  options={{
80
- reload:tableInstance.table.reloadWithParams
80
+ reload:()=>{
81
+ tableInstance.table.reloadWithParams();
82
+ }
81
83
  }}
82
84
  tableStyle={{
83
85
  paddingBottom: 0,
@@ -36,6 +36,7 @@ export default () => {
36
36
  return <Button>点我</Button>;
37
37
  }}
38
38
  request={(params) => {
39
+ console.log(params)
39
40
  const { current = 1 } = params;
40
41
  return new Promise((resolve, reject) => {
41
42
  setTimeout(() => {
@@ -25,6 +25,7 @@ const configData = [
25
25
  export default () => {
26
26
  const {run,loading,error,data}=useRequest((params)=>{
27
27
  const { current = 1 } = params;
28
+ console.log("fff")
28
29
  return new Promise((resolve, reject) => {
29
30
  setTimeout(() => {
30
31
  // reject(new Error("错误"));
@@ -41,7 +42,7 @@ export default () => {
41
42
  });
42
43
  }, 2000);
43
44
  });
44
- });
45
+ },{manual:true});
45
46
  return (
46
47
  <TableCustomize
47
48
  configData={configData}