@leevan/jtui 2.0.28 → 2.0.30
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/lib/jtui.common.js +11 -4
- package/lib/jtui.umd.js +11 -4
- package/lib/jtui.umd.min.js +1 -1
- package/package.json +1 -1
- package/packages/jt-table/index.vue +8 -2
- package/yarn.lock +0 -9248
package/package.json
CHANGED
|
@@ -1259,7 +1259,7 @@ export default {
|
|
|
1259
1259
|
this.timeOut = setTimeout(() => {
|
|
1260
1260
|
let ch = $event.target.clientHeight;
|
|
1261
1261
|
let sh = $event.target.scrollHeight;
|
|
1262
|
-
if (scrollTop + ch >= sh && scrollTop != 0) {
|
|
1262
|
+
if (Math.ceil(scrollTop + ch) >= sh && scrollTop != 0) {
|
|
1263
1263
|
this.$emit("scrollBottom", ++this.pageIndex);
|
|
1264
1264
|
}
|
|
1265
1265
|
}, 200);
|
|
@@ -1312,9 +1312,15 @@ export default {
|
|
|
1312
1312
|
},
|
|
1313
1313
|
//导出数据
|
|
1314
1314
|
exportTableData() {
|
|
1315
|
+
if(this.$listeners.scrollBottom){
|
|
1316
|
+
this.$message.info('表格仅能导出已查询的数据,想要导出更多请继续滚动加载')
|
|
1317
|
+
}
|
|
1315
1318
|
this.$refs[this.id].openExport({ isPrint: false });
|
|
1316
1319
|
},
|
|
1317
1320
|
exportData(obj){
|
|
1321
|
+
if(this.$listeners.scrollBottom){
|
|
1322
|
+
this.$message.info('表格仅能导出已查询的数据,想要导出更多请继续滚动加载')
|
|
1323
|
+
}
|
|
1318
1324
|
this.$refs[this.id].exportData(obj);
|
|
1319
1325
|
},
|
|
1320
1326
|
//导入数据
|
|
@@ -1331,7 +1337,7 @@ export default {
|
|
|
1331
1337
|
//刷新
|
|
1332
1338
|
if(value.indexOf("reflash") !== -1){
|
|
1333
1339
|
this.reloadTreeChilds(row);
|
|
1334
|
-
}
|
|
1340
|
+
}
|
|
1335
1341
|
this.$emit("handlerClick", value, row, rowIndex);
|
|
1336
1342
|
},
|
|
1337
1343
|
//普通表格转树表(仅支持一层)
|