@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.
package/es/HTableBody/index.js
CHANGED
|
@@ -93,7 +93,9 @@ var Body = (function (_ref) {
|
|
|
93
93
|
tableAlertRender: false,
|
|
94
94
|
search: false,
|
|
95
95
|
options: {
|
|
96
|
-
reload:
|
|
96
|
+
reload: function reload() {
|
|
97
|
+
tableInstance.table.reloadWithParams();
|
|
98
|
+
}
|
|
97
99
|
},
|
|
98
100
|
tableStyle: {
|
|
99
101
|
paddingBottom: 0
|
package/lib/HTableBody/index.js
CHANGED
|
@@ -96,7 +96,9 @@ var Body = (function (_ref) {
|
|
|
96
96
|
tableAlertRender: false,
|
|
97
97
|
search: false,
|
|
98
98
|
options: {
|
|
99
|
-
reload:
|
|
99
|
+
reload: function reload() {
|
|
100
|
+
tableInstance.table.reloadWithParams();
|
|
101
|
+
}
|
|
100
102
|
},
|
|
101
103
|
tableStyle: {
|
|
102
104
|
paddingBottom: 0
|
package/package.json
CHANGED
|
@@ -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}
|